diff --git a/.changeset/violet-flowers-deny.md b/.changeset/violet-flowers-deny.md new file mode 100644 index 000000000..f136d50f3 --- /dev/null +++ b/.changeset/violet-flowers-deny.md @@ -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 diff --git a/packages/ui-extensions/docs/surfaces/checkout/build-docs.sh b/packages/ui-extensions/docs/surfaces/checkout/build-docs.sh index 48b46ee0e..ba01620e9 100644 --- a/packages/ui-extensions/docs/surfaces/checkout/build-docs.sh +++ b/packages/ui-extensions/docs/surfaces/checkout/build-docs.sh @@ -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 diff --git a/packages/ui-extensions/src/surfaces/checkout/components/shared.ts b/packages/ui-extensions/src/surfaces/checkout/components/shared.ts index 82a7c6ea3..7343aa1fb 100644 --- a/packages/ui-extensions/src/surfaces/checkout/components/shared.ts +++ b/packages/ui-extensions/src/surfaces/checkout/components/shared.ts @@ -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>; } @@ -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';