@shopify/ui-extensions 2026.10.0-rc.9 → 2026.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/customer-account/preact/authenticated-account.js +1 -1
- package/build/cjs/surfaces/point-of-sale/events.js +39 -22
- package/build/cjs/surfaces/point-of-sale/pos-list-template.js +339 -0
- package/build/cjs/surfaces/point-of-sale.js +2 -0
- package/build/esm/surfaces/customer-account/preact/authenticated-account.mjs +1 -1
- package/build/esm/surfaces/point-of-sale/events.mjs +39 -22
- package/build/esm/surfaces/point-of-sale/pos-list-template.mjs +331 -0
- package/build/esm/surfaces/point-of-sale.mjs +1 -0
- package/build/esnext/surfaces/customer-account/preact/authenticated-account.esnext +1 -1
- package/build/esnext/surfaces/point-of-sale/events.esnext +39 -22
- package/build/esnext/surfaces/point-of-sale/pos-list-template.esnext +331 -0
- package/build/esnext/surfaces/point-of-sale.esnext +1 -0
- package/build/ts/shared.d.ts +6 -20
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +2 -2
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +2 -2
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +2 -2
- package/build/ts/surfaces/admin/components/AppNav.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +3 -3
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmptyState.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Number.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +3 -3
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Popover.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Progress.d.ts +155 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +11 -3
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +47 -7
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.app.home.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +8 -1
- 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 -2
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +15 -4
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +102 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +8 -2
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/preact/country.d.ts +1 -1
- package/build/ts/surfaces/checkout/preact/country.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/shared.d.ts +26 -7
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +3 -1
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +3 -1
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +1 -1
- package/build/ts/surfaces/customer-account/preact/authenticated-account.d.ts +3 -3
- package/build/ts/surfaces/customer-account/preact/authenticated-account.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/docs.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/extension-api/extension-api.d.ts +25 -5
- package/build/ts/surfaces/point-of-sale/api/extension-api/extension-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +19 -7
- 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/resolution-api/resolution-api.d.ts +28 -3
- package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/POSList.d.ts +179 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +12 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts +34 -0
- package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/events.d.ts +58 -28
- package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/globals.d.ts +0 -2
- package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/pos-list-template.d.ts +36 -0
- package/build/ts/surfaces/point-of-sale/pos-list-template.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +0 -6
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/shared.ts +22 -21
- package/src/surfaces/admin/api/picker/picker.ts +5 -2
- package/src/surfaces/admin/components/AdminAction.d.ts +2 -2
- package/src/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +2 -2
- package/src/surfaces/admin/components/AppNav.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +3 -3
- package/src/surfaces/admin/components/Chip.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +3 -3
- package/src/surfaces/admin/components/ChoiceList.d.ts +3 -3
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/src/surfaces/admin/components/ColorField.d.ts +1 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/src/surfaces/admin/components/DateField.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/DropZone.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/EmptyState.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/Menu.d.ts +1 -1
- package/src/surfaces/admin/components/Modal.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/Number.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +3 -3
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/Popover.d.ts +1 -1
- package/src/surfaces/admin/components/Progress.d.ts +155 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +11 -3
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +3 -0
- package/src/surfaces/admin/components/Switch.d.ts +3 -3
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/src/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/shared.d.ts +47 -7
- package/src/surfaces/admin/components.d.ts +8216 -2635
- package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +9 -0
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +9 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -2
- package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +8 -0
- package/src/surfaces/checkout/api/checkout/checkout.ts +19 -9
- package/src/surfaces/checkout/api/shared.ts +110 -1
- package/src/surfaces/checkout/api/standard/standard.ts +11 -1
- package/src/surfaces/checkout/components/MoneyField.d.ts +3 -1
- package/src/surfaces/checkout/components/NumberField.d.ts +3 -1
- package/src/surfaces/checkout/components/components-shared.d.ts +1 -1
- package/src/surfaces/checkout/preact/country.ts +1 -1
- package/src/surfaces/checkout.ts +3 -0
- package/src/surfaces/customer-account/api/shared.ts +25 -7
- package/src/surfaces/customer-account/api.ts +1 -0
- package/src/surfaces/customer-account/preact/authenticated-account.ts +3 -3
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +14 -0
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/docs.ts +8 -0
- package/src/surfaces/point-of-sale/api/extension-api/extension-api.ts +25 -5
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +22 -7
- package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +30 -3
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +1 -1
- package/src/surfaces/point-of-sale/api.ts +2 -0
- package/src/surfaces/point-of-sale/components/POSList.d.ts +179 -0
- package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +0 -4
- package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +1 -1
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +1 -3
- package/src/surfaces/point-of-sale/components.d.ts +194 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +13 -1
- package/src/surfaces/point-of-sale/event/data.ts +1 -1
- package/src/surfaces/point-of-sale/events/scan-event.ts +34 -0
- package/src/surfaces/point-of-sale/events.ts +58 -27
- package/src/surfaces/point-of-sale/extension-targets.ts +4 -4
- package/src/surfaces/point-of-sale/globals.ts +0 -2
- package/src/surfaces/point-of-sale/pos-list-template.ts +351 -0
- package/src/surfaces/point-of-sale/tests/pos-list-template.test.ts +306 -0
- package/src/surfaces/point-of-sale/types/session.ts +0 -7
- package/src/surfaces/point-of-sale.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 2.
|
|
1
|
+
/** VERSION: 2.26.1 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -185,11 +185,11 @@ declare class ChoiceList extends BaseClass implements ChoiceListProps {
|
|
|
185
185
|
*/
|
|
186
186
|
accessor name: ChoiceListProps['name'];
|
|
187
187
|
/**
|
|
188
|
-
* An error message displayed below the
|
|
188
|
+
* An error message displayed below the field to indicate validation problems. When set, the field is styled with error indicators and the message is announced to screen readers.
|
|
189
189
|
*/
|
|
190
190
|
accessor error: ChoiceListProps['error'];
|
|
191
191
|
/**
|
|
192
|
-
* Supplementary text displayed below the
|
|
192
|
+
* Supplementary text displayed below the field to provide additional context, instructions, or help. Use this to clarify the expected input or provide guidance to users. This text is announced to screen readers.
|
|
193
193
|
*/
|
|
194
194
|
accessor details: ChoiceListProps['details'];
|
|
195
195
|
accessor multiple: ChoiceListProps['multiple'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 2.
|
|
1
|
+
/** VERSION: 2.26.1 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -110,11 +110,11 @@ declare class Option extends PolarisCustomElement implements OptionProps {
|
|
|
110
110
|
*/
|
|
111
111
|
accessor defaultSelected: OptionProps['defaultSelected'];
|
|
112
112
|
/**
|
|
113
|
-
* The value submitted with the form when this
|
|
113
|
+
* The value submitted with the form when this control is selected. If not specified, the default value is "on".
|
|
114
114
|
*/
|
|
115
115
|
accessor value: OptionProps['value'];
|
|
116
116
|
/**
|
|
117
|
-
* Whether the
|
|
117
|
+
* Whether the control is disabled, preventing user interaction. Disabled controls appear dimmed and their values aren't submitted with forms.
|
|
118
118
|
*/
|
|
119
119
|
accessor disabled: OptionProps['disabled'];
|
|
120
120
|
constructor();
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/** VERSION: 2.26.1 **/
|
|
2
|
+
/* eslint-disable import/extensions */
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
5
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
8
|
+
/// <reference lib="DOM" />
|
|
9
|
+
import type {
|
|
10
|
+
ProgressProps$1,
|
|
11
|
+
PreactCustomElement,
|
|
12
|
+
RenderImpl,
|
|
13
|
+
} from './shared.d.ts';
|
|
14
|
+
import * as preact$1 from 'preact';
|
|
15
|
+
import {ReactNode, RefAttributes} from 'react';
|
|
16
|
+
|
|
17
|
+
export type ReactIntrinsicElementChildren<PreactProps extends object> =
|
|
18
|
+
'children' extends keyof PreactProps
|
|
19
|
+
? {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
: Record<never, never>;
|
|
23
|
+
export type ReactIntrinsicElementProps<
|
|
24
|
+
PreactProps extends object,
|
|
25
|
+
ElementType,
|
|
26
|
+
> = Omit<PreactProps, 'children' | 'key' | 'ref' | 'slot'> &
|
|
27
|
+
ReactIntrinsicElementChildren<PreactProps> &
|
|
28
|
+
RefAttributes<ElementType> & {
|
|
29
|
+
slot?: Lowercase<string>;
|
|
30
|
+
};
|
|
31
|
+
export type ReactIntrinsicElements = {
|
|
32
|
+
[Tag in Exclude<
|
|
33
|
+
Extract<keyof preact$1.createElement.JSX.IntrinsicElements, `s-${string}`>,
|
|
34
|
+
`s-test-${string}`
|
|
35
|
+
>]: ReactIntrinsicElementProps<
|
|
36
|
+
preact$1.createElement.JSX.IntrinsicElements[Tag],
|
|
37
|
+
Tag extends keyof HTMLElementTagNameMap
|
|
38
|
+
? HTMLElementTagNameMap[Tag]
|
|
39
|
+
: HTMLElement
|
|
40
|
+
>;
|
|
41
|
+
};
|
|
42
|
+
declare module 'react' {
|
|
43
|
+
namespace JSX {
|
|
44
|
+
interface IntrinsicElements extends ReactIntrinsicElements {}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Configure the following properties on the progress component.
|
|
50
|
+
*/
|
|
51
|
+
export interface ProgressProps
|
|
52
|
+
extends Pick<
|
|
53
|
+
ProgressProps$1,
|
|
54
|
+
'accessibilityLabel' | 'max' | 'tone' | 'value'
|
|
55
|
+
> {
|
|
56
|
+
/**
|
|
57
|
+
* A label that describes the purpose or content of the component for assistive technologies like screen readers. Use this to provide additional context when the visible content alone doesn't clearly convey what is progressing.
|
|
58
|
+
*/
|
|
59
|
+
accessibilityLabel: Required<ProgressProps$1>['accessibilityLabel'];
|
|
60
|
+
/**
|
|
61
|
+
* How much work the task requires in total. Must be greater than `0`.
|
|
62
|
+
*
|
|
63
|
+
* @default 1
|
|
64
|
+
*/
|
|
65
|
+
max: Required<ProgressProps$1>['max'];
|
|
66
|
+
/**
|
|
67
|
+
* The semantic meaning and color treatment of the component.
|
|
68
|
+
*
|
|
69
|
+
* - `auto`: Automatically determined based on context.
|
|
70
|
+
* - `neutral`: General information without specific intent.
|
|
71
|
+
* - `info`: Informational content or helpful tips.
|
|
72
|
+
* - `success`: Positive outcomes or successful states.
|
|
73
|
+
* - `caution`: Advisory notices that need attention.
|
|
74
|
+
* - `warning`: Important warnings about potential issues.
|
|
75
|
+
* - `critical`: Urgent problems or destructive actions.
|
|
76
|
+
*
|
|
77
|
+
* @default 'auto'
|
|
78
|
+
*/
|
|
79
|
+
tone: Extract<
|
|
80
|
+
ProgressProps$1['tone'],
|
|
81
|
+
'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'
|
|
82
|
+
>;
|
|
83
|
+
/**
|
|
84
|
+
* How much of the task has been completed, as a number between `0` and `max`.
|
|
85
|
+
*
|
|
86
|
+
* Without a `value` the progress is indeterminate: the task is ongoing with no
|
|
87
|
+
* indication of how long it is expected to take.
|
|
88
|
+
*
|
|
89
|
+
* @default 0
|
|
90
|
+
*/
|
|
91
|
+
value: Required<ProgressProps$1>['value'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class PolarisCustomElement extends PreactCustomElement {
|
|
95
|
+
constructor(renderImpl: Omit<RenderImpl, 'globalShadowCSS'>);
|
|
96
|
+
/** @private */
|
|
97
|
+
connectedCallback(): void;
|
|
98
|
+
/** @private */
|
|
99
|
+
adoptedCallback(): void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Base props for Preact custom elements without children support. Includes common properties like key, ref, and slot for elements that don't accept child content.
|
|
104
|
+
* @publicDocs
|
|
105
|
+
*/
|
|
106
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
107
|
+
/**
|
|
108
|
+
* A unique identifier for this element, used by the virtual DOM to efficiently track and update elements in lists.
|
|
109
|
+
* Essential for maintaining component state and optimizing re-renders when lists change.
|
|
110
|
+
*/
|
|
111
|
+
key?: preact.Key;
|
|
112
|
+
/**
|
|
113
|
+
* A reference to access the underlying DOM element directly.
|
|
114
|
+
* Typically created using `useRef()` to interact with the element imperatively or measure its properties.
|
|
115
|
+
*/
|
|
116
|
+
ref?: preact.Ref<TClass>;
|
|
117
|
+
/**
|
|
118
|
+
* The named slot to which this element is assigned in the parent component's shadow DOM.
|
|
119
|
+
*
|
|
120
|
+
* Used for advanced component composition with web components.
|
|
121
|
+
*/
|
|
122
|
+
slot?: Lowercase<string>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Configure the following properties on the progress component.
|
|
127
|
+
* @publicDocs
|
|
128
|
+
*/
|
|
129
|
+
declare class Progress extends PolarisCustomElement implements ProgressProps {
|
|
130
|
+
accessor accessibilityLabel: string;
|
|
131
|
+
accessor max: ProgressProps['max'];
|
|
132
|
+
accessor tone: ProgressProps['tone'];
|
|
133
|
+
accessor value: ProgressProps['value'];
|
|
134
|
+
constructor();
|
|
135
|
+
}
|
|
136
|
+
declare global {
|
|
137
|
+
interface HTMLElementTagNameMap {
|
|
138
|
+
[tagName]: Progress;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
declare module 'preact' {
|
|
142
|
+
namespace createElement.JSX {
|
|
143
|
+
interface IntrinsicElements {
|
|
144
|
+
[tagName]: ProgressJSXProps & PreactBaseElementProps<Progress>;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare const tagName = 's-progress';
|
|
150
|
+
export interface ProgressJSXProps
|
|
151
|
+
extends Partial<ProgressProps>,
|
|
152
|
+
Pick<ProgressProps$1, 'id'> {}
|
|
153
|
+
|
|
154
|
+
export {Progress};
|
|
155
|
+
export type {ProgressJSXProps};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 2.
|
|
1
|
+
/** VERSION: 2.26.1 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -134,6 +134,12 @@ declare abstract class SectionBase
|
|
|
134
134
|
implements SectionProps
|
|
135
135
|
{
|
|
136
136
|
constructor(renderImpl: RenderImpl);
|
|
137
|
+
/**
|
|
138
|
+
* The element the section currently renders as its graphic, which sizes a
|
|
139
|
+
* Badge inside it.
|
|
140
|
+
* @private
|
|
141
|
+
*/
|
|
142
|
+
setGraphicNode(node: Element | null): void;
|
|
137
143
|
/** @private */
|
|
138
144
|
connectedCallback(): void;
|
|
139
145
|
/** @private */
|
|
@@ -193,13 +199,15 @@ export interface SectionJSXProps
|
|
|
193
199
|
/**
|
|
194
200
|
* A decorative visual that reinforces the heading, rendered before it.
|
|
195
201
|
*
|
|
196
|
-
* Accepts a single icon-only Badge (`icon` set, no text content) with a `size` of `large`. The heading identifies the section, so this content is not announced by assistive technologies, and it is not rendered at all when the section has no `heading`.
|
|
202
|
+
* Accepts a single Icon with a `size` of `base`, or an icon-only Badge (`icon` set, no text content) with a `size` of `large`. The heading identifies the section, so this content is not announced by assistive technologies, and it is not rendered at all when the section has no `heading`.
|
|
197
203
|
*/
|
|
198
204
|
graphic?: ComponentChildren;
|
|
199
205
|
/**
|
|
200
206
|
* Additional contextual information that qualifies the heading, rendered inline beside the heading text.
|
|
201
207
|
*
|
|
202
|
-
* Only accepts Badge, Icon, Button, Menu, Text, Avatar, and
|
|
208
|
+
* Only accepts Badge, Icon, Button, Menu, Text, Avatar, Thumbnail, and Tooltip elements. Text must use `tone`, `fontSize`, and `fontWeight` of `auto`; Icon, Avatar, and Thumbnail must use `size="base"`; Badge must use `size="base"` and `color="base"`; Button must use `inlineSize="auto"`.
|
|
209
|
+
*
|
|
210
|
+
* A Tooltip an accessory element's `interestFor` points at can be slotted here beside it.
|
|
203
211
|
*/
|
|
204
212
|
accessory?: ComponentChildren;
|
|
205
213
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The standard set of UI components available in most admin extensions. These components provide the building blocks for creating extension interfaces including layout elements, form inputs, data display, navigation, and interactive controls. Use these components to build consistent, accessible UIs that match the Shopify admin design system.
|
|
3
3
|
*/
|
|
4
|
-
export type StandardComponents = 'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Chip' | 'Choice' | 'ChoiceList' | 'Clickable' | 'ClickableChip' | 'ColorField' | 'ColorPicker' | 'DateField' | 'DatePicker' | 'DropZone' | 'Divider' | 'EmailField' | 'Grid' | 'GridItem' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'Menu' | 'MoneyField' | 'NumberField' | 'Option' | 'OptionGroup' | 'OrderedList' | 'Paragraph' | 'PasswordField' | 'Popover' | 'QueryContainer' | 'SearchField' | 'Section' | 'Select' | 'Spinner' | 'Stack' | 'Switch' | 'Table' | 'TableBody' | 'TableCell' | 'TableHeader' | 'TableHeaderRow' | 'TableRow' | 'Text' | 'TextArea' | 'TextField' | 'Thumbnail' | 'Tooltip' | 'UnorderedList' | 'URLField';
|
|
4
|
+
export type StandardComponents = 'Avatar' | 'Badge' | 'Banner' | 'Box' | 'Button' | 'ButtonGroup' | 'Checkbox' | 'Chip' | 'Choice' | 'ChoiceList' | 'Clickable' | 'ClickableChip' | 'ColorField' | 'ColorPicker' | 'DateField' | 'DatePicker' | 'DropZone' | 'Divider' | 'EmailField' | 'EmptyState' | 'Grid' | 'GridItem' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'Menu' | 'MoneyField' | 'Number' | 'NumberField' | 'Option' | 'OptionGroup' | 'OrderedList' | 'Paragraph' | 'PasswordField' | 'Popover' | 'Progress' | 'QueryContainer' | 'SearchField' | 'Section' | 'Select' | 'Spinner' | 'Stack' | 'Switch' | 'Table' | 'TableBody' | 'TableCell' | 'TableHeader' | 'TableHeaderRow' | 'TableRow' | 'Text' | 'TextArea' | 'TextField' | 'Thumbnail' | 'Tooltip' | 'UnorderedList' | 'URLField';
|
|
5
5
|
export default StandardComponents;
|
|
6
6
|
//# sourceMappingURL=StandardComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/admin/components/StandardComponents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,aAAa,GACb,UAAU,GACV,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,eAAe,GACf,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,SAAS,GACT,YAAY,GACZ,MAAM,GACN,UAAU,GACV,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,aAAa,GACb,aAAa,GACb,WAAW,GACX,eAAe,GACf,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,WAAW,GACX,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,UAAU,GACV,MAAM,GACN,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,eAAe,GACf,UAAU,CAAC;AAEf,eAAe,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/admin/components/StandardComponents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,aAAa,GACb,UAAU,GACV,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,eAAe,GACf,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,UAAU,GACV,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,aAAa,GACb,aAAa,GACb,WAAW,GACX,eAAe,GACf,SAAS,GACT,UAAU,GACV,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,WAAW,GACX,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,UAAU,GACV,MAAM,GACN,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,eAAe,GACf,UAAU,CAAC;AAEf,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** VERSION: 2.
|
|
1
|
+
/** VERSION: 2.26.1 **/
|
|
2
2
|
/* eslint-disable import/extensions */
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -144,7 +144,7 @@ export interface PreactCheckboxProps
|
|
|
144
144
|
>
|
|
145
145
|
> {
|
|
146
146
|
/**
|
|
147
|
-
* The value used in form data when the
|
|
147
|
+
* The value used in form data when the control is checked.
|
|
148
148
|
*/
|
|
149
149
|
value: Required<CheckboxProps>['value'];
|
|
150
150
|
}
|
|
@@ -156,7 +156,7 @@ declare class PreactCheckboxElement
|
|
|
156
156
|
get checked(): boolean;
|
|
157
157
|
set checked(checked: PreactCheckboxProps['checked']);
|
|
158
158
|
/**
|
|
159
|
-
* The value used in form data when the
|
|
159
|
+
* The value used in form data when the control is checked.
|
|
160
160
|
*/
|
|
161
161
|
get value(): string;
|
|
162
162
|
set value(value: string);
|