@shopify/ui-extensions 2024.10.2 → 2025.1.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/checkout/components/ClipboardItem/ClipboardItem.js +16 -0
- package/build/cjs/surfaces/checkout.js +2 -0
- package/build/cjs/surfaces/customer-account.js +2 -0
- package/build/cjs/surfaces/point-of-sale/{components/Image/Image.js → render/components/Box/Box.js} +2 -2
- package/build/cjs/surfaces/point-of-sale/render/components/Image/Image.js +15 -0
- package/build/cjs/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.js +9 -0
- package/build/cjs/surfaces/point-of-sale/{components → render/components}/Stack/Stack.js +5 -0
- package/build/cjs/surfaces/point-of-sale/render/components/TextField/TextField.js +9 -0
- package/build/cjs/surfaces/point-of-sale.js +37 -35
- package/build/esm/surfaces/checkout/components/ClipboardItem/ClipboardItem.mjs +12 -0
- package/build/esm/surfaces/checkout.mjs +1 -0
- package/build/esm/surfaces/customer-account.mjs +1 -0
- package/build/esm/surfaces/point-of-sale/render/components/Box/Box.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/render/components/Image/Image.mjs +11 -0
- package/build/esm/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/{components → render/components}/Stack/Stack.mjs +5 -0
- package/build/esm/surfaces/point-of-sale/render/components/TextField/TextField.mjs +5 -0
- package/build/esm/surfaces/point-of-sale.mjs +35 -34
- package/build/esnext/surfaces/checkout/components/ClipboardItem/ClipboardItem.esnext +12 -0
- package/build/esnext/surfaces/checkout.esnext +1 -0
- package/build/esnext/surfaces/customer-account.esnext +1 -0
- package/build/esnext/surfaces/point-of-sale/render/components/Box/Box.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/render/components/Image/Image.esnext +11 -0
- package/build/esnext/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/{components → render/components}/Stack/Stack.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale/render/components/TextField/TextField.esnext +5 -0
- package/build/esnext/surfaces/point-of-sale.esnext +35 -34
- package/build/ts/shared.d.ts +7 -3
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +10 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +6 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +1 -2
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +1 -3
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts +12 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +28 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts +25 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +81 -0
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts.map +1 -0
- 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 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.d.ts +11 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/shared.d.ts +1 -0
- package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts +10 -0
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -0
- 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/AdminBlock/AdminBlock.d.ts +2 -4
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts +1 -1
- package/build/ts/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/shared/index.d.ts +1 -1
- package/build/ts/surfaces/admin/components/shared/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +134 -2
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/globals.d.ts +3 -0
- package/build/ts/surfaces/admin/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +27 -11
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Badge/Badge.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts +3 -3
- package/build/ts/surfaces/checkout/components/Button/Button.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Chat/Chat.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.d.ts +30 -0
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.d.ts.map +1 -0
- 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/Link/Link.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Link/Link.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts +2 -2
- package/build/ts/surfaces/checkout/components/Pressable/Pressable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/shared.d.ts +21 -0
- 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/globals.d.ts +1 -3
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets.d.ts +0 -66
- package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +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/globals.d.ts +1 -3
- package/build/ts/surfaces/customer-account/globals.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +23 -23
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components.d.ts +76 -71
- package/build/ts/surfaces/point-of-sale/components.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/globals.d.ts +1 -3
- package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/input.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/input.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/intent.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/intent.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/action-target-api/action-target-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{api → render/api}/cart-api/cart-api.d.ts +10 -9
- package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{api → render/api}/product-search-api/product-search-api.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{api → render/api}/session-api/session-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/standard/standard-api.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/render/api/standard/standard-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Box/Box.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/render/components/Box/Box.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/DateField/DateField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/EmailField/EmailField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{components → render/components}/FormattedTextField/FormattedTextField.d.ts +0 -9
- package/build/ts/surfaces/point-of-sale/render/components/FormattedTextField/FormattedTextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +25 -0
- package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{components → render/components}/List/List.d.ts +0 -6
- package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/ScrollView/ScrollView.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +102 -0
- package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{components → render/components}/TextField/TextField.d.ts +1 -10
- package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/auto-capitalization-type.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +117 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{components/Spacing/Spacing.d.ts → render/components/shared/deprecated-types.d.ts} +2 -1
- package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +28 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/run/input/BaseInput.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/run/input/BaseInput.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/run/intent/BaseIntent.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/run/intent/BaseIntent.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/targets.d.ts +8 -8
- package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/{api/types → types}/cart.d.ts +1 -4
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{api/types → types}/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/{api/types → types}/session.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/shared.ts +46 -1
- package/src/surfaces/admin/api/action/action.doc.ts +1 -0
- package/src/surfaces/admin/api/action/action.ts +12 -0
- package/src/surfaces/admin/api/block/block.doc.ts +1 -0
- package/src/surfaces/admin/api/block/block.ts +7 -1
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +0 -1
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +1 -46
- package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +1 -6
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.ts +27 -0
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.ts +15 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +29 -0
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +31 -0
- package/src/surfaces/admin/api/picker/examples/direct-api.js +73 -0
- package/src/surfaces/admin/api/picker/examples/disabled.js +16 -0
- package/src/surfaces/admin/api/picker/examples/minimal.js +16 -0
- package/src/surfaces/admin/api/picker/examples/multiple-limit.js +21 -0
- package/src/surfaces/admin/api/picker/examples/multiple-true.js +21 -0
- package/src/surfaces/admin/api/picker/examples/preselected.js +16 -0
- package/src/surfaces/admin/api/picker/examples/template-picker.js +37 -0
- package/src/surfaces/admin/api/picker/picker.doc.ts +113 -0
- package/src/surfaces/admin/api/picker/picker.ts +83 -0
- package/src/surfaces/admin/api/print-action/print-action.doc.ts +1 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +12 -0
- package/src/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.ts +10 -0
- package/src/surfaces/admin/api/resource-picker/examples/action.js +4 -0
- package/src/surfaces/admin/api/resource-picker/examples/collection-picker.js +1 -0
- package/src/surfaces/admin/api/resource-picker/examples/filter-query.js +6 -0
- package/src/surfaces/admin/api/resource-picker/examples/filters.js +9 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-limited.js +4 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-unlimited.js +4 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-picker.js +3 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-variant-picker.js +1 -0
- package/src/surfaces/admin/api/resource-picker/examples/query.js +4 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection-ids.js +16 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection.js +7 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.doc.ts +163 -0
- package/src/surfaces/admin/api/shared.ts +44 -0
- package/src/surfaces/admin/api/should-render/should-render.doc.ts +20 -0
- package/src/surfaces/admin/api/should-render/should-render.ts +11 -0
- package/src/surfaces/admin/api/standard/standard.doc.ts +1 -1
- package/src/surfaces/admin/api.ts +1 -0
- package/src/surfaces/admin/components/AdminBlock/AdminBlock.ts +2 -4
- package/src/surfaces/admin/components/InternalCustomerSegmentTemplate/InternalCustomerSegmentTemplate.ts +1 -0
- package/src/surfaces/admin/components/shared/index.ts +1 -1
- package/src/surfaces/admin/extension-targets.ts +260 -1
- package/src/surfaces/admin/globals.ts +7 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
- package/src/surfaces/checkout/api/docs.ts +3 -0
- package/src/surfaces/checkout/api/standard/standard.ts +30 -12
- package/src/surfaces/checkout/components/Badge/Badge.ts +1 -1
- package/src/surfaces/checkout/components/Button/Button.ts +3 -1
- package/src/surfaces/checkout/components/Chat/AppBridge.ts +4 -4
- package/src/surfaces/checkout/components/Chat/Chat.doc.ts +2 -2
- package/src/surfaces/checkout/components/Chat/Chat.ts +2 -2
- package/src/surfaces/checkout/components/Chat/examples/app-bridge-communication.example.js +4 -1
- package/src/surfaces/checkout/components/Chat/examples/app-bridge-resize.example.html +2 -2
- package/src/surfaces/checkout/components/Chat/examples/chat-custom-properties-css.example.css +2 -4
- package/src/surfaces/checkout/components/Chat/examples/include-app-bridge.example.html +1 -1
- package/src/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.ts +74 -0
- package/src/surfaces/checkout/components/ClipboardItem/ClipboardItem.ts +34 -0
- package/src/surfaces/checkout/components/ClipboardItem/examples/basic-clipboarditem.example.ts +21 -0
- package/src/surfaces/checkout/components/Icon/Icon.ts +2 -0
- package/src/surfaces/checkout/components/Link/Link.ts +3 -1
- package/src/surfaces/checkout/components/Pressable/Pressable.ts +2 -0
- package/src/surfaces/checkout/components/QRCode/QRCode.doc.ts +13 -2
- package/src/surfaces/checkout/components/QRCode/examples/basic-qrcode.example.ts +12 -1
- package/src/surfaces/checkout/components/shared.ts +22 -0
- package/src/surfaces/checkout/components.ts +3 -0
- package/src/surfaces/checkout/globals.ts +4 -6
- package/src/surfaces/checkout/helper.docs.ts +18 -0
- package/src/surfaces/checkout/style/examples/defaultstyle.example.tsx +1 -1
- package/src/surfaces/checkout/style/examples/hiding.example.tsx +1 -1
- package/src/surfaces/checkout/style/examples/simplecondition.example.tsx +1 -1
- package/src/surfaces/checkout/targets.ts +0 -133
- package/src/surfaces/checkout.ts +6 -1
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +1 -1
- package/src/surfaces/customer-account/components/shared-checkout-components.ts +2 -0
- package/src/surfaces/customer-account/globals.ts +4 -6
- package/src/surfaces/point-of-sale/api.ts +34 -28
- package/src/surfaces/point-of-sale/components.ts +107 -73
- package/src/surfaces/point-of-sale/globals.ts +4 -6
- package/src/surfaces/point-of-sale/input.ts +3 -0
- package/src/surfaces/point-of-sale/intent.ts +1 -0
- package/src/surfaces/point-of-sale/{api → render/api}/cart-api/cart-api.ts +12 -14
- package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +18 -0
- package/src/surfaces/point-of-sale/{api → render/api}/product-search-api/product-search-api.ts +3 -3
- package/src/surfaces/point-of-sale/{api → render/api}/session-api/session-api.ts +1 -1
- package/src/surfaces/point-of-sale/render/api/standard/standard-api.ts +17 -0
- package/src/surfaces/point-of-sale/render/components/Box/Box.ts +6 -0
- package/src/surfaces/point-of-sale/{components → render/components}/FormattedTextField/FormattedTextField.ts +0 -9
- package/src/surfaces/point-of-sale/render/components/Image/Image.ts +31 -0
- package/src/surfaces/point-of-sale/{components → render/components}/List/List.ts +0 -6
- package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +13 -0
- package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +122 -0
- package/src/surfaces/point-of-sale/{components → render/components}/TextField/TextField.ts +2 -13
- package/src/surfaces/point-of-sale/render/components/shared/box.ts +131 -0
- package/src/surfaces/point-of-sale/{components/Spacing/Spacing.ts → render/components/shared/deprecated-types.ts} +16 -0
- package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +35 -0
- package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +25 -0
- package/src/surfaces/point-of-sale/run/input/BaseInput.ts +8 -0
- package/src/surfaces/point-of-sale/run/intent/BaseIntent.ts +8 -0
- package/src/surfaces/point-of-sale/targets.ts +8 -17
- package/src/surfaces/point-of-sale/{api/types → types}/cart.ts +5 -4
- package/src/surfaces/point-of-sale/types/device.ts +14 -0
- package/src/surfaces/point-of-sale/{api/types → types}/session.ts +7 -0
- package/src/surfaces/point-of-sale.ts +2 -0
- package/build/cjs/surfaces/point-of-sale/components/ActionItem/ActionItem.js +0 -16
- package/build/cjs/surfaces/point-of-sale/components/TextField/TextField.js +0 -15
- package/build/esm/surfaces/point-of-sale/components/ActionItem/ActionItem.mjs +0 -12
- package/build/esm/surfaces/point-of-sale/components/Image/Image.mjs +0 -5
- package/build/esm/surfaces/point-of-sale/components/TextField/TextField.mjs +0 -11
- package/build/esnext/surfaces/point-of-sale/components/ActionItem/ActionItem.esnext +0 -12
- package/build/esnext/surfaces/point-of-sale/components/Image/Image.esnext +0 -5
- package/build/esnext/surfaces/point-of-sale/components/TextField/TextField.esnext +0 -11
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts +0 -17
- package/build/ts/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +0 -12
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/types/cart.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/types/multiple-resource-result.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/types/paginated-result.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/types/product.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/api/types/session.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts +0 -24
- package/build/ts/surfaces/point-of-sale/components/ActionItem/ActionItem.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/CameraScanner/CameraScanner.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Dialog/Dialog.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/FormattedTextField/FormattedTextField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts +0 -12
- package/build/ts/surfaces/point-of-sale/components/Image/Image.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/List/List.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Navigator/Navigator.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlock.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/POSBlock/POSBlockRow.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/PinPad/PinPad.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/RadioButtonList/RadioButtonList.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Screen/Screen.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/ScrollView/ScrollView.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/SearchBar/SearchBar.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Section/Section.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/SectionHeader/SectionHeader.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/SegmentedControl/SegmentedControl.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Selectable/Selectable.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Spacing/Spacing.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts +0 -44
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Stepper/Stepper.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Text/Text.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/shared/BaseTextField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/shared/InputField.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/shared/auto-capitalization-type.d.ts.map +0 -1
- package/src/surfaces/checkout/components/Chat/examples/chat-media-query.example.css +0 -9
- package/src/surfaces/point-of-sale/api/smartgrid-api/smartgrid-api.ts +0 -17
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +0 -15
- package/src/surfaces/point-of-sale/components/ActionItem/ActionItem.ts +0 -24
- package/src/surfaces/point-of-sale/components/Image/Image.ts +0 -10
- package/src/surfaces/point-of-sale/components/Stack/Stack.ts +0 -63
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Badge/Badge.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Banner/Banner.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Button/Button.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/CameraScanner/CameraScanner.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/DateField/DateField.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/DatePicker/DatePicker.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Dialog/Dialog.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/EmailField/EmailField.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/FormattedTextField/FormattedTextField.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Icon/Icon.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/List/List.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Navigator/Navigator.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/NumberField/NumberField.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlock.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlockRow.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/PinPad/PinPad.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/RadioButtonList/RadioButtonList.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Screen/Screen.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/ScrollView/ScrollView.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/SearchBar/SearchBar.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Section/Section.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/SectionHeader/SectionHeader.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/SegmentedControl/SegmentedControl.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Selectable/Selectable.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Stepper/Stepper.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Text/Text.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/TextArea/TextArea.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/Tile/Tile.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/TimeField/TimeField.js +0 -0
- /package/build/cjs/surfaces/point-of-sale/{components → render/components}/TimePicker/TimePicker.js +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Badge/Badge.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Banner/Banner.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Button/Button.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/CameraScanner/CameraScanner.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/DateField/DateField.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/DatePicker/DatePicker.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Dialog/Dialog.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/EmailField/EmailField.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/FormattedTextField/FormattedTextField.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Icon/Icon.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/List/List.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Navigator/Navigator.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/NumberField/NumberField.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlock.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlockRow.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/PinPad/PinPad.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/RadioButtonList/RadioButtonList.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Screen/Screen.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/ScrollView/ScrollView.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/SearchBar/SearchBar.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Section/Section.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/SectionHeader/SectionHeader.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/SegmentedControl/SegmentedControl.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Selectable/Selectable.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Stepper/Stepper.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Text/Text.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/TextArea/TextArea.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/Tile/Tile.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/TimeField/TimeField.mjs +0 -0
- /package/build/esm/surfaces/point-of-sale/{components → render/components}/TimePicker/TimePicker.mjs +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Badge/Badge.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Banner/Banner.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Button/Button.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/CameraScanner/CameraScanner.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/DateField/DateField.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/DatePicker/DatePicker.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Dialog/Dialog.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/EmailField/EmailField.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/FormattedTextField/FormattedTextField.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Icon/Icon.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/List/List.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Navigator/Navigator.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/NumberField/NumberField.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlock.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlockRow.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/PinPad/PinPad.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/RadioButtonList/RadioButtonList.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Screen/Screen.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/ScrollView/ScrollView.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/SearchBar/SearchBar.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Section/Section.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/SectionHeader/SectionHeader.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/SegmentedControl/SegmentedControl.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Selectable/Selectable.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Stepper/Stepper.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Text/Text.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/TextArea/TextArea.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/Tile/Tile.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/TimeField/TimeField.esnext +0 -0
- /package/build/esnext/surfaces/point-of-sale/{components → render/components}/TimePicker/TimePicker.esnext +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/action-api/action-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/action-target-api/action-target-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/connectivity-api/connectivity-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/customer-api/customer-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/device-api/device-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/draft-order-api/draft-order-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/locale-api/locale-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/navigation-api/navigation-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/order-api/order-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/product-api/product-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/scanner-api/scanner-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api → render/api}/toast-api/toast-api.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Badge/Badge.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Banner/Banner.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Button/Button.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/CameraScanner/CameraScanner.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/DateField/DateField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/DatePicker/DatePicker.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Dialog/Dialog.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/EmailField/EmailField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Icon/Icon.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Navigator/Navigator.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/NumberField/NumberField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlock.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlockRow.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/PinPad/PinPad.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/RadioButtonList/RadioButtonList.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Screen/Screen.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/ScrollView/ScrollView.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/SearchBar/SearchBar.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Section/Section.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/SectionHeader/SectionHeader.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/SegmentedControl/SegmentedControl.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Selectable/Selectable.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Stepper/Stepper.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Text/Text.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/TextArea/TextArea.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/Tile/Tile.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/TimeField/TimeField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/TimePicker/TimePicker.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/shared/BaseTextField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/shared/InputField.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{components → render/components}/shared/auto-capitalization-type.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api/types → types}/country-code.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api/types → types}/multiple-resource-result.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api/types → types}/paginated-result.d.ts +0 -0
- /package/build/ts/surfaces/point-of-sale/{api/types → types}/product.d.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/action-api/action-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/action-target-api/action-target-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/connectivity-api/connectivity-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/customer-api/customer-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/device-api/device-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/draft-order-api/draft-order-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/locale-api/locale-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/navigation-api/navigation-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api/order-api/order-api.tsx → render/api/order-api/order-api.ts} +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/product-api/product-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/scanner-api/scanner-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{api → render/api}/toast-api/toast-api.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Badge/Badge.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Banner/Banner.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Button/Button.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/CameraScanner/CameraScanner.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/DateField/DateField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/DatePicker/DatePicker.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Dialog/Dialog.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/EmailField/EmailField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Icon/Icon.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Navigator/Navigator.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/NumberField/NumberField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlock.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/POSBlock/POSBlockRow.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/PinPad/PinPad.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/RadioButtonList/RadioButtonList.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Screen/Screen.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/ScrollView/ScrollView.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/SearchBar/SearchBar.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Section/Section.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/SectionHeader/SectionHeader.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/SegmentedControl/SegmentedControl.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Selectable/Selectable.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Stepper/Stepper.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Text/Text.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/TextArea/TextArea.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/Tile/Tile.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/TimeField/TimeField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/TimePicker/TimePicker.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/shared/BaseTextField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/shared/InputField.ts +0 -0
- /package/src/surfaces/point-of-sale/{components → render/components}/shared/auto-capitalization-type.ts +0 -0
- /package/src/surfaces/point-of-sale/{api/types → types}/country-code.ts +0 -0
- /package/src/surfaces/point-of-sale/{api/types → types}/multiple-resource-result.ts +0 -0
- /package/src/surfaces/point-of-sale/{api/types → types}/paginated-result.ts +0 -0
- /package/src/surfaces/point-of-sale/{api/types → types}/product.ts +0 -0
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {ActionItemProps} from './components/ActionItem/ActionItem';
|
|
3
|
-
export {Badge} from './components/Badge/Badge';
|
|
1
|
+
export {Badge} from './render/components/Badge/Badge';
|
|
4
2
|
export type {
|
|
5
3
|
BadgeProps,
|
|
6
4
|
BadgeStatus,
|
|
7
5
|
BadgeVariant,
|
|
8
|
-
} from './components/Badge/Badge';
|
|
9
|
-
export {Banner} from './components/Banner/Banner';
|
|
10
|
-
export type {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export
|
|
21
|
-
export {
|
|
22
|
-
export
|
|
23
|
-
export {
|
|
6
|
+
} from './render/components/Badge/Badge';
|
|
7
|
+
export {Banner} from './render/components/Banner/Banner';
|
|
8
|
+
export type {
|
|
9
|
+
BannerProps,
|
|
10
|
+
BannerVariant,
|
|
11
|
+
} from './render/components/Banner/Banner';
|
|
12
|
+
export {Box} from './render/components/Box/Box';
|
|
13
|
+
export type {BoxProps} from './render/components/Box/Box';
|
|
14
|
+
export {Button} from './render/components/Button/Button';
|
|
15
|
+
export type {ButtonProps, ButtonType} from './render/components/Button/Button';
|
|
16
|
+
export {CameraScanner} from './render/components/CameraScanner/CameraScanner';
|
|
17
|
+
export type {CameraScannerProps} from './render/components/CameraScanner/CameraScanner';
|
|
18
|
+
export {DateField} from './render/components/DateField/DateField';
|
|
19
|
+
export type {DateFieldProps} from './render/components/DateField/DateField';
|
|
20
|
+
export {DatePicker} from './render/components/DatePicker/DatePicker';
|
|
21
|
+
export type {DatePickerProps} from './render/components/DatePicker/DatePicker';
|
|
22
|
+
export {Dialog} from './render/components/Dialog/Dialog';
|
|
23
|
+
export type {DialogProps, DialogType} from './render/components/Dialog/Dialog';
|
|
24
|
+
export {EmailField} from './render/components/EmailField/EmailField';
|
|
25
|
+
export type {EmailFieldProps} from './render/components/EmailField/EmailField';
|
|
26
|
+
export {FormattedTextField} from './render/components/FormattedTextField/FormattedTextField';
|
|
24
27
|
export type {
|
|
25
28
|
FormattedTextFieldProps,
|
|
26
29
|
InputType,
|
|
27
|
-
} from './components/FormattedTextField/FormattedTextField';
|
|
28
|
-
export {Icon} from './components/Icon/Icon';
|
|
29
|
-
export type {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
} from './render/components/FormattedTextField/FormattedTextField';
|
|
31
|
+
export {Icon} from './render/components/Icon/Icon';
|
|
32
|
+
export type {
|
|
33
|
+
IconProps,
|
|
34
|
+
IconName,
|
|
35
|
+
IconSize,
|
|
36
|
+
} from './render/components/Icon/Icon';
|
|
37
|
+
export {Image} from './render/components/Image/Image';
|
|
38
|
+
export type {
|
|
39
|
+
ImageProps,
|
|
40
|
+
ImageSize,
|
|
41
|
+
FillResizeMode,
|
|
42
|
+
} from './render/components/Image/Image';
|
|
43
|
+
export {List} from './render/components/List/List';
|
|
33
44
|
export type {
|
|
34
45
|
ListProps,
|
|
35
46
|
ListRow,
|
|
@@ -38,75 +49,98 @@ export type {
|
|
|
38
49
|
ListRowLeftSide,
|
|
39
50
|
ListRowRightSide,
|
|
40
51
|
ListRowSubtitle,
|
|
41
|
-
} from './components/List/List';
|
|
42
|
-
export {Navigator} from './components/Navigator/Navigator';
|
|
43
|
-
export type {NavigatorProps} from './components/Navigator/Navigator';
|
|
44
|
-
export {NumberField} from './components/NumberField/NumberField';
|
|
45
|
-
export type {NumberFieldProps} from './components/NumberField/NumberField';
|
|
46
|
-
export {PinPad} from './components/PinPad/PinPad';
|
|
52
|
+
} from './render/components/List/List';
|
|
53
|
+
export {Navigator} from './render/components/Navigator/Navigator';
|
|
54
|
+
export type {NavigatorProps} from './render/components/Navigator/Navigator';
|
|
55
|
+
export {NumberField} from './render/components/NumberField/NumberField';
|
|
56
|
+
export type {NumberFieldProps} from './render/components/NumberField/NumberField';
|
|
57
|
+
export {PinPad} from './render/components/PinPad/PinPad';
|
|
47
58
|
export type {
|
|
48
59
|
PinPadProps,
|
|
49
60
|
PinLength,
|
|
50
61
|
PinPadActionType,
|
|
51
62
|
PinValidationResult,
|
|
52
|
-
} from './components/PinPad/PinPad';
|
|
53
|
-
export {POSBlock} from './components/POSBlock/POSBlock';
|
|
54
|
-
export type {POSBlockProps} from './components/POSBlock/POSBlock';
|
|
55
|
-
export {POSBlockRow} from './components/POSBlock/POSBlockRow';
|
|
56
|
-
export type {POSBlockRowProps} from './components/POSBlock/POSBlockRow';
|
|
57
|
-
export {
|
|
58
|
-
export type {
|
|
59
|
-
export {
|
|
63
|
+
} from './render/components/PinPad/PinPad';
|
|
64
|
+
export {POSBlock} from './render/components/POSBlock/POSBlock';
|
|
65
|
+
export type {POSBlockProps} from './render/components/POSBlock/POSBlock';
|
|
66
|
+
export {POSBlockRow} from './render/components/POSBlock/POSBlockRow';
|
|
67
|
+
export type {POSBlockRowProps} from './render/components/POSBlock/POSBlockRow';
|
|
68
|
+
export {PrintPreview} from './render/components/PrintPreview/PrintPreview';
|
|
69
|
+
export type {PrintPreviewProps} from './render/components/PrintPreview/PrintPreview';
|
|
70
|
+
export {RadioButtonList} from './render/components/RadioButtonList/RadioButtonList';
|
|
71
|
+
export type {RadioButtonListProps} from './render/components/RadioButtonList/RadioButtonList';
|
|
72
|
+
export {Screen} from './render/components/Screen/Screen';
|
|
60
73
|
export type {
|
|
61
74
|
ScreenProps,
|
|
62
75
|
ScreenPresentationProps,
|
|
63
76
|
SecondaryActionProps,
|
|
64
|
-
} from './components/Screen/Screen';
|
|
65
|
-
export {ScrollView} from './components/ScrollView/ScrollView';
|
|
66
|
-
export {SearchBar} from './components/SearchBar/SearchBar';
|
|
67
|
-
export type {SearchBarProps} from './components/SearchBar/SearchBar';
|
|
68
|
-
export {Section} from './components/Section/Section';
|
|
77
|
+
} from './render/components/Screen/Screen';
|
|
78
|
+
export {ScrollView} from './render/components/ScrollView/ScrollView';
|
|
79
|
+
export {SearchBar} from './render/components/SearchBar/SearchBar';
|
|
80
|
+
export type {SearchBarProps} from './render/components/SearchBar/SearchBar';
|
|
81
|
+
export {Section} from './render/components/Section/Section';
|
|
69
82
|
export type {
|
|
70
83
|
SectionProps,
|
|
71
84
|
SectionHeaderAction,
|
|
72
|
-
} from './components/Section/Section';
|
|
73
|
-
export {SegmentedControl} from './components/SegmentedControl/SegmentedControl';
|
|
85
|
+
} from './render/components/Section/Section';
|
|
86
|
+
export {SegmentedControl} from './render/components/SegmentedControl/SegmentedControl';
|
|
74
87
|
export type {
|
|
75
88
|
SegmentedControlProps,
|
|
76
89
|
Segment,
|
|
77
|
-
} from './components/SegmentedControl/SegmentedControl';
|
|
78
|
-
export {Selectable} from './components/Selectable/Selectable';
|
|
79
|
-
export type {SelectableProps} from './components/Selectable/Selectable';
|
|
90
|
+
} from './render/components/SegmentedControl/SegmentedControl';
|
|
91
|
+
export {Selectable} from './render/components/Selectable/Selectable';
|
|
92
|
+
export type {SelectableProps} from './render/components/Selectable/Selectable';
|
|
80
93
|
export type {
|
|
81
94
|
VerticalSpacing,
|
|
82
95
|
HorizontalSpacing,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export
|
|
86
|
-
export {
|
|
87
|
-
export type {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
export type {
|
|
94
|
-
|
|
96
|
+
Spacing,
|
|
97
|
+
} from './render/components/shared/deprecated-types';
|
|
98
|
+
export {Stack} from './render/components/Stack/Stack';
|
|
99
|
+
export type {StackProps} from './render/components/Stack/Stack';
|
|
100
|
+
export type {
|
|
101
|
+
SpacingKeyword,
|
|
102
|
+
ContentPosition,
|
|
103
|
+
ContentDistribution,
|
|
104
|
+
} from './render/components/shared/inner-layouts';
|
|
105
|
+
export {Stepper} from './render/components/Stepper/Stepper';
|
|
106
|
+
export type {StepperProps} from './render/components/Stepper/Stepper';
|
|
107
|
+
export {Text} from './render/components/Text/Text';
|
|
108
|
+
export type {
|
|
109
|
+
TextProps,
|
|
110
|
+
ColorType,
|
|
111
|
+
TextVariant,
|
|
112
|
+
} from './render/components/Text/Text';
|
|
113
|
+
export {TextArea} from './render/components/TextArea/TextArea';
|
|
114
|
+
export type {TextAreaProps} from './render/components/TextArea/TextArea';
|
|
115
|
+
export {TextField} from './render/components/TextField/TextField';
|
|
116
|
+
export type {
|
|
95
117
|
NewTextFieldProps,
|
|
96
118
|
ActionProps,
|
|
97
119
|
InfoProps,
|
|
98
120
|
SuccessProps,
|
|
99
121
|
PasswordProps,
|
|
100
122
|
EmbeddedElementProps,
|
|
101
|
-
} from './components/TextField/TextField';
|
|
102
|
-
export {Tile} from './components/Tile/Tile';
|
|
103
|
-
export type {TileProps} from './components/Tile/Tile';
|
|
104
|
-
export {TimeField} from './components/TimeField/TimeField';
|
|
105
|
-
export type {TimeFieldProps} from './components/TimeField/TimeField';
|
|
106
|
-
export {TimePicker} from './components/TimePicker/TimePicker';
|
|
107
|
-
export type {TimePickerProps} from './components/TimePicker/TimePicker';
|
|
108
|
-
export type {BaseTextFieldProps} from './components/shared/BaseTextField';
|
|
109
|
-
export type {AutoCapitalizationType} from './components/shared/auto-capitalization-type';
|
|
110
|
-
export type {
|
|
111
|
-
|
|
112
|
-
|
|
123
|
+
} from './render/components/TextField/TextField';
|
|
124
|
+
export {Tile} from './render/components/Tile/Tile';
|
|
125
|
+
export type {TileProps} from './render/components/Tile/Tile';
|
|
126
|
+
export {TimeField} from './render/components/TimeField/TimeField';
|
|
127
|
+
export type {TimeFieldProps} from './render/components/TimeField/TimeField';
|
|
128
|
+
export {TimePicker} from './render/components/TimePicker/TimePicker';
|
|
129
|
+
export type {TimePickerProps} from './render/components/TimePicker/TimePicker';
|
|
130
|
+
export type {BaseTextFieldProps} from './render/components/shared/BaseTextField';
|
|
131
|
+
export type {AutoCapitalizationType} from './render/components/shared/auto-capitalization-type';
|
|
132
|
+
export type {
|
|
133
|
+
InputAction,
|
|
134
|
+
InputProps,
|
|
135
|
+
} from './render/components/shared/InputField';
|
|
136
|
+
export {SectionHeader} from './render/components/SectionHeader/SectionHeader';
|
|
137
|
+
export type {SectionHeaderProps} from './render/components/SectionHeader/SectionHeader';
|
|
138
|
+
|
|
139
|
+
export type {
|
|
140
|
+
PaddingProps,
|
|
141
|
+
SizingProps,
|
|
142
|
+
SizeUnits,
|
|
143
|
+
SizeUnitsOrAuto,
|
|
144
|
+
SizeUnitsOrNone,
|
|
145
|
+
} from './render/components/shared/box';
|
|
146
|
+
export type {SizeKeyword} from './render/components/shared/sizes';
|
|
@@ -9,10 +9,8 @@ export interface ShopifyGlobal {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare global {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly shopify: ShopifyGlobal;
|
|
17
|
-
}
|
|
12
|
+
// conflicts with build/ts/globals.d.ts
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
const shopify: ShopifyGlobal;
|
|
18
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type {BaseIntent} from './run/intent/BaseIntent';
|
|
@@ -2,11 +2,12 @@ import type {RemoteSubscribable} from '@remote-ui/async-subscription';
|
|
|
2
2
|
import type {
|
|
3
3
|
Address,
|
|
4
4
|
Cart,
|
|
5
|
+
CartUpdateInput,
|
|
5
6
|
Customer,
|
|
6
7
|
CustomSale,
|
|
7
8
|
SetLineItemDiscountInput,
|
|
8
9
|
SetLineItemPropertiesInput,
|
|
9
|
-
} from '
|
|
10
|
+
} from '../../../types/cart';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Access and modify the merchant’s current cart.
|
|
@@ -15,17 +16,6 @@ export interface CartApi {
|
|
|
15
16
|
cart: CartApiContent;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* PriceOverride is no longer supported. Code discounts are only supported at the Cart level.
|
|
21
|
-
* Please migrate to using CartDiscountType and LineItemDiscountType as soon as possible.
|
|
22
|
-
*/
|
|
23
|
-
export type DiscountType =
|
|
24
|
-
| 'Percentage'
|
|
25
|
-
| 'FixedAmount'
|
|
26
|
-
| 'PriceOverride'
|
|
27
|
-
| 'Code';
|
|
28
|
-
|
|
29
19
|
export type CartDiscountType = 'Percentage' | 'FixedAmount' | 'Code';
|
|
30
20
|
|
|
31
21
|
export type LineItemDiscountType = 'Percentage' | 'FixedAmount';
|
|
@@ -38,6 +28,12 @@ export interface CartApiContent {
|
|
|
38
28
|
*/
|
|
39
29
|
subscribable: RemoteSubscribable<Cart>;
|
|
40
30
|
|
|
31
|
+
/** Bulk update the cart
|
|
32
|
+
* @param cartState the cart state to set
|
|
33
|
+
* @returns the updated cart
|
|
34
|
+
*/
|
|
35
|
+
bulkCartUpdate(cartState: CartUpdateInput): Promise<Cart>;
|
|
36
|
+
|
|
41
37
|
/** Apply a cart level discount
|
|
42
38
|
* @param type the type of discount applied (example: 'Percentage')
|
|
43
39
|
* @param title the title attributed with the discount
|
|
@@ -75,14 +71,16 @@ export interface CartApiContent {
|
|
|
75
71
|
|
|
76
72
|
/** Add a custom sale to the cart
|
|
77
73
|
* @param customSale the custom sale object to add to the cart
|
|
74
|
+
* @returns {string} the uuid of the line item added
|
|
78
75
|
*/
|
|
79
|
-
addCustomSale(customSale: CustomSale): Promise<
|
|
76
|
+
addCustomSale(customSale: CustomSale): Promise<string>;
|
|
80
77
|
|
|
81
78
|
/** Add a line item by variant ID to the cart
|
|
82
79
|
* @param variantId the product variant's numeric ID to add to the cart
|
|
83
80
|
* @param quantity the number of this variant to add to the cart
|
|
81
|
+
* @returns {string} the uuid of the line item added
|
|
84
82
|
*/
|
|
85
|
-
addLineItem(variantId: number, quantity: number): Promise<
|
|
83
|
+
addLineItem(variantId: number, quantity: number): Promise<string>;
|
|
86
84
|
|
|
87
85
|
/** Remove the line item at this uuid from the cart
|
|
88
86
|
* @param uuid the uuid of the line item that should be removed
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Access the print API for printing functionality
|
|
3
|
+
*/
|
|
4
|
+
export interface PrintApiContent {
|
|
5
|
+
/**
|
|
6
|
+
* Trigger a print dialog.
|
|
7
|
+
* @param src the source URL of the content to print. This URL must be a path of the app backend. Valid document types are text, HTML, image, and PDF.
|
|
8
|
+
* @returns Promise<void> that resolves when content is ready and native print dialog appears.
|
|
9
|
+
*/
|
|
10
|
+
print(src: string): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Interface for printing
|
|
15
|
+
*/
|
|
16
|
+
export interface PrintApi {
|
|
17
|
+
print: PrintApiContent;
|
|
18
|
+
}
|
package/src/surfaces/point-of-sale/{api → render/api}/product-search-api/product-search-api.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {MultipleResourceResult} from '
|
|
2
|
-
import type {PaginatedResult} from '
|
|
3
|
-
import type {Product, ProductVariant} from '
|
|
1
|
+
import type {MultipleResourceResult} from '../../../types/multiple-resource-result';
|
|
2
|
+
import type {PaginatedResult} from '../../../types/paginated-result';
|
|
3
|
+
import type {Product, ProductVariant} from '../../../types/product';
|
|
4
4
|
|
|
5
5
|
export type ProductSortType =
|
|
6
6
|
| 'RECENTLY_ADDED'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {ConnectivityApi} from '../connectivity-api/connectivity-api';
|
|
2
|
+
import {DeviceApi} from '../device-api/device-api';
|
|
3
|
+
import {LocaleApi} from '../locale-api/locale-api';
|
|
4
|
+
import {SessionApi} from '../session-api/session-api';
|
|
5
|
+
import {ToastApi} from '../toast-api/toast-api';
|
|
6
|
+
import {ProductSearchApi} from '../product-search-api/product-search-api';
|
|
7
|
+
import {PrintApi} from '../print-api/print-api';
|
|
8
|
+
|
|
9
|
+
export type StandardApi<T> = {[key: string]: any} & {
|
|
10
|
+
extensionPoint: T;
|
|
11
|
+
} & LocaleApi &
|
|
12
|
+
ToastApi &
|
|
13
|
+
SessionApi &
|
|
14
|
+
PrintApi &
|
|
15
|
+
ProductSearchApi &
|
|
16
|
+
DeviceApi &
|
|
17
|
+
ConnectivityApi;
|
|
@@ -20,15 +20,6 @@ export interface FormattedTextFieldProps extends BaseTextFieldProps {
|
|
|
20
20
|
* Dictates when the text should be auto-capitalized.
|
|
21
21
|
*/
|
|
22
22
|
autoCapitalize?: AutoCapitalizationType;
|
|
23
|
-
/**
|
|
24
|
-
* **Warning:** This callback is currently broken and will not work as intended.
|
|
25
|
-
*
|
|
26
|
-
* Custom validator function to determine the validity of an entered value.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated This callback will be removed in version 2025-01.
|
|
29
|
-
* Please update your code to avoid using this feature.
|
|
30
|
-
*/
|
|
31
|
-
customValidator?: (text: string) => boolean;
|
|
32
23
|
}
|
|
33
24
|
|
|
34
25
|
export const FormattedTextField = createRemoteComponent<
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export type ImageSize = 's' | 'm' | 'l' | 'xl';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* FillResizeMode will apply formatting to the image to fill the container.
|
|
7
|
+
*
|
|
8
|
+
* https://reactnative.dev/docs/image#resizemode
|
|
9
|
+
*/
|
|
10
|
+
export type FillResizeMode =
|
|
11
|
+
| 'cover'
|
|
12
|
+
| 'contain'
|
|
13
|
+
| 'stretch'
|
|
14
|
+
| 'repeat'
|
|
15
|
+
| 'center';
|
|
16
|
+
|
|
17
|
+
export interface ImageProps {
|
|
18
|
+
/**
|
|
19
|
+
* The source of the image to be displayed.
|
|
20
|
+
*/
|
|
21
|
+
src?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The size or fill size of the image.
|
|
25
|
+
*
|
|
26
|
+
* @default 'l'
|
|
27
|
+
*/
|
|
28
|
+
size?: ImageSize | FillResizeMode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const Image = createRemoteComponent<'Image', ImageProps>('Image');
|
|
@@ -38,12 +38,6 @@ export interface ListRowLeftSide {
|
|
|
38
38
|
* Subtitles can optionally be configured with colors by passing an object with a `content` and `color` properties.
|
|
39
39
|
*/
|
|
40
40
|
subtitle?: [ListRowSubtitle, ListRowSubtitle?, ListRowSubtitle?];
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* badge will be removed in version 2.0.0 in favor of badges.
|
|
44
|
-
* Please migrate to using badges as soon as possible.
|
|
45
|
-
*/
|
|
46
|
-
badge?: BadgeProps;
|
|
47
41
|
/**
|
|
48
42
|
* Colored badges that are displayed underneath the `title` and `subtitles`.
|
|
49
43
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface PrintPreviewProps {
|
|
4
|
+
/**
|
|
5
|
+
* The source to print.
|
|
6
|
+
*/
|
|
7
|
+
src: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const PrintPreview = createRemoteComponent<
|
|
11
|
+
'PrintPreview',
|
|
12
|
+
PrintPreviewProps
|
|
13
|
+
>('PrintPreview');
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
+
import type {PaddingProps, SizingProps} from '../shared/box';
|
|
3
|
+
import {
|
|
4
|
+
ContentDistribution,
|
|
5
|
+
ContentPosition,
|
|
6
|
+
SpacingKeyword,
|
|
7
|
+
GapProps,
|
|
8
|
+
} from '../shared/inner-layouts';
|
|
9
|
+
import {
|
|
10
|
+
HorizontalSpacing,
|
|
11
|
+
Spacing,
|
|
12
|
+
VerticalSpacing,
|
|
13
|
+
} from '../shared/deprecated-types';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @deprecated Use the `block` or `inline` as a value instead.
|
|
18
|
+
*/
|
|
19
|
+
type DeprecatedStackDirection = 'vertical' | 'horizontal';
|
|
20
|
+
|
|
21
|
+
export interface StackProps extends PaddingProps, SizingProps, GapProps {
|
|
22
|
+
/**
|
|
23
|
+
* Sets how the Stack's children are placed within the Stack.
|
|
24
|
+
* 'vertical' and 'horizontal' are deprecated. Using these values will use the Stack implementation from 2024-10.
|
|
25
|
+
*
|
|
26
|
+
* @default 'inline'
|
|
27
|
+
*/
|
|
28
|
+
direction?: 'inline' | 'block' | DeprecatedStackDirection;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The alignment of the children along the main axis.
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue 'flex-start'
|
|
34
|
+
* @deprecated Use the `justifyContent` prop instead.
|
|
35
|
+
*/
|
|
36
|
+
alignment?: ContentPosition | ContentDistribution;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Aligns the Stack along the main axis.
|
|
40
|
+
*
|
|
41
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
|
|
42
|
+
* @default 'start'
|
|
43
|
+
*/
|
|
44
|
+
justifyContent?: ContentPosition | ContentDistribution;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Aligns the Stack along the cross axis.
|
|
48
|
+
*
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
50
|
+
* @default 'start'
|
|
51
|
+
*/
|
|
52
|
+
alignContent?: 'stretch' | ContentPosition | ContentDistribution;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Aligns the Stack's children along the cross axis.
|
|
56
|
+
*
|
|
57
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
|
|
58
|
+
* @default 'stretch'
|
|
59
|
+
*/
|
|
60
|
+
alignItems?: 'stretch' | 'baseline' | ContentPosition;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The vertical padding around the stack.
|
|
64
|
+
* @deprecated Use the `paddingBlock` prop instead.
|
|
65
|
+
*/
|
|
66
|
+
paddingVertical?: VerticalSpacing;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The horizontal padding around the stack.
|
|
70
|
+
* @deprecated Use the `paddingInline` prop instead.
|
|
71
|
+
*/
|
|
72
|
+
paddingHorizontal?: HorizontalSpacing;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The spacing between each child in the stack.
|
|
76
|
+
* @defaultValue 1
|
|
77
|
+
* @deprecated Use the `gap` prop instead.
|
|
78
|
+
*/
|
|
79
|
+
spacing?: Spacing;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The size of the gap between each child in the stack.
|
|
83
|
+
* @defaultValue '0'
|
|
84
|
+
*/
|
|
85
|
+
gap?: SpacingKeyword;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Adjust spacing between elements in the block axis.
|
|
89
|
+
*
|
|
90
|
+
* This overrides the row value of `gap`.
|
|
91
|
+
*
|
|
92
|
+
* @default '' - meaning no override
|
|
93
|
+
*/
|
|
94
|
+
rowGap?: SpacingKeyword | '';
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Adjust spacing between elements in the inline axis.
|
|
98
|
+
*
|
|
99
|
+
* This overrides the column value of `gap`.
|
|
100
|
+
*
|
|
101
|
+
* @default '' - meaning no override
|
|
102
|
+
*/
|
|
103
|
+
columnGap?: SpacingKeyword | '';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Whether the children should be stretched to fill the cross axis.
|
|
107
|
+
*/
|
|
108
|
+
flexChildren?: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The flex value for the stack. Flex 1 will stretch the stack to fill the parent.
|
|
112
|
+
*/
|
|
113
|
+
flex?: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Wrap behavior for the children of the stack.
|
|
117
|
+
* @deprecated Has no effect, content will always wrap.
|
|
118
|
+
*/
|
|
119
|
+
flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const Stack = createRemoteComponent<'Stack', StackProps>('Stack');
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {createRemoteComponent} from '@remote-ui/core';
|
|
2
|
-
import type {BaseTextFieldProps} from '../shared/BaseTextField';
|
|
3
2
|
import type {InputProps} from '../shared/InputField';
|
|
4
3
|
|
|
5
4
|
export interface ActionProps {
|
|
@@ -32,16 +31,6 @@ export type EmbeddedElementProps =
|
|
|
32
31
|
|
|
33
32
|
export interface NewTextFieldProps extends InputProps {}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
* @deprecated
|
|
37
|
-
* This TextField component will only support NewTextFieldProps in version 2.0.0.
|
|
38
|
-
* Please migrate to using NewTextFieldProps as soon as possible.
|
|
39
|
-
*/
|
|
40
|
-
export interface TextFieldProps extends BaseTextFieldProps {
|
|
41
|
-
rightElementStyle?: EmbeddedElementProps;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const TextField = createRemoteComponent<
|
|
34
|
+
export const TextField = createRemoteComponent<'TextField', NewTextFieldProps>(
|
|
45
35
|
'TextField',
|
|
46
|
-
|
|
47
|
-
>('TextField');
|
|
36
|
+
);
|