@shopify/ui-extensions 2022.10.5 → 2023.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/cjs/surfaces/admin/components/AdminAction/AdminAction.js +12 -0
- package/build/cjs/surfaces/admin/components/AdminBlock/AdminBlock.js +9 -0
- package/build/cjs/surfaces/admin/components/BlockStack/BlockStack.js +9 -0
- package/build/cjs/surfaces/admin/components/Box/Box.js +9 -0
- package/build/cjs/surfaces/admin/components/Button/Button.js +9 -0
- package/build/cjs/surfaces/admin/components/Checkbox/Checkbox.js +9 -0
- package/build/cjs/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.js +12 -0
- package/build/cjs/surfaces/admin/components/Divider/Divider.js +9 -0
- package/build/cjs/surfaces/admin/components/EmailField/EmailField.js +9 -0
- package/build/cjs/surfaces/admin/components/Form/Form.js +9 -0
- package/build/cjs/surfaces/admin/components/Heading/Heading.js +9 -0
- package/build/cjs/surfaces/admin/components/HeadingGroup/HeadingGroup.js +9 -0
- package/build/cjs/surfaces/admin/components/Icon/Icon.js +9 -0
- package/build/cjs/surfaces/admin/components/Image/Image.js +9 -0
- package/build/cjs/surfaces/admin/components/InlineStack/InlineStack.js +9 -0
- package/build/cjs/surfaces/admin/components/Link/Link.js +9 -0
- package/build/cjs/surfaces/admin/components/NumberField/NumberField.js +9 -0
- package/build/cjs/surfaces/admin/components/PasswordField/PasswordField.js +9 -0
- package/build/cjs/surfaces/admin/components/Select/Select.js +9 -0
- package/build/cjs/surfaces/admin/components/Text/Text.js +9 -0
- package/build/cjs/surfaces/admin/components/TextArea/TextArea.js +9 -0
- package/build/cjs/surfaces/admin/components/TextField/TextField.js +9 -0
- package/build/cjs/surfaces/admin/components/URLField/URLField.js +9 -0
- package/build/cjs/surfaces/admin/extension.js +11 -0
- package/build/cjs/surfaces/admin.js +56 -0
- package/build/cjs/surfaces/checkout/components/DateField/DateField.js +13 -0
- package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +22 -0
- package/build/cjs/surfaces/checkout/components/Disclosure/Disclosure.js +20 -0
- package/build/cjs/surfaces/checkout/components/Modal/Modal.js +17 -0
- package/build/cjs/surfaces/checkout/components/Popover/Popover.js +17 -0
- package/build/cjs/surfaces/checkout/components/View/View.js +0 -3
- package/build/cjs/surfaces/checkout/extension.js +35 -2
- package/build/cjs/surfaces/checkout/style/memoize.js +2 -0
- package/build/cjs/surfaces/checkout/style/style.js +0 -1
- package/build/cjs/surfaces/checkout.js +11 -0
- package/build/cjs/utilities/registration.js +26 -2
- package/build/esm/surfaces/admin/components/AdminAction/AdminAction.mjs +8 -0
- package/build/esm/surfaces/admin/components/AdminBlock/AdminBlock.mjs +5 -0
- package/build/esm/surfaces/admin/components/BlockStack/BlockStack.mjs +5 -0
- package/build/esm/surfaces/admin/components/Box/Box.mjs +5 -0
- package/build/esm/surfaces/admin/components/Button/Button.mjs +5 -0
- package/build/esm/surfaces/admin/components/Checkbox/Checkbox.mjs +5 -0
- package/build/esm/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.mjs +8 -0
- package/build/esm/surfaces/admin/components/Divider/Divider.mjs +5 -0
- package/build/esm/surfaces/admin/components/EmailField/EmailField.mjs +5 -0
- package/build/esm/surfaces/admin/components/Form/Form.mjs +5 -0
- package/build/esm/surfaces/admin/components/Heading/Heading.mjs +5 -0
- package/build/esm/surfaces/admin/components/HeadingGroup/HeadingGroup.mjs +5 -0
- package/build/esm/surfaces/admin/components/Icon/Icon.mjs +5 -0
- package/build/esm/surfaces/admin/components/Image/Image.mjs +5 -0
- package/build/esm/surfaces/admin/components/InlineStack/InlineStack.mjs +5 -0
- package/build/esm/surfaces/admin/components/Link/Link.mjs +5 -0
- package/build/esm/surfaces/admin/components/NumberField/NumberField.mjs +5 -0
- package/build/esm/surfaces/admin/components/PasswordField/PasswordField.mjs +5 -0
- package/build/esm/surfaces/admin/components/Select/Select.mjs +5 -0
- package/build/esm/surfaces/admin/components/Text/Text.mjs +5 -0
- package/build/esm/surfaces/admin/components/TextArea/TextArea.mjs +5 -0
- package/build/esm/surfaces/admin/components/TextField/TextField.mjs +5 -0
- package/build/esm/surfaces/admin/components/URLField/URLField.mjs +5 -0
- package/build/esm/surfaces/admin/extension.mjs +6 -0
- package/build/esm/surfaces/admin.mjs +24 -0
- package/build/esm/surfaces/checkout/components/DateField/DateField.mjs +9 -0
- package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +18 -0
- package/build/esm/surfaces/checkout/components/Disclosure/Disclosure.mjs +16 -0
- package/build/esm/surfaces/checkout/components/Modal/Modal.mjs +13 -0
- package/build/esm/surfaces/checkout/components/Popover/Popover.mjs +13 -0
- package/build/esm/surfaces/checkout/components/View/View.mjs +0 -3
- package/build/esm/surfaces/checkout/extension.mjs +35 -3
- package/build/esm/surfaces/checkout/style/memoize.mjs +2 -0
- package/build/esm/surfaces/checkout/style/style.mjs +0 -1
- package/build/esm/surfaces/checkout.mjs +6 -1
- package/build/esm/utilities/registration.mjs +26 -2
- package/build/esnext/surfaces/admin/components/AdminAction/AdminAction.esnext +8 -0
- package/build/esnext/surfaces/admin/components/AdminBlock/AdminBlock.esnext +5 -0
- package/build/esnext/surfaces/admin/components/BlockStack/BlockStack.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Box/Box.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Button/Button.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Checkbox/Checkbox.esnext +5 -0
- package/build/esnext/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.esnext +8 -0
- package/build/esnext/surfaces/admin/components/Divider/Divider.esnext +5 -0
- package/build/esnext/surfaces/admin/components/EmailField/EmailField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Form/Form.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Heading/Heading.esnext +5 -0
- package/build/esnext/surfaces/admin/components/HeadingGroup/HeadingGroup.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Icon/Icon.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Image/Image.esnext +5 -0
- package/build/esnext/surfaces/admin/components/InlineStack/InlineStack.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Link/Link.esnext +5 -0
- package/build/esnext/surfaces/admin/components/NumberField/NumberField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/PasswordField/PasswordField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Select/Select.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Text/Text.esnext +5 -0
- package/build/esnext/surfaces/admin/components/TextArea/TextArea.esnext +5 -0
- package/build/esnext/surfaces/admin/components/TextField/TextField.esnext +5 -0
- package/build/esnext/surfaces/admin/components/URLField/URLField.esnext +5 -0
- package/build/esnext/surfaces/admin/extension.esnext +6 -0
- package/build/esnext/surfaces/admin.esnext +24 -0
- package/build/esnext/surfaces/checkout/components/DateField/DateField.esnext +9 -0
- package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +18 -0
- package/build/esnext/surfaces/checkout/components/Disclosure/Disclosure.esnext +16 -0
- package/build/esnext/surfaces/checkout/components/Modal/Modal.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/Popover/Popover.esnext +13 -0
- package/build/esnext/surfaces/checkout/components/View/View.esnext +0 -3
- package/build/esnext/surfaces/checkout/extension.esnext +35 -3
- package/build/esnext/surfaces/checkout/style/memoize.esnext +2 -0
- package/build/esnext/surfaces/checkout/style/style.esnext +0 -1
- package/build/esnext/surfaces/checkout.esnext +6 -1
- package/build/esnext/utilities/registration.esnext +26 -2
- package/build/ts/api.d.ts +62 -0
- package/build/ts/api.d.ts.map +1 -1
- package/build/ts/extension.d.ts +8 -1
- package/build/ts/extension.d.ts.map +1 -1
- package/build/ts/index.d.ts +0 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/shared.d.ts +6 -0
- package/build/ts/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts +11 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts +11 -0
- package/build/ts/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +13 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api.d.ts +5 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts +25 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts +17 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts +15 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +87 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts +55 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts +27 -0
- package/build/ts/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Form/Form.d.ts +30 -0
- package/build/ts/surfaces/admin/components/Form/Form.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts +8 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts +23 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Image/Image.d.ts +114 -0
- package/build/ts/surfaces/admin/components/Image/Image.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts +15 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts +57 -0
- package/build/ts/surfaces/admin/components/Link/Link.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +41 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts +127 -0
- package/build/ts/surfaces/admin/components/Select/Select.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts +97 -0
- package/build/ts/surfaces/admin/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts +15 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.d.ts +10 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts +443 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components.d.ts +47 -0
- package/build/ts/surfaces/admin/components.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension-points.d.ts +64 -0
- package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension.d.ts +5 -0
- package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
- package/build/ts/surfaces/admin/globals.d.ts +5 -0
- package/build/ts/surfaces/admin/globals.d.ts.map +1 -0
- package/build/ts/surfaces/admin/shared.d.ts +6 -0
- package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
- package/build/ts/surfaces/admin.d.ts +7 -0
- package/build/ts/surfaces/admin.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts +9 -0
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-details.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +367 -0
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +27 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/payment-method/render.d.ts +44 -0
- package/build/ts/surfaces/checkout/api/payment-method/render.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts +8 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-locations.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts +8 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-points.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/redeemable/render.d.ts +44 -0
- package/build/ts/surfaces/checkout/api/redeemable/render.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts +46 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts +13 -0
- package/build/ts/surfaces/checkout/api/shipping/shipping-method-details.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +562 -406
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api.d.ts +10 -3
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Banner/Banner.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts +3 -4
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +5 -9
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +2 -4
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts +32 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts +81 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts +45 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Divider/Divider.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +20 -4
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +7 -3
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts +2 -3
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +23 -3
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts +3 -4
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/List/List.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +44 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +87 -2
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts +36 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +20 -3
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +7 -4
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts +2 -3
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts +7 -3
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts +7 -2
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +98 -3
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +5 -7
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts +3 -7
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +2 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +16 -16
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/shared.d.ts +57 -18
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +13 -3
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/extension-points.d.ts +136 -26
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/extension.d.ts +35 -3
- package/build/ts/surfaces/checkout/extension.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts +16 -0
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/shared.d.ts +3 -5
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/index.d.ts +3 -0
- package/build/ts/surfaces/checkout/style/index.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/memoize.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.d.ts +4 -0
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/style/types.d.ts +5 -0
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/utilities/registration.d.ts +5 -1
- package/build/ts/utilities/registration.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -4
- package/src/api.ts +73 -0
- package/src/extension.ts +30 -1
- package/src/index.ts +0 -1
- package/src/shared.ts +13 -0
- package/src/surfaces/admin/api/action/action.doc.ts +19 -0
- package/src/surfaces/admin/api/action/action.ts +14 -0
- package/src/surfaces/admin/api/customer-segmentation-template/customer-segmentation-template.ts +19 -0
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +20 -0
- package/src/surfaces/admin/api/standard/README.md +1 -0
- package/src/surfaces/admin/api/standard/standard.doc.ts +20 -0
- package/src/surfaces/admin/api/standard/standard.ts +14 -0
- package/src/surfaces/admin/api.ts +4 -0
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +41 -0
- package/src/surfaces/admin/components/AdminAction/AdminAction.ts +28 -0
- package/src/surfaces/admin/components/AdminAction/examples/basic-adminaction.example.ts +16 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +41 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.ts +19 -0
- package/src/surfaces/admin/components/AdminBlock/examples/basic-adminblock.example.ts +11 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +42 -0
- package/src/surfaces/admin/components/BlockStack/BlockStack.ts +27 -0
- package/src/surfaces/admin/components/BlockStack/examples/basic-blockstack.example.ts +24 -0
- package/src/surfaces/admin/components/Box/Box.doc.ts +42 -0
- package/src/surfaces/admin/components/Box/Box.ts +13 -0
- package/src/surfaces/admin/components/Box/examples/basic-box.example.ts +11 -0
- package/src/surfaces/admin/components/Button/Button.doc.ts +41 -0
- package/src/surfaces/admin/components/Button/Button.ts +99 -0
- package/src/surfaces/admin/components/Button/README.md +3 -0
- package/src/surfaces/admin/components/Button/examples/basic-button.example.ts +11 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +42 -0
- package/src/surfaces/admin/components/Checkbox/Checkbox.ts +63 -0
- package/src/surfaces/admin/components/Checkbox/examples/basic-checkbox.example.ts +11 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/CustomerSegmentationTemplate.ts +68 -0
- package/src/surfaces/admin/components/CustomerSegmentationTemplate/examples/CustomerSegmentationTemplate.example.ts +37 -0
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +42 -0
- package/src/surfaces/admin/components/Divider/Divider.ts +14 -0
- package/src/surfaces/admin/components/Divider/README.md +7 -0
- package/src/surfaces/admin/components/Divider/examples/basic-divider.example.ts +17 -0
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +41 -0
- package/src/surfaces/admin/components/EmailField/EmailField.ts +22 -0
- package/src/surfaces/admin/components/EmailField/README.md +7 -0
- package/src/surfaces/admin/components/EmailField/examples/basic-emailfield.example.ts +9 -0
- package/src/surfaces/admin/components/Form/Form.doc.ts +41 -0
- package/src/surfaces/admin/components/Form/Form.ts +32 -0
- package/src/surfaces/admin/components/Form/examples/basic-form.example.ts +41 -0
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +42 -0
- package/src/surfaces/admin/components/Heading/Heading.ts +15 -0
- package/src/surfaces/admin/components/Heading/README.md +9 -0
- package/src/surfaces/admin/components/Heading/examples/basic-heading.example.ts +7 -0
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +42 -0
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.ts +8 -0
- package/src/surfaces/admin/components/HeadingGroup/README.md +5 -0
- package/src/surfaces/admin/components/HeadingGroup/examples/basic-headinggroup.example.ts +20 -0
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +42 -0
- package/src/surfaces/admin/components/Icon/Icon.ts +42 -0
- package/src/surfaces/admin/components/Icon/README.md +3 -0
- package/src/surfaces/admin/components/Icon/examples/basic-icon.example.ts +7 -0
- package/src/surfaces/admin/components/Image/Image.doc.ts +41 -0
- package/src/surfaces/admin/components/Image/Image.ts +120 -0
- package/src/surfaces/admin/components/Image/README.md +20 -0
- package/src/surfaces/admin/components/Image/examples/basic-image.example.ts +10 -0
- package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +41 -0
- package/src/surfaces/admin/components/InlineStack/InlineStack.ts +28 -0
- package/src/surfaces/admin/components/InlineStack/examples/basic-inlinestack.example.ts +18 -0
- package/src/surfaces/admin/components/Link/Link.doc.ts +103 -0
- package/src/surfaces/admin/components/Link/Link.ts +63 -0
- package/src/surfaces/admin/components/Link/README.md +11 -0
- package/src/surfaces/admin/components/Link/examples/app-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/external-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/relative-link.example.ts +17 -0
- package/src/surfaces/admin/components/Link/examples/shopify-section-link.example.ts +17 -0
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +42 -0
- package/src/surfaces/admin/components/NumberField/NumberField.ts +59 -0
- package/src/surfaces/admin/components/NumberField/README.md +7 -0
- package/src/surfaces/admin/components/NumberField/examples/basic-numberfield.example.ts +9 -0
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +42 -0
- package/src/surfaces/admin/components/PasswordField/PasswordField.ts +22 -0
- package/src/surfaces/admin/components/PasswordField/README.md +7 -0
- package/src/surfaces/admin/components/PasswordField/examples/basic-passwordfield.example.ts +13 -0
- package/src/surfaces/admin/components/Select/README.md +99 -0
- package/src/surfaces/admin/components/Select/Select.doc.ts +42 -0
- package/src/surfaces/admin/components/Select/Select.ts +147 -0
- package/src/surfaces/admin/components/Select/examples/basic-select.example.ts +47 -0
- package/src/surfaces/admin/components/Text/README.md +7 -0
- package/src/surfaces/admin/components/Text/Text.doc.ts +42 -0
- package/src/surfaces/admin/components/Text/Text.ts +124 -0
- package/src/surfaces/admin/components/Text/examples/basic-text.example.ts +14 -0
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +42 -0
- package/src/surfaces/admin/components/TextArea/TextArea.ts +24 -0
- package/src/surfaces/admin/components/TextArea/examples/basic-textarea.example.ts +10 -0
- package/src/surfaces/admin/components/TextField/README.md +7 -0
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +42 -0
- package/src/surfaces/admin/components/TextField/TextField.ts +16 -0
- package/src/surfaces/admin/components/TextField/examples/basic-textfield.example.ts +9 -0
- package/src/surfaces/admin/components/URLField/README.md +7 -0
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +41 -0
- package/src/surfaces/admin/components/URLField/URLField.ts +26 -0
- package/src/surfaces/admin/components/URLField/examples/basic-urlfield.example.ts +9 -0
- package/src/surfaces/admin/components/shared/index.ts +664 -0
- package/src/surfaces/admin/components.ts +52 -0
- package/src/surfaces/admin/extension-points.ts +143 -0
- package/src/surfaces/admin/extension.ts +8 -0
- package/src/surfaces/admin/globals.ts +8 -0
- package/src/surfaces/admin/shared.ts +6 -0
- package/src/surfaces/admin.ts +6 -0
- package/src/surfaces/checkout/api/{cart-line-details/render-after.ts → cart-line/cart-line-details.ts} +2 -3
- package/src/surfaces/checkout/api/checkout/checkout.ts +454 -0
- package/src/surfaces/checkout/api/order-status/order-status.ts +28 -0
- package/src/surfaces/checkout/api/payment-method/render.ts +55 -0
- package/src/surfaces/checkout/api/pickup/pickup-locations.ts +8 -0
- package/src/surfaces/checkout/api/pickup/pickup-points.ts +8 -0
- package/src/surfaces/checkout/api/redeemable/render.ts +55 -0
- package/src/surfaces/checkout/api/shared.ts +57 -0
- package/src/surfaces/checkout/api/shipping/shipping-method-details.ts +15 -0
- package/src/surfaces/checkout/api/standard/README.md +100 -1
- package/src/surfaces/checkout/api/standard/standard.ts +644 -483
- package/src/surfaces/checkout/api.ts +93 -35
- package/src/surfaces/checkout/components/Banner/Banner.doc.ts +57 -0
- package/src/surfaces/checkout/components/Banner/Banner.ts +2 -2
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +50 -0
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blockLayout.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockLayout/examples/basic-blocklayout.example.ts +16 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.ts +47 -0
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +2 -2
- package/src/surfaces/checkout/components/BlockSpacer/examples/basic-blockspacer.example.ts +2 -2
- package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +60 -0
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +20 -2
- package/src/surfaces/checkout/components/BlockStack/examples/basic-blockstack.example.ts +2 -2
- package/src/surfaces/checkout/components/Button/Button.doc.ts +64 -0
- package/src/surfaces/checkout/components/Button/Button.ts +8 -4
- package/src/surfaces/checkout/components/Button/examples/basic-button.example.ts +2 -2
- package/src/surfaces/checkout/components/Checkbox/Checkbox.doc.ts +49 -0
- package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +5 -5
- package/src/surfaces/checkout/components/Checkbox/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/Checkbox/examples/basic-checkbox.example.ts +2 -2
- package/src/surfaces/checkout/components/Choice/Choice.doc.ts +57 -0
- package/src/surfaces/checkout/components/Choice/Choice.ts +2 -4
- package/src/surfaces/checkout/components/Choice/examples/basic-choice.example.ts +2 -2
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +63 -0
- package/src/surfaces/checkout/components/ChoiceList/content/guidelines.md +2 -2
- package/src/surfaces/checkout/components/ChoiceList/examples/basic-choicelist.example.ts +2 -2
- package/src/surfaces/checkout/components/DateField/DateField.doc.ts +49 -0
- package/src/surfaces/checkout/components/DateField/DateField.ts +50 -0
- package/src/surfaces/checkout/components/DateField/examples/basic-datefield.example.ts +9 -0
- package/src/surfaces/checkout/components/DatePicker/DatePicker.doc.ts +50 -0
- package/src/surfaces/checkout/components/DatePicker/DatePicker.ts +81 -0
- package/src/surfaces/checkout/components/DatePicker/examples/basic-datepicker.example.ts +9 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +61 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.ts +46 -0
- package/src/surfaces/checkout/components/Disclosure/examples/basic-disclosure.example.ts +19 -0
- package/src/surfaces/checkout/components/Divider/Divider.doc.ts +41 -0
- package/src/surfaces/checkout/components/Divider/Divider.ts +2 -2
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.ts +2 -2
- package/src/surfaces/checkout/components/Form/Form.doc.ts +50 -0
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.ts +2 -2
- package/src/surfaces/checkout/components/Grid/Grid.doc.ts +57 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +24 -3
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.ts +2 -2
- package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +57 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +24 -3
- package/src/surfaces/checkout/components/GridItem/examples/basic-griditem.example.ts +2 -2
- package/src/surfaces/checkout/components/Heading/Heading.doc.ts +69 -0
- package/src/surfaces/checkout/components/Heading/examples/basic-heading.example.ts +2 -2
- package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.ts +63 -0
- package/src/surfaces/checkout/components/HeadingGroup/examples/basic-headinggroup.example.ts +2 -2
- package/src/surfaces/checkout/components/Icon/Icon.doc.ts +57 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +23 -11
- package/src/surfaces/checkout/components/Icon/examples/basic-icon.example.ts +2 -2
- package/src/surfaces/checkout/components/Image/Image.doc.ts +49 -0
- package/src/surfaces/checkout/components/Image/Image.ts +8 -3
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +61 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +8 -1
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlineLayout.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineLayout/examples/basic-inlinelayout.example.ts +16 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.ts +41 -0
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +2 -2
- package/src/surfaces/checkout/components/InlineSpacer/examples/basic-inlinespacer.example.ts +2 -2
- package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +50 -0
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +23 -1
- package/src/surfaces/checkout/components/InlineStack/examples/basic-inlinestack.example.ts +2 -2
- package/src/surfaces/checkout/components/Link/Link.doc.ts +64 -0
- package/src/surfaces/checkout/components/Link/Link.ts +9 -4
- package/src/surfaces/checkout/components/Link/examples/basic-link.example.ts +2 -2
- package/src/surfaces/checkout/components/List/List.doc.ts +58 -0
- package/src/surfaces/checkout/components/List/List.ts +2 -2
- package/src/surfaces/checkout/components/List/examples/basic-list.example.ts +2 -2
- package/src/surfaces/checkout/components/ListItem/ListItem.doc.ts +42 -0
- package/src/surfaces/checkout/components/ListItem/ListItem.ts +3 -1
- package/src/surfaces/checkout/components/ListItem/examples/basic-listitem.example.ts +2 -2
- package/src/surfaces/checkout/components/Modal/Modal.doc.ts +50 -0
- package/src/surfaces/checkout/components/Modal/Modal.ts +42 -0
- package/src/surfaces/checkout/components/Modal/examples/basic-modal.example.ts +44 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.doc.ts +41 -0
- package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +99 -23
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.ts +2 -2
- package/src/surfaces/checkout/components/Popover/Popover.doc.ts +50 -0
- package/src/surfaces/checkout/components/Popover/Popover.ts +45 -0
- package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.ts +30 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +41 -0
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +25 -2
- package/src/surfaces/checkout/components/Pressable/examples/basic-pressable.example.ts +4 -4
- package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +41 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +6 -1
- package/src/surfaces/checkout/components/ScrollView/examples/basic-scrollview.example.ts +2 -2
- package/src/surfaces/checkout/components/Select/Select.doc.ts +50 -0
- package/src/surfaces/checkout/components/Select/Select.ts +2 -2
- package/src/surfaces/checkout/components/Select/examples/basic-select.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.ts +52 -0
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +2 -3
- package/src/surfaces/checkout/components/SkeletonImage/examples/basic-skeletonimage.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.doc.ts +52 -0
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.ts +7 -3
- package/src/surfaces/checkout/components/SkeletonText/examples/basic-skeletontext.example.ts +2 -2
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.ts +41 -0
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.ts +7 -2
- package/src/surfaces/checkout/components/SkeletonTextBlock/examples/basic-skeletontextblock.example.ts +2 -2
- package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +50 -0
- package/src/surfaces/checkout/components/Spinner/Spinner.ts +2 -2
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.ts +2 -2
- package/src/surfaces/checkout/components/Stepper/Stepper.doc.ts +50 -0
- package/src/surfaces/checkout/components/Stepper/Stepper.ts +113 -21
- package/src/surfaces/checkout/components/Stepper/examples/basic-stepper.example.ts +2 -2
- package/src/surfaces/checkout/components/Tag/Tag.doc.ts +41 -0
- package/src/surfaces/checkout/components/Tag/Tag.ts +4 -4
- package/src/surfaces/checkout/components/Tag/examples/basic-tag.example.ts +2 -2
- package/src/surfaces/checkout/components/Text/Text.doc.ts +76 -0
- package/src/surfaces/checkout/components/Text/Text.ts +2 -4
- package/src/surfaces/checkout/components/Text/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.ts +2 -2
- package/src/surfaces/checkout/components/TextBlock/TextBlock.doc.ts +76 -0
- package/src/surfaces/checkout/components/TextBlock/TextBlock.ts +9 -9
- package/src/surfaces/checkout/components/TextBlock/content/guidelines.md +1 -1
- package/src/surfaces/checkout/components/TextBlock/examples/basic-textblock.example.ts +6 -2
- package/src/surfaces/checkout/components/TextField/TextField.doc.ts +49 -0
- package/src/surfaces/checkout/components/TextField/TextField.ts +2 -2
- package/src/surfaces/checkout/components/TextField/examples/basic-textfield.example.ts +2 -2
- package/src/surfaces/checkout/components/Tooltip/Tooltip.doc.ts +50 -0
- package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +3 -1
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.ts +2 -2
- package/src/surfaces/checkout/components/View/View.doc.ts +50 -0
- package/src/surfaces/checkout/components/View/View.ts +17 -18
- package/src/surfaces/checkout/components/View/examples/basic-view.example.ts +2 -2
- package/src/surfaces/checkout/components/shared.ts +73 -18
- package/src/surfaces/checkout/components.ts +41 -16
- package/src/surfaces/checkout/extension-points.ts +245 -52
- package/src/surfaces/checkout/extension.ts +62 -3
- package/src/surfaces/checkout/globals.ts +1 -1
- package/src/surfaces/checkout/helper.docs.ts +103 -0
- package/src/surfaces/checkout/shared.ts +3 -11
- package/src/surfaces/checkout/style/examples/.eslintrc.js +8 -0
- package/src/surfaces/checkout/style/examples/defaultstyle.example.tsx +9 -0
- package/src/surfaces/checkout/style/examples/simplecondition.example.tsx +9 -0
- package/src/surfaces/checkout/style/examples/style.example.ts +18 -0
- package/src/surfaces/checkout/style/examples/style.example.tsx +16 -0
- package/src/surfaces/checkout/style/index.ts +16 -0
- package/src/surfaces/checkout/style/memoize.ts +2 -0
- package/src/surfaces/checkout/style/style.doc.ts +166 -0
- package/src/surfaces/checkout/style/style.ts +5 -0
- package/src/surfaces/checkout/style/types.ts +5 -0
- package/src/utilities/registration.ts +59 -7
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +0 -9
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +0 -1
- package/src/surfaces/checkout/api/cart-line-details/README.md +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StatefulRemoteSubscribable } from '@remote-ui/async-subscription';
|
|
2
|
+
import { PresentmentCartLine } from '../standard/standard';
|
|
3
|
+
export interface CartLineDetailsApi {
|
|
4
|
+
/**
|
|
5
|
+
* The cart line the extension is attached to.
|
|
6
|
+
*/
|
|
7
|
+
target: StatefulRemoteSubscribable<PresentmentCartLine>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=cart-line-details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-line-details.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/cart-line/cart-line-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AAE9E,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { Attribute, SellingPlan } from '../shared';
|
|
2
|
+
/**
|
|
3
|
+
* Removes a note
|
|
4
|
+
*/
|
|
5
|
+
export interface NoteRemoveChange {
|
|
6
|
+
/**
|
|
7
|
+
* The type of the `NoteRemoveChange` API.
|
|
8
|
+
*/
|
|
9
|
+
type: 'removeNote';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An Update to a note on the order.
|
|
13
|
+
* for example, the buyer could request detailed packaging instructions in an order note
|
|
14
|
+
*/
|
|
15
|
+
export interface NoteUpdateChange {
|
|
16
|
+
/**
|
|
17
|
+
* The type of the `NoteUpdateChange` API.
|
|
18
|
+
*/
|
|
19
|
+
type: 'updateNote';
|
|
20
|
+
/**
|
|
21
|
+
* The new value of the note.
|
|
22
|
+
*/
|
|
23
|
+
note: string;
|
|
24
|
+
}
|
|
25
|
+
export type NoteChange = NoteRemoveChange | NoteUpdateChange;
|
|
26
|
+
export interface NoteChangeResultSuccess {
|
|
27
|
+
/**
|
|
28
|
+
* The type of the `NoteChangeResultSuccess` API.
|
|
29
|
+
*/
|
|
30
|
+
type: 'success';
|
|
31
|
+
}
|
|
32
|
+
export interface NoteChangeResultError {
|
|
33
|
+
/**
|
|
34
|
+
* The type of the `NoteChangeResultError` API.
|
|
35
|
+
*/
|
|
36
|
+
type: 'error';
|
|
37
|
+
/**
|
|
38
|
+
* A message that explains the error. This message is useful for debugging.
|
|
39
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
40
|
+
* to the buyer.
|
|
41
|
+
*/
|
|
42
|
+
message: string;
|
|
43
|
+
}
|
|
44
|
+
export type NoteChangeResult = NoteChangeResultSuccess | NoteChangeResultError;
|
|
45
|
+
/**
|
|
46
|
+
* Updates an attribute on the order. If an attribute with the
|
|
47
|
+
* provided key does not already exist, it gets created.
|
|
48
|
+
*/
|
|
49
|
+
export interface AttributeUpdateChange {
|
|
50
|
+
/**
|
|
51
|
+
* The type of the `AttributeUpdateChange` API.
|
|
52
|
+
*/
|
|
53
|
+
type: 'updateAttribute';
|
|
54
|
+
/**
|
|
55
|
+
* Key of the attribute to add or update
|
|
56
|
+
*/
|
|
57
|
+
key: string;
|
|
58
|
+
/**
|
|
59
|
+
* Value for the attribute to add or update
|
|
60
|
+
*/
|
|
61
|
+
value: string;
|
|
62
|
+
}
|
|
63
|
+
export type AttributeChange = AttributeUpdateChange;
|
|
64
|
+
/**
|
|
65
|
+
* The returned result of a successful update to an attribute.
|
|
66
|
+
*/
|
|
67
|
+
export interface AttributeChangeResultSuccess {
|
|
68
|
+
/**
|
|
69
|
+
* The type of the `AttributeChangeResultSuccess` API.
|
|
70
|
+
*/
|
|
71
|
+
type: 'success';
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The returned result of an unsuccessful update to an attribute
|
|
75
|
+
* with a message detailing the type of error that occurred.
|
|
76
|
+
*/
|
|
77
|
+
export interface AttributeChangeResultError {
|
|
78
|
+
/**
|
|
79
|
+
* The type of the `AttributeChangeResultError` API.
|
|
80
|
+
*/
|
|
81
|
+
type: 'error';
|
|
82
|
+
/**
|
|
83
|
+
* A message that explains the error. This message is useful for debugging.
|
|
84
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
85
|
+
* to the buyer.
|
|
86
|
+
*/
|
|
87
|
+
message: string;
|
|
88
|
+
}
|
|
89
|
+
export type AttributeChangeResult = AttributeChangeResultSuccess | AttributeChangeResultError;
|
|
90
|
+
export interface CartLineChangeResultSuccess {
|
|
91
|
+
/**
|
|
92
|
+
* Indicates that the line item was changed successfully.
|
|
93
|
+
*/
|
|
94
|
+
type: 'success';
|
|
95
|
+
}
|
|
96
|
+
export interface CartLineChangeResultError {
|
|
97
|
+
/**
|
|
98
|
+
* Indicates that the line item was not changed successfully. Refer to the `message` property for details about the error.
|
|
99
|
+
*/
|
|
100
|
+
type: 'error';
|
|
101
|
+
/**
|
|
102
|
+
* A message that explains the error. This message is useful for debugging.
|
|
103
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
104
|
+
* to the buyer.
|
|
105
|
+
*/
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export type CartLineChangeResult = CartLineChangeResultSuccess | CartLineChangeResultError;
|
|
109
|
+
export type CartLineChange = CartLineAddChange | CartLineRemoveChange | CartLineUpdateChange;
|
|
110
|
+
export interface CartLineAddChange {
|
|
111
|
+
/**
|
|
112
|
+
* An identifier for changes that add line items.
|
|
113
|
+
*/
|
|
114
|
+
type: 'addCartLine';
|
|
115
|
+
/**
|
|
116
|
+
* The merchandise ID being added.
|
|
117
|
+
* @example 'gid://shopify/ProductVariant/123'
|
|
118
|
+
*/
|
|
119
|
+
merchandiseId: string;
|
|
120
|
+
/**
|
|
121
|
+
* The quantity of the merchandise being added.
|
|
122
|
+
*/
|
|
123
|
+
quantity: number;
|
|
124
|
+
/**
|
|
125
|
+
* The attributes associated with the line item.
|
|
126
|
+
*/
|
|
127
|
+
attributes?: Attribute[];
|
|
128
|
+
/**
|
|
129
|
+
* The identifier of the selling plan that the merchandise is being purchased
|
|
130
|
+
* with.
|
|
131
|
+
*/
|
|
132
|
+
sellingPlanId?: SellingPlan['id'];
|
|
133
|
+
}
|
|
134
|
+
export interface CartLineRemoveChange {
|
|
135
|
+
/**
|
|
136
|
+
* An identifier for changes that remove line items.
|
|
137
|
+
*/
|
|
138
|
+
type: 'removeCartLine';
|
|
139
|
+
/**
|
|
140
|
+
* Line Item ID.
|
|
141
|
+
* @example 'gid://shopify/CartLine/123'
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
/**
|
|
145
|
+
* The quantity being removed for this line item.
|
|
146
|
+
*/
|
|
147
|
+
quantity: number;
|
|
148
|
+
}
|
|
149
|
+
export interface CartLineUpdateChange {
|
|
150
|
+
/**
|
|
151
|
+
* An identifier for changes that update line items.
|
|
152
|
+
*/
|
|
153
|
+
type: 'updateCartLine';
|
|
154
|
+
/**
|
|
155
|
+
* Line Item ID.
|
|
156
|
+
* @example 'gid://shopify/CartLine/123'
|
|
157
|
+
*/
|
|
158
|
+
id: string;
|
|
159
|
+
/**
|
|
160
|
+
* The new merchandise ID for the line item.
|
|
161
|
+
* @example 'gid://shopify/ProductVariant/123'
|
|
162
|
+
*/
|
|
163
|
+
merchandiseId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The new quantity for the line item.
|
|
166
|
+
*/
|
|
167
|
+
quantity?: number;
|
|
168
|
+
/**
|
|
169
|
+
* The new attributes for the line item.
|
|
170
|
+
*/
|
|
171
|
+
attributes?: Attribute[];
|
|
172
|
+
/**
|
|
173
|
+
* The identifier of the selling plan that the merchandise is being purchased
|
|
174
|
+
* with or `null` to remove the the product from the selling plan.
|
|
175
|
+
*/
|
|
176
|
+
sellingPlanId?: SellingPlan['id'] | null;
|
|
177
|
+
}
|
|
178
|
+
export type DiscountCodeChange = DiscountCodeAddChange | DiscountCodeRemoveChange;
|
|
179
|
+
export type DiscountCodeChangeResult = DiscountCodeChangeResultSuccess | DiscountCodeChangeResultError;
|
|
180
|
+
export interface DiscountCodeAddChange {
|
|
181
|
+
/**
|
|
182
|
+
* The type of the `DiscountCodeChange` API.
|
|
183
|
+
*/
|
|
184
|
+
type: 'addDiscountCode';
|
|
185
|
+
/**
|
|
186
|
+
* The code for the discount
|
|
187
|
+
*/
|
|
188
|
+
code: string;
|
|
189
|
+
}
|
|
190
|
+
export interface DiscountCodeRemoveChange {
|
|
191
|
+
/**
|
|
192
|
+
* The type of the `DiscountCodeChange` API.
|
|
193
|
+
*/
|
|
194
|
+
type: 'removeDiscountCode';
|
|
195
|
+
/**
|
|
196
|
+
* The code for the discount
|
|
197
|
+
*/
|
|
198
|
+
code: string;
|
|
199
|
+
}
|
|
200
|
+
export interface DiscountCodeChangeResultSuccess {
|
|
201
|
+
/**
|
|
202
|
+
* Indicates that the discount code change was applied successfully.
|
|
203
|
+
*/
|
|
204
|
+
type: 'success';
|
|
205
|
+
}
|
|
206
|
+
export interface DiscountCodeChangeResultError {
|
|
207
|
+
/**
|
|
208
|
+
* Indicates that the discount code change failed.
|
|
209
|
+
*/
|
|
210
|
+
type: 'error';
|
|
211
|
+
/**
|
|
212
|
+
* A message that explains the error. This message is useful for debugging.
|
|
213
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
214
|
+
* to the buyer.
|
|
215
|
+
*/
|
|
216
|
+
message: string;
|
|
217
|
+
}
|
|
218
|
+
export type GiftCardChange = GiftCardAddChange | GiftCardRemoveChange;
|
|
219
|
+
export type GiftCardChangeResult = GiftCardChangeResultSuccess | GiftCardChangeResultError;
|
|
220
|
+
export interface GiftCardAddChange {
|
|
221
|
+
/**
|
|
222
|
+
* The type of the `GiftCardChange` API.
|
|
223
|
+
*/
|
|
224
|
+
type: 'addGiftCard';
|
|
225
|
+
/**
|
|
226
|
+
* Gift card code.
|
|
227
|
+
*/
|
|
228
|
+
code: string;
|
|
229
|
+
}
|
|
230
|
+
export interface GiftCardRemoveChange {
|
|
231
|
+
/**
|
|
232
|
+
* The type of the `GiftCardChange` API.
|
|
233
|
+
*/
|
|
234
|
+
type: 'removeGiftCard';
|
|
235
|
+
/**
|
|
236
|
+
* Gift card code.
|
|
237
|
+
*/
|
|
238
|
+
code: string;
|
|
239
|
+
}
|
|
240
|
+
export interface GiftCardChangeResultSuccess {
|
|
241
|
+
/**
|
|
242
|
+
* Indicates that the gift card change was applied successfully.
|
|
243
|
+
*/
|
|
244
|
+
type: 'success';
|
|
245
|
+
}
|
|
246
|
+
export interface GiftCardChangeResultError {
|
|
247
|
+
/**
|
|
248
|
+
* Indicates that the gift card change failed.
|
|
249
|
+
*/
|
|
250
|
+
type: 'error';
|
|
251
|
+
/**
|
|
252
|
+
* A message that explains the error. This message is useful for debugging.
|
|
253
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
254
|
+
* to the buyer.
|
|
255
|
+
*/
|
|
256
|
+
message: string;
|
|
257
|
+
}
|
|
258
|
+
/** Removes a metafield. */
|
|
259
|
+
export interface MetafieldRemoveChange {
|
|
260
|
+
/**
|
|
261
|
+
* The type of the `MetafieldRemoveChange` API.
|
|
262
|
+
*/
|
|
263
|
+
type: 'removeMetafield';
|
|
264
|
+
/**
|
|
265
|
+
* The name of the metafield to remove.
|
|
266
|
+
*/
|
|
267
|
+
key: string;
|
|
268
|
+
/**
|
|
269
|
+
* The namespace of the metafield to remove.
|
|
270
|
+
*/
|
|
271
|
+
namespace: string;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Updates a metafield. If a metafield with the
|
|
275
|
+
* provided key and namespace does not already exist, it gets created.
|
|
276
|
+
*/
|
|
277
|
+
export interface MetafieldUpdateChange {
|
|
278
|
+
/**
|
|
279
|
+
* The type of the `MetafieldUpdateChange` API.
|
|
280
|
+
*/
|
|
281
|
+
type: 'updateMetafield';
|
|
282
|
+
/** The name of the metafield to update. */
|
|
283
|
+
key: string;
|
|
284
|
+
/** The namespace of the metafield to add. */
|
|
285
|
+
namespace: string;
|
|
286
|
+
/** The new information to store in the metafield. */
|
|
287
|
+
value: string | number;
|
|
288
|
+
/**
|
|
289
|
+
* The metafield’s information type.
|
|
290
|
+
*/
|
|
291
|
+
valueType: 'integer' | 'string' | 'json_string';
|
|
292
|
+
}
|
|
293
|
+
export type MetafieldChange = MetafieldRemoveChange | MetafieldUpdateChange;
|
|
294
|
+
export interface MetafieldChangeResultSuccess {
|
|
295
|
+
/**
|
|
296
|
+
* The type of the `MetafieldChangeResultSuccess` API.
|
|
297
|
+
*/
|
|
298
|
+
type: 'success';
|
|
299
|
+
}
|
|
300
|
+
export interface MetafieldChangeResultError {
|
|
301
|
+
/**
|
|
302
|
+
* The type of the `MetafieldChangeResultError` API.
|
|
303
|
+
*/
|
|
304
|
+
type: 'error';
|
|
305
|
+
/**
|
|
306
|
+
* A message that explains the error. This message is useful for debugging.
|
|
307
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
308
|
+
* to the buyer.
|
|
309
|
+
*/
|
|
310
|
+
message: string;
|
|
311
|
+
}
|
|
312
|
+
export type MetafieldChangeResult = MetafieldChangeResultSuccess | MetafieldChangeResultError;
|
|
313
|
+
export interface CheckoutApi {
|
|
314
|
+
/**
|
|
315
|
+
* Performs an update on an attribute attached to the cart and checkout. If
|
|
316
|
+
* successful, this mutation results in an update to the value retrieved
|
|
317
|
+
* through the [`attributes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-applyattributechange) property.
|
|
318
|
+
*
|
|
319
|
+
* > Note: This update will be ignored if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
320
|
+
*/
|
|
321
|
+
applyAttributeChange(change: AttributeChange): Promise<AttributeChangeResult>;
|
|
322
|
+
/**
|
|
323
|
+
* Performs an update on the merchandise line items. It resolves when the new
|
|
324
|
+
* line items have been negotiated and results in an update to the value
|
|
325
|
+
* retrieved through the
|
|
326
|
+
* [`lines`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-lines)
|
|
327
|
+
* property.
|
|
328
|
+
*
|
|
329
|
+
* > Note: This update will be ignored if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
330
|
+
*/
|
|
331
|
+
applyCartLinesChange(change: CartLineChange): Promise<CartLineChangeResult>;
|
|
332
|
+
/**
|
|
333
|
+
* Performs an update on the discount codes.
|
|
334
|
+
* It resolves when the new discount codes have been negotiated and results in an update
|
|
335
|
+
* to the value retrieved through the [`discountCodes`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-discountcodes) property.
|
|
336
|
+
*
|
|
337
|
+
* > Caution:
|
|
338
|
+
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves discount codes through a network call.
|
|
339
|
+
*/
|
|
340
|
+
applyDiscountCodeChange(change: DiscountCodeChange): Promise<DiscountCodeChangeResult>;
|
|
341
|
+
/**
|
|
342
|
+
* Performs an update on the gift cards.
|
|
343
|
+
* It resolves when gift card change have been negotiated and results in an update
|
|
344
|
+
* to the value retrieved through the [`appliedGiftCards`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-appliedgiftcards) property.
|
|
345
|
+
*
|
|
346
|
+
* > Caution:
|
|
347
|
+
* > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves gift card codes through a network call.
|
|
348
|
+
*
|
|
349
|
+
* > Note: This update will be ignored if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
350
|
+
*/
|
|
351
|
+
applyGiftCardChange(change: GiftCardChange): Promise<GiftCardChangeResult>;
|
|
352
|
+
/**
|
|
353
|
+
* Performs an update on a piece of metadata attached to the checkout. If
|
|
354
|
+
* successful, this mutation results in an update to the value retrieved
|
|
355
|
+
* through the [`metafields`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-metafields) property.
|
|
356
|
+
*/
|
|
357
|
+
applyMetafieldChange(change: MetafieldChange): Promise<MetafieldChangeResult>;
|
|
358
|
+
/**
|
|
359
|
+
* Performs an update on the note attached to the cart and checkout. If
|
|
360
|
+
* successful, this mutation results in an update to the value retrieved
|
|
361
|
+
* through the [`note`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/standardapi#properties-propertydetail-note) property.
|
|
362
|
+
*
|
|
363
|
+
* > Note: This update will be ignored if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.
|
|
364
|
+
*/
|
|
365
|
+
applyNoteChange(change: NoteChange): Promise<NoteChangeResult>;
|
|
366
|
+
}
|
|
367
|
+
//# sourceMappingURL=checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/checkout/checkout.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StatefulRemoteSubscribable } from '@remote-ui/async-subscription';
|
|
2
|
+
/**
|
|
3
|
+
* Information about an order that was placed.
|
|
4
|
+
*/
|
|
5
|
+
export interface Order {
|
|
6
|
+
/**
|
|
7
|
+
* A globally-unique identifier.
|
|
8
|
+
* @example 'gid://shopify/Order/1'
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the order that appears on the order.
|
|
13
|
+
* @example '#1000'
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* If cancelled, the time at which the order was cancelled.
|
|
18
|
+
*/
|
|
19
|
+
cancelledAt?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface OrderStatusApi {
|
|
22
|
+
/**
|
|
23
|
+
* Order information that's available post-checkout.
|
|
24
|
+
*/
|
|
25
|
+
order: StatefulRemoteSubscribable<Order | undefined>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=order-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-status.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/order-status/order-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type PaymentMethodAttributesResult = PaymentMethodAttributesResultSuccess | PaymentMethodAttributesResultError;
|
|
2
|
+
export interface PaymentMethodAttributesResultSuccess {
|
|
3
|
+
/**
|
|
4
|
+
* Indicates that the payment method attributes were set successfully.
|
|
5
|
+
*/
|
|
6
|
+
type: 'success';
|
|
7
|
+
}
|
|
8
|
+
export interface PaymentMethodAttributesResultError {
|
|
9
|
+
/**
|
|
10
|
+
* Indicates that the payment method attributes were not set successfully.
|
|
11
|
+
*/
|
|
12
|
+
type: 'error';
|
|
13
|
+
/**
|
|
14
|
+
* A message that explains the error. This message is useful for debugging.
|
|
15
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
16
|
+
* to the buyer.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A key-value pair that represents an attribute of a payment method.
|
|
22
|
+
*/
|
|
23
|
+
export interface PaymentMethodAttribute {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string | number | boolean;
|
|
26
|
+
}
|
|
27
|
+
export type PaymentMethodAttributesChange = PaymentMethodAttributesUpdateChange;
|
|
28
|
+
export interface PaymentMethodAttributesUpdateChange {
|
|
29
|
+
/**
|
|
30
|
+
* The type of the `PaymentMethodAttributesChange` API.
|
|
31
|
+
*/
|
|
32
|
+
type: 'updatePaymentMethodAttributes';
|
|
33
|
+
/**
|
|
34
|
+
* The payment method attributes
|
|
35
|
+
*/
|
|
36
|
+
attributes: PaymentMethodAttribute[];
|
|
37
|
+
}
|
|
38
|
+
export interface PaymentMethodRenderApi {
|
|
39
|
+
/**
|
|
40
|
+
* Sets the attributes of the related payment method.
|
|
41
|
+
*/
|
|
42
|
+
applyPaymentMethodAttributesChange(change: PaymentMethodAttributesChange): Promise<PaymentMethodAttributesResult>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/payment-method/render.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GACrC,oCAAoC,GACpC,kCAAkC,CAAC;AAEvC,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,6BAA6B,GAAG,mCAAmC,CAAC;AAEhF,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,+BAA+B,CAAC;IAEtC;;OAEG;IACH,UAAU,EAAE,sBAAsB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,kCAAkC,CAChC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StatefulRemoteSubscribable } from '@remote-ui/async-subscription';
|
|
2
|
+
export interface PickupLocationsApi {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the customer location input form is shown to the buyer.
|
|
5
|
+
*/
|
|
6
|
+
locationFormVisible: StatefulRemoteSubscribable<boolean>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=pickup-locations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickup-locations.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/pickup/pickup-locations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,mBAAmB,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;CAC1D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StatefulRemoteSubscribable } from '@remote-ui/async-subscription';
|
|
2
|
+
export interface PickupPointsApi {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the customer location input form is shown to the buyer.
|
|
5
|
+
*/
|
|
6
|
+
locationFormVisible: StatefulRemoteSubscribable<boolean>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=pickup-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickup-points.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/pickup/pickup-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;CAC1D"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type RedeemableChangeResult = RedeemableChangeResultSuccess | RedeemableChangeResultError;
|
|
2
|
+
export interface RedeemableChangeResultSuccess {
|
|
3
|
+
/**
|
|
4
|
+
* Indicates that the redeemable change was applied successfully.
|
|
5
|
+
*/
|
|
6
|
+
type: 'success';
|
|
7
|
+
}
|
|
8
|
+
export interface RedeemableChangeResultError {
|
|
9
|
+
/**
|
|
10
|
+
* Indicates that the redeemable change was not applied successfully.
|
|
11
|
+
*/
|
|
12
|
+
type: 'error';
|
|
13
|
+
/**
|
|
14
|
+
* A message that explains the error. This message is useful for debugging.
|
|
15
|
+
* It is **not** localized, and therefore should not be presented directly
|
|
16
|
+
* to the buyer.
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A key-value pair that represents an attribute of a redeemable payment method.
|
|
22
|
+
*/
|
|
23
|
+
export interface RedeemableAttribute {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
export type RedeemableChange = RedeemableAddChange;
|
|
28
|
+
export interface RedeemableAddChange {
|
|
29
|
+
/**
|
|
30
|
+
* The type of the `RedeemableChange` API.
|
|
31
|
+
*/
|
|
32
|
+
type: 'redeemableAddChange';
|
|
33
|
+
/**
|
|
34
|
+
* The redeemable attributes
|
|
35
|
+
*/
|
|
36
|
+
attributes: RedeemableAttribute[];
|
|
37
|
+
}
|
|
38
|
+
export interface RedeemableRenderApi {
|
|
39
|
+
/**
|
|
40
|
+
* Applies a redeemable change to add a redeemable payment method.
|
|
41
|
+
*/
|
|
42
|
+
applyRedeemableChange(change: RedeemableChange): Promise<RedeemableChangeResult>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/redeemable/render.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAC9B,6BAA6B,GAC7B,2BAA2B,CAAC;AAEhC,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,qBAAqB,CACnB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
|
|
@@ -2,4 +2,50 @@ export type ValueOrPromise<T> = T extends PromiseLike<any> ? T : T | Promise<T>;
|
|
|
2
2
|
export type CurrencyCode = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL';
|
|
3
3
|
export type Timezone = 'Africa/Abidjan' | 'Africa/Algiers' | 'Africa/Bissau' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/El_Aaiun' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Khartoum' | 'Africa/Lagos' | 'Africa/Maputo' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Sao_Tome' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Asuncion' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Cayenne' | 'America/Chicago' | 'America/Chihuahua' | 'America/Costa_Rica' | 'America/Cuiaba' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Fort_Nelson' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Sitka' | 'America/St_Johns' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Vancouver' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Colombo' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kathmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Riyadh' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ulaanbaatar' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faroe' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/Stanley' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/Perth' | 'Australia/Sydney' | 'CET' | 'CST6CDT' | 'EET' | 'EST' | 'EST5EDT' | 'Etc/GMT' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/UTC' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Helsinki' | 'Europe/Istanbul' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Lisbon' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'HST' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Reunion' | 'MET' | 'MST' | 'MST7MDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Wake' | 'Pacific/Wallis' | 'PST8PDT' | 'WET';
|
|
4
4
|
export type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AR' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PS' | 'PT' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | 'ZZ';
|
|
5
|
+
/**
|
|
6
|
+
* Union of supported storefront API versions
|
|
7
|
+
*/
|
|
8
|
+
export type StorefrontApiVersion = '2022-04' | '2022-07' | '2022-10' | '2023-01' | 'unstable';
|
|
9
|
+
/**
|
|
10
|
+
* GraphQL error returned by the Shopify Storefront APIs.
|
|
11
|
+
*/
|
|
12
|
+
export interface GraphQLError {
|
|
13
|
+
message: string;
|
|
14
|
+
extensions: {
|
|
15
|
+
requestId: string;
|
|
16
|
+
code: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ValidationError {
|
|
20
|
+
/**
|
|
21
|
+
* Error message to be displayed to the buyer.
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* The checkout UI field that the error is associated with.
|
|
26
|
+
*
|
|
27
|
+
* Example: `$.cart.deliveryGroups[0].deliveryAddress.countryCode`
|
|
28
|
+
*
|
|
29
|
+
* See the [supported targets](https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql#supported-targets)
|
|
30
|
+
* for more information.
|
|
31
|
+
*/
|
|
32
|
+
target?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SellingPlan {
|
|
35
|
+
/**
|
|
36
|
+
* A globally-unique identifier.
|
|
37
|
+
* @example 'gid://shopify/SellingPlan/1'
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
export interface Attribute {
|
|
42
|
+
/**
|
|
43
|
+
* The key for the attribute.
|
|
44
|
+
*/
|
|
45
|
+
key: string;
|
|
46
|
+
/**
|
|
47
|
+
* The value for the attribute.
|
|
48
|
+
*/
|
|
49
|
+
value: string;
|
|
50
|
+
}
|
|
5
51
|
//# sourceMappingURL=shared.d.ts.map
|