Skip to content

Commit

Permalink
Adds changeset. Ignores changes to some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas committed Jun 20, 2024
1 parent 0fb280c commit 58b07c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
8 changes: 8 additions & 0 deletions .changeset/violet-flowers-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@shopify/ui-extensions-react': minor
'@shopify/ui-extensions': minor
---

- Adds `oneTimeUse` to `ShippingAddress` to denote whether the address can be saved to the customer
- Adds `sku` to `ProductVariant`
- Adds `bullet` icon
6 changes: 3 additions & 3 deletions packages/ui-extensions/docs/surfaces/checkout/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ fail_and_exit() {
if [ -z $API_VERSION ]
then
API_VERSION="unstable"
echo "Building docs for 'unstable' checkout UI extensions API. You can add a calver version argument (e.g. 'pnpm docs:checkout 2023-07') to generate the docs for a stable version."
echo "Building docs for 'unstable' checkout UI extensions API. You can add a calver version argument (e.g. 'yarn docs:checkout 2023-07') to generate the docs for a stable version."
else
echo "Building docs for '$API_VERSION' checkout UI extensions API."
echo "When generating docs for a stable version, 'unstable' docs are not regenerated. This avoids overwriting other unstable changes that are not included in this version."
echo "If you need to update the 'unstable' version, run this command again without the '$API_VERSION' parameter."
fi

COMPILE_DOCS="pnpm tsc --project $DOCS_PATH/tsconfig.docs.json --types react --moduleResolution node --target esNext --module CommonJS && pnpm generate-docs --overridePath ./$DOCS_PATH/typeOverride.json --input ./$DOCS_PATH/reference ./$SRC_PATH --typesInput ./$SRC_PATH ../ui-extensions-react/$SRC_PATH --output ./$DOCS_PATH/generated"
COMPILE_STATIC_PAGES="pnpm tsc $DOCS_PATH/staticPages/*.doc.ts --types react --moduleResolution node --target esNext --module CommonJS && pnpm generate-docs --isLandingPage --input ./$DOCS_PATH/staticPages --output ./$DOCS_PATH/generated"
COMPILE_DOCS="yarn tsc --project $DOCS_PATH/tsconfig.docs.json --types react --moduleResolution node --target esNext --module CommonJS && yarn generate-docs --overridePath ./$DOCS_PATH/typeOverride.json --input ./$DOCS_PATH/reference ./$SRC_PATH --typesInput ./$SRC_PATH ../ui-extensions-react/$SRC_PATH --output ./$DOCS_PATH/generated"
COMPILE_STATIC_PAGES="yarn tsc $DOCS_PATH/staticPages/*.doc.ts --types react --moduleResolution node --target esNext --module CommonJS && yarn generate-docs --isLandingPage --input ./$DOCS_PATH/staticPages --output ./$DOCS_PATH/generated"


if echo "$PWD" | grep -q '\checkout-web'; then
Expand Down
27 changes: 5 additions & 22 deletions packages/ui-extensions/src/surfaces/checkout/components/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export interface SpacingProps {
*
* - [`base`, `none`] means blockStart and blockEnd paddings are `base`, inlineStart and inlineEnd paddings are `none`
*
* - [`base`, `none`, `large200`, `small200`] means blockStart padding is `base`, inlineEnd padding is `none`, blockEnd padding is `large200` and blockStart padding is `small200`
* - [`base`, `none`, `loose`, `tight`] means blockStart padding is `base`, inlineEnd padding is `none`, blockEnd padding is `loose` and blockStart padding is `tight`
*/
padding?: MaybeResponsiveConditionalStyle<MaybeShorthandProperty<Spacing>>;
}
Expand Down Expand Up @@ -503,28 +503,11 @@ export type Size =

export type Spacing =
| 'none'
| 'small500'
| 'small400'
| 'small300'
| 'small200'
| 'small100'
| 'extraTight'
| 'tight'
| 'base'
| 'large100'
| 'large200'
| 'large300'
| 'large400'
| 'large500'
| SpacingDeprecated;

/** @deprecated These values are deprecated and will eventually be removed.
* Use the new values.
*
* `extraTight`: `small400`
* `tight`: `small200`
* `loose`: `large200`
* `extraLoose`: `large500`
*/
export type SpacingDeprecated = 'extraTight' | 'tight' | 'loose' | 'extraLoose';
| 'loose'
| 'extraLoose';

export type Alignment = 'start' | 'center' | 'end';
export type InlineAlignment = 'start' | 'center' | 'end';
Expand Down

0 comments on commit 58b07c0

Please sign in to comment.