@shopify/ui-extensions 2024.1.0 → 2024.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/build/cjs/surfaces/admin/components/FunctionSettings/FunctionSettings.js +9 -0
- package/build/cjs/surfaces/admin/components/Section/Section.js +9 -0
- package/build/cjs/surfaces/admin.js +6 -2
- package/build/cjs/surfaces/checkout/components/Badge/Badge.js +12 -0
- package/build/cjs/surfaces/checkout/components/Disclosure/Disclosure.js +1 -2
- package/build/cjs/surfaces/checkout/components/Modal/Modal.js +1 -2
- package/build/cjs/surfaces/checkout/components/Popover/Popover.js +1 -2
- package/build/cjs/surfaces/checkout/components/Tooltip/Tooltip.js +2 -2
- package/build/cjs/surfaces/checkout/style/style.js +4 -0
- package/build/cjs/surfaces/checkout.js +6 -4
- package/build/cjs/surfaces/customer-account.js +10 -4
- package/build/cjs/surfaces/point-of-sale/components/Actiontem/ActionItem.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/SectionHeader/SectionHeader.js +9 -0
- package/build/cjs/surfaces/point-of-sale.js +4 -0
- package/build/esm/surfaces/admin/components/FunctionSettings/FunctionSettings.mjs +5 -0
- package/build/esm/surfaces/admin/components/Section/Section.mjs +5 -0
- package/build/esm/surfaces/admin.mjs +3 -1
- package/build/esm/surfaces/checkout/components/Badge/Badge.mjs +8 -0
- package/build/esm/surfaces/checkout/components/Disclosure/Disclosure.mjs +1 -2
- package/build/esm/surfaces/checkout/components/Modal/Modal.mjs +1 -2
- package/build/esm/surfaces/checkout/components/Popover/Popover.mjs +1 -2
- package/build/esm/surfaces/checkout/components/Tooltip/Tooltip.mjs +2 -2
- package/build/esm/surfaces/checkout/style/style.mjs +4 -0
- package/build/esm/surfaces/checkout.mjs +2 -1
- package/build/esm/surfaces/customer-account.mjs +4 -1
- package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/components/SectionHeader/SectionHeader.mjs +5 -0
- package/build/esm/surfaces/point-of-sale.mjs +2 -0
- package/build/esnext/surfaces/admin/components/FunctionSettings/FunctionSettings.esnext +5 -0
- package/build/esnext/surfaces/admin/components/Section/Section.esnext +5 -0
- package/build/esnext/surfaces/admin.esnext +3 -1
- package/build/esnext/surfaces/checkout/components/Badge/Badge.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/Disclosure/Disclosure.esnext +1 -2
- package/build/esnext/surfaces/checkout/components/Modal/Modal.esnext +1 -2
- package/build/esnext/surfaces/checkout/components/Popover/Popover.esnext +1 -2
- package/build/esnext/surfaces/checkout/components/Tooltip/Tooltip.esnext +2 -2
- package/build/esnext/surfaces/checkout/style/style.esnext +4 -0
- package/build/esnext/surfaces/checkout.esnext +2 -1
- package/build/esnext/surfaces/customer-account.esnext +4 -1
- package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/components/SectionHeader/SectionHeader.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale.esnext +2 -0
- package/build/ts/api.d.ts +1 -3
- package/build/ts/api.d.ts.map +1 -1
- package/build/ts/extension.d.ts +3 -0
- package/build/ts/extension.d.ts.map +1 -1
- package/build/ts/shared.d.ts +18 -1
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +13 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts +33 -0
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +26 -0
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts +12 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +0 -10
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +3 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.d.ts +47 -0
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts +6 -1
- package/build/ts/surfaces/admin/components/Heading/Heading.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Section/Section.d.ts +33 -0
- package/build/ts/surfaces/admin/components/Section/Section.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components.d.ts +5 -1
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +81 -14
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts +76 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +6 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +21 -0
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +6 -1
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +13 -0
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts +1 -18
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +166 -17
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Badge/Badge.d.ts +43 -0
- package/build/ts/surfaces/checkout/components/Badge/Badge.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts +2 -7
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Choice/Choice.d.ts +1 -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 +1 -1
- package/build/ts/surfaces/checkout/components/Choice/Choice.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/DateField/DateField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts +2 -3
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Disclosure/Disclosure.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/List/List.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/List/List.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ListItem/ListItem.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/MapMarker/MapMarker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.d.ts +1 -4
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/MapPopover/MapPopover.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +1 -2
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts +3 -3
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts +1 -2
- package/build/ts/surfaces/checkout/components/Popover/Popover.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts +4 -2
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonText/SkeletonText.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Stepper/Stepper.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Tag/Tag.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/TextBlock/TextBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts +3 -3
- package/build/ts/surfaces/checkout/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ToggleButton/ToggleButton.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/View/View.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/View/View.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +32 -8
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +2 -0
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts +3 -4
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +3 -4
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/isEqual.d.ts +1 -3
- package/build/ts/surfaces/checkout/style/isEqual.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.d.ts +19 -3
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/types.d.ts +39 -2
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +68 -20
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +17 -2
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +22 -0
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +2 -17
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/shared-checkout-components.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets.d.ts +1 -1
- package/build/ts/surfaces/customer-account.d.ts +2 -1
- package/build/ts/surfaces/customer-account.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +24 -0
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +19 -10
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/types/cart.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +3 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SectionHeader/SectionHeader.d.ts +33 -0
- package/build/ts/surfaces/point-of-sale/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +1 -15
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components.d.ts +5 -1
- package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets.d.ts +8 -4
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/api.ts +1 -1
- package/src/extension.ts +4 -0
- package/src/shared.ts +841 -1
- package/src/surfaces/admin/api/action/action.doc.ts +1 -1
- package/src/surfaces/admin/api/block/block.ts +15 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +34 -0
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +76 -0
- package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +25 -0
- package/src/surfaces/admin/api/checkout-rules/validation-settings.ts +15 -0
- package/src/surfaces/admin/api/standard/standard.ts +0 -12
- package/src/surfaces/admin/api.ts +3 -1
- package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +1 -1
- package/src/surfaces/admin/components/Badge/Badge.doc.ts +2 -2
- package/src/surfaces/admin/components/Banner/Banner.doc.ts +2 -2
- package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +2 -2
- package/src/surfaces/admin/components/Box/Box.doc.ts +2 -2
- package/src/surfaces/admin/components/Button/Button.doc.ts +2 -2
- package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +2 -2
- package/src/surfaces/admin/components/ChoiceList/ChoiceList.doc.ts +2 -2
- package/src/surfaces/admin/components/ColorPicker/ColorPicker.doc.ts +2 -2
- package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +2 -2
- package/src/surfaces/admin/components/DateField/DateField.doc.ts +3 -3
- package/src/surfaces/admin/components/Divider/Divider.doc.ts +2 -2
- package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +2 -2
- package/src/surfaces/admin/components/Form/Form.doc.ts +2 -2
- package/src/surfaces/admin/components/FunctionSettings/FunctionSettings.doc.ts +57 -0
- package/src/surfaces/admin/components/FunctionSettings/FunctionSettings.ts +52 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/basic-functionsettings.example.ts +47 -0
- package/src/surfaces/admin/components/Heading/Heading.doc.ts +2 -2
- package/src/surfaces/admin/components/Heading/Heading.ts +6 -1
- package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +2 -2
- package/src/surfaces/admin/components/Icon/Icon.doc.ts +2 -2
- package/src/surfaces/admin/components/Image/Image.doc.ts +2 -2
- package/src/surfaces/admin/components/MoneyField/MoneyField.doc.ts +2 -2
- package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +2 -2
- package/src/surfaces/admin/components/Paragraph/Paragraph.doc.ts +1 -1
- package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +2 -2
- package/src/surfaces/admin/components/ProgressIndicator/ProgressIndicator.doc.ts +2 -2
- package/src/surfaces/admin/components/Section/README.md +95 -0
- package/src/surfaces/admin/components/Section/Section.doc.ts +41 -0
- package/src/surfaces/admin/components/Section/Section.ts +35 -0
- package/src/surfaces/admin/components/Section/examples/basic-Section.example.ts +19 -0
- package/src/surfaces/admin/components/Select/Select.doc.ts +2 -2
- package/src/surfaces/admin/components/Text/Text.doc.ts +2 -2
- package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +2 -2
- package/src/surfaces/admin/components/TextField/TextField.doc.ts +2 -2
- package/src/surfaces/admin/components/URLField/URLField.doc.ts +2 -2
- package/src/surfaces/admin/components.ts +8 -1
- package/src/surfaces/admin/extension-targets.ts +125 -13
- package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +87 -0
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +1 -1
- package/src/surfaces/checkout/api/checkout/checkout.ts +3 -3
- package/src/surfaces/checkout/api/docs.ts +7 -6
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +22 -0
- package/src/surfaces/checkout/api/order-status/order-status.ts +6 -1
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +1 -1
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +15 -0
- package/src/surfaces/checkout/api/shared.ts +1 -833
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +1 -1
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +2 -2
- package/src/surfaces/checkout/api/standard/standard.ts +203 -15
- package/src/surfaces/checkout/components/Badge/Badge.doc.ts +76 -0
- package/src/surfaces/checkout/components/Badge/Badge.ts +42 -0
- package/src/surfaces/checkout/components/Badge/content/guidelines.md +8 -0
- package/src/surfaces/checkout/components/Badge/examples/basic-badge.example.ts +7 -0
- package/src/surfaces/checkout/components/Badge/examples/status-badge.example.ts +39 -0
- package/src/surfaces/checkout/components/Banner/Banner.doc.ts +1 -1
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +1 -1
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.ts +1 -1
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.doc.ts +1 -1
- package/src/surfaces/checkout/components/BlockSpacer/BlockSpacer.ts +2 -2
- package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +1 -1
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +1 -1
- package/src/surfaces/checkout/components/Button/Button.doc.ts +1 -1
- package/src/surfaces/checkout/components/Checkbox/Checkbox.doc.ts +1 -1
- package/src/surfaces/checkout/components/Checkbox/Checkbox.ts +1 -1
- package/src/surfaces/checkout/components/Choice/Choice.doc.ts +1 -1
- package/src/surfaces/checkout/components/Choice/Choice.ts +2 -1
- package/src/surfaces/checkout/components/ChoiceList/ChoiceList.doc.ts +1 -1
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts +1 -1
- package/src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.ts +1 -1
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts +1 -1
- package/src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.ts +1 -1
- package/src/surfaces/checkout/components/DateField/DateField.doc.ts +1 -1
- package/src/surfaces/checkout/components/DateField/DateField.ts +2 -2
- package/src/surfaces/checkout/components/DatePicker/DatePicker.doc.ts +1 -1
- package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +2 -2
- package/src/surfaces/checkout/components/Disclosure/Disclosure.ts +2 -3
- package/src/surfaces/checkout/components/Divider/Divider.doc.ts +1 -1
- package/src/surfaces/checkout/components/Form/Form.doc.ts +1 -1
- package/src/surfaces/checkout/components/Grid/Grid.doc.ts +1 -1
- package/src/surfaces/checkout/components/Grid/Grid.ts +1 -1
- package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +1 -1
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +1 -1
- package/src/surfaces/checkout/components/Heading/Heading.doc.ts +1 -1
- package/src/surfaces/checkout/components/HeadingGroup/HeadingGroup.doc.ts +1 -1
- package/src/surfaces/checkout/components/Icon/Icon.doc.ts +1 -1
- package/src/surfaces/checkout/components/Icon/Icon.ts +3 -0
- package/src/surfaces/checkout/components/Image/Image.doc.ts +1 -1
- package/src/surfaces/checkout/components/Image/Image.ts +2 -2
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.ts +1 -2
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +1 -1
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.ts +1 -1
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.doc.ts +1 -1
- package/src/surfaces/checkout/components/InlineSpacer/InlineSpacer.ts +1 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +1 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +1 -1
- package/src/surfaces/checkout/components/Link/Link.doc.ts +1 -1
- package/src/surfaces/checkout/components/List/List.doc.ts +1 -1
- package/src/surfaces/checkout/components/List/List.ts +1 -1
- package/src/surfaces/checkout/components/ListItem/ListItem.doc.ts +1 -1
- package/src/surfaces/checkout/components/Map/Map.doc.ts +1 -1
- package/src/surfaces/checkout/components/MapMarker/MapMarker.doc.ts +1 -1
- package/src/surfaces/checkout/components/MapPopover/MapPopover.doc.ts +1 -1
- package/src/surfaces/checkout/components/MapPopover/MapPopover.ts +1 -1
- package/src/surfaces/checkout/components/Modal/Modal.doc.ts +2 -2
- package/src/surfaces/checkout/components/Modal/Modal.ts +1 -2
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.ts +1 -1
- package/src/surfaces/checkout/components/PhoneField/PhoneField.doc.ts +1 -1
- package/src/surfaces/checkout/components/PhoneField/PhoneField.ts +4 -3
- package/src/surfaces/checkout/components/Popover/Popover.doc.ts +2 -2
- package/src/surfaces/checkout/components/Popover/Popover.ts +1 -2
- package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +1 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +1 -1
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.ts +1 -1
- package/src/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.ts +5 -2
- package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +1 -1
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +1 -1
- package/src/surfaces/checkout/components/Select/Select.doc.ts +1 -1
- package/src/surfaces/checkout/components/Select/Select.ts +1 -1
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.doc.ts +1 -1
- package/src/surfaces/checkout/components/SkeletonImage/SkeletonImage.ts +1 -1
- package/src/surfaces/checkout/components/SkeletonText/SkeletonText.doc.ts +1 -1
- package/src/surfaces/checkout/components/SkeletonTextBlock/SkeletonTextBlock.doc.ts +1 -1
- package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +1 -1
- package/src/surfaces/checkout/components/Stepper/Stepper.doc.ts +1 -1
- package/src/surfaces/checkout/components/Stepper/Stepper.ts +1 -1
- package/src/surfaces/checkout/components/Tag/Tag.doc.ts +1 -1
- package/src/surfaces/checkout/components/Tag/Tag.ts +1 -1
- package/src/surfaces/checkout/components/Text/Text.doc.ts +1 -1
- package/src/surfaces/checkout/components/TextBlock/TextBlock.doc.ts +1 -1
- package/src/surfaces/checkout/components/TextField/TextField.doc.ts +1 -1
- package/src/surfaces/checkout/components/TextField/TextField.ts +4 -3
- package/src/surfaces/checkout/components/ToggleButton/ToggleButton.doc.ts +1 -1
- package/src/surfaces/checkout/components/ToggleButtonGroup/ToggleButtonGroup.doc.ts +1 -1
- package/src/surfaces/checkout/components/Tooltip/Tooltip.doc.ts +2 -2
- package/src/surfaces/checkout/components/Tooltip/Tooltip.ts +2 -2
- package/src/surfaces/checkout/components/View/View.doc.ts +1 -1
- package/src/surfaces/checkout/components/View/View.ts +1 -1
- package/src/surfaces/checkout/components/shared.ts +36 -11
- package/src/surfaces/checkout/components.ts +3 -0
- package/src/surfaces/checkout/helper.docs.ts +5 -4
- package/src/surfaces/checkout/shared.ts +3 -3
- package/src/surfaces/checkout/style/isEqual.ts +3 -3
- package/src/surfaces/checkout/style/style.doc.ts +1 -1
- package/src/surfaces/checkout/style/style.ts +30 -3
- package/src/surfaces/checkout/style/types.ts +55 -5
- package/src/surfaces/checkout/targets.ts +102 -36
- package/src/surfaces/checkout.ts +174 -2
- package/src/surfaces/customer-account/api/order-status/order-status.ts +25 -0
- package/src/surfaces/customer-account/api/shared.ts +18 -831
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +6 -0
- package/src/surfaces/customer-account/targets.ts +1 -1
- package/src/surfaces/customer-account.ts +2 -1
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +15 -0
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/order-api/order-api.tsx +26 -0
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +24 -10
- package/src/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +0 -2
- package/src/surfaces/point-of-sale/api/types/cart.ts +1 -0
- package/src/surfaces/point-of-sale/api.ts +5 -0
- package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +10 -0
- package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +9 -1
- package/src/surfaces/point-of-sale/components/EmailField/EmailField.ts +2 -2
- package/src/surfaces/point-of-sale/components/List/List.ts +5 -1
- package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +2 -2
- package/src/surfaces/point-of-sale/components/SectionHeader/SectionHeader.ts +34 -0
- package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +2 -2
- package/src/surfaces/point-of-sale/components/shared/InputField.ts +1 -17
- package/src/surfaces/point-of-sale/components.ts +5 -5
- package/src/surfaces/point-of-sale/targets.ts +24 -4
- package/build/ts/surfaces/checkout/api.d.ts +0 -12
- package/build/ts/surfaces/checkout/api.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/style/index.d.ts +0 -3
- package/build/ts/surfaces/checkout/style/index.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/style.d.ts +0 -3
- package/build/ts/surfaces/checkout/style.d.ts.map +0 -1
- package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/CustomerSegmentTemplate.example.tsx +0 -15
- package/src/surfaces/checkout/api.ts +0 -141
- package/src/surfaces/checkout/style/index.ts +0 -16
- package/src/surfaces/checkout/style.ts +0 -16
- /package/src/surfaces/admin/components/Badge/examples/{basic-Badge.example.ts → basic-badge.example.ts} +0 -0
- /package/src/surfaces/admin/components/Banner/examples/{basic-Banner.example.ts → basic-banner.example.ts} +0 -0
- /package/src/surfaces/admin/components/ChoiceList/examples/{basic-ChoiceList.example.ts → basic-choicelist.example.ts} +0 -0
- /package/src/surfaces/admin/components/ColorPicker/examples/{basic-ColorPicker.example.ts → basic-colorpicker.example.ts} +0 -0
- /package/src/surfaces/admin/components/CustomerSegmentTemplate/examples/{CustomerSegmentTemplate.example.ts → customersegmenttemplate.example.ts} +0 -0
- /package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/examples/{InternalCustomerSegmentTemplate.example.ts → internalcustomersegmenttemplate.example.ts} +0 -0
- /package/src/surfaces/admin/components/ProgressIndicator/examples/{basic-ProgressIndicator.example.ts → basic-progressindicator.example.ts} +0 -0
- /package/src/surfaces/admin/components/ResourceItem/examples/{basic-ResourceItem.example.ts → basic-resourceitem.example.ts} +0 -0
- /package/src/surfaces/admin/components/ResourceList/examples/{basic-ResourceList.example.ts → basic-resourcelist.example.ts} +0 -0
- /package/src/surfaces/admin/components/Thumbnail/examples/{basic-Thumbnail.example.ts → basic-thumbnail.example.ts} +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export {
|
|
2
|
+
Badge,
|
|
3
|
+
type BadgeProps,
|
|
2
4
|
Banner,
|
|
3
5
|
type BannerProps,
|
|
4
6
|
BlockLayout,
|
|
@@ -111,6 +113,10 @@ export {
|
|
|
111
113
|
type ViewPosition,
|
|
112
114
|
type ViewPositionType,
|
|
113
115
|
type ViewTranslate,
|
|
116
|
+
ToggleButton,
|
|
117
|
+
type ToggleButtonProps,
|
|
118
|
+
ToggleButtonGroup,
|
|
119
|
+
type ToggleButtonGroupProps,
|
|
114
120
|
} from '../../checkout/components';
|
|
115
121
|
|
|
116
122
|
export type {
|
|
@@ -68,7 +68,7 @@ export type ArgumentsForExtension<Target extends keyof ExtensionTargets> =
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* A union type containing all of the extension targets that follow the pattern of
|
|
71
|
-
* accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-
|
|
71
|
+
* accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-dom/tree/remote-ui/packages/core)
|
|
72
72
|
* and an additional `api` argument, and using those arguments to render
|
|
73
73
|
* UI.
|
|
74
74
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ActionApiContent {
|
|
2
|
+
/** Presents the `action-overlay.render` extension target on top of present view.
|
|
3
|
+
*
|
|
4
|
+
* For example: if we are calling presentModal() from pos.purchase.post.action.menu-item.render,
|
|
5
|
+
* it should present pos.purchase.post.action.render.
|
|
6
|
+
*/
|
|
7
|
+
presentModal(): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Access the Action API to present your app in a full screen modal.
|
|
12
|
+
*/
|
|
13
|
+
export interface ActionApi {
|
|
14
|
+
action: ActionApiContent;
|
|
15
|
+
}
|
|
@@ -49,9 +49,19 @@ export interface CartApiContent {
|
|
|
49
49
|
amount?: string,
|
|
50
50
|
): Promise<void>;
|
|
51
51
|
|
|
52
|
+
/** Add a code discount to the cart
|
|
53
|
+
* @param code the code for the discount to add to the cart
|
|
54
|
+
*/
|
|
55
|
+
addCartCodeDiscount(code: string): Promise<void>;
|
|
56
|
+
|
|
52
57
|
/** Remove the cart discount */
|
|
53
58
|
removeCartDiscount(): Promise<void>;
|
|
54
59
|
|
|
60
|
+
/** Remove all cart and line item discounts
|
|
61
|
+
* @param disableAutomaticDiscounts Whether or not automatic discounts should be enabled after removing the discounts.
|
|
62
|
+
*/
|
|
63
|
+
removeAllDiscounts(disableAutomaticDiscounts: boolean): Promise<void>;
|
|
64
|
+
|
|
55
65
|
/** Clear the cart */
|
|
56
66
|
clearCart(): Promise<void>;
|
|
57
67
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface to access the order
|
|
3
|
+
*/
|
|
4
|
+
export interface OrderApi {
|
|
5
|
+
order: OrderAPIContent;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Interface for Order details
|
|
10
|
+
*/
|
|
11
|
+
export interface OrderAPIContent {
|
|
12
|
+
/**
|
|
13
|
+
* The unique identifier for the order
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The name of the order
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of the customer associated with the order
|
|
24
|
+
*/
|
|
25
|
+
customerId?: number;
|
|
26
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type {MultipleResourceResult} from '../types/multiple-resource-result';
|
|
2
|
+
import type {PaginatedResult} from '../types/paginated-result';
|
|
1
3
|
import type {Product, ProductVariant} from '../types/product';
|
|
2
|
-
import {MultipleResourceResult} from '../types/multiple-resource-result';
|
|
3
|
-
import {PaginatedResult} from '../types/paginated-result';
|
|
4
4
|
|
|
5
5
|
export type ProductSortType =
|
|
6
6
|
| 'RECENTLY_ADDED'
|
|
@@ -9,21 +9,27 @@ export type ProductSortType =
|
|
|
9
9
|
| 'ALPHABETICAL_Z_TO_A';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Base interface for pagination.
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface PaginationParams {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
queryString?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies the number of results to be returned in this page of products. The maximum number of products that will be returned is 50.
|
|
16
|
+
* Specifies the number of results to be returned in this page. The maximum number of items that will be returned is 50.
|
|
21
17
|
*/
|
|
22
18
|
first?: number;
|
|
23
19
|
/**
|
|
24
|
-
* Specifies the page cursor.
|
|
20
|
+
* Specifies the page cursor. Items after this cursor will be returned.
|
|
25
21
|
*/
|
|
26
22
|
afterCursor?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Interface for product search
|
|
27
|
+
*/
|
|
28
|
+
export interface ProductSearchParams extends PaginationParams {
|
|
29
|
+
/**
|
|
30
|
+
* The search term to be used to search for POS products.
|
|
31
|
+
*/
|
|
32
|
+
queryString?: string;
|
|
27
33
|
/**
|
|
28
34
|
* Specifies the order in which products should be sorted. When a `queryString` is provided, sortType will not have any effect, as the results will be returned in order by relevance to the `queryString`.
|
|
29
35
|
*/
|
|
@@ -70,6 +76,14 @@ export interface ProductSearchApiContent {
|
|
|
70
76
|
fetchProductVariantsWithProductId(
|
|
71
77
|
productId: number,
|
|
72
78
|
): Promise<ProductVariant[]>;
|
|
79
|
+
|
|
80
|
+
/** Fetches a page of product variants associated with a product.
|
|
81
|
+
* @param paginationParams The parameters for pagination.
|
|
82
|
+
*/
|
|
83
|
+
fetchPaginatedProductVariantsWithProductId(
|
|
84
|
+
productId: number,
|
|
85
|
+
paginationParams: PaginationParams,
|
|
86
|
+
): Promise<PaginatedResult<ProductVariant>>;
|
|
73
87
|
}
|
|
74
88
|
|
|
75
89
|
/**
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `ActionApi` instead.
|
|
3
|
+
*/
|
|
1
4
|
export interface SmartGridApiContent {
|
|
2
|
-
/** Presents the `pos.home.modal.render` extension
|
|
5
|
+
/** Presents the `pos.home.modal.render` extension target on top of the Smart Grid.
|
|
3
6
|
*/
|
|
4
7
|
presentModal(): void;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Access the SmartGrid API to present your app in a full screen modal.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `ActionApi` instead.
|
|
9
14
|
*/
|
|
10
15
|
export interface SmartGridApi {
|
|
11
16
|
smartGrid: SmartGridApiContent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {CartApi} from '../cart-api/cart-api';
|
|
2
1
|
import type {ConnectivityApi} from '../connectivity-api/connectivity-api';
|
|
3
2
|
import type {DeviceApi} from '../device-api/device-api';
|
|
4
3
|
import type {LocaleApi} from '../locale-api/locale-api';
|
|
@@ -9,7 +8,6 @@ import type {ProductSearchApi} from '../product-search-api/product-search-api';
|
|
|
9
8
|
export type StandardApi<T> = {[key: string]: any} & {
|
|
10
9
|
extensionPoint: T;
|
|
11
10
|
} & LocaleApi &
|
|
12
|
-
CartApi &
|
|
13
11
|
ToastApi &
|
|
14
12
|
SessionApi &
|
|
15
13
|
ProductSearchApi &
|
|
@@ -6,6 +6,8 @@ export type {
|
|
|
6
6
|
LineItemDiscountType,
|
|
7
7
|
} from './api/cart-api/cart-api';
|
|
8
8
|
|
|
9
|
+
export type {ActionApi, ActionApiContent} from './api/action-api/action-api';
|
|
10
|
+
|
|
9
11
|
export type {
|
|
10
12
|
ConnectivityStateSeverity,
|
|
11
13
|
ConnectivityState,
|
|
@@ -20,7 +22,10 @@ export type {
|
|
|
20
22
|
NavigationApi,
|
|
21
23
|
} from './api/navigation-api/navigation-api';
|
|
22
24
|
|
|
25
|
+
export type {OrderAPIContent, OrderApi} from './api/order-api/order-api';
|
|
26
|
+
|
|
23
27
|
export type {
|
|
28
|
+
PaginationParams,
|
|
24
29
|
ProductSortType,
|
|
25
30
|
ProductSearchParams,
|
|
26
31
|
ProductSearchApi,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
import {BannerProps} from '../Banner/Banner';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export type CameraScannerBannerProps = Pick<
|
|
5
|
+
BannerProps,
|
|
6
|
+
'title' | 'variant' | 'visible'
|
|
7
|
+
>;
|
|
8
|
+
|
|
9
|
+
export interface CameraScannerProps {
|
|
10
|
+
bannerProps?: CameraScannerBannerProps;
|
|
11
|
+
}
|
|
4
12
|
|
|
5
13
|
export const CameraScanner = createRemoteComponent<
|
|
6
14
|
'CameraScanner',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
-
import type {InputProps
|
|
2
|
+
import type {InputProps} from '../shared/InputField';
|
|
3
3
|
|
|
4
|
-
export interface EmailFieldProps extends InputProps
|
|
4
|
+
export interface EmailFieldProps extends InputProps {}
|
|
5
5
|
|
|
6
6
|
export const EmailField = createRemoteComponent<'EmailField', EmailFieldProps>(
|
|
7
7
|
'EmailField',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createRemoteComponent} from '@remote-ui/core';
|
|
1
|
+
import {RemoteFragment, createRemoteComponent} from '@remote-ui/core';
|
|
2
2
|
import {BadgeProps} from '../Badge/Badge';
|
|
3
3
|
import {ColorType} from '../Text/Text';
|
|
4
4
|
|
|
@@ -86,6 +86,10 @@ export interface ListProps {
|
|
|
86
86
|
* A large display title at the top of the `List`.
|
|
87
87
|
*/
|
|
88
88
|
title?: string;
|
|
89
|
+
/**
|
|
90
|
+
* A header component for the list
|
|
91
|
+
*/
|
|
92
|
+
listHeaderComponent?: RemoteFragment;
|
|
89
93
|
/**
|
|
90
94
|
* The array of `ListRow` which will be converted into rows for this list.
|
|
91
95
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
-
import type {InputProps
|
|
2
|
+
import type {InputProps} from '../shared/InputField';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents the properties for the NumberField component.
|
|
@@ -8,7 +8,7 @@ import type {InputProps, MinMaxLengthProps} from '../shared/InputField';
|
|
|
8
8
|
* @property {number} [max] - The highest decimal or integer to be accepted for the field.
|
|
9
9
|
* @property {number} [min] - The lowest decimal or integer to be accepted for the field.
|
|
10
10
|
*/
|
|
11
|
-
export interface NumberFieldProps extends InputProps
|
|
11
|
+
export interface NumberFieldProps extends InputProps {
|
|
12
12
|
inputMode?: 'decimal' | 'numeric';
|
|
13
13
|
max?: number;
|
|
14
14
|
min?: number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface SectionHeaderProps {
|
|
4
|
+
/**
|
|
5
|
+
* Title to be displayed.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Action button to be displayed. The SectionHeader must have a `title` for `action` to work.
|
|
10
|
+
*/
|
|
11
|
+
action?: {
|
|
12
|
+
/**
|
|
13
|
+
* Label for the action button.
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Function to handle action button press.
|
|
18
|
+
*/
|
|
19
|
+
onPress: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not the action button is disabled.
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Whether or not the divider line under the SectionHeader should be hidden.
|
|
27
|
+
*/
|
|
28
|
+
hideDivider?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const SectionHeader = createRemoteComponent<
|
|
32
|
+
'SectionHeader',
|
|
33
|
+
SectionHeaderProps
|
|
34
|
+
>('SectionHeader');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
-
import type {InputProps
|
|
2
|
+
import type {InputProps} from '../shared/InputField';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents the properties for the TextField component.
|
|
6
6
|
* @typedef {Object} TextAreaProps
|
|
7
7
|
* @property {number} [rows] - The initial number of lines to be displayed. Maximum of 8 lines.
|
|
8
8
|
*/
|
|
9
|
-
export interface TextAreaProps extends InputProps
|
|
9
|
+
export interface TextAreaProps extends InputProps {
|
|
10
10
|
rows?: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -26,6 +26,7 @@ export interface InputAction {
|
|
|
26
26
|
* @property {string} [value] - The current value for the field. If omitted, the field will be empty. You should update this value in response to the `onChange` callback.
|
|
27
27
|
* @property {string} [helpText] - Label under the text field which provides guidance or instructions that assist users.
|
|
28
28
|
* @property {InputAction} [action] - A button under the text field to provide extra functionality.
|
|
29
|
+
* @property {number?} [maxLength] - Specifies the maximum number of characters allowed.
|
|
29
30
|
*/
|
|
30
31
|
export interface InputProps {
|
|
31
32
|
disabled?: boolean;
|
|
@@ -40,22 +41,5 @@ export interface InputProps {
|
|
|
40
41
|
value?: string;
|
|
41
42
|
helpText?: string;
|
|
42
43
|
action?: InputAction;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Represents the properties for minimum and maximum length constraints for text fields.
|
|
47
|
-
* @typedef {Object} MinMaxLengthProps
|
|
48
|
-
* @property {number} [maxLength] - Specifies the maximum number of characters allowed.
|
|
49
|
-
* @property {number} [minLength] - Specifies the minimum number of characters allowed.
|
|
50
|
-
*/
|
|
51
|
-
export interface MinMaxLengthProps {
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the maximum number of characters allowed.
|
|
54
|
-
*/
|
|
55
44
|
maxLength?: number;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the min number of characters allowed.
|
|
59
|
-
*/
|
|
60
|
-
minLength?: number;
|
|
61
45
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export {ActionItem} from './components/Actiontem/ActionItem';
|
|
2
|
+
export type {ActionItemProps} from './components/Actiontem/ActionItem';
|
|
1
3
|
export {Badge} from './components/Badge/Badge';
|
|
2
4
|
export type {BadgeProps, BadgeVariant} from './components/Badge/Badge';
|
|
3
5
|
export {Banner} from './components/Banner/Banner';
|
|
@@ -97,8 +99,6 @@ export {TimePicker} from './components/TimePicker/TimePicker';
|
|
|
97
99
|
export type {TimePickerProps} from './components/TimePicker/TimePicker';
|
|
98
100
|
export type {BaseTextFieldProps} from './components/shared/BaseTextField';
|
|
99
101
|
export type {AutoCapitalizationType} from './components/shared/auto-capitalization-type';
|
|
100
|
-
export type {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
InputProps,
|
|
104
|
-
} from './components/shared/InputField';
|
|
102
|
+
export type {InputAction, InputProps} from './components/shared/InputField';
|
|
103
|
+
export {SectionHeader} from './components/SectionHeader/SectionHeader';
|
|
104
|
+
export type {SectionHeaderProps} from './components/SectionHeader/SectionHeader';
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
import {StandardApi} from './api/standard/standard-api';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
// eslint-disable-next-line import/no-deprecated
|
|
4
|
+
SmartGridApi,
|
|
5
|
+
NavigationApi,
|
|
6
|
+
ScannerApi,
|
|
7
|
+
OrderApi,
|
|
8
|
+
CartApi,
|
|
9
|
+
} from './api';
|
|
3
10
|
import {RenderExtension} from './extension';
|
|
4
11
|
import type {Components} from './shared';
|
|
5
12
|
import {AnyComponentBuilder} from '../../shared';
|
|
13
|
+
import {ActionApi} from './api/action-api/action-api';
|
|
6
14
|
|
|
7
15
|
type SmartGridComponents = AnyComponentBuilder<Pick<Components, 'Tile'>>;
|
|
16
|
+
type ActionComponents = AnyComponentBuilder<Pick<Components, 'ActionItem'>>;
|
|
8
17
|
type BasicComponents = AnyComponentBuilder<Omit<Components, 'Tile'>>;
|
|
9
18
|
|
|
10
19
|
export interface ExtensionTargets {
|
|
11
20
|
'pos.home.tile.render': RenderExtension<
|
|
12
|
-
|
|
21
|
+
// eslint-disable-next-line import/no-deprecated
|
|
22
|
+
StandardApi<'pos.home.tile.render'> & SmartGridApi & ActionApi & CartApi,
|
|
13
23
|
SmartGridComponents
|
|
14
24
|
>;
|
|
15
25
|
'pos.home.modal.render': RenderExtension<
|
|
16
|
-
StandardApi<'pos.home.modal.render'> & NavigationApi & ScannerApi,
|
|
26
|
+
StandardApi<'pos.home.modal.render'> & NavigationApi & ScannerApi & CartApi,
|
|
17
27
|
BasicComponents
|
|
18
28
|
>;
|
|
29
|
+
'pos.purchase.post.action.render': RenderExtension<
|
|
30
|
+
StandardApi<'pos.purchase.post.action.render'> & OrderApi,
|
|
31
|
+
BasicComponents
|
|
32
|
+
>;
|
|
33
|
+
'pos.purchase.post.action.menu-item.render': RenderExtension<
|
|
34
|
+
StandardApi<'pos.purchase.post.action.menu-item.render'> &
|
|
35
|
+
ActionApi &
|
|
36
|
+
OrderApi,
|
|
37
|
+
ActionComponents
|
|
38
|
+
>;
|
|
19
39
|
}
|
|
20
40
|
|
|
21
41
|
export type ExtensionTarget = keyof ExtensionTargets;
|
|
@@ -39,7 +59,7 @@ export type ArgumentsForExtension<ID extends keyof ExtensionTargets> =
|
|
|
39
59
|
|
|
40
60
|
/**
|
|
41
61
|
* A union type containing all of the extension targets that follow the pattern of
|
|
42
|
-
* accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-
|
|
62
|
+
* accepting a [`@remote-ui/core` `RemoteRoot`](https://github.com/Shopify/remote-dom/tree/remote-ui/packages/core)
|
|
43
63
|
* and an additional `api` argument, and using those arguments to render
|
|
44
64
|
* UI.
|
|
45
65
|
*/
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type { ApiVersion, BuyerIdentity, BuyerJourney, Capability, CartCost, CartMetafield, CartLineCost, CheckoutSettings, Customer, Editor, Extension, ExtensionSettings, Interceptor, InterceptorRequest, Merchandise, ImageDetails, Product, ProductVariant, PurchasingCompany, SelectedOption, SessionToken, Money, StandardApi, Storage, Shop, Version, Metafield, AppMetafield, AppMetafieldEntryTarget, AppMetafieldEntry, CartLine, PaymentOption, SelectedPaymentOption, CartDiscountCode, CartDiscountAllocation, CartCodeDiscountAllocation, CartAutomaticDiscountAllocation, CartCustomDiscountAllocation, AppliedGiftCard, I18n, I18nTranslate, Currency, Country, Market, Language, Localization, DeliveryGroup, DeliveryGroupType, DeliveryGroupDetails, CartLineReference, DeliveryOptionReference, DeliveryOption, ShippingOption, PickupLocationOption, PickupPointOption, NumberRange, CheckoutToken, } from './api/standard/standard';
|
|
2
|
-
export type { Attribute, CurrencyCode, CountryCode, Timezone, GraphQLError, SellingPlan, StorefrontApiVersion, ValidationError, MailingAddress, } from './api/shared';
|
|
3
|
-
export type { RedeemableAttribute, RedeemableChange, RedeemableAddChange, RedeemableChangeResult, RedeemableChangeResultError, RedeemableChangeResultSuccess, RedeemableApi, } from './api/redeemable/redeemable';
|
|
4
|
-
export type { AttributeChange, AttributeChangeResult, AttributeChangeResultError, AttributeChangeResultSuccess, CartLineChange, CartLineChangeResult, CartLineChangeResultError, CartLineChangeResultSuccess, CartLineAddChange, CartLineUpdateChange, CartLineRemoveChange, DiscountCodeAddChange, DiscountCodeRemoveChange, DiscountCodeChange, DiscountCodeChangeResult, DiscountCodeChangeResultError, DiscountCodeChangeResultSuccess, GiftCardAddChange, GiftCardChange, GiftCardChangeResult, GiftCardChangeResultSuccess, GiftCardRemoveChange, GiftCardChangeResultError, MetafieldChange, MetafieldChangeResultError, MetafieldChangeResultSuccess, MetafieldChangeResult, MetafieldRemoveChange, MetafieldRemoveCartChange, MetafieldUpdateChange, MetafieldUpdateCartChange, NoteChange, NoteChangeResult, NoteChangeResultSuccess, NoteChangeResultError, ShippingAddressChange, ShippingAddressChangeFieldError, ShippingAddressChangeResult, ShippingAddressChangeResultError, ShippingAddressChangeResultSuccess, CheckoutApi, } from './api/checkout/checkout';
|
|
5
|
-
export type { Order, OrderStatusApi } from './api/order-status/order-status';
|
|
6
|
-
export type { CartLineItemApi } from './api/cart-line/cart-line-item';
|
|
7
|
-
export type { PickupLocationListApi } from './api/pickup/pickup-location-list';
|
|
8
|
-
export type { PickupPointListApi } from './api/pickup/pickup-point-list';
|
|
9
|
-
export type { ShippingOptionItemApi } from './api/shipping/shipping-option-item';
|
|
10
|
-
export type { ShippingOptionListApi } from './api/shipping/shipping-option-list';
|
|
11
|
-
export type { PaymentMethodAttributesResult, PaymentMethodAttributesResultSuccess, PaymentMethodAttributesResultError, PaymentMethodAttribute, PaymentMethodAttributesChange, PaymentMethodAttributesUpdateChange, PaymentOptionItemApi, } from './api/payment/payment-option-item';
|
|
12
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,WAAW,EACX,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,EACT,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,eAAe,EACf,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,aAAa,GACd,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,yBAAyB,EACzB,eAAe,EACf,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAC,KAAK,EAAE,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAE3E,YAAY,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AACpE,YAAY,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AAC7E,YAAY,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AACvE,YAAY,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAC/E,YAAY,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAE/E,YAAY,EACV,6BAA6B,EAC7B,oCAAoC,EACpC,kCAAkC,EAClC,sBAAsB,EACtB,6BAA6B,EAC7B,mCAAmC,EACnC,oBAAoB,GACrB,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Style, isConditionalStyle, isConditionalStyleWithDefault, } from './style';
|
|
2
|
-
export type { AtLeastOne, Conditions, ConditionalStyle, ConditionalValue, InteractiveConditions, MaybeConditionalStyle, MaybeResponsiveConditionalStyle, ResolutionCondition, ViewportSizeCondition, } from './types';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Style, isConditionalStyle, isConditionalStyleWithDefault, } from './style/style';
|
|
2
|
-
export type { AtLeastOne, Conditions, ConditionalStyle, ConditionalValue, InteractiveConditions, MaybeConditionalStyle, MaybeResponsiveConditionalStyle, ResolutionCondition, ViewportSizeCondition, } from './style/types';
|
|
3
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/style.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {reactExtension, CustomerSegmentTemplate} from '@shopify/ui-extensions/admin';
|
|
3
|
-
|
|
4
|
-
function App() {
|
|
5
|
-
return (
|
|
6
|
-
<CustomerSegmentTemplate
|
|
7
|
-
title="My Customer Segment Template"
|
|
8
|
-
description="Description of the segment"
|
|
9
|
-
query="number_of_orders > 0"
|
|
10
|
-
createdOn={new Date('2023-01-15').toISOString()}
|
|
11
|
-
/>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default reactExtension('Playground', () => <App />);
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
ApiVersion,
|
|
3
|
-
BuyerIdentity,
|
|
4
|
-
BuyerJourney,
|
|
5
|
-
Capability,
|
|
6
|
-
CartCost,
|
|
7
|
-
CartMetafield,
|
|
8
|
-
CartLineCost,
|
|
9
|
-
CheckoutSettings,
|
|
10
|
-
Customer,
|
|
11
|
-
Editor,
|
|
12
|
-
Extension,
|
|
13
|
-
ExtensionSettings,
|
|
14
|
-
Interceptor,
|
|
15
|
-
InterceptorRequest,
|
|
16
|
-
Merchandise,
|
|
17
|
-
ImageDetails,
|
|
18
|
-
Product,
|
|
19
|
-
ProductVariant,
|
|
20
|
-
PurchasingCompany,
|
|
21
|
-
SelectedOption,
|
|
22
|
-
SessionToken,
|
|
23
|
-
Money,
|
|
24
|
-
StandardApi,
|
|
25
|
-
Storage,
|
|
26
|
-
Shop,
|
|
27
|
-
Version,
|
|
28
|
-
Metafield,
|
|
29
|
-
AppMetafield,
|
|
30
|
-
AppMetafieldEntryTarget,
|
|
31
|
-
AppMetafieldEntry,
|
|
32
|
-
CartLine,
|
|
33
|
-
PaymentOption,
|
|
34
|
-
SelectedPaymentOption,
|
|
35
|
-
CartDiscountCode,
|
|
36
|
-
CartDiscountAllocation,
|
|
37
|
-
CartCodeDiscountAllocation,
|
|
38
|
-
CartAutomaticDiscountAllocation,
|
|
39
|
-
CartCustomDiscountAllocation,
|
|
40
|
-
AppliedGiftCard,
|
|
41
|
-
I18n,
|
|
42
|
-
I18nTranslate,
|
|
43
|
-
Currency,
|
|
44
|
-
Country,
|
|
45
|
-
Market,
|
|
46
|
-
Language,
|
|
47
|
-
Localization,
|
|
48
|
-
DeliveryGroup,
|
|
49
|
-
DeliveryGroupType,
|
|
50
|
-
DeliveryGroupDetails,
|
|
51
|
-
CartLineReference,
|
|
52
|
-
DeliveryOptionReference,
|
|
53
|
-
DeliveryOption,
|
|
54
|
-
ShippingOption,
|
|
55
|
-
PickupLocationOption,
|
|
56
|
-
PickupPointOption,
|
|
57
|
-
NumberRange,
|
|
58
|
-
CheckoutToken,
|
|
59
|
-
} from './api/standard/standard';
|
|
60
|
-
export type {
|
|
61
|
-
Attribute,
|
|
62
|
-
CurrencyCode,
|
|
63
|
-
CountryCode,
|
|
64
|
-
Timezone,
|
|
65
|
-
GraphQLError,
|
|
66
|
-
SellingPlan,
|
|
67
|
-
StorefrontApiVersion,
|
|
68
|
-
ValidationError,
|
|
69
|
-
MailingAddress,
|
|
70
|
-
} from './api/shared';
|
|
71
|
-
|
|
72
|
-
export type {
|
|
73
|
-
RedeemableAttribute,
|
|
74
|
-
RedeemableChange,
|
|
75
|
-
RedeemableAddChange,
|
|
76
|
-
RedeemableChangeResult,
|
|
77
|
-
RedeemableChangeResultError,
|
|
78
|
-
RedeemableChangeResultSuccess,
|
|
79
|
-
RedeemableApi,
|
|
80
|
-
} from './api/redeemable/redeemable';
|
|
81
|
-
|
|
82
|
-
export type {
|
|
83
|
-
AttributeChange,
|
|
84
|
-
AttributeChangeResult,
|
|
85
|
-
AttributeChangeResultError,
|
|
86
|
-
AttributeChangeResultSuccess,
|
|
87
|
-
CartLineChange,
|
|
88
|
-
CartLineChangeResult,
|
|
89
|
-
CartLineChangeResultError,
|
|
90
|
-
CartLineChangeResultSuccess,
|
|
91
|
-
CartLineAddChange,
|
|
92
|
-
CartLineUpdateChange,
|
|
93
|
-
CartLineRemoveChange,
|
|
94
|
-
DiscountCodeAddChange,
|
|
95
|
-
DiscountCodeRemoveChange,
|
|
96
|
-
DiscountCodeChange,
|
|
97
|
-
DiscountCodeChangeResult,
|
|
98
|
-
DiscountCodeChangeResultError,
|
|
99
|
-
DiscountCodeChangeResultSuccess,
|
|
100
|
-
GiftCardAddChange,
|
|
101
|
-
GiftCardChange,
|
|
102
|
-
GiftCardChangeResult,
|
|
103
|
-
GiftCardChangeResultSuccess,
|
|
104
|
-
GiftCardRemoveChange,
|
|
105
|
-
GiftCardChangeResultError,
|
|
106
|
-
MetafieldChange,
|
|
107
|
-
MetafieldChangeResultError,
|
|
108
|
-
MetafieldChangeResultSuccess,
|
|
109
|
-
MetafieldChangeResult,
|
|
110
|
-
MetafieldRemoveChange,
|
|
111
|
-
MetafieldRemoveCartChange,
|
|
112
|
-
MetafieldUpdateChange,
|
|
113
|
-
MetafieldUpdateCartChange,
|
|
114
|
-
NoteChange,
|
|
115
|
-
NoteChangeResult,
|
|
116
|
-
NoteChangeResultSuccess,
|
|
117
|
-
NoteChangeResultError,
|
|
118
|
-
ShippingAddressChange,
|
|
119
|
-
ShippingAddressChangeFieldError,
|
|
120
|
-
ShippingAddressChangeResult,
|
|
121
|
-
ShippingAddressChangeResultError,
|
|
122
|
-
ShippingAddressChangeResultSuccess,
|
|
123
|
-
CheckoutApi,
|
|
124
|
-
} from './api/checkout/checkout';
|
|
125
|
-
export type {Order, OrderStatusApi} from './api/order-status/order-status';
|
|
126
|
-
|
|
127
|
-
export type {CartLineItemApi} from './api/cart-line/cart-line-item';
|
|
128
|
-
export type {PickupLocationListApi} from './api/pickup/pickup-location-list';
|
|
129
|
-
export type {PickupPointListApi} from './api/pickup/pickup-point-list';
|
|
130
|
-
export type {ShippingOptionItemApi} from './api/shipping/shipping-option-item';
|
|
131
|
-
export type {ShippingOptionListApi} from './api/shipping/shipping-option-list';
|
|
132
|
-
|
|
133
|
-
export type {
|
|
134
|
-
PaymentMethodAttributesResult,
|
|
135
|
-
PaymentMethodAttributesResultSuccess,
|
|
136
|
-
PaymentMethodAttributesResultError,
|
|
137
|
-
PaymentMethodAttribute,
|
|
138
|
-
PaymentMethodAttributesChange,
|
|
139
|
-
PaymentMethodAttributesUpdateChange,
|
|
140
|
-
PaymentOptionItemApi,
|
|
141
|
-
} from './api/payment/payment-option-item';
|