@shopify/ui-extensions 2024.4.2 → 2024.10.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/AdminPrintAction/AdminPrintAction.js +12 -0
- package/build/cjs/surfaces/admin/components/DatePicker/DatePicker.js +12 -0
- package/build/cjs/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.js +5 -0
- package/build/cjs/surfaces/admin/components/MoneyField/MoneyField.js +6 -0
- package/build/cjs/surfaces/admin.js +2 -8
- package/build/cjs/surfaces/checkout/components/Chat/Chat.js +12 -0
- package/build/cjs/surfaces/checkout/components/DatePicker/DatePicker.js +4 -10
- package/build/cjs/surfaces/checkout/components/PaymentIcon/PaymentIcon.js +1 -0
- package/build/cjs/surfaces/{point-of-sale/components/Actiontem/ActionItem.js → checkout/components/Progress/Progress.js} +2 -2
- package/build/cjs/surfaces/checkout/components/QRCode/QRCode.js +9 -0
- package/build/cjs/surfaces/checkout/components/Switch/Switch.js +9 -0
- package/build/cjs/surfaces/checkout.js +8 -0
- package/build/cjs/surfaces/customer-account/components/Avatar/Avatar.js +9 -0
- package/build/cjs/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.js +9 -0
- package/build/cjs/surfaces/customer-account/components/DropZone/DropZone.js +9 -0
- package/build/cjs/surfaces/customer-account/components/ImageGroup/ImageGroup.js +9 -0
- package/build/cjs/surfaces/{admin/components/Card/Card.js → customer-account/components/Menu/Menu.js} +2 -2
- package/build/cjs/surfaces/customer-account/components/Page/Page.js +9 -0
- package/build/cjs/surfaces/customer-account/components/PolicyModal/PolicyModal.js +12 -0
- package/build/cjs/surfaces/customer-account/components/ResourceItem/ResourceItem.js +9 -0
- package/build/cjs/surfaces/customer-account.js +24 -0
- package/build/cjs/surfaces/point-of-sale/components/ActionItem/ActionItem.js +16 -0
- package/build/cjs/surfaces/point-of-sale/components/Badge/Badge.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/Banner/Banner.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/Button/Button.js +8 -0
- package/build/cjs/surfaces/point-of-sale/components/CameraScanner/CameraScanner.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/DatePicker/DatePicker.js +8 -0
- package/build/cjs/surfaces/point-of-sale/components/Dialog/Dialog.js +12 -0
- package/build/cjs/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.js +10 -0
- package/build/cjs/surfaces/point-of-sale/components/Navigator/Navigator.js +1 -1
- package/build/cjs/surfaces/point-of-sale/components/NumberField/NumberField.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlock.js +15 -0
- package/build/cjs/surfaces/point-of-sale/components/POSBlock/POSBlockRow.js +13 -0
- package/build/cjs/surfaces/point-of-sale/components/PinPad/PinPad.js +24 -0
- package/build/cjs/surfaces/point-of-sale/components/Screen/Screen.js +18 -0
- package/build/cjs/surfaces/point-of-sale/components/Section/Section.js +10 -0
- package/build/cjs/surfaces/point-of-sale/components/TextArea/TextArea.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +6 -0
- package/build/cjs/surfaces/point-of-sale/components/Tile/Tile.js +9 -0
- package/build/cjs/surfaces/point-of-sale/components/TimePicker/TimePicker.js +9 -0
- package/build/cjs/surfaces/point-of-sale.js +5 -1
- package/build/esm/surfaces/admin/components/AdminPrintAction/AdminPrintAction.mjs +8 -0
- package/build/esm/surfaces/admin/components/DatePicker/DatePicker.mjs +12 -0
- package/build/esm/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.mjs +5 -0
- package/build/esm/surfaces/admin/components/MoneyField/MoneyField.mjs +6 -0
- package/build/esm/surfaces/admin.mjs +1 -4
- package/build/esm/surfaces/checkout/components/Chat/Chat.mjs +8 -0
- package/build/esm/surfaces/checkout/components/DatePicker/DatePicker.mjs +5 -11
- package/build/esm/surfaces/checkout/components/PaymentIcon/PaymentIcon.mjs +1 -0
- package/build/esm/surfaces/checkout/components/Progress/Progress.mjs +5 -0
- package/build/esm/surfaces/checkout/components/QRCode/QRCode.mjs +5 -0
- package/build/esm/surfaces/checkout/components/Switch/Switch.mjs +5 -0
- package/build/esm/surfaces/checkout.mjs +4 -0
- package/build/esm/surfaces/customer-account/components/Avatar/Avatar.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/DropZone/DropZone.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/ImageGroup/ImageGroup.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/Menu/Menu.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/Page/Page.mjs +5 -0
- package/build/esm/surfaces/customer-account/components/PolicyModal/PolicyModal.mjs +8 -0
- package/build/esm/surfaces/customer-account/components/ResourceItem/ResourceItem.mjs +5 -0
- package/build/esm/surfaces/customer-account.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/ActionItem/ActionItem.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/Badge/Badge.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/Banner/Banner.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/Button/Button.mjs +8 -0
- package/build/esm/surfaces/point-of-sale/components/CameraScanner/CameraScanner.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/DatePicker/DatePicker.mjs +8 -0
- package/build/esm/surfaces/point-of-sale/components/Dialog/Dialog.mjs +12 -0
- package/build/esm/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.mjs +10 -0
- package/build/esm/surfaces/point-of-sale/components/Navigator/Navigator.mjs +1 -1
- package/build/esm/surfaces/point-of-sale/components/NumberField/NumberField.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlock.mjs +11 -0
- package/build/esm/surfaces/point-of-sale/components/POSBlock/POSBlockRow.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/PinPad/PinPad.mjs +24 -0
- package/build/esm/surfaces/point-of-sale/components/Screen/Screen.mjs +18 -0
- package/build/esm/surfaces/point-of-sale/components/Section/Section.mjs +10 -0
- package/build/esm/surfaces/point-of-sale/components/TextArea/TextArea.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +6 -0
- package/build/esm/surfaces/point-of-sale/components/Tile/Tile.mjs +9 -0
- package/build/esm/surfaces/point-of-sale/components/TimePicker/TimePicker.mjs +9 -0
- package/build/esm/surfaces/point-of-sale.mjs +3 -1
- package/build/esnext/surfaces/admin/components/AdminPrintAction/AdminPrintAction.esnext +8 -0
- package/build/esnext/surfaces/admin/components/DatePicker/DatePicker.esnext +12 -0
- package/build/esnext/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.esnext +5 -0
- package/build/esnext/surfaces/admin/components/MoneyField/MoneyField.esnext +6 -0
- package/build/esnext/surfaces/admin.esnext +1 -4
- package/build/esnext/surfaces/checkout/components/Chat/Chat.esnext +8 -0
- package/build/esnext/surfaces/checkout/components/DatePicker/DatePicker.esnext +5 -11
- package/build/esnext/surfaces/checkout/components/PaymentIcon/PaymentIcon.esnext +1 -0
- package/build/esnext/surfaces/checkout/components/Progress/Progress.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/QRCode/QRCode.esnext +5 -0
- package/build/esnext/surfaces/checkout/components/Switch/Switch.esnext +5 -0
- package/build/esnext/surfaces/checkout.esnext +4 -0
- package/build/esnext/surfaces/customer-account/components/Avatar/Avatar.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/DropZone/DropZone.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/ImageGroup/ImageGroup.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/Menu/Menu.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/Page/Page.esnext +5 -0
- package/build/esnext/surfaces/customer-account/components/PolicyModal/PolicyModal.esnext +8 -0
- package/build/esnext/surfaces/customer-account/components/ResourceItem/ResourceItem.esnext +5 -0
- package/build/esnext/surfaces/customer-account.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/ActionItem/ActionItem.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/Badge/Badge.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/Banner/Banner.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/Button/Button.esnext +8 -0
- package/build/esnext/surfaces/point-of-sale/components/CameraScanner/CameraScanner.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/DatePicker/DatePicker.esnext +8 -0
- package/build/esnext/surfaces/point-of-sale/components/Dialog/Dialog.esnext +12 -0
- package/build/esnext/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.esnext +10 -0
- package/build/esnext/surfaces/point-of-sale/components/Navigator/Navigator.esnext +1 -1
- package/build/esnext/surfaces/point-of-sale/components/NumberField/NumberField.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlock.esnext +11 -0
- package/build/esnext/surfaces/point-of-sale/components/POSBlock/POSBlockRow.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/PinPad/PinPad.esnext +24 -0
- package/build/esnext/surfaces/point-of-sale/components/Screen/Screen.esnext +18 -0
- package/build/esnext/surfaces/point-of-sale/components/Section/Section.esnext +10 -0
- package/build/esnext/surfaces/point-of-sale/components/TextArea/TextArea.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +6 -0
- package/build/esnext/surfaces/point-of-sale/components/Tile/Tile.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale/components/TimePicker/TimePicker.esnext +9 -0
- package/build/esnext/surfaces/point-of-sale.esnext +3 -1
- package/build/ts/shared.d.ts +18 -2
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +5 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +10 -0
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -0
- package/build/ts/surfaces/admin/{components/Card/Card.doc-skip.d.ts → api/print-action/print-action.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +221 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +11 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts +17 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.d.ts.map +1 -0
- package/build/ts/surfaces/admin/{api/extension-targets/extension-targets.doc.d.ts → components/AdminPrintAction/AdminPrintAction.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Box/Box.d.ts +2 -1
- package/build/ts/surfaces/admin/components/Box/Box.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button/Button.d.ts +7 -0
- package/build/ts/surfaces/admin/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.d.ts +2 -2
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts +7 -0
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts +2 -2
- package/build/ts/surfaces/admin/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts +2 -2
- package/build/ts/surfaces/admin/components/TextField/TextField.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared/display.d.ts +8 -0
- package/build/ts/surfaces/admin/components/shared/display.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts +15 -0
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components.d.ts +2 -8
- package/build/ts/surfaces/admin/components.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +103 -7
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +20 -3
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +10 -6
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +4 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts +5 -0
- package/build/ts/surfaces/checkout/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +6 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +13 -0
- 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 +49 -3
- 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 +126 -45
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockLayout/BlockLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts +14 -6
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/BlockStack/BlockStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts +78 -0
- package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts +15 -6
- package/build/ts/surfaces/checkout/components/Grid/Grid.d.ts.map +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 +15 -6
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/GridItem/GridItem.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineLayout/InlineLayout.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts +15 -6
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/InlineStack/InlineStack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts +19 -0
- package/build/ts/surfaces/checkout/components/Modal/Modal.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.d.ts.map +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 +12 -11
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts +40 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts +50 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts +38 -5
- package/build/ts/surfaces/checkout/components/ScrollView/ScrollView.d.ts.map +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 +13 -1
- package/build/ts/surfaces/checkout/components/Select/Select.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts +49 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/View/View.d.ts +61 -41
- package/build/ts/surfaces/checkout/components/View/View.d.ts.map +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 +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components.d.ts +9 -1
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +2 -0
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/types.d.ts +10 -3
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +17 -13
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +5 -4
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +84 -0
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +36 -260
- 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 +260 -2
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +195 -0
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/api.d.ts +3 -2
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts +43 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/Avatar/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Card/Card.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts +21 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts +67 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/DropZone/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts +32 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ImageGroup/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts +21 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Menu/index.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/Menu/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.d.ts +47 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Page/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Page/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts +30 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/PolicyModal.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/PolicyModal/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts +36 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ResourceItem/index.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/index.d.ts +7 -0
- package/build/ts/surfaces/customer-account/components/index.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/components/shared.d.ts +7 -0
- package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/targets.d.ts +69 -8
- package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api.d.ts +7 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts +24 -0
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts +17 -8
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts +25 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts +20 -2
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts +21 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts +38 -0
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts +22 -0
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts +0 -2
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts +31 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts +43 -2
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts +20 -0
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +27 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts +26 -0
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts +26 -1
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts +48 -0
- 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 +7 -3
- package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets.d.ts +21 -4
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -5
- package/src/shared.ts +28 -0
- package/src/surfaces/admin/api/block/block.ts +6 -0
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +1 -1
- package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +1 -1
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +1 -1
- package/src/surfaces/admin/api/print-action/print-action.doc.ts +20 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +12 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +240 -0
- package/src/surfaces/admin/api/standard/standard.ts +12 -0
- package/src/surfaces/admin/api.ts +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +52 -0
- package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ts +18 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts +14 -0
- package/src/surfaces/admin/components/Box/Box.ts +3 -1
- package/src/surfaces/admin/components/Button/Button.ts +8 -0
- package/src/surfaces/admin/components/Image/Image.ts +2 -2
- package/src/surfaces/admin/components/MoneyField/MoneyField.ts +171 -1
- package/src/surfaces/admin/components/NumberField/NumberField.ts +3 -1
- package/src/surfaces/admin/components/TextField/TextField.ts +3 -1
- package/src/surfaces/admin/components/shared/display.ts +7 -0
- package/src/surfaces/admin/components/shared/index.ts +16 -0
- package/src/surfaces/admin/components.ts +2 -8
- package/src/surfaces/admin/extension-targets.ts +170 -8
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +29 -4
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +2 -0
- package/src/surfaces/checkout/api/checkout/checkout.ts +15 -6
- package/src/surfaces/checkout/api/docs.ts +5 -0
- package/src/surfaces/checkout/api/order-status/order-status.ts +5 -0
- package/src/surfaces/checkout/api/shared.ts +7 -0
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +15 -0
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +58 -3
- package/src/surfaces/checkout/api/standard/standard.ts +147 -51
- package/src/surfaces/checkout/components/BlockLayout/BlockLayout.doc.ts +8 -1
- package/src/surfaces/checkout/components/BlockStack/BlockStack.doc.ts +8 -1
- package/src/surfaces/checkout/components/BlockStack/BlockStack.ts +14 -4
- package/src/surfaces/checkout/components/Chat/Chat.ts +85 -0
- package/src/surfaces/checkout/components/Disclosure/Disclosure.doc.ts +1 -1
- package/src/surfaces/checkout/components/Grid/Grid.doc.ts +6 -0
- package/src/surfaces/checkout/components/Grid/Grid.ts +15 -4
- package/src/surfaces/checkout/components/GridItem/GridItem.doc.ts +6 -0
- package/src/surfaces/checkout/components/GridItem/GridItem.ts +15 -4
- package/src/surfaces/checkout/components/Heading/Heading.ts +1 -1
- package/src/surfaces/checkout/components/Icon/Icon.ts +6 -0
- package/src/surfaces/checkout/components/InlineLayout/InlineLayout.doc.ts +8 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.doc.ts +8 -1
- package/src/surfaces/checkout/components/InlineStack/InlineStack.ts +15 -4
- package/src/surfaces/checkout/components/Link/Link.ts +1 -1
- package/src/surfaces/checkout/components/Modal/Modal.doc.ts +8 -1
- package/src/surfaces/checkout/components/Modal/Modal.ts +19 -0
- package/src/surfaces/checkout/components/PaymentIcon/PaymentIcon.ts +400 -399
- package/src/surfaces/checkout/components/Popover/Popover.doc.ts +8 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.doc.ts +8 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +12 -11
- package/src/surfaces/checkout/components/Progress/Progress.doc.ts +89 -0
- package/src/surfaces/checkout/components/Progress/Progress.ts +44 -0
- package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.ts +9 -0
- package/src/surfaces/checkout/components/QRCode/QRCode.doc.ts +60 -0
- package/src/surfaces/checkout/components/QRCode/QRCode.ts +54 -0
- package/src/surfaces/checkout/components/QRCode/examples/basic-qrcode.example.ts +9 -0
- package/src/surfaces/checkout/components/ScrollView/ScrollView.doc.ts +8 -1
- package/src/surfaces/checkout/components/ScrollView/ScrollView.ts +37 -3
- package/src/surfaces/checkout/components/Select/Select.ts +13 -1
- package/src/surfaces/checkout/components/Sheet/Sheet.doc.ts +8 -1
- package/src/surfaces/checkout/components/Spinner/Spinner.doc.ts +8 -1
- package/src/surfaces/checkout/components/Switch/Switch.doc.ts +80 -0
- package/src/surfaces/checkout/components/Switch/Switch.ts +50 -0
- package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.ts +9 -0
- package/src/surfaces/checkout/components/View/View.doc.ts +8 -1
- package/src/surfaces/checkout/components/View/View.ts +85 -45
- package/src/surfaces/checkout/components/shared.ts +1 -1
- package/src/surfaces/checkout/components.ts +13 -0
- package/src/surfaces/checkout/helper.docs.ts +36 -0
- package/src/surfaces/checkout/shared.ts +5 -0
- package/src/surfaces/checkout/style/examples/hiding.example.tsx +8 -0
- package/src/surfaces/checkout/style/style.doc.ts +14 -0
- package/src/surfaces/checkout/style/types.ts +10 -3
- package/src/surfaces/checkout/targets.ts +27 -12
- package/src/surfaces/checkout.ts +19 -2
- package/src/surfaces/customer-account/api/docs.ts +151 -0
- package/src/surfaces/customer-account/api/order-status/order-status.ts +39 -288
- package/src/surfaces/customer-account/api/shared.ts +290 -0
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +230 -0
- package/src/surfaces/customer-account/api.ts +35 -15
- package/src/surfaces/customer-account/components/Avatar/Avatar.doc.ts +68 -0
- package/src/surfaces/customer-account/components/Avatar/Avatar.ts +46 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +26 -0
- package/src/surfaces/customer-account/components/Avatar/index.ts +1 -0
- package/src/surfaces/customer-account/components/Card/Card.doc.ts +54 -0
- package/src/surfaces/customer-account/components/Card/examples/basic-Card-js.example.ts +47 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.ts +66 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.ts +22 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +27 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction/index.ts +2 -0
- package/src/surfaces/customer-account/components/DropZone/DropZone.doc.ts +67 -0
- package/src/surfaces/customer-account/components/DropZone/DropZone.ts +76 -0
- package/src/surfaces/customer-account/components/DropZone/examples/basic-DropZone-js.example.ts +13 -0
- package/src/surfaces/customer-account/components/DropZone/index.ts +2 -0
- package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.ts +53 -0
- package/src/surfaces/customer-account/components/ImageGroup/ImageGroup.ts +35 -0
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-js.example.ts +38 -0
- package/src/surfaces/customer-account/components/ImageGroup/index.ts +2 -0
- package/src/surfaces/customer-account/components/Menu/Menu.doc.ts +80 -0
- package/src/surfaces/customer-account/components/Menu/Menu.ts +19 -0
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-js.example.ts +26 -0
- package/src/surfaces/customer-account/components/Menu/index.ts +1 -0
- package/src/surfaces/customer-account/components/Page/Page.doc.ts +76 -0
- package/src/surfaces/customer-account/components/Page/Page.ts +51 -0
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +35 -0
- package/src/surfaces/customer-account/components/Page/index.ts +2 -0
- package/src/surfaces/customer-account/components/PolicyModal/PolicyModal.ts +33 -0
- package/src/surfaces/customer-account/components/PolicyModal/index.ts +2 -0
- package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.doc.ts +62 -0
- package/src/surfaces/customer-account/components/ResourceItem/ResourceItem.ts +41 -0
- package/src/surfaces/customer-account/components/ResourceItem/examples/basic-ResourceItem-js.example.ts +59 -0
- package/src/surfaces/customer-account/components/ResourceItem/index.ts +2 -0
- package/src/surfaces/customer-account/components/index.ts +9 -0
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +8 -0
- package/src/surfaces/customer-account/components/shared.ts +6 -0
- package/src/surfaces/customer-account/targets.ts +169 -8
- package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +1 -1
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +20 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +1 -1
- package/src/surfaces/point-of-sale/api/order-api/order-api.tsx +2 -2
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +2 -2
- package/src/surfaces/point-of-sale/api.ts +21 -1
- package/src/surfaces/point-of-sale/components/ActionItem/ActionItem.ts +24 -0
- package/src/surfaces/point-of-sale/components/Badge/Badge.ts +16 -0
- package/src/surfaces/point-of-sale/components/Banner/Banner.ts +17 -8
- package/src/surfaces/point-of-sale/components/Button/Button.ts +25 -1
- package/src/surfaces/point-of-sale/components/CameraScanner/CameraScanner.ts +21 -5
- package/src/surfaces/point-of-sale/components/DatePicker/DatePicker.ts +22 -0
- package/src/surfaces/point-of-sale/components/Dialog/Dialog.ts +46 -0
- package/src/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.ts +22 -1
- package/src/surfaces/point-of-sale/components/Icon/Icon.ts +7 -0
- package/src/surfaces/point-of-sale/components/Image/Image.ts +3 -0
- package/src/surfaces/point-of-sale/components/List/List.ts +16 -2
- package/src/surfaces/point-of-sale/components/Navigator/Navigator.ts +4 -1
- package/src/surfaces/point-of-sale/components/NumberField/NumberField.ts +0 -2
- package/src/surfaces/point-of-sale/components/POSBlock/POSBlock.ts +31 -0
- package/src/surfaces/point-of-sale/components/POSBlock/POSBlockRow.ts +16 -0
- package/src/surfaces/point-of-sale/components/PinPad/PinPad.ts +27 -0
- package/src/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.ts +12 -0
- package/src/surfaces/point-of-sale/components/Screen/Screen.ts +43 -2
- package/src/surfaces/point-of-sale/components/SearchBar/SearchBar.ts +18 -0
- package/src/surfaces/point-of-sale/components/Section/Section.ts +20 -0
- package/src/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.ts +18 -0
- package/src/surfaces/point-of-sale/components/Selectable/Selectable.ts +6 -0
- package/src/surfaces/point-of-sale/components/Stack/Stack.ts +27 -1
- package/src/surfaces/point-of-sale/components/Stepper/Stepper.ts +3 -3
- package/src/surfaces/point-of-sale/components/Text/Text.ts +6 -0
- package/src/surfaces/point-of-sale/components/TextArea/TextArea.ts +3 -0
- package/src/surfaces/point-of-sale/components/Tile/Tile.ts +26 -0
- package/src/surfaces/point-of-sale/components/TimeField/TimeField.ts +4 -0
- package/src/surfaces/point-of-sale/components/TimePicker/TimePicker.ts +27 -0
- package/src/surfaces/point-of-sale/components/shared/BaseTextField.ts +26 -1
- package/src/surfaces/point-of-sale/components/shared/InputField.ts +48 -0
- package/src/surfaces/point-of-sale/components.ts +11 -3
- package/src/surfaces/point-of-sale/targets.ts +107 -7
- package/build/cjs/surfaces/admin/components/ResourceItem/ResourceItem.js +0 -14
- package/build/cjs/surfaces/admin/components/ResourceList/ResourceList.js +0 -15
- package/build/cjs/surfaces/admin/components/Thumbnail/Thumbnail.js +0 -12
- package/build/esm/surfaces/admin/components/Card/Card.mjs +0 -5
- package/build/esm/surfaces/admin/components/ResourceItem/ResourceItem.mjs +0 -10
- package/build/esm/surfaces/admin/components/ResourceList/ResourceList.mjs +0 -11
- package/build/esm/surfaces/admin/components/Thumbnail/Thumbnail.mjs +0 -8
- package/build/esm/surfaces/point-of-sale/components/Actiontem/ActionItem.mjs +0 -5
- package/build/esnext/surfaces/admin/components/Card/Card.esnext +0 -5
- package/build/esnext/surfaces/admin/components/ResourceItem/ResourceItem.esnext +0 -10
- package/build/esnext/surfaces/admin/components/ResourceList/ResourceList.esnext +0 -11
- package/build/esnext/surfaces/admin/components/Thumbnail/Thumbnail.esnext +0 -8
- package/build/esnext/surfaces/point-of-sale/components/Actiontem/ActionItem.esnext +0 -5
- package/build/ts/surfaces/admin/api/extension-targets/extension-targets.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Card/Card.d.ts +0 -15
- package/build/ts/surfaces/admin/components/Card/Card.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Card/Card.doc-skip.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts +0 -22
- package/build/ts/surfaces/admin/components/ResourceItem/ResourceItem.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts +0 -26
- package/build/ts/surfaces/admin/components/ResourceList/ResourceList.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts +0 -19
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts +0 -76
- package/build/ts/surfaces/checkout/api/address-autocomplete/address-autocomplete.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts +0 -10
- package/build/ts/surfaces/point-of-sale/components/Actiontem/ActionItem.d.ts.map +0 -1
- package/src/surfaces/admin/api/extension-targets/extension-targets.doc.ts +0 -20
- package/src/surfaces/admin/components/Card/Card.doc-skip.ts +0 -42
- package/src/surfaces/admin/components/Card/Card.ts +0 -13
- package/src/surfaces/admin/components/Card/examples/basic-card.example.ts +0 -11
- package/src/surfaces/admin/components/ResourceItem/ResourceItem.ts +0 -19
- package/src/surfaces/admin/components/ResourceItem/examples/basic-resourceitem.example.ts +0 -22
- package/src/surfaces/admin/components/ResourceList/ResourceList.ts +0 -30
- package/src/surfaces/admin/components/ResourceList/examples/basic-resourcelist.example.ts +0 -29
- package/src/surfaces/admin/components/Thumbnail/Thumbnail.ts +0 -31
- package/src/surfaces/admin/components/Thumbnail/examples/basic-thumbnail.example.ts +0 -13
- package/src/surfaces/checkout/api/address-autocomplete/address-autocomplete.ts +0 -87
- package/src/surfaces/point-of-sale/components/Actiontem/ActionItem.ts +0 -10
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/ui-extensions",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.10.0",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"docs:admin": "
|
|
6
|
-
"gen-docs:admin": "
|
|
7
|
-
"docs:checkout": "
|
|
5
|
+
"docs:admin": "bash ./docs/surfaces/admin/build-docs.sh",
|
|
6
|
+
"gen-docs:admin": "bash ./docs/surfaces/admin/create-doc-files.sh \"admin\"",
|
|
7
|
+
"docs:checkout": "bash ./docs/surfaces/checkout/build-docs.sh",
|
|
8
|
+
"docs:point-of-sale": "bash ./docs/surfaces/point-of-sale/build-docs.sh",
|
|
9
|
+
"docs:customer-account": "bash ./docs/surfaces/customer-account/build-docs.sh"
|
|
8
10
|
},
|
|
9
11
|
"main": "index.js",
|
|
10
12
|
"module": "index.mjs",
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
"@remote-ui/core": "^2.2.4"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
|
-
"@shopify/generate-docs": "0.
|
|
70
|
+
"@shopify/generate-docs": "0.16.4",
|
|
69
71
|
"typescript": "^4.9.0"
|
|
70
72
|
},
|
|
71
73
|
"publishConfig": {
|
package/src/shared.ts
CHANGED
|
@@ -21,8 +21,34 @@ export type ApiVersion =
|
|
|
21
21
|
| '2023-10'
|
|
22
22
|
| '2024-01'
|
|
23
23
|
| '2024-04'
|
|
24
|
+
| '2024-07'
|
|
25
|
+
| '2024-10'
|
|
24
26
|
| 'unstable';
|
|
25
27
|
|
|
28
|
+
/**
|
|
29
|
+
* The capabilities an extension has access to.
|
|
30
|
+
*
|
|
31
|
+
* * [`api_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access): the extension can access the Storefront API.
|
|
32
|
+
*
|
|
33
|
+
* * [`network_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access): the extension can make external network calls.
|
|
34
|
+
*
|
|
35
|
+
* * [`block_progress`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#block-progress): the extension can block a buyer's progress and the merchant has allowed this blocking behavior.
|
|
36
|
+
*
|
|
37
|
+
* * [`collect_buyer_consent.sms_marketing`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can collect buyer consent for SMS marketing.
|
|
38
|
+
*
|
|
39
|
+
* * [`collect_buyer_consent.customer_privacy`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can register buyer consent decisions that will be honored on Shopify-managed services.
|
|
40
|
+
*
|
|
41
|
+
* * `iframe.sources`: the extension can embed an external URL in an iframe.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
export type Capability =
|
|
45
|
+
| 'api_access'
|
|
46
|
+
| 'network_access'
|
|
47
|
+
| 'block_progress'
|
|
48
|
+
| 'collect_buyer_consent.sms_marketing'
|
|
49
|
+
| 'collect_buyer_consent.customer_privacy'
|
|
50
|
+
| 'iframe.sources';
|
|
51
|
+
|
|
26
52
|
// To update these type values, see https://github.com/Shopify/checkout-web/pull/8984
|
|
27
53
|
export type CurrencyCode =
|
|
28
54
|
| 'AED'
|
|
@@ -844,6 +870,8 @@ export type StorefrontApiVersion =
|
|
|
844
870
|
| '2023-07'
|
|
845
871
|
| '2024-01'
|
|
846
872
|
| '2024-04'
|
|
873
|
+
| '2024-07'
|
|
874
|
+
| '2024-10'
|
|
847
875
|
| 'unstable';
|
|
848
876
|
|
|
849
877
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {StandardApi} from '../standard/standard';
|
|
2
2
|
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';
|
|
3
3
|
import type {Data} from '../shared';
|
|
4
|
+
import type {ResourcePickerApi} from '../resource-picker/resource-picker';
|
|
4
5
|
|
|
5
6
|
export interface Navigation {
|
|
6
7
|
/**
|
|
@@ -23,4 +24,9 @@ export interface BlockExtensionApi<ExtensionTarget extends AnyExtensionTarget>
|
|
|
23
24
|
* For example, you can navigate from an admin block on the product details page (`admin.product-details.block.render`) to an admin action on the product details page (`admin.product-details.action.render`).
|
|
24
25
|
*/
|
|
25
26
|
navigation: Navigation;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Renders the [Resource Picker](/docs/api/app-bridge-library/apis/resource-picker), allowing users to select a resource for the extension to use as part of its flow.
|
|
30
|
+
*/
|
|
31
|
+
resourcePicker: ResourcePickerApi;
|
|
26
32
|
}
|
|
@@ -43,7 +43,7 @@ const supportedDefinitionTypes = [
|
|
|
43
43
|
'list.weight',
|
|
44
44
|
] as const;
|
|
45
45
|
|
|
46
|
-
export type SupportedDefinitionType = typeof supportedDefinitionTypes[number];
|
|
46
|
+
export type SupportedDefinitionType = (typeof supportedDefinitionTypes)[number];
|
|
47
47
|
|
|
48
48
|
interface MetafieldUpdateChange {
|
|
49
49
|
type: 'updateMetafield';
|
|
@@ -3,7 +3,7 @@ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
|
3
3
|
const data: ReferenceEntityTemplateSchema = {
|
|
4
4
|
name: 'Validation Settings API',
|
|
5
5
|
description:
|
|
6
|
-
'This API is available Validation Settings extensions. Refer to the [tutorial](/docs/apps/checkout/validation/create-complex-validation-rules) for more information. Note that the [`FunctionSettings`](/docs/api/admin-extensions/components/forms/functionsettings) component is required to build Validation Settings extensions.',
|
|
6
|
+
'This API is available to Validation Settings extensions. Refer to the [tutorial](/docs/apps/checkout/validation/create-complex-validation-rules) for more information. Note that the [`FunctionSettings`](/docs/api/admin-extensions/components/forms/functionsettings) component is required to build Validation Settings extensions.',
|
|
7
7
|
isVisualComponent: false,
|
|
8
8
|
type: 'API',
|
|
9
9
|
definitions: [
|
|
@@ -63,5 +63,5 @@ type MetafieldsChange =
|
|
|
63
63
|
| MetafieldUpdateChange[]
|
|
64
64
|
| MetafieldRemoveChange[];
|
|
65
65
|
|
|
66
|
-
export type SupportedDefinitionType = typeof supportedDefinitionTypes[number];
|
|
66
|
+
export type SupportedDefinitionType = (typeof supportedDefinitionTypes)[number];
|
|
67
67
|
export type ApplyMetafieldsChange = (changes: MetafieldsChange[]) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'Print Action Extension API',
|
|
5
|
+
description:
|
|
6
|
+
'This API is available to all print action extension types. Note that the [`AdminPrintAction`](/docs/api/admin-extensions/components/other/adminprintaction) component is required to build admin print action extensions.',
|
|
7
|
+
isVisualComponent: false,
|
|
8
|
+
type: 'API',
|
|
9
|
+
definitions: [
|
|
10
|
+
{
|
|
11
|
+
title: 'PrintActionExtensionApi',
|
|
12
|
+
description: '',
|
|
13
|
+
type: 'PrintActionExtensionApi',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
category: 'API',
|
|
17
|
+
related: [],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default data;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type {StandardApi} from '../standard/standard';
|
|
2
|
+
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';
|
|
3
|
+
import type {Data} from '../shared';
|
|
4
|
+
|
|
5
|
+
export interface PrintActionExtensionApi<
|
|
6
|
+
ExtensionTarget extends AnyExtensionTarget,
|
|
7
|
+
> extends StandardApi<ExtensionTarget> {
|
|
8
|
+
/**
|
|
9
|
+
* Information about the currently viewed or selected items.
|
|
10
|
+
*/
|
|
11
|
+
data: Data;
|
|
12
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
type Money = string;
|
|
2
|
+
|
|
3
|
+
enum CollectionSortOrder {
|
|
4
|
+
Manual = 'MANUAL',
|
|
5
|
+
BestSelling = 'BEST_SELLING',
|
|
6
|
+
AlphaAsc = 'ALPHA_ASC',
|
|
7
|
+
AlphaDesc = 'ALPHA_DESC',
|
|
8
|
+
PriceDesc = 'PRICE_DESC',
|
|
9
|
+
PriceAsc = 'PRICE_ASC',
|
|
10
|
+
CreatedDesc = 'CREATED_DESC',
|
|
11
|
+
Created = 'CREATED',
|
|
12
|
+
MostRelevant = 'MOST_RELEVANT',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum FulfillmentServiceType {
|
|
16
|
+
GiftCard = 'GIFT_CARD',
|
|
17
|
+
Manual = 'MANUAL',
|
|
18
|
+
ThirdParty = 'THIRD_PARTY',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
enum WeightUnit {
|
|
22
|
+
Kilograms = 'KILOGRAMS',
|
|
23
|
+
Grams = 'GRAMS',
|
|
24
|
+
Pounds = 'POUNDS',
|
|
25
|
+
Ounces = 'OUNCES',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
enum ProductVariantInventoryPolicy {
|
|
29
|
+
Deny = 'DENY',
|
|
30
|
+
Continue = 'CONTINUE',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
enum ProductVariantInventoryManagement {
|
|
34
|
+
Shopify = 'SHOPIFY',
|
|
35
|
+
NotManaged = 'NOT_MANAGED',
|
|
36
|
+
FulfillmentService = 'FULFILLMENT_SERVICE',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
enum ProductStatus {
|
|
40
|
+
Active = 'ACTIVE',
|
|
41
|
+
Archived = 'ARCHIVED',
|
|
42
|
+
Draft = 'DRAFT',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface Image {
|
|
46
|
+
id: string;
|
|
47
|
+
altText?: string;
|
|
48
|
+
originalSrc: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface Resource {
|
|
52
|
+
/** in GraphQL id format, ie 'gid://shopify/Product/1' */
|
|
53
|
+
id: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface BaseResource extends Resource {
|
|
57
|
+
variants?: Resource[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface CollectionRule {
|
|
61
|
+
column: string;
|
|
62
|
+
condition: string;
|
|
63
|
+
relation: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface RuleSet {
|
|
67
|
+
appliedDisjunctively: boolean;
|
|
68
|
+
rules: CollectionRule[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface Collection extends Resource {
|
|
72
|
+
availablePublicationCount: number;
|
|
73
|
+
description: string;
|
|
74
|
+
descriptionHtml: string;
|
|
75
|
+
handle: string;
|
|
76
|
+
id: string;
|
|
77
|
+
image?: Image | null;
|
|
78
|
+
productsAutomaticallySortedCount: number;
|
|
79
|
+
productsCount: number;
|
|
80
|
+
productsManuallySortedCount: number;
|
|
81
|
+
publicationCount: number;
|
|
82
|
+
ruleSet?: RuleSet | null;
|
|
83
|
+
seo: {
|
|
84
|
+
description?: string | null;
|
|
85
|
+
title?: string | null;
|
|
86
|
+
};
|
|
87
|
+
sortOrder: CollectionSortOrder;
|
|
88
|
+
storefrontId: string;
|
|
89
|
+
templateSuffix?: string | null;
|
|
90
|
+
title: string;
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface ProductVariant extends Resource {
|
|
95
|
+
availableForSale: boolean;
|
|
96
|
+
barcode?: string | null;
|
|
97
|
+
compareAtPrice?: Money | null;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
displayName: string;
|
|
100
|
+
fulfillmentService?: {
|
|
101
|
+
id: string;
|
|
102
|
+
inventoryManagement: boolean;
|
|
103
|
+
productBased: boolean;
|
|
104
|
+
serviceName: string;
|
|
105
|
+
type: FulfillmentServiceType;
|
|
106
|
+
};
|
|
107
|
+
image?: Image | null;
|
|
108
|
+
inventoryItem: {id: string};
|
|
109
|
+
inventoryManagement: ProductVariantInventoryManagement;
|
|
110
|
+
inventoryPolicy: ProductVariantInventoryPolicy;
|
|
111
|
+
inventoryQuantity?: number | null;
|
|
112
|
+
position: number;
|
|
113
|
+
price: Money;
|
|
114
|
+
product: Partial<Product>;
|
|
115
|
+
requiresShipping: boolean;
|
|
116
|
+
selectedOptions: {value?: string | null}[];
|
|
117
|
+
sku?: string | null;
|
|
118
|
+
taxable: boolean;
|
|
119
|
+
title: string;
|
|
120
|
+
weight?: number | null;
|
|
121
|
+
weightUnit: WeightUnit;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface Product extends Resource {
|
|
126
|
+
availablePublicationCount: number;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
descriptionHtml: string;
|
|
129
|
+
handle: string;
|
|
130
|
+
hasOnlyDefaultVariant: boolean;
|
|
131
|
+
images: Image[];
|
|
132
|
+
options: {
|
|
133
|
+
id: string;
|
|
134
|
+
name: string;
|
|
135
|
+
position: number;
|
|
136
|
+
values: string[];
|
|
137
|
+
}[];
|
|
138
|
+
productType: string;
|
|
139
|
+
publishedAt?: string | null;
|
|
140
|
+
tags: string[];
|
|
141
|
+
templateSuffix?: string | null;
|
|
142
|
+
title: string;
|
|
143
|
+
totalInventory: number;
|
|
144
|
+
totalVariants: number;
|
|
145
|
+
tracksInventory: boolean;
|
|
146
|
+
variants: Partial<ProductVariant>[];
|
|
147
|
+
vendor: string;
|
|
148
|
+
updatedAt: string;
|
|
149
|
+
status: ProductStatus;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface ResourceTypes {
|
|
153
|
+
product: Product;
|
|
154
|
+
variant: ProductVariant;
|
|
155
|
+
collection: Collection;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
type ResourceSelection<Type extends keyof ResourceTypes> = ResourceTypes[Type];
|
|
159
|
+
|
|
160
|
+
type WithSelection<T> = T & {
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
* @deprecated
|
|
164
|
+
*/
|
|
165
|
+
selection: T;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type SelectPayload<Type extends keyof ResourceTypes> = WithSelection<
|
|
169
|
+
ResourceSelection<Type>[]
|
|
170
|
+
>;
|
|
171
|
+
|
|
172
|
+
interface Filters {
|
|
173
|
+
/**
|
|
174
|
+
* Whether to show hidden resources, referring to products that are not published on any sales channels.
|
|
175
|
+
* @defaultValue true
|
|
176
|
+
*/
|
|
177
|
+
hidden?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Whether to show product variants. Only applies to the Product resource type picker.
|
|
180
|
+
* @defaultValue true
|
|
181
|
+
*/
|
|
182
|
+
variants?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Whether to show [draft products](https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability).
|
|
185
|
+
* Only applies to the Product resource type picker.
|
|
186
|
+
* Setting this to undefined will show a badge on draft products.
|
|
187
|
+
* @defaultValue true
|
|
188
|
+
*/
|
|
189
|
+
draft?: boolean | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Whether to show [archived products](https://help.shopify.com/en/manual/products/details?shpxid=70af7d87-E0F2-4973-8B09-B972AAF0ADFD#product-availability).
|
|
192
|
+
* Only applies to the Product resource type picker.
|
|
193
|
+
* Setting this to undefined will show a badge on draft products.
|
|
194
|
+
* @defaultValue true
|
|
195
|
+
*/
|
|
196
|
+
archived?: boolean | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* GraphQL initial search query for filtering resources available in the picker.
|
|
199
|
+
* See [search syntax](https://shopify.dev/docs/api/usage/search-syntax) for more information.
|
|
200
|
+
* This is not displayed in the search bar when the picker is opened.
|
|
201
|
+
*/
|
|
202
|
+
query?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface ResourcePickerOptions {
|
|
206
|
+
/**
|
|
207
|
+
* The type of resource you want to pick.
|
|
208
|
+
*/
|
|
209
|
+
type: 'product' | 'variant' | 'collection';
|
|
210
|
+
/**
|
|
211
|
+
* The action verb appears in the title and as the primary action of the Resource Picker.
|
|
212
|
+
* @defaultValue 'add'
|
|
213
|
+
*/
|
|
214
|
+
action?: 'add' | 'select';
|
|
215
|
+
/**
|
|
216
|
+
* Filters for what resource to show.
|
|
217
|
+
*/
|
|
218
|
+
filter?: Filters;
|
|
219
|
+
/**
|
|
220
|
+
* Whether to allow selecting multiple items of a specific type or not. If a number is provided, then limit the selections to a maximum of that number of items. When type is Product, the user may still select multiple variants of a single product, even if multiple is false.
|
|
221
|
+
* @defaultValue false
|
|
222
|
+
*/
|
|
223
|
+
multiple?: boolean | number;
|
|
224
|
+
/**
|
|
225
|
+
* GraphQL initial search query for filtering resources available in the picker. See [search syntax](https://shopify.dev/docs/api/usage/search-syntax) for more information.
|
|
226
|
+
* This is displayed in the search bar when the picker is opened and can be edited by users.
|
|
227
|
+
* For most use cases, you should use the `filter.query` option instead which doesn't show the query in the UI.
|
|
228
|
+
* @defaultValue ''
|
|
229
|
+
*/
|
|
230
|
+
query?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Resources that should be preselected when the picker is opened.
|
|
233
|
+
* @defaultValue []
|
|
234
|
+
*/
|
|
235
|
+
selectionIds?: BaseResource[];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type ResourcePickerApi = (
|
|
239
|
+
options: ResourcePickerOptions,
|
|
240
|
+
) => Promise<SelectPayload<ResourcePickerOptions['type']> | undefined>;
|
|
@@ -20,6 +20,13 @@ export interface GraphQLError {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
interface Auth {
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves a Shopify OpenID Connect ID token for the current user.
|
|
26
|
+
*/
|
|
27
|
+
idToken: () => Promise<string | null>;
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
/**
|
|
24
31
|
* The following APIs are provided to all extension targets.
|
|
25
32
|
*/
|
|
@@ -31,6 +38,11 @@ export interface StandardApi<ExtensionTarget extends AnyExtensionTarget> {
|
|
|
31
38
|
target: ExtensionTarget;
|
|
32
39
|
};
|
|
33
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Provides methods for authenticating calls to an app backend.
|
|
43
|
+
*/
|
|
44
|
+
auth: Auth;
|
|
45
|
+
|
|
34
46
|
/**
|
|
35
47
|
* Utilities for translating content according to the current localization of the admin.
|
|
36
48
|
* More info - https://shopify.dev/docs/apps/checkout/best-practices/localizing-ui-extensions
|
|
@@ -4,6 +4,7 @@ export type {Navigation} from './api/block/block';
|
|
|
4
4
|
export type {CustomerSegmentTemplateApi} from './api/customer-segment-template/customer-segment-template';
|
|
5
5
|
export type {ActionExtensionApi} from './api/action/action';
|
|
6
6
|
export type {BlockExtensionApi} from './api/block/block';
|
|
7
|
+
export type {PrintActionExtensionApi} from './api/print-action/print-action';
|
|
7
8
|
export type {ProductDetailsConfigurationApi} from './api/product-configuration/product-details-configuration';
|
|
8
9
|
export type {ProductVariantDetailsConfigurationApi} from './api/product-configuration/product-variant-details-configuration';
|
|
9
10
|
export type {OrderRoutingRuleApi} from './api/order-routing-rule/order-routing-rule';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
+
|
|
3
|
+
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
+
name: 'AdminPrintAction',
|
|
5
|
+
description:
|
|
6
|
+
'AdminPrintAction is a component used by admin print action extensions to denote a URL to print. Admin print action extensions require the use of this component.',
|
|
7
|
+
requires: '',
|
|
8
|
+
thumbnail: 'adminprintaction-thumbnail.png',
|
|
9
|
+
isVisualComponent: true,
|
|
10
|
+
type: '',
|
|
11
|
+
definitions: [
|
|
12
|
+
{
|
|
13
|
+
title: 'AdminPrintActionProps',
|
|
14
|
+
description: '',
|
|
15
|
+
type: 'AdminPrintActionProps',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
category: 'Components',
|
|
19
|
+
subCategory: 'Other',
|
|
20
|
+
defaultExample: {
|
|
21
|
+
image: 'adminprintaction-default.png',
|
|
22
|
+
codeblock: {
|
|
23
|
+
title: 'Set the source URL of the print action extension.',
|
|
24
|
+
tabs: [
|
|
25
|
+
{
|
|
26
|
+
title: 'React',
|
|
27
|
+
code: '../../../../../../ui-extensions-react/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.tsx',
|
|
28
|
+
language: 'tsx',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'JS',
|
|
32
|
+
code: './examples/basic-adminprintaction.example.ts',
|
|
33
|
+
language: 'js',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
related: [
|
|
39
|
+
{
|
|
40
|
+
type: 'component',
|
|
41
|
+
name: 'AdminAction',
|
|
42
|
+
url: '/docs/api/admin-extensions/components/other/adminaction',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: 'component',
|
|
46
|
+
name: 'AdminBlock',
|
|
47
|
+
url: '/docs/api/admin-extensions/components/other/adminblock',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default data;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface AdminPrintActionProps {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the src URL of the preview and the document to print.
|
|
6
|
+
* If not provided, the preview will show an empty state and the print button will be disabled.
|
|
7
|
+
* HTML, PDFs and images are supported.
|
|
8
|
+
*/
|
|
9
|
+
src?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* AdminPrintAction is a component used by Admin Print Action extensions to configure a src document to preview and print.
|
|
14
|
+
*/
|
|
15
|
+
export const AdminPrintAction = createRemoteComponent<
|
|
16
|
+
'AdminPrintAction',
|
|
17
|
+
AdminPrintActionProps
|
|
18
|
+
>('AdminPrintAction');
|
package/src/surfaces/admin/components/AdminPrintAction/examples/basic-adminprintaction.example.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {extension, AdminPrintAction, Text} from '@shopify/ui-extensions/admin';
|
|
2
|
+
|
|
3
|
+
export default extension('Playground', (root) => {
|
|
4
|
+
const adminPrintAction = root.createComponent(
|
|
5
|
+
AdminPrintAction,
|
|
6
|
+
{
|
|
7
|
+
src: 'https://example.com',
|
|
8
|
+
},
|
|
9
|
+
root.createComponent(Text, {fontWeight: 'bold'}, 'Modal content'),
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
root.append(adminPrintAction);
|
|
13
|
+
root.mount();
|
|
14
|
+
});
|
|
@@ -4,10 +4,12 @@ import type {
|
|
|
4
4
|
PaddingProps,
|
|
5
5
|
SizingProps,
|
|
6
6
|
} from '../shared';
|
|
7
|
+
import {DisplayProps} from '../shared/display';
|
|
7
8
|
|
|
8
9
|
export interface BoxProps
|
|
9
10
|
extends AccessibilityRoleProps,
|
|
10
11
|
SizingProps,
|
|
11
|
-
PaddingProps
|
|
12
|
+
PaddingProps,
|
|
13
|
+
DisplayProps {}
|
|
12
14
|
|
|
13
15
|
export const Box = createRemoteComponent<'Box', BoxProps>('Box');
|
|
@@ -4,6 +4,14 @@ import type {AccessibilityRole, AnchorProps} from '../shared';
|
|
|
4
4
|
export type ButtonProps = ButtonBaseProps | ButtonAnchorProps;
|
|
5
5
|
|
|
6
6
|
interface CommonProps {
|
|
7
|
+
/**
|
|
8
|
+
* A label that describes the purpose or contents of the Button. It will be read to users using assistive technologies such as screen readers.
|
|
9
|
+
*
|
|
10
|
+
* Use this when using only an icon or the button text is not enough context
|
|
11
|
+
* for users using assistive technologies.
|
|
12
|
+
*/
|
|
13
|
+
accessibilityLabel?: string;
|
|
14
|
+
|
|
7
15
|
/**
|
|
8
16
|
* A unique identifier for the button.
|
|
9
17
|
*/
|
|
@@ -96,7 +96,7 @@ interface ImageAltProp {
|
|
|
96
96
|
|
|
97
97
|
interface ImageSrcProp {
|
|
98
98
|
/**
|
|
99
|
-
* The image source (either a remote URL or a local file resource).
|
|
99
|
+
* The image source (either a remote URL or a local file resource; blob URLs are not currently supported).
|
|
100
100
|
*
|
|
101
101
|
* This property is available as an alias for `source` for compatibility with the HTML
|
|
102
102
|
* specification. When both are specified, `source` takes precedence.
|
|
@@ -109,7 +109,7 @@ interface ImageSrcProp {
|
|
|
109
109
|
|
|
110
110
|
interface ImageSourceProp {
|
|
111
111
|
/**
|
|
112
|
-
* The image source (either a remote URL or a local file resource).
|
|
112
|
+
* The image source (either a remote URL or a local file resource; blob URLs are not currently supported).
|
|
113
113
|
*
|
|
114
114
|
* A `src` property is available as an alias for this for compatibility with the HTML
|
|
115
115
|
* specification. When both are specified, `source` takes precedence.
|