@shopify/ui-extensions 2025.10.13 → 2025.10.14
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/shared.js +1 -10
- package/build/esm/surfaces/checkout/shared.mjs +1 -10
- package/build/esnext/surfaces/checkout/shared.esnext +1 -10
- package/build/ts/api.d.ts +23 -26
- package/build/ts/api.d.ts.map +1 -1
- package/build/ts/docs/shared/component-definitions.d.ts +32 -0
- package/build/ts/docs/shared/component-definitions.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Avatar.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Badge.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Banner.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Box.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Button.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ButtonGroup.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Checkbox.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Chip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Choice.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ChoiceList.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Clickable.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ClickableChip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ColorField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ColorPicker.d.ts.map +1 -1
- package/build/ts/docs/shared/components/DateField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/DatePicker.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Divider.d.ts.map +1 -1
- package/build/ts/docs/shared/components/EmailField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Form.d.ts.map +1 -1
- package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Grid.d.ts.map +1 -1
- package/build/ts/docs/shared/components/GridItem.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Heading.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Icon.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Image.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Link.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ListItem.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Menu.d.ts.map +1 -1
- package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/NumberField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/OrderedList.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Paragraph.d.ts.map +1 -1
- package/build/ts/docs/shared/components/PasswordField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Section.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Select.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Sheet.d.ts +4 -0
- package/build/ts/docs/shared/components/Sheet.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Spinner.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Stack.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Switch.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Table.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableBody.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableCell.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableHeader.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableHeaderRow.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableRow.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Text.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TextArea.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TextField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Thumbnail.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/URLField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/UnorderedList.d.ts.map +1 -1
- package/build/ts/extension.d.ts +21 -0
- package/build/ts/extension.d.ts.map +1 -1
- package/build/ts/shared.d.ts +7 -5
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +7 -4
- 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 +12 -6
- 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 +21 -10
- 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 +32 -0
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts +5 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.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 +18 -6
- 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 +5 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +22 -4
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts +32 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +30 -35
- package/build/ts/surfaces/admin/api/intents/intents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts +20 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +23 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts +5 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +44 -16
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +6 -3
- 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/product-configuration/product-details-configuration.d.ts +36 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts +36 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts +7 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +181 -21
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/shared.d.ts +7 -1
- package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts +8 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +20 -10
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/storage.d.ts +21 -27
- package/build/ts/surfaces/admin/api/standard/storage.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/ActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +53 -3
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +49 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +45 -1
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +110 -10
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +155 -8
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +101 -10
- package/build/ts/surfaces/admin/components/BlockExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +203 -75
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +244 -16
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +96 -11
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +133 -4
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +2 -4
- package/build/ts/surfaces/admin/components/Choice.d.ts +68 -11
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +102 -6
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +142 -41
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +115 -19
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +177 -18
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +100 -5
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +195 -22
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +141 -4
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +88 -6
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +159 -7
- package/build/ts/surfaces/admin/components/Form/Form.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +65 -5
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +78 -8
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +249 -69
- package/build/ts/surfaces/admin/components/GridItem.d.ts +212 -33
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +66 -7
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +113 -11
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +235 -36
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +76 -16
- package/build/ts/surfaces/admin/components/ListItem.d.ts +59 -7
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +101 -21
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +158 -7
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +170 -7
- package/build/ts/surfaces/admin/components/Option.d.ts +62 -5
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +56 -7
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +57 -9
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +100 -11
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +166 -14
- package/build/ts/surfaces/admin/components/PrintActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/PrintActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +65 -7
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +150 -4
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +81 -8
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +145 -6
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +67 -5
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +239 -61
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch/Switch.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +124 -4
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +144 -13
- package/build/ts/surfaces/admin/components/TableBody.d.ts +62 -7
- package/build/ts/surfaces/admin/components/TableCell.d.ts +66 -7
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +77 -7
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +62 -7
- package/build/ts/surfaces/admin/components/TableRow.d.ts +65 -7
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +129 -9
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +157 -7
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +170 -19
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +103 -10
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +98 -21
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +171 -14
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +57 -9
- package/build/ts/surfaces/admin/components/shared.d.ts +842 -772
- package/build/ts/surfaces/admin/extension-targets.d.ts +85 -169
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +0 -2
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -18
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +8 -11
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +353 -318
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +84 -97
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +8 -10
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +10 -10
- package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +11 -11
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +23 -2
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api.ts +23 -26
- package/src/docs/shared/component-definitions.ts +200 -0
- package/src/docs/shared/components/Abbreviation.ts +2 -2
- package/src/docs/shared/components/Announcement.ts +2 -2
- package/src/docs/shared/components/Avatar.ts +3 -2
- package/src/docs/shared/components/Badge.ts +3 -2
- package/src/docs/shared/components/Banner.ts +3 -2
- package/src/docs/shared/components/Box.ts +3 -2
- package/src/docs/shared/components/Button.ts +3 -2
- package/src/docs/shared/components/ButtonGroup.ts +5 -3
- package/src/docs/shared/components/Checkbox.ts +3 -2
- package/src/docs/shared/components/Chip.ts +3 -2
- package/src/docs/shared/components/Choice.ts +3 -2
- package/src/docs/shared/components/ChoiceList.ts +4 -3
- package/src/docs/shared/components/Clickable.ts +3 -2
- package/src/docs/shared/components/ClickableChip.ts +4 -3
- package/src/docs/shared/components/ClipboardItem.ts +3 -3
- package/src/docs/shared/components/ColorField.ts +4 -3
- package/src/docs/shared/components/ColorPicker.ts +5 -3
- package/src/docs/shared/components/ConsentCheckbox.ts +2 -2
- package/src/docs/shared/components/ConsentPhoneField.ts +2 -2
- package/src/docs/shared/components/DateField.ts +5 -3
- package/src/docs/shared/components/DatePicker.ts +5 -3
- package/src/docs/shared/components/Details.ts +2 -2
- package/src/docs/shared/components/Divider.ts +3 -2
- package/src/docs/shared/components/DropZone.ts +3 -3
- package/src/docs/shared/components/EmailField.ts +4 -3
- package/src/docs/shared/components/Form.ts +3 -2
- package/src/docs/shared/components/FunctionSettings.ts +5 -20
- package/src/docs/shared/components/Grid.ts +3 -2
- package/src/docs/shared/components/GridItem.ts +6 -4
- package/src/docs/shared/components/Heading.ts +3 -2
- package/src/docs/shared/components/Icon.ts +3 -2
- package/src/docs/shared/components/Image.ts +3 -2
- package/src/docs/shared/components/Link.ts +3 -2
- package/src/docs/shared/components/ListItem.ts +5 -4
- package/src/docs/shared/components/Map.ts +2 -2
- package/src/docs/shared/components/MapMarker.ts +3 -3
- package/src/docs/shared/components/Menu.ts +3 -2
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/docs/shared/components/MoneyField.ts +4 -3
- package/src/docs/shared/components/NumberField.ts +4 -3
- package/src/docs/shared/components/Option.ts +1 -1
- package/src/docs/shared/components/OptionGroup.ts +2 -2
- package/src/docs/shared/components/OrderedList.ts +5 -4
- package/src/docs/shared/components/Page.ts +2 -2
- package/src/docs/shared/components/Paragraph.ts +3 -2
- package/src/docs/shared/components/PasswordField.ts +5 -3
- package/src/docs/shared/components/PaymentIcon.ts +3 -3
- package/src/docs/shared/components/PhoneField.ts +2 -2
- package/src/docs/shared/components/Popover.ts +1 -1
- package/src/docs/shared/components/PressButton.ts +2 -2
- package/src/docs/shared/components/ProductThumbnail.ts +3 -3
- package/src/docs/shared/components/Progress.ts +2 -2
- package/src/docs/shared/components/QRCode.ts +3 -3
- package/src/docs/shared/components/QueryContainer.ts +4 -3
- package/src/docs/shared/components/ScrollBox.ts +3 -3
- package/src/docs/shared/components/SearchField.ts +3 -3
- package/src/docs/shared/components/Section.ts +3 -2
- package/src/docs/shared/components/Select.ts +3 -2
- package/src/docs/shared/components/Sheet.ts +14 -0
- package/src/docs/shared/components/SkeletonParagraph.ts +3 -3
- package/src/docs/shared/components/Spinner.ts +3 -2
- package/src/docs/shared/components/Stack.ts +3 -2
- package/src/docs/shared/components/Summary.ts +2 -2
- package/src/docs/shared/components/Switch.ts +4 -2
- package/src/docs/shared/components/Table.ts +3 -2
- package/src/docs/shared/components/TableBody.ts +4 -3
- package/src/docs/shared/components/TableCell.ts +5 -3
- package/src/docs/shared/components/TableHeader.ts +5 -3
- package/src/docs/shared/components/TableHeaderRow.ts +4 -3
- package/src/docs/shared/components/TableRow.ts +5 -3
- package/src/docs/shared/components/Text.ts +3 -2
- package/src/docs/shared/components/TextArea.ts +4 -3
- package/src/docs/shared/components/TextField.ts +4 -3
- package/src/docs/shared/components/Thumbnail.ts +3 -2
- package/src/docs/shared/components/Time.ts +2 -2
- package/src/docs/shared/components/Tooltip.ts +4 -3
- package/src/docs/shared/components/URLField.ts +4 -3
- package/src/docs/shared/components/UnorderedList.ts +5 -4
- package/src/extension.ts +21 -0
- package/src/shared.ts +7 -5
- package/src/surfaces/admin/api/action/action.ts +7 -4
- package/src/surfaces/admin/api/action/examples/handle-errors.jsx +47 -0
- package/src/surfaces/admin/api/action/examples/process-selected-products.jsx +33 -0
- package/src/surfaces/admin/api/action/examples/select-additional-resources.jsx +46 -0
- package/src/surfaces/admin/api/block/block.ts +12 -6
- package/src/surfaces/admin/api/block/examples/display-product-info.jsx +46 -0
- package/src/surfaces/admin/api/block/examples/navigate-to-action.jsx +50 -0
- package/src/surfaces/admin/api/block/examples/select-related-products.jsx +46 -0
- package/src/surfaces/admin/api/checkout-rules/examples/configure-shipping-restrictions.jsx +52 -0
- package/src/surfaces/admin/api/checkout-rules/examples/load-validation-config.jsx +55 -0
- package/src/surfaces/admin/api/checkout-rules/examples/set-minimum-quantity.jsx +40 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +22 -10
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +35 -0
- package/src/surfaces/admin/api/checkout-rules/validation-settings.ts +5 -1
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +19 -7
- package/src/surfaces/admin/api/customer-segment-template/examples/abandoned-cart-recovery.jsx +30 -0
- package/src/surfaces/admin/api/customer-segment-template/examples/birthday-this-month.jsx +32 -0
- package/src/surfaces/admin/api/customer-segment-template/examples/high-value-customers.jsx +27 -0
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.ts +5 -1
- package/src/surfaces/admin/api/discount-function-settings/examples/configure-discount-threshold.jsx +39 -0
- package/src/surfaces/admin/api/discount-function-settings/examples/configure-eligibility-rules.jsx +45 -0
- package/src/surfaces/admin/api/discount-function-settings/examples/load-existing-settings.jsx +45 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +22 -4
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +35 -0
- package/src/surfaces/admin/api/intents/examples/create-article.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-catalog.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-collection.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-customer.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-discount.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-market.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-menu.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metafield-definition.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metaobject-definition.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metaobject.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-page.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-product.jsx +37 -0
- package/src/surfaces/admin/api/intents/examples/create-variant.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/edit-article.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-catalog.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-collection.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-customer.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-discount.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-market.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-menu.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-page.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-product.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-variant.jsx +41 -0
- package/src/surfaces/admin/api/intents/intents.ts +30 -35
- package/src/surfaces/admin/api/order-routing-rule/data.ts +20 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/configure-location-priority.jsx +46 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/remove-deprecated-settings.jsx +35 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/set-routing-criteria.jsx +57 -0
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +24 -0
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +5 -0
- package/src/surfaces/admin/api/picker/examples/direct-api.jsx +42 -0
- package/src/surfaces/admin/api/picker/examples/disabled.jsx +23 -0
- package/src/surfaces/admin/api/picker/examples/minimal.jsx +37 -0
- package/src/surfaces/admin/api/picker/examples/multiple-limit.jsx +26 -0
- package/src/surfaces/admin/api/picker/examples/multiple-true.jsx +25 -0
- package/src/surfaces/admin/api/picker/examples/preselected.jsx +23 -0
- package/src/surfaces/admin/api/picker/examples/template-picker.jsx +58 -0
- package/src/surfaces/admin/api/picker/picker.ts +46 -16
- package/src/surfaces/admin/api/print-action/examples/custom-product-labels.jsx +47 -0
- package/src/surfaces/admin/api/print-action/examples/generate-packing-slip.jsx +34 -0
- package/src/surfaces/admin/api/print-action/examples/shipping-manifest.jsx +57 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +6 -3
- package/src/surfaces/admin/api/product-configuration/examples/create-variant-component.jsx +56 -0
- package/src/surfaces/admin/api/product-configuration/examples/load-bundle-config.jsx +47 -0
- package/src/surfaces/admin/api/product-configuration/examples/load-variant-bundle-config.jsx +54 -0
- package/src/surfaces/admin/api/product-configuration/examples/navigate-to-component.jsx +27 -0
- package/src/surfaces/admin/api/product-configuration/examples/select-bundle-components.jsx +50 -0
- package/src/surfaces/admin/api/product-configuration/examples/select-variant-components.jsx +50 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +36 -6
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +36 -6
- package/src/surfaces/admin/api/purchase-options-card/examples/manage-subscription.jsx +45 -0
- package/src/surfaces/admin/api/purchase-options-card/examples/remove-from-plan.jsx +44 -0
- package/src/surfaces/admin/api/purchase-options-card/examples/validate-selling-plan.jsx +47 -0
- package/src/surfaces/admin/api/purchase-options-card-action.ts +11 -1
- package/src/surfaces/admin/api/resource-picker/examples/action.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/collection-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/filter-query.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/filters.jsx +27 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-limited.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-unlimited.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-variant-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/query.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection-ids.jsx +28 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +181 -21
- package/src/surfaces/admin/api/shared.ts +7 -1
- package/src/surfaces/admin/api/should-render/examples/bulk-selection-check.jsx +8 -0
- package/src/surfaces/admin/api/should-render/examples/check-order-status.jsx +7 -0
- package/src/surfaces/admin/api/should-render/examples/check-product-tag.jsx +7 -0
- package/src/surfaces/admin/api/should-render/should-render.ts +8 -1
- package/src/surfaces/admin/api/standard/examples/authenticate-backend-request.jsx +40 -0
- package/src/surfaces/admin/api/standard/examples/persist-settings.jsx +43 -0
- package/src/surfaces/admin/api/standard/examples/query-and-mutate.jsx +75 -0
- package/src/surfaces/admin/api/standard/standard.ts +20 -10
- package/src/surfaces/admin/api/standard/storage.ts +21 -27
- package/src/surfaces/admin/components/ActionExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/{ButtonGroup/examples/default.jsx → AdminAction/examples/default.html} +3 -2
- package/src/surfaces/admin/components/AdminAction/examples/destructive-action.html +10 -0
- package/src/surfaces/admin/components/AdminAction/examples/loading-state.html +5 -0
- package/src/surfaces/admin/components/AdminAction/examples/with-form-content.html +8 -0
- package/src/surfaces/admin/components/AdminAction/examples/with-resource-details.html +15 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +53 -3
- package/src/surfaces/admin/components/AdminBlock/examples/default.html +3 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-actions.html +14 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-badges.html +14 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-collapsed-summary.html +7 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-data-table.html +21 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +49 -1
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/dynamic-url.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/pdf-source.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +45 -1
- package/src/surfaces/admin/components/Avatar.d.ts +110 -10
- package/src/surfaces/admin/components/Badge.d.ts +155 -8
- package/src/surfaces/admin/components/Banner.d.ts +101 -10
- package/src/surfaces/admin/components/BlockExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/Box/examples/accessible-status-messages.html +8 -14
- package/src/surfaces/admin/components/Box/examples/screen-reader-only-content.html +3 -0
- package/src/surfaces/admin/components/Box.d.ts +203 -75
- package/src/surfaces/admin/components/Button/examples/component-interactions.html +8 -6
- package/src/surfaces/admin/components/Button/examples/icon-only-button.html +17 -1
- package/src/surfaces/admin/components/Button.d.ts +244 -16
- package/src/surfaces/admin/components/ButtonGroup.d.ts +96 -11
- package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.html +10 -0
- package/src/surfaces/admin/components/Checkbox/examples/validation-example.html +9 -0
- package/src/surfaces/admin/components/Checkbox.d.ts +133 -4
- package/src/surfaces/admin/components/Chip/examples/default.html +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +2 -4
- package/src/surfaces/admin/components/Choice.d.ts +68 -11
- package/src/surfaces/admin/components/ChoiceList/examples/disabled-state.html +5 -0
- package/src/surfaces/admin/components/ChoiceList/examples/with-error-state.html +2 -3
- package/src/surfaces/admin/components/ChoiceList.d.ts +102 -6
- package/src/surfaces/admin/components/Clickable.d.ts +142 -41
- package/src/surfaces/admin/components/ClickableChip.d.ts +115 -19
- package/src/surfaces/admin/components/ColorField/examples/default.html +4 -1
- package/src/surfaces/admin/components/ColorField/examples/validation-example.html +12 -0
- package/src/surfaces/admin/components/ColorField.d.ts +177 -18
- package/src/surfaces/admin/components/ColorPicker/examples/default.html +1 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +100 -5
- package/src/surfaces/admin/components/DateField.d.ts +195 -22
- package/src/surfaces/admin/components/DatePicker.d.ts +141 -4
- package/src/surfaces/admin/components/Divider.d.ts +88 -6
- package/src/surfaces/admin/components/DropZone/examples/upload-with-validation.html +42 -0
- package/src/surfaces/admin/components/EmailField/examples/disabled-state.html +5 -0
- package/src/surfaces/admin/components/EmailField.d.ts +159 -7
- package/src/surfaces/admin/components/Form/examples/default.html +1 -1
- package/src/surfaces/admin/components/Form/examples/with-choice-fields.html +12 -0
- package/src/surfaces/admin/components/Form/examples/with-multiple-fields.html +12 -0
- package/src/surfaces/admin/components/Form/examples/with-sections.html +21 -0
- package/src/surfaces/admin/components/Form/examples/with-validation.html +7 -0
- package/src/surfaces/admin/components/Form.d.ts +65 -5
- package/src/surfaces/admin/components/FormExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/default.html +9 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-multiple-settings.html +16 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-select-options.html +10 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-toggle.html +13 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-validation.html +23 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +78 -8
- package/src/surfaces/admin/components/FunctionSettingsComponents.ts +3 -0
- package/src/surfaces/admin/components/Grid.d.ts +249 -69
- package/src/surfaces/admin/components/GridItem.d.ts +212 -33
- package/src/surfaces/admin/components/Heading.d.ts +66 -7
- package/src/surfaces/admin/components/Icon.d.ts +113 -11
- package/src/surfaces/admin/components/Image/examples/basic-usage.html +15 -4
- package/src/surfaces/admin/components/Image.d.ts +235 -36
- package/src/surfaces/admin/components/Link/examples/default.html +1 -1
- package/src/surfaces/admin/components/Link.d.ts +76 -16
- package/src/surfaces/admin/components/ListItem.d.ts +59 -7
- package/src/surfaces/admin/components/Menu/examples/{menu-with-icons.html → icon-only-trigger.html} +7 -2
- package/src/surfaces/admin/components/Menu.d.ts +101 -21
- package/src/surfaces/admin/components/MoneyField/examples/basic-field.html +0 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +158 -7
- package/src/surfaces/admin/components/NumberField/examples/disabled-and-read-only.html +15 -0
- package/src/surfaces/admin/components/NumberField/examples/{basic-usage.html → with-error-state.html} +3 -1
- package/src/surfaces/admin/components/NumberField.d.ts +170 -7
- package/src/surfaces/admin/components/Option.d.ts +62 -5
- package/src/surfaces/admin/components/OptionGroup.d.ts +56 -7
- package/src/surfaces/admin/components/OrderedList/examples/default.html +3 -3
- package/src/surfaces/admin/components/OrderedList.d.ts +57 -9
- package/src/surfaces/admin/components/Paragraph/examples/subdued-color.html +3 -0
- package/src/surfaces/admin/components/Paragraph/examples/with-tone-and-color.html +13 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +100 -11
- package/src/surfaces/admin/components/PasswordField.d.ts +166 -14
- package/src/surfaces/admin/components/PrintActionExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +65 -7
- package/src/surfaces/admin/components/SearchField.d.ts +150 -4
- package/src/surfaces/admin/components/Section.d.ts +81 -8
- package/src/surfaces/admin/components/Select/examples/with-error-state.html +2 -2
- package/src/surfaces/admin/components/Select/examples/with-option-groups.html +4 -4
- package/src/surfaces/admin/components/Select.d.ts +145 -6
- package/src/surfaces/admin/components/Spinner/examples/spinner-sizes.html +5 -0
- package/src/surfaces/admin/components/Spinner.d.ts +67 -5
- package/src/surfaces/admin/components/Stack.d.ts +239 -61
- package/src/surfaces/admin/components/StandardComponents.ts +3 -0
- package/src/surfaces/admin/components/Switch/examples/disabled-switch.html +2 -2
- package/src/surfaces/admin/components/Switch/examples/form-integration.html +15 -12
- package/src/surfaces/admin/components/Switch/examples/hidden-label-for-accessibility.html +1 -1
- package/src/surfaces/admin/components/Switch/examples/settings-panel-with-stack.html +1 -1
- package/src/surfaces/admin/components/Switch/examples/with-details-and-error.html +1 -1
- package/src/surfaces/admin/components/Switch.d.ts +124 -4
- package/src/surfaces/admin/components/Table/examples/{basic-usage.jsx → with-filters.html} +2 -13
- package/src/surfaces/admin/components/Table.d.ts +144 -13
- package/src/surfaces/admin/components/TableBody.d.ts +62 -7
- package/src/surfaces/admin/components/TableCell.d.ts +66 -7
- package/src/surfaces/admin/components/TableHeader.d.ts +77 -7
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +62 -7
- package/src/surfaces/admin/components/TableRow.d.ts +65 -7
- package/src/surfaces/admin/components/Text.d.ts +129 -9
- package/src/surfaces/admin/components/TextArea/examples/disabled-and-read-only.html +15 -0
- package/src/surfaces/admin/components/TextArea.d.ts +157 -7
- package/src/surfaces/admin/components/TextField/examples/disabled-and-read-only.html +13 -0
- package/src/surfaces/admin/components/TextField.d.ts +170 -19
- package/src/surfaces/admin/components/Thumbnail/examples/default.html +1 -1
- package/src/surfaces/admin/components/Thumbnail/examples/different-sizes.html +3 -3
- package/src/surfaces/admin/components/Thumbnail/examples/with-event-handling.html +22 -9
- package/src/surfaces/admin/components/Thumbnail.d.ts +103 -10
- package/src/surfaces/admin/components/Tooltip/examples/basic-usage.html +2 -4
- package/src/surfaces/admin/components/Tooltip/examples/keyboard-shortcut.html +2 -0
- package/src/surfaces/admin/components/Tooltip/examples/with-icon-button.html +3 -5
- package/src/surfaces/admin/components/Tooltip.d.ts +98 -21
- package/src/surfaces/admin/components/URLField/examples/default.html +2 -2
- package/src/surfaces/admin/components/URLField/examples/with-default-value.html +5 -7
- package/src/surfaces/admin/components/URLField.d.ts +171 -14
- package/src/surfaces/admin/components/UnorderedList.d.ts +57 -9
- package/src/surfaces/admin/components/shared.d.ts +842 -772
- package/src/surfaces/admin/components.d.ts +2550 -1100
- package/src/surfaces/admin/extension-targets.ts +85 -169
- package/src/surfaces/checkout/api/docs.ts +0 -2
- package/src/surfaces/checkout/api/standard/standard.ts +0 -21
- package/src/surfaces/checkout/shared.ts +8 -11
- package/src/surfaces/customer-account/api/order-status/order-status.ts +360 -318
- package/src/surfaces/customer-account/api/shared.ts +84 -97
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +8 -10
- package/src/surfaces/customer-account/components/Abbreviation/examples/basic-abbreviation.example.html +1 -0
- package/src/surfaces/customer-account/components/Announcement/examples/basic-announcement.example.html +16 -0
- package/src/surfaces/customer-account/components/Badge/examples/basic-badge.example.html +3 -0
- package/src/surfaces/customer-account/components/Banner/examples/basic-banner.example.html +1 -0
- package/src/surfaces/customer-account/components/Box/examples/basic-box.example.html +11 -0
- package/src/surfaces/customer-account/components/Button/examples/basic-button.example.html +2 -0
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/src/surfaces/customer-account/components/Checkbox/examples/basic-checkbox.example.html +1 -0
- package/src/surfaces/customer-account/components/Chip/examples/basic-chip.example.html +1 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/basic-choice-list.example.html +7 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/block-choice-variant.example.html +47 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/grid-choice-variant.example.html +5 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/inline-choice-variant.example.html +6 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/list-choice-variant.example.html +5 -0
- package/src/surfaces/customer-account/components/Clickable/examples/basic-clickable.example.html +3 -0
- package/src/surfaces/customer-account/components/ClickableChip/examples/basic-clickable-chip.example.html +1 -0
- package/src/surfaces/customer-account/components/ClipboardItem/examples/basic-clipboard-item.example.html +2 -0
- package/src/surfaces/customer-account/components/ConsentCheckbox/examples/basic-consent-checkbox.example.html +5 -0
- package/src/surfaces/customer-account/components/ConsentPhoneField/examples/basic-consent-phone-field.example.html +5 -0
- package/src/surfaces/customer-account/components/DateField/examples/basic-date-field.example.html +1 -0
- package/src/surfaces/customer-account/components/DatePicker/examples/basic-date-picker.example.html +1 -0
- package/src/surfaces/customer-account/components/Details/examples/basic-details.example.html +6 -0
- package/src/surfaces/customer-account/components/DropZone/examples/basic-drop-zone.example.html +1 -0
- package/src/surfaces/customer-account/components/EmailField/examples/basic-email-field.example.html +1 -0
- package/src/surfaces/customer-account/components/Form/examples/basic-form.example.html +4 -0
- package/src/surfaces/customer-account/components/Grid/examples/basic-grid.example.html +11 -0
- package/src/surfaces/customer-account/components/Heading/examples/basic-heading.example.html +1 -0
- package/src/surfaces/customer-account/components/Icon/examples/basic-icon.example.html +4 -0
- package/src/surfaces/customer-account/components/Image/examples/basic-image.example.html +1 -0
- package/src/surfaces/customer-account/components/Link/examples/basic-link.example.html +1 -0
- package/src/surfaces/customer-account/components/Map/examples/basic-map.example.html +3 -0
- package/src/surfaces/customer-account/components/Map/examples/map-marker-graphic.example.html +14 -0
- package/src/surfaces/customer-account/components/Map/examples/map-marker-popover.example.html +14 -0
- package/src/surfaces/customer-account/components/Modal/examples/basic-modal.example.html +20 -0
- package/src/surfaces/customer-account/components/MoneyField/examples/basic-money-field.example.html +1 -0
- package/src/surfaces/customer-account/components/NumberField/examples/basic-number-field.example.html +8 -0
- package/src/surfaces/customer-account/components/OrderedList/examples/basic-ordered-list.example.html +5 -0
- package/src/surfaces/customer-account/components/Paragraph/examples/basic-paragraph.example.html +1 -0
- package/src/surfaces/customer-account/components/PasswordField/examples/basic-password-field.example.html +1 -0
- package/src/surfaces/customer-account/components/PaymentIcon/examples/basic-payment-icon.example.html +7 -0
- package/src/surfaces/customer-account/components/PhoneField/examples/basic-phone-field.example.html +2 -0
- package/src/surfaces/customer-account/components/Popover/examples/basic-popover.example.html +7 -0
- package/src/surfaces/customer-account/components/PressButton/examples/basic-press-button.example.html +1 -0
- package/src/surfaces/customer-account/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +4 -0
- package/src/surfaces/customer-account/components/Progress/examples/basic-progress.example.html +1 -0
- package/src/surfaces/customer-account/components/QRCode/examples/basic-qr-code.example.html +4 -0
- package/src/surfaces/{admin/components/QueryContainer/examples/default.jsx → customer-account/components/QueryContainer/examples/basic-query-container.example.html} +3 -3
- package/src/surfaces/customer-account/components/ScrollBox/examples/basic-scroll-box.example.html +5 -0
- package/src/surfaces/customer-account/components/Section.d.ts +2 -2
- package/src/surfaces/customer-account/components/Select/examples/basic-select.example.html +5 -0
- package/src/surfaces/customer-account/components/Sheet/examples/basic-sheet.example.html +5 -0
- package/src/surfaces/customer-account/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
- package/src/surfaces/customer-account/components/Spinner/examples/basic-spinner.example.html +1 -0
- package/src/surfaces/customer-account/components/Stack/examples/basic-stack.example.html +22 -0
- package/src/surfaces/customer-account/components/Switch/examples/basic-switch.example.html +1 -0
- package/src/surfaces/customer-account/components/Text/examples/basic-text.example.html +3 -0
- package/src/surfaces/customer-account/components/TextArea/examples/basic-text-area.example.html +5 -0
- package/src/surfaces/customer-account/components/TextField/examples/basic-text-field.example.html +4 -0
- package/src/surfaces/customer-account/components/Time/examples/basic-time.example.html +1 -0
- package/src/surfaces/customer-account/components/Tooltip/examples/basic-tooltip.example.html +9 -0
- package/src/surfaces/customer-account/components/URLField/examples/basic-url-field.example.html +1 -0
- package/src/surfaces/customer-account/components/UnorderedList/examples/basic-unordered-list.example.html +5 -0
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +1 -1
- package/src/surfaces/point-of-sale/components/Button.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/Stack.d.ts +10 -10
- package/src/surfaces/point-of-sale/components/Text.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/TextField.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +11 -11
- package/src/surfaces/point-of-sale/components.d.ts +43 -43
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +23 -2
- package/src/surfaces/admin/api/intents/examples/create-article.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-catalog.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-collection.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-customer.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-discount.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-market.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-menu.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-metafield-definition.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-metaobject-definition.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-metaobject.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-page.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-product.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-variant.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-article.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-catalog.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-collection.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-customer.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-discount.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-market.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-menu.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.js +0 -12
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-metaobject.js +0 -12
- package/src/surfaces/admin/api/intents/examples/edit-page.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-product.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-variant.js +0 -12
- package/src/surfaces/admin/api/picker/examples/direct-api.js +0 -73
- package/src/surfaces/admin/api/picker/examples/disabled.js +0 -16
- package/src/surfaces/admin/api/picker/examples/minimal.js +0 -16
- package/src/surfaces/admin/api/picker/examples/multiple-limit.js +0 -21
- package/src/surfaces/admin/api/picker/examples/multiple-true.js +0 -21
- package/src/surfaces/admin/api/picker/examples/preselected.js +0 -16
- package/src/surfaces/admin/api/picker/examples/template-picker.js +0 -37
- package/src/surfaces/admin/api/resource-picker/examples/action.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/collection-picker.js +0 -1
- package/src/surfaces/admin/api/resource-picker/examples/filter-query.js +0 -6
- package/src/surfaces/admin/api/resource-picker/examples/filters.js +0 -9
- package/src/surfaces/admin/api/resource-picker/examples/multiple-limited.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/multiple-unlimited.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/product-picker.js +0 -3
- package/src/surfaces/admin/api/resource-picker/examples/product-variant-picker.js +0 -1
- package/src/surfaces/admin/api/resource-picker/examples/query.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/selection-ids.js +0 -16
- package/src/surfaces/admin/api/resource-picker/examples/selection.js +0 -7
- package/src/surfaces/admin/components/AdminAction/examples/default.tsx +0 -15
- package/src/surfaces/admin/components/AdminBlock/examples/default.tsx +0 -1
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +0 -9
- package/src/surfaces/admin/components/Avatar/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/color-consistency-demo.jsx +0 -7
- package/src/surfaces/admin/components/Avatar/examples/default-avatar-no-props.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/error-handling-example.jsx +0 -5
- package/src/surfaces/admin/components/Avatar/examples/fulfillment-partner-avatars.jsx +0 -14
- package/src/surfaces/admin/components/Avatar/examples/in-customer-list-context.jsx +0 -24
- package/src/surfaces/admin/components/Avatar/examples/long-initials-handling.jsx +0 -5
- package/src/surfaces/admin/components/Avatar/examples/size-variations.jsx +0 -7
- package/src/surfaces/admin/components/Avatar/examples/staff-member-profiles.jsx +0 -10
- package/src/surfaces/admin/components/Avatar/examples/with-image-source-and-fallback.jsx +0 -6
- package/src/surfaces/admin/components/Avatar/examples/with-section-component.jsx +0 -17
- package/src/surfaces/admin/components/Badge/examples/default.jsx +0 -8
- package/src/surfaces/admin/components/Badge/examples/different-sizes-for-emphasis.jsx +0 -4
- package/src/surfaces/admin/components/Badge/examples/order-status-badges.html +0 -6
- package/src/surfaces/admin/components/Badge/examples/order-status-badges.jsx +0 -6
- package/src/surfaces/admin/components/Badge/examples/status-indicators-with-icons.jsx +0 -21
- package/src/surfaces/admin/components/Badge/examples/within-table-context.jsx +0 -18
- package/src/surfaces/admin/components/Banner/examples/basic-information-banner.html +0 -3
- package/src/surfaces/admin/components/Banner/examples/basic-information-banner.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/critical-banner-with-clear-next-steps.jsx +0 -18
- package/src/surfaces/admin/components/Banner/examples/default.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/dismissible-success-banner.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/info-banner-with-clear-value-proposition.html +0 -14
- package/src/surfaces/admin/components/Banner/examples/info-banner-with-clear-value-proposition.jsx +0 -14
- package/src/surfaces/admin/components/Banner/examples/warning-banner-with-specific-actions.jsx +0 -18
- package/src/surfaces/admin/components/Box/examples/accessible-status-messages.jsx +0 -14
- package/src/surfaces/admin/components/Box/examples/basic-container.html +0 -9
- package/src/surfaces/admin/components/Box/examples/basic-container.jsx +0 -9
- package/src/surfaces/admin/components/Box/examples/complex-merchant-dashboard-layout.jsx +0 -34
- package/src/surfaces/admin/components/Box/examples/default.jsx +0 -7
- package/src/surfaces/admin/components/Box/examples/responsive-shipping-notice.jsx +0 -10
- package/src/surfaces/admin/components/Button/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Button/examples/bulk-actions.html +0 -4
- package/src/surfaces/admin/components/Button/examples/bulk-actions.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/component-interactions.jsx +0 -7
- package/src/surfaces/admin/components/Button/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Button/examples/delete-confirmation.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/form-states.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/icon-only-button.jsx +0 -1
- package/src/surfaces/admin/components/Button/examples/link-buttons.jsx +0 -9
- package/src/surfaces/admin/components/Button/examples/loading-state-for-merchant-actions.jsx +0 -11
- package/src/surfaces/admin/components/Button/examples/navigation-to-admin-sections.html +0 -2
- package/src/surfaces/admin/components/Button/examples/navigation-to-admin-sections.jsx +0 -3
- package/src/surfaces/admin/components/Button/examples/product-save-form.html +0 -4
- package/src/surfaces/admin/components/Button/examples/product-save-form.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/tones.jsx +0 -5
- package/src/surfaces/admin/components/Button/examples/toolbar-icon-buttons.html +0 -17
- package/src/surfaces/admin/components/Button/examples/toolbar-icon-buttons.jsx +0 -17
- package/src/surfaces/admin/components/Button/examples/variants.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/with-icon.jsx +0 -1
- package/src/surfaces/admin/components/ButtonGroup/examples/basic-usage.html +0 -4
- package/src/surfaces/admin/components/ButtonGroup/examples/basic-usage.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/bulk-actions-in-data-tables.jsx +0 -7
- package/src/surfaces/admin/components/ButtonGroup/examples/destructive-actions-pattern.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/form-action-buttons.html +0 -4
- package/src/surfaces/admin/components/ButtonGroup/examples/form-action-buttons.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/segmented-appearance.jsx +0 -5
- package/src/surfaces/admin/components/ButtonGroup/examples/toolbar-buttons-with-icons.jsx +0 -11
- package/src/surfaces/admin/components/Checkbox/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/disabled-state.jsx +0 -5
- package/src/surfaces/admin/components/Checkbox/examples/error-state.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/help-text.html +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/help-text.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.jsx +0 -21
- package/src/surfaces/admin/components/Checkbox/examples/settings-group.jsx +0 -12
- package/src/surfaces/admin/components/Checkbox/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/Chip/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Chip/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Chip/examples/color-variants.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Chip/examples/product-status.html +0 -8
- package/src/surfaces/admin/components/Chip/examples/product-status.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/text-truncation.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/with-icon-graphic.jsx +0 -4
- package/src/surfaces/admin/components/ChoiceList/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/ChoiceList/examples/default.jsx +0 -16
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-choices-with-details.html +0 -18
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-choices-with-details.jsx +0 -18
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-selections.jsx +0 -15
- package/src/surfaces/admin/components/ChoiceList/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/ChoiceList/examples/with-error-state.jsx +0 -8
- package/src/surfaces/admin/components/Clickable/examples/accessibility-with-aria-attributes.jsx +0 -8
- package/src/surfaces/admin/components/Clickable/examples/basic-button-usage.html +0 -1
- package/src/surfaces/admin/components/Clickable/examples/basic-button-usage.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/default.jsx +0 -12
- package/src/surfaces/admin/components/Clickable/examples/disabled-link-with-aria.jsx +0 -7
- package/src/surfaces/admin/components/Clickable/examples/form-submit-button.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/link-mode.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/section-with-clickable-action.jsx +0 -9
- package/src/surfaces/admin/components/ClickableChip/examples/as-a-link.jsx +0 -8
- package/src/surfaces/admin/components/ClickableChip/examples/basic-usage.jsx +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ClickableChip/examples/disabled-state.jsx +0 -7
- package/src/surfaces/admin/components/ClickableChip/examples/multiple-chips-with-proper-spacing.html +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/multiple-chips-with-proper-spacing.jsx +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/with-icon-and-remove-button.jsx +0 -8
- package/src/surfaces/admin/components/ColorField/examples/basic-usage-required.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/basic-usage-web-component.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ColorField/examples/form-integration.jsx +0 -28
- package/src/surfaces/admin/components/ColorField/examples/read-only-state.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/validation-example.jsx +0 -21
- package/src/surfaces/admin/components/ColorField/examples/with-alpha-transparency.jsx +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-error-state.jsx +0 -9
- package/src/surfaces/admin/components/ColorField/examples/with-help-text.jsx +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-placeholder.html +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-placeholder.jsx +0 -7
- package/src/surfaces/admin/components/ColorPicker/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/ColorPicker/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/ColorPicker/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ColorPicker/examples/with-alpha-transparency.jsx +0 -7
- package/src/surfaces/admin/components/DateField/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/date-fields-with-validation.html +0 -29
- package/src/surfaces/admin/components/DateField/examples/date-fields-with-validation.jsx +0 -29
- package/src/surfaces/admin/components/DateField/examples/date-range-selection.jsx +0 -19
- package/src/surfaces/admin/components/DateField/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/DateField/examples/disabled-and-read-only-states.jsx +0 -15
- package/src/surfaces/admin/components/DateField/examples/form-integration.jsx +0 -27
- package/src/surfaces/admin/components/DateField/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/DateField/examples/with-date-restrictions.jsx +0 -6
- package/src/surfaces/admin/components/DateField/examples/with-default-value.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/with-error-state.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/with-specific-allowed-dates.jsx +0 -6
- package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.jsx +0 -35
- package/src/surfaces/admin/components/DatePicker/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/DatePicker/examples/form-integration.jsx +0 -28
- package/src/surfaces/admin/components/DatePicker/examples/single-date-selection.jsx +0 -6
- package/src/surfaces/admin/components/DatePicker/examples/with-date-restrictions.jsx +0 -7
- package/src/surfaces/admin/components/Divider/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/custom-color.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/custom-direction.jsx +0 -5
- package/src/surfaces/admin/components/Divider/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/organizing-settings-panels.html +0 -9
- package/src/surfaces/admin/components/Divider/examples/organizing-settings-panels.jsx +0 -9
- package/src/surfaces/admin/components/Divider/examples/separating-content-sections.html +0 -13
- package/src/surfaces/admin/components/Divider/examples/separating-content-sections.jsx +0 -13
- package/src/surfaces/admin/components/Divider/examples/separating-form-sections.jsx +0 -7
- package/src/surfaces/admin/components/Divider/examples/visual-breaks-in-section-layouts.html +0 -12
- package/src/surfaces/admin/components/Divider/examples/visual-breaks-in-section-layouts.jsx +0 -12
- package/src/surfaces/admin/components/DropZone/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/default.jsx +0 -9
- package/src/surfaces/admin/components/DropZone/examples/disabled-state.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/file-type-restrictions.jsx +0 -5
- package/src/surfaces/admin/components/DropZone/examples/image-upload.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/required-field.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/with-accessibility-options.jsx +0 -6
- package/src/surfaces/admin/components/DropZone/examples/with-error-state.jsx +0 -4
- package/src/surfaces/admin/components/EmailField/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/EmailField/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/EmailField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/EmailField/examples/optional-field-with-placeholder.html +0 -7
- package/src/surfaces/admin/components/EmailField/examples/optional-field-with-placeholder.jsx +0 -7
- package/src/surfaces/admin/components/EmailField/examples/read-only-display.jsx +0 -7
- package/src/surfaces/admin/components/EmailField/examples/validation-example.jsx +0 -21
- package/src/surfaces/admin/components/EmailField/examples/with-error-and-help-text.jsx +0 -8
- package/src/surfaces/admin/components/EmailField/examples/with-length-constraints.jsx +0 -8
- package/src/surfaces/admin/components/Form/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/FunctionSettings/examples/default.tsx +0 -38
- package/src/surfaces/admin/components/Grid/examples/basic-two-column-layout.jsx +0 -12
- package/src/surfaces/admin/components/Grid/examples/col-span-layouts.jsx +0 -34
- package/src/surfaces/admin/components/Grid/examples/default.jsx +0 -15
- package/src/surfaces/admin/components/Grid/examples/mobile-first-responsive-grid.jsx +0 -53
- package/src/surfaces/admin/components/Heading/examples/basic-heading.html +0 -1
- package/src/surfaces/admin/components/Heading/examples/basic-heading.jsx +0 -1
- package/src/surfaces/admin/components/Heading/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Heading/examples/heading-with-custom-accessibility.jsx +0 -3
- package/src/surfaces/admin/components/Heading/examples/heading-with-line-clamping.jsx +0 -5
- package/src/surfaces/admin/components/Heading/examples/heading-within-section-hierarchy.jsx +0 -12
- package/src/surfaces/admin/components/Icon/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/Icon/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Icon/examples/in-badge-components.jsx +0 -8
- package/src/surfaces/admin/components/Icon/examples/in-button-components.jsx +0 -8
- package/src/surfaces/admin/components/Icon/examples/small-size.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/subdued-color.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/with-id-property.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/with-interest-relationship.jsx +0 -6
- package/src/surfaces/admin/components/Icon/examples/with-semantic-tone.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/auto-sized-image.html +0 -5
- package/src/surfaces/admin/components/Image/examples/auto-sized-image.jsx +0 -5
- package/src/surfaces/admin/components/Image/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Image/examples/decorative-image.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/responsive-images-with-srcset.jsx +0 -9
- package/src/surfaces/admin/components/Image/examples/responsive-layout-with-aspect-ratio.jsx +0 -7
- package/src/surfaces/admin/components/Image/examples/with-border-styling.jsx +0 -12
- package/src/surfaces/admin/components/Image/examples/within-layout-components.jsx +0 -26
- package/src/surfaces/admin/components/Link/examples/basic-links-in-paragraph.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/critical-context-links.html +0 -3
- package/src/surfaces/admin/components/Link/examples/critical-context-links.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Link/examples/download-links.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/external-links.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner-context.html +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner-context.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-box-container.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-subdued-paragraph.html +0 -3
- package/src/surfaces/admin/components/Link/examples/links-in-subdued-paragraph.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-auto-tone.html +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-auto-tone.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-different-tones.jsx +0 -25
- package/src/surfaces/admin/components/Link/examples/links-with-language-attribute.jsx +0 -3
- package/src/surfaces/admin/components/Menu/examples/basic-menu.html +0 -7
- package/src/surfaces/admin/components/Menu/examples/basic-menu.jsx +0 -9
- package/src/surfaces/admin/components/Menu/examples/customer-actions-menu.jsx +0 -18
- package/src/surfaces/admin/components/Menu/examples/default.jsx +0 -11
- package/src/surfaces/admin/components/Menu/examples/menu-with-icons.jsx +0 -14
- package/src/surfaces/admin/components/Menu/examples/menu-with-links-and-disabled-items.jsx +0 -13
- package/src/surfaces/admin/components/Menu/examples/menu-with-sections.jsx +0 -15
- package/src/surfaces/admin/components/Menu/examples/settings-menu.jsx +0 -19
- package/src/surfaces/admin/components/NumberField/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/NumberField/examples/default.jsx +0 -8
- package/src/surfaces/admin/components/NumberField/examples/multiple-examples.html +0 -29
- package/src/surfaces/admin/components/NumberField/examples/multiple-examples.jsx +0 -29
- package/src/surfaces/admin/components/NumberField/examples/with-prefix-and-suffix.jsx +0 -9
- package/src/surfaces/admin/components/OrderedList/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/fulfillment-process.html +0 -18
- package/src/surfaces/admin/components/OrderedList/examples/fulfillment-process.jsx +0 -18
- package/src/surfaces/admin/components/OrderedList/examples/order-processing-steps.html +0 -8
- package/src/surfaces/admin/components/OrderedList/examples/order-processing-steps.jsx +0 -8
- package/src/surfaces/admin/components/OrderedList/examples/product-setup-instructions.jsx +0 -13
- package/src/surfaces/admin/components/Paragraph/examples/admin-ui-patterns.html +0 -21
- package/src/surfaces/admin/components/Paragraph/examples/admin-ui-patterns.jsx +0 -21
- package/src/surfaces/admin/components/Paragraph/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Paragraph/examples/line-clamping.jsx +0 -8
- package/src/surfaces/admin/components/Paragraph/examples/rtl-support.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/screen-reader-text.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/tabular-numbers.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/with-tone-and-color.jsx +0 -9
- package/src/surfaces/admin/components/QueryContainer/examples/basic-usage.jsx +0 -17
- package/src/surfaces/admin/components/SearchField/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/SearchField/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/SearchField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/SearchField/examples/disabled-state.jsx +0 -6
- package/src/surfaces/admin/components/SearchField/examples/with-character-limits.jsx +0 -7
- package/src/surfaces/admin/components/SearchField/examples/with-error-state.jsx +0 -6
- package/src/surfaces/admin/components/Section/examples/default.jsx +0 -3
- package/src/surfaces/admin/components/Section/examples/full-width-content-layout.jsx +0 -18
- package/src/surfaces/admin/components/Section/examples/nested-sections-with-visual-level-differences.jsx +0 -23
- package/src/surfaces/admin/components/Section/examples/section-with-accessibility-label.jsx +0 -13
- package/src/surfaces/admin/components/Section/examples/top-level-section-with-form-elements.jsx +0 -5
- package/src/surfaces/admin/components/Spinner/examples/basic-usage.html +0 -1
- package/src/surfaces/admin/components/Spinner/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Spinner/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Spinner/examples/inline-loading-with-text.jsx +0 -4
- package/src/surfaces/admin/components/Spinner/examples/loading-state-in-section.jsx +0 -4
- package/src/surfaces/admin/components/Stack/examples/basic-block-stack-vertical.html +0 -5
- package/src/surfaces/admin/components/Stack/examples/basic-block-stack-vertical.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/custom-alignment.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/custom-spacing.jsx +0 -18
- package/src/surfaces/admin/components/Stack/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Stack/examples/inline-stack-horizontal.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/responsive-stack-with-container-queries.jsx +0 -23
- package/src/surfaces/admin/components/Table/examples/default.jsx +0 -30
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.html +0 -65
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.jsx +0 -65
- package/src/surfaces/admin/components/Table/examples/list-variant.jsx +0 -44
- package/src/surfaces/admin/components/Table/examples/with-loading-state.jsx +0 -40
- package/src/surfaces/admin/components/Table/examples/with-pagination.jsx +0 -27
- package/src/surfaces/admin/components/Text/examples/accessibility-hidden-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Text/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Text/examples/interest-for-association.jsx +0 -8
- package/src/surfaces/admin/components/Text/examples/right-to-left-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/semantic-address.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/status-tones.jsx +0 -5
- package/src/surfaces/admin/components/Text/examples/strong-text.html +0 -3
- package/src/surfaces/admin/components/Text/examples/strong-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/subdued-color.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/tabular-numbers.jsx +0 -3
- package/src/surfaces/admin/components/TextArea/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/TextArea/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/TextArea/examples/error-state.jsx +0 -8
- package/src/surfaces/admin/components/TextArea/examples/product-care-instructions.html +0 -7
- package/src/surfaces/admin/components/TextArea/examples/product-care-instructions.jsx +0 -7
- package/src/surfaces/admin/components/TextArea/examples/seo-meta-description-with-character-limit.jsx +0 -8
- package/src/surfaces/admin/components/TextField/examples/basic-usage.html +0 -1
- package/src/surfaces/admin/components/TextField/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/TextField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/TextField/examples/required-field-with-validation.html +0 -1
- package/src/surfaces/admin/components/TextField/examples/required-field-with-validation.jsx +0 -1
- package/src/surfaces/admin/components/TextField/examples/specific-error-messages-for-merchant-context.jsx +0 -16
- package/src/surfaces/admin/components/TextField/examples/with-accessory.jsx +0 -6
- package/src/surfaces/admin/components/TextField/examples/with-icon.jsx +0 -5
- package/src/surfaces/admin/components/TextField/examples/with-prefix-and-suffix.jsx +0 -11
- package/src/surfaces/admin/components/Thumbnail/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/Thumbnail/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/Thumbnail/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Thumbnail/examples/different-sizes.jsx +0 -17
- package/src/surfaces/admin/components/Thumbnail/examples/empty-state.jsx +0 -1
- package/src/surfaces/admin/components/Thumbnail/examples/with-event-handling.jsx +0 -13
- package/src/surfaces/admin/components/Tooltip/examples/basic-usage.jsx +0 -6
- package/src/surfaces/admin/components/Tooltip/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Tooltip/examples/with-icon-button.jsx +0 -8
- package/src/surfaces/admin/components/UnorderedList/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/UnorderedList/examples/store-setup-checklist.jsx +0 -24
- /package/src/surfaces/admin/components/Button/examples/{basic-usage.html → basic-button.html} +0 -0
- /package/src/surfaces/{admin/components/Divider/examples/basic-usage.html → customer-account/components/Divider/examples/basic-divider.example.html} +0 -0
|
@@ -1,99 +1,94 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The response returned when a merchant closes or cancels the workflow without completing it. Check for this response to handle cancellation gracefully in your extension.
|
|
3
3
|
*/
|
|
4
4
|
export interface ClosedIntentResponse {
|
|
5
|
+
/** Indicates the workflow was closed without completion. When `'closed'`, the merchant exited the workflow before finishing. */
|
|
5
6
|
code?: 'closed';
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* The response returned when a merchant successfully completes the workflow. Use this to access the created or updated resource data.
|
|
9
10
|
*/
|
|
10
11
|
export interface SuccessIntentResponse {
|
|
12
|
+
/** Indicates successful completion. When `'ok'`, the merchant completed the workflow and the resource was created or updated. */
|
|
11
13
|
code?: 'ok';
|
|
14
|
+
/** Additional data returned by the workflow, such as the created or updated resource information with IDs and properties. */
|
|
12
15
|
data?: {
|
|
13
16
|
[key: string]: unknown;
|
|
14
17
|
};
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* The response returned when the workflow fails due to validation errors or other issues. Use this to display error messages and help merchants fix problems.
|
|
18
21
|
*/
|
|
19
22
|
export interface ErrorIntentResponse {
|
|
23
|
+
/** Indicates the workflow failed. When `'error'`, the workflow encountered validation errors or other issues that prevented completion. */
|
|
20
24
|
code?: 'error';
|
|
25
|
+
/** A general error message describing what went wrong. Use this to display feedback when specific field errors aren't available. */
|
|
21
26
|
message?: string;
|
|
27
|
+
/** Specific validation issues or field errors. Present when validation fails on particular fields, allowing you to show targeted error messages. */
|
|
22
28
|
issues?: {
|
|
23
|
-
/**
|
|
24
|
-
* The path to the field with the issue.
|
|
25
|
-
*/
|
|
29
|
+
/** The path to the field that has an error (for example, `['product', 'title']`). Use this to identify which field caused the validation failure. */
|
|
26
30
|
path?: string[];
|
|
27
|
-
/**
|
|
28
|
-
* The error message for the issue.
|
|
29
|
-
*/
|
|
31
|
+
/** A description of what's wrong with this field. Display this to help merchants understand how to fix the error. */
|
|
30
32
|
message?: string;
|
|
31
|
-
/**
|
|
32
|
-
* A code identifier for the issue.
|
|
33
|
-
*/
|
|
33
|
+
/** A machine-readable error code for this issue. Use this for programmatic error handling or logging. */
|
|
34
34
|
code?: string;
|
|
35
35
|
}[];
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Discriminated union representing all possible completion outcomes.
|
|
38
|
+
* The result of an intent workflow. Check the `code` property to determine the outcome: `'ok'` for success, `'error'` for failure, or `'closed'` if the merchant cancelled.
|
|
40
39
|
*/
|
|
41
40
|
export type IntentResponse = SuccessIntentResponse | ErrorIntentResponse | ClosedIntentResponse;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* A handle for tracking an in-progress intent workflow.
|
|
44
43
|
*/
|
|
45
44
|
export interface IntentActivity {
|
|
46
45
|
/**
|
|
47
|
-
* A Promise that resolves when the
|
|
46
|
+
* A Promise that resolves when the workflow completes. Await this to get the outcome and handle success, failure, or cancellation appropriately.
|
|
48
47
|
*/
|
|
49
48
|
complete?: Promise<IntentResponse>;
|
|
50
49
|
}
|
|
51
50
|
/**
|
|
52
|
-
* The
|
|
51
|
+
* The type of operation to perform: creating a new resource or editing an existing one.
|
|
53
52
|
*/
|
|
54
53
|
export type IntentAction = 'create' | 'edit';
|
|
55
54
|
/**
|
|
56
|
-
*
|
|
55
|
+
* The types of Shopify resources that support intent-based creation and editing workflows.
|
|
57
56
|
*/
|
|
58
57
|
export type IntentType = 'shopify/Article' | 'shopify/Catalog' | 'shopify/Collection' | 'shopify/Customer' | 'shopify/Discount' | 'shopify/Market' | 'shopify/Menu' | 'shopify/MetafieldDefinition' | 'shopify/Metaobject' | 'shopify/MetaobjectDefinition' | 'shopify/Page' | 'shopify/Product' | 'shopify/ProductVariant';
|
|
59
58
|
/**
|
|
60
|
-
*
|
|
59
|
+
* Additional parameters for intent invocation when using the string query format. Use these options to provide resource IDs for editing or pass required context data for resource creation.
|
|
61
60
|
*/
|
|
62
61
|
export interface IntentQueryOptions {
|
|
63
62
|
/**
|
|
64
|
-
* The resource identifier for edit
|
|
63
|
+
* The resource identifier for edit operations (for example, `'gid://shopify/Product/123'`). Required when editing existing resources. Omit this for create operations.
|
|
65
64
|
*/
|
|
66
65
|
value?: string;
|
|
67
66
|
/**
|
|
68
|
-
* Additional data required
|
|
69
|
-
* For example:
|
|
70
|
-
* - Discount creation requires { type: 'amount-off-product' | 'amount-off-order' | 'buy-x-get-y' | 'free-shipping' }
|
|
71
|
-
* - ProductVariant creation requires { productId: 'gid://shopify/Product/123' }
|
|
72
|
-
* - Metaobject creation requires { type: 'shopify--color-pattern' }
|
|
67
|
+
* Additional context data required by specific intent types. For example, discount creation requires a discount type, variant creation requires a parent product ID, and [metaobject](/docs/apps/build/custom-data/metaobjects) creation requires a definition type.
|
|
73
68
|
*/
|
|
74
69
|
data?: {
|
|
75
70
|
[key: string]: unknown;
|
|
76
71
|
};
|
|
77
72
|
}
|
|
78
73
|
/**
|
|
79
|
-
*
|
|
74
|
+
* A structured intent specification defining what workflow to launch. Use this format when you prefer object syntax over string query format.
|
|
80
75
|
*/
|
|
81
76
|
export interface IntentQuery extends IntentQueryOptions {
|
|
82
77
|
/**
|
|
83
|
-
* The operation to perform
|
|
78
|
+
* The operation to perform: `'create'` for new resources or `'edit'` for existing ones.
|
|
84
79
|
*/
|
|
85
80
|
action: IntentAction;
|
|
86
81
|
/**
|
|
87
|
-
* The resource
|
|
82
|
+
* The type of resource to create or edit (for example, `'shopify/Product'`).
|
|
88
83
|
*/
|
|
89
84
|
type: IntentType;
|
|
90
85
|
}
|
|
91
86
|
/**
|
|
92
|
-
* The invoke API for
|
|
87
|
+
* The [`invoke` method](/docs/api/admin-extensions/{API_VERSION}/target-apis/utility-apis/intents-api#invoke-method) in the Intents API launches a Shopify admin workflow for creating or editing resources, such as products, customers, or discounts. It opens a native admin interface, waits for the merchant to complete the workflow, and returns the result including any created or updated resource data.
|
|
93
88
|
*
|
|
94
|
-
* @param intent - Either a string query or structured object describing the intent
|
|
95
|
-
* @param options - Optional parameters when using string query format
|
|
96
|
-
* @returns A Promise resolving to an activity handle for tracking the workflow
|
|
89
|
+
* @param intent - Either a string query (for example, `'create:shopify/Product'`) or structured object describing the intent
|
|
90
|
+
* @param options - Optional parameters when using string query format, such as resource IDs for editing or additional context data
|
|
91
|
+
* @returns A Promise resolving to an activity handle for tracking the workflow and accessing the completion result
|
|
97
92
|
*
|
|
98
93
|
* @example
|
|
99
94
|
* ```javascript
|
|
@@ -117,15 +112,15 @@ export interface IntentInvokeApi {
|
|
|
117
112
|
(intentURL: string, options?: IntentQueryOptions): Promise<IntentActivity>;
|
|
118
113
|
}
|
|
119
114
|
/**
|
|
120
|
-
*
|
|
115
|
+
* The `Intents` object provides methods for launching standardized Shopify workflows to create or edit resources. Intents enable your extension to trigger native admin interfaces for products, customers, discounts, and other resources, then receive the results when merchants complete the workflow.
|
|
121
116
|
*/
|
|
122
117
|
export interface Intents {
|
|
123
118
|
/**
|
|
124
|
-
* The URL that was
|
|
119
|
+
* The URL that launched the current intent workflow, if your extension was opened through an intent. Use this to determine how your extension was invoked and access any parameters passed in the URL.
|
|
125
120
|
*/
|
|
126
121
|
launchUrl?: string | URL;
|
|
127
122
|
/**
|
|
128
|
-
*
|
|
123
|
+
* Launches an intent workflow for creating or editing Shopify resources. Returns a handle that resolves when the merchant completes, cancels, or encounters an error in the workflow. Use this to initiate resource creation or editing without building custom forms.
|
|
129
124
|
*/
|
|
130
125
|
invoke?: IntentInvokeApi;
|
|
131
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/intents/intents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE;QACP
|
|
1
|
+
{"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/intents/intents.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,gIAAgI;IAChI,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,iIAAiI;IACjI,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,6HAA6H;IAC7H,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,2IAA2I;IAC3I,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oIAAoI;IACpI,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oJAAoJ;IACpJ,MAAM,CAAC,EAAE;QACP,qJAAqJ;QACrJ,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,qHAAqH;QACrH,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,yGAAyG;QACzG,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,6BAA6B,GAC7B,oBAAoB,GACpB,8BAA8B,GAC9B,cAAc,GACd,iBAAiB,GACjB,wBAAwB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5E;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intents.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/intents/intents.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"intents.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/intents/intents.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA6mBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,19 +1,39 @@
|
|
|
1
1
|
import type { SupportedDefinitionType } from './metafields';
|
|
2
|
+
/**
|
|
3
|
+
* A [metafield](/docs/apps/build/metafields) associated with an order routing rule. Use metafields to persist settings that control how your order routing function behaves, such as location preferences, routing criteria, or custom fulfillment rules.
|
|
4
|
+
*/
|
|
2
5
|
interface Metafield {
|
|
6
|
+
/** The unique global identifier (GID) for this metafield. Present for existing metafields, absent for new ones. Use this ID to reference the metafield in GraphQL operations. */
|
|
3
7
|
id?: string | null;
|
|
8
|
+
/** The unique key identifying this metafield within its namespace. This key determines how you access the metafield value (for example, `'preferred_location'` or `'routing_priority'`). */
|
|
4
9
|
key: string;
|
|
10
|
+
/** The metafield value stored as a string. Parse this value according to the metafield type to use it in your settings UI. */
|
|
5
11
|
value?: string | null;
|
|
12
|
+
/** The namespace that organizes related metafields together. Use consistent namespaces to group related settings for your order routing rule. */
|
|
6
13
|
namespace?: string;
|
|
14
|
+
/** The metafield [definition type](/docs/apps/build/metafields/list-of-data-types) that specifies the value format and validation rules. Use this to determine how to parse and display the value. */
|
|
7
15
|
type?: SupportedDefinitionType;
|
|
8
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* An order routing rule configuration that determines how orders are routed to fulfillment locations. Use this to access the rule's current settings and populate your configuration interface.
|
|
19
|
+
*/
|
|
9
20
|
interface OrderRoutingRule {
|
|
21
|
+
/** The display label for the order routing rule shown to merchants in the admin. Use this to identify the rule in lists and settings pages. */
|
|
10
22
|
label: string;
|
|
23
|
+
/** A description explaining the rule's purpose and how it routes orders. Use this to help merchants understand what the rule does. */
|
|
11
24
|
description: string;
|
|
25
|
+
/** The unique global identifier (GID) for the order routing rule. Use this ID to associate configuration changes with the correct rule. */
|
|
12
26
|
id: string;
|
|
27
|
+
/** The priority order for rule evaluation when multiple rules exist. Lower numbers are evaluated first (for example, a rule with priority 1 runs before priority 2). Use this to understand the rule's position in the evaluation sequence. */
|
|
13
28
|
priority?: number;
|
|
29
|
+
/** An array of [metafields](/docs/apps/build/metafields) that store the routing rule's configuration values. Use these metafields to populate your settings UI with the current rule configuration. */
|
|
14
30
|
metafields: Metafield[];
|
|
15
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The `data` object exposed to order routing rule extensions in the `admin.settings.order-routing-rule.render` target. Use this to access the current rule configuration and build your settings interface.
|
|
34
|
+
*/
|
|
16
35
|
export interface Data {
|
|
36
|
+
/** The order routing rule being configured by the merchant. Use this to access the rule's properties and populate your settings UI with existing configuration values. */
|
|
17
37
|
rule: OrderRoutingRule;
|
|
18
38
|
}
|
|
19
39
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAE1D,UAAU,SAAS;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,uBAAuB,CAAC;CAChC;AAED,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAE1D;;GAEG;AACH,UAAU,SAAS;IACjB,iLAAiL;IACjL,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,4LAA4L;IAC5L,GAAG,EAAE,MAAM,CAAC;IACZ,8HAA8H;IAC9H,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iJAAiJ;IACjJ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sMAAsM;IACtM,IAAI,CAAC,EAAE,uBAAuB,CAAC;CAChC;AAED;;GAEG;AACH,UAAU,gBAAgB;IACxB,+IAA+I;IAC/I,KAAK,EAAE,MAAM,CAAC;IACd,sIAAsI;IACtI,WAAW,EAAE,MAAM,CAAC;IACpB,2IAA2I;IAC3I,EAAE,EAAE,MAAM,CAAC;IACX,+OAA+O;IAC/O,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uMAAuM;IACvM,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,0KAA0K;IAC1K,IAAI,EAAE,gBAAgB,CAAC;CACxB"}
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
declare const supportedDefinitionTypes: readonly ["boolean", "collection_reference", "color", "date", "date_time", "dimension", "file_reference", "json", "metaobject_reference", "mixed_reference", "money", "multi_line_text_field", "number_decimal", "number_integer", "page_reference", "product_reference", "rating", "rich_text_field", "single_line_text_field", "product_taxonomy_value_reference", "url", "variant_reference", "volume", "weight", "list.collection_reference", "list.color", "list.date", "list.date_time", "list.dimension", "list.file_reference", "list.metaobject_reference", "list.mixed_reference", "list.number_decimal", "list.number_integer", "list.page_reference", "list.product_reference", "list.rating", "list.single_line_text_field", "list.url", "list.variant_reference", "list.volume", "list.weight"];
|
|
2
|
+
/**
|
|
3
|
+
* A metafield update or creation operation. Use this to set or modify metafield values that store order routing rule configuration data.
|
|
4
|
+
*/
|
|
2
5
|
interface MetafieldUpdateChange {
|
|
6
|
+
/** Identifies this as an update operation. Always set to `'updateMetafield'` for updates. */
|
|
3
7
|
type: 'updateMetafield';
|
|
8
|
+
/** The unique key identifying the metafield within its namespace. Use descriptive keys that indicate the setting's purpose (for example, `'preferred_location'` or `'routing_priority'`). */
|
|
4
9
|
key: string;
|
|
10
|
+
/** The namespace that organizes related metafields. When omitted, a default namespace is assigned. Use consistent namespaces to group related settings. */
|
|
5
11
|
namespace?: string;
|
|
12
|
+
/** The metafield value to store. Can be a string or number depending on your configuration needs. */
|
|
6
13
|
value: string | number;
|
|
14
|
+
/** The [data type](/docs/apps/build/metafields/list-of-data-types) that defines how the value is formatted and validated. When omitted, preserves the existing type for updates or uses a default for new metafields. Choose a type that matches your value format. */
|
|
7
15
|
valueType?: SupportedDefinitionType;
|
|
8
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* A metafield removal operation. Use this to delete metafields that are no longer needed for your order routing rule configuration.
|
|
19
|
+
*/
|
|
9
20
|
interface MetafieldRemoveChange {
|
|
21
|
+
/** Identifies this as a removal operation. Always set to `'removeMetafield'` for deletions. */
|
|
10
22
|
type: 'removeMetafield';
|
|
23
|
+
/** The unique key of the metafield to remove. Must match the key used when the metafield was created. */
|
|
11
24
|
key: string;
|
|
25
|
+
/** The namespace containing the metafield to remove. Required to ensure the correct metafield is targeted, as the same key can exist in different namespaces. */
|
|
12
26
|
namespace: string;
|
|
13
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* One or more metafield change operations to apply to order routing rule settings. Can be a single change or an array of changes for batch operations. Use arrays to apply multiple changes at once.
|
|
30
|
+
*/
|
|
14
31
|
type MetafieldsChange = MetafieldUpdateChange | MetafieldRemoveChange | MetafieldUpdateChange[] | MetafieldRemoveChange[];
|
|
32
|
+
/**
|
|
33
|
+
* The supported [metafield definition types](/docs/apps/build/metafields/list-of-data-types) for storing order routing rule configuration data. Use these types to specify how metafield values should be formatted, validated, and displayed. Types prefixed with `list.` store arrays of values, while other types store single values.
|
|
34
|
+
*/
|
|
15
35
|
export type SupportedDefinitionType = (typeof supportedDefinitionTypes)[number];
|
|
36
|
+
/**
|
|
37
|
+
* A function that applies metafield changes to order routing rule settings. Call this function with one or more change operations to update or remove metafields in batch. Use batch operations to apply multiple configuration changes efficiently.
|
|
38
|
+
*/
|
|
16
39
|
export type ApplyMetafieldsChange = (changes: MetafieldsChange[]) => void;
|
|
17
40
|
export {};
|
|
18
41
|
//# sourceMappingURL=metafields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metafields.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/metafields.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,wBAAwB,+wBA2CpB,CAAC;AAEX,UAAU,qBAAqB;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,KAAK,gBAAgB,GACjB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,qBAAqB,EAAE,CAAC;AAE5B,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"metafields.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/metafields.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,wBAAwB,+wBA2CpB,CAAC;AAEX;;GAEG;AACH,UAAU,qBAAqB;IAC7B,6FAA6F;IAC7F,IAAI,EAAE,iBAAiB,CAAC;IACxB,6LAA6L;IAC7L,GAAG,EAAE,MAAM,CAAC;IACZ,2JAA2J;IAC3J,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qGAAqG;IACrG,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,uQAAuQ;IACvQ,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED;;GAEG;AACH,UAAU,qBAAqB;IAC7B,+FAA+F;IAC/F,IAAI,EAAE,iBAAiB,CAAC;IACxB,yGAAyG;IACzG,GAAG,EAAE,MAAM,CAAC;IACZ,iKAAiK;IACjK,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,KAAK,gBAAgB,GACjB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,qBAAqB,EAAE,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC"}
|
|
@@ -2,8 +2,13 @@ import type { StandardApi } from '../standard/standard';
|
|
|
2
2
|
import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targets';
|
|
3
3
|
import { ApplyMetafieldsChange } from './metafields';
|
|
4
4
|
import { Data } from './data';
|
|
5
|
+
/**
|
|
6
|
+
* The `OrderRoutingRuleApi` object provides methods for configuring order routing rules. Access the following properties on the `OrderRoutingRuleApi` object to manage rule settings and metafields.
|
|
7
|
+
*/
|
|
5
8
|
export interface OrderRoutingRuleApi<ExtensionTarget extends AnyExtensionTarget> extends StandardApi<ExtensionTarget> {
|
|
9
|
+
/** Updates or removes [metafields](/docs/apps/build/metafields) that store order routing rule configuration. */
|
|
6
10
|
applyMetafieldsChange: ApplyMetafieldsChange;
|
|
11
|
+
/** The order routing rule being configured, including its metadata and associated [metafields](/docs/apps/build/metafields). */
|
|
7
12
|
data: Data;
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=order-routing-rule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-routing-rule.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,WAAW,mBAAmB,CAAC,eAAe,SAAS,kBAAkB,CAC7E,SAAQ,WAAW,CAAC,eAAe,CAAC;IACpC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
1
|
+
{"version":3,"file":"order-routing-rule.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,eAAe,SAAS,kBAAkB,CAC7E,SAAQ,WAAW,CAAC,eAAe,CAAC;IACpC,gHAAgH;IAChH,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,gIAAgI;IAChI,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-routing-rule.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"order-routing-rule.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAsFX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,81 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A handle returned when opening a picker dialog. Use this to access the merchant's selection after they confirm or cancel the picker.
|
|
3
|
+
*/
|
|
1
4
|
interface Picker {
|
|
2
5
|
/**
|
|
3
|
-
* A Promise that resolves with
|
|
6
|
+
* A Promise that resolves with an array of selected item IDs when the merchant presses the **Select** button, or `undefined` if they cancel. Await this Promise to handle the selection result.
|
|
4
7
|
*/
|
|
5
8
|
selected: Promise<string[] | undefined>;
|
|
6
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The configuration for a table column header in the picker. Each header creates a labeled column that displays corresponding data from items.
|
|
12
|
+
*/
|
|
7
13
|
interface Header {
|
|
8
14
|
/**
|
|
9
|
-
* The
|
|
15
|
+
* The label text displayed at the top of the table column. Use clear, concise labels that describe the data in that column (for example, "Price", "Status", "Last Updated").
|
|
10
16
|
*/
|
|
11
17
|
content?: string;
|
|
12
18
|
/**
|
|
13
|
-
* The type
|
|
14
|
-
* If the type is 'number', the data in the column will be right-aligned, this should be used when referencing currency or numeric values.
|
|
15
|
-
* If the type is 'string', the data in the column will be left-aligned.
|
|
19
|
+
* The data type that controls column formatting and text alignment. Use `'number'` for currency, prices, or numeric values (displays right-aligned), or `'string'` for text content (displays left-aligned).
|
|
16
20
|
* @defaultValue 'string'
|
|
17
21
|
*/
|
|
18
22
|
type?: 'string' | 'number';
|
|
19
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The configuration options for the custom picker dialog. Define the picker's appearance, selection behavior, and data structure.
|
|
26
|
+
*/
|
|
20
27
|
interface PickerOptions {
|
|
21
28
|
/**
|
|
22
|
-
* The heading of the picker.
|
|
29
|
+
* The heading displayed at the top of the picker modal. Use a clear, descriptive title that tells merchants what they're selecting.
|
|
23
30
|
*/
|
|
24
31
|
heading: string;
|
|
25
32
|
/**
|
|
26
|
-
* The
|
|
33
|
+
* The selection mode for the picker. Pass `true` to allow unlimited selections, `false` for single-item selection only, or a number to set a maximum selection limit (for example, `3` allows up to three items).
|
|
27
34
|
*/
|
|
28
35
|
multiple?: boolean | number;
|
|
29
36
|
/**
|
|
30
|
-
* The items
|
|
37
|
+
* The list of items that merchants can select from. Each item appears as a row in the picker table.
|
|
31
38
|
*/
|
|
32
39
|
items: Item[];
|
|
33
40
|
/**
|
|
34
|
-
* The
|
|
41
|
+
* The column headers for the picker table. Define headers to label and organize the data columns displayed for each item. The header order determines the column layout.
|
|
35
42
|
*/
|
|
36
43
|
headers?: Header[];
|
|
37
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The visual tone for picker badges indicating status or importance. Use different tones to communicate urgency or state: `'info'` for neutral information, `'success'` for positive states, `'warning'` for caution, or `'critical'` for urgent issues.
|
|
47
|
+
*/
|
|
38
48
|
export type Tone = 'info' | 'success' | 'warning' | 'critical';
|
|
49
|
+
/**
|
|
50
|
+
* The progress state for picker badges showing completion status. Use this to indicate how complete an item is: `'incomplete'` for not started, `'partiallyComplete'` for in progress, or `'complete'` for finished.
|
|
51
|
+
*/
|
|
39
52
|
export type Progress = 'incomplete' | 'partiallyComplete' | 'complete';
|
|
53
|
+
/**
|
|
54
|
+
* A single data point that can appear in a picker table cell. Can be text, a number, or undefined if the cell should be empty.
|
|
55
|
+
*/
|
|
40
56
|
type DataPoint = string | number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* A badge displayed next to an item in the picker to show status or progress. Use badges to highlight important item attributes or states that affect selection decisions.
|
|
59
|
+
*/
|
|
41
60
|
interface PickerBadge {
|
|
61
|
+
/** The text content of the badge. Keep this short and descriptive (for example, "Draft", "Active", "Incomplete"). */
|
|
42
62
|
content: string;
|
|
63
|
+
/** The visual tone indicating status or importance. Choose a tone that matches the badge's meaning. */
|
|
43
64
|
tone?: Tone;
|
|
65
|
+
/** The progress indicator for the badge. Use this to show completion status for items that have progress states. */
|
|
44
66
|
progress?: Progress;
|
|
45
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* An individual item that merchants can select in the picker. Each item appears as a row in the picker table.
|
|
70
|
+
*/
|
|
46
71
|
interface Item {
|
|
47
72
|
/**
|
|
48
|
-
* The unique identifier
|
|
73
|
+
* The unique identifier for this item. This ID is returned in the selection array when the merchant selects this item. Use an ID that helps you identify the item in your system (for example, template IDs, review IDs, or custom option keys).
|
|
49
74
|
*/
|
|
50
75
|
id: string;
|
|
51
76
|
/**
|
|
52
|
-
* The primary
|
|
77
|
+
* The primary text displayed in the first column. This is typically the item's name or title and is the most prominent text in the row.
|
|
53
78
|
*/
|
|
54
79
|
heading: string;
|
|
55
80
|
/**
|
|
56
|
-
*
|
|
81
|
+
* Additional data displayed in subsequent columns after the heading. Each value appears in its own column, and the order must match the `headers` array. For example, if headers are `["Price", "Status"]`, then data would be `[19.99, "Active"]`.
|
|
57
82
|
*/
|
|
58
83
|
data?: DataPoint[];
|
|
59
84
|
/**
|
|
60
|
-
* Whether the item
|
|
85
|
+
* Whether the item can be selected. When `true`, the item is disabled and can't be selected. Disabled items appear grayed out and merchants can't choose them. Use this for items that are unavailable or don't meet selection criteria.
|
|
61
86
|
* @defaultValue false
|
|
62
87
|
*/
|
|
63
88
|
disabled?: boolean;
|
|
64
89
|
/**
|
|
65
|
-
* Whether the item is
|
|
90
|
+
* Whether the item is preselected when the picker opens. When `true`, the item appears selected by default. Merchants can still deselect preselected items. Use this to show current selections or suggest default choices.
|
|
66
91
|
*/
|
|
67
92
|
selected?: boolean;
|
|
68
93
|
/**
|
|
69
|
-
*
|
|
94
|
+
* Status or context badges displayed next to the heading in the first column. Use badges to highlight item state, completion status, or other important attributes (for example, "Draft", "Published", "Incomplete").
|
|
70
95
|
*/
|
|
71
96
|
badges?: PickerBadge[];
|
|
72
97
|
/**
|
|
73
|
-
*
|
|
98
|
+
* A small preview image or icon displayed at the start of the row. Thumbnails help merchants visually identify items at a glance. Provide a URL to the image file.
|
|
74
99
|
*/
|
|
75
100
|
thumbnail?: {
|
|
76
101
|
url: string;
|
|
77
102
|
};
|
|
78
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* The `picker` function opens a custom selection dialog with your app-specific data. It accepts configuration options to define the picker's heading, items, headers, and selection behavior. It returns a Promise that resolves to a `Picker` object with a `selected` property for accessing the merchant's selection.
|
|
106
|
+
*/
|
|
79
107
|
export type PickerApi = (options: PickerOptions) => Promise<Picker>;
|
|
80
108
|
export {};
|
|
81
109
|
//# sourceMappingURL=picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/picker/picker.ts"],"names":[],"mappings":"AAAA,UAAU,MAAM;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACzC;AAED,UAAU,MAAM;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/picker/picker.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,UAAU,MAAM;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,UAAU,MAAM;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B;AAED;;GAEG;AACH,UAAU,aAAa;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,mBAAmB,GAAG,UAAU,CAAC;AAEvE;;GAEG;AACH,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7C;;GAEG;AACH,UAAU,WAAW;IACnB,qHAAqH;IACrH,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,oHAAoH;IACpH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,UAAU,IAAI;IACZ;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE;QAAC,GAAG,EAAE,MAAM,CAAA;KAAC,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/picker/picker.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"picker.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/picker/picker.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAkIX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -3,17 +3,20 @@ import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targ
|
|
|
3
3
|
import type { Data } from '../shared';
|
|
4
4
|
import type { ResourcePickerApi } from '../resource-picker/resource-picker';
|
|
5
5
|
import type { PickerApi } from '../picker/picker';
|
|
6
|
+
/**
|
|
7
|
+
* The `PrintActionExtensionApi` object provides methods for print action extensions that generate custom printable documents. Access the following properties on the `PrintActionExtensionApi` object to access selected resources and display picker dialogs for print configuration.
|
|
8
|
+
*/
|
|
6
9
|
export interface PrintActionExtensionApi<ExtensionTarget extends AnyExtensionTarget> extends StandardApi<ExtensionTarget> {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* An array of currently viewed or selected resource identifiers. Use this to access the IDs of items to include in the print document, such as selected orders or products.
|
|
9
12
|
*/
|
|
10
13
|
data: Data;
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* Opens the [Resource Picker API](/docs/api/admin-extensions/{API_VERSION}/target-apis/utility-apis/resource-picker-api) modal for selecting products, variants, or collections. Use this to let merchants choose additional resources to include in the print document.
|
|
13
16
|
*/
|
|
14
17
|
resourcePicker: ResourcePickerApi;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* Opens a custom [Picker API](/docs/api/admin-extensions/{API_VERSION}/target-apis/utility-apis/picker-api) dialog for selecting from a list of custom options. Use this when you need merchants to choose print settings or document configurations.
|
|
17
20
|
*/
|
|
18
21
|
picker: PickerApi;
|
|
19
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-action.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/print-action/print-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAEhD,MAAM,WAAW,uBAAuB,CACtC,eAAe,SAAS,kBAAkB,CAC1C,SAAQ,WAAW,CAAC,eAAe,CAAC;IACpC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,cAAc,EAAE,iBAAiB,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"print-action.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/print-action/print-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,uBAAuB,CACtC,eAAe,SAAS,kBAAkB,CAC1C,SAAQ,WAAW,CAAC,eAAe,CAAC;IACpC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,cAAc,EAAE,iBAAiB,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-action.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/print-action/print-action.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"print-action.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/print-action/print-action.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAsFX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts
CHANGED
|
@@ -1,41 +1,77 @@
|
|
|
1
1
|
import type { BlockExtensionApi } from '../block/block';
|
|
2
2
|
import type { ExtensionTarget as AnyExtensionTarget } from '../../extension-targets';
|
|
3
3
|
import type { Data } from '../shared';
|
|
4
|
+
/**
|
|
5
|
+
* A product configuration.
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
4
8
|
interface Product {
|
|
9
|
+
/** The product's unique global identifier (GID). */
|
|
5
10
|
id: string;
|
|
11
|
+
/** The product's display name shown to merchants and customers. */
|
|
6
12
|
title: string;
|
|
13
|
+
/** The URL-friendly unique identifier used in product URLs (for example, `'blue-t-shirt'`). */
|
|
7
14
|
handle: string;
|
|
15
|
+
/** The publication status indicating whether the product is active (published), archived (discontinued), or draft (unpublished). */
|
|
8
16
|
status: 'ACTIVE' | 'ARCHIVED' | 'DRAFT';
|
|
17
|
+
/** The total number of variants this product has. */
|
|
9
18
|
totalVariants: number;
|
|
19
|
+
/** The total available inventory summed across all variants and locations. */
|
|
10
20
|
totalInventory: number;
|
|
21
|
+
/** Whether the product has only the default variant with no custom options. When `true`, the product has no size, color, or other option variations. */
|
|
11
22
|
hasOnlyDefaultVariant: boolean;
|
|
23
|
+
/** The URL to view this product on the online store. Use this to create "View in store" links. */
|
|
12
24
|
onlineStoreUrl?: string;
|
|
25
|
+
/** Product options that define how variants differ (for example, Size, Color, Material). Each option has an ID, name, position, and array of possible values. */
|
|
13
26
|
options: {
|
|
14
27
|
id: string;
|
|
15
28
|
name: string;
|
|
16
29
|
position: number;
|
|
17
30
|
values: string[];
|
|
18
31
|
}[];
|
|
32
|
+
/** The product category or type used for organization (for example, "T-Shirt", "Shoes"). */
|
|
19
33
|
productType: string;
|
|
34
|
+
/** The standardized product category taxonomy. Use this for product classification in search and organization. */
|
|
20
35
|
productCategory?: string;
|
|
36
|
+
/** An array of component products that make up this bundle. Each component represents a product included in the bundle configuration. */
|
|
21
37
|
productComponents: ProductComponent[];
|
|
22
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* A component product that is part of a bundle. Represents an individual product included in a bundle configuration.
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
23
43
|
export interface ProductComponent {
|
|
44
|
+
/** The component product's unique global identifier (GID). */
|
|
24
45
|
id: string;
|
|
46
|
+
/** The product's display name. Use this to show which product is included in the bundle. */
|
|
25
47
|
title: string;
|
|
48
|
+
/** The featured image displayed for this component product with ID, URL, and alt text properties. Use this for showing component previews in bundle configuration interfaces. */
|
|
26
49
|
featuredImage?: {
|
|
27
50
|
id?: string | null;
|
|
28
51
|
url?: string | null;
|
|
29
52
|
altText?: string | null;
|
|
30
53
|
} | null;
|
|
54
|
+
/** The total number of variants this component product has. Use this to determine if variant selection is needed for this component. */
|
|
31
55
|
totalVariants: number;
|
|
56
|
+
/** The admin URL for this component product. Use this to create links to the product's details page in the admin. */
|
|
32
57
|
productUrl: string;
|
|
58
|
+
/** The count of variants from this product that are used as bundle components. Use this to understand how many variants are configured in bundles. */
|
|
33
59
|
componentVariantsCount: number;
|
|
60
|
+
/** The count of variants from this product that aren't used in any bundles. Use this to identify available variants for adding to bundle configurations. */
|
|
34
61
|
nonComponentVariantsCount: number;
|
|
35
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* The `ProductDetailsConfigurationApi` object provides methods for configuring product bundles and relationships. Access the following properties on the `ProductDetailsConfigurationApi` object to build product configuration interfaces.
|
|
65
|
+
*/
|
|
36
66
|
export interface ProductDetailsConfigurationApi<ExtensionTarget extends AnyExtensionTarget> extends BlockExtensionApi<ExtensionTarget> {
|
|
67
|
+
/** Product configuration data including the current product, selected items, and app URLs. Use this to access the product being configured and build your configuration interface. */
|
|
37
68
|
data: Data & {
|
|
69
|
+
/**
|
|
70
|
+
* The product currently being viewed in the admin.
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
38
73
|
product: Product;
|
|
74
|
+
/** URLs for launching and navigating to your app, including the launch URL and base application URL. Use these to create links or redirect merchants to your app. */
|
|
39
75
|
app: {
|
|
40
76
|
launchUrl: string;
|
|
41
77
|
applicationUrl: string;
|
package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-details-configuration.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/product-configuration/product-details-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"product-details-configuration.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/product-configuration/product-details-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAEpC;;;GAGG;AACH,UAAU,OAAO;IACf,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,MAAM,EAAE,MAAM,CAAC;IACf,oIAAoI;IACpI,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IACxC,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,cAAc,EAAE,MAAM,CAAC;IACvB,wJAAwJ;IACxJ,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kGAAkG;IAClG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iKAAiK;IACjK,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,EAAE,CAAC;IACJ,4FAA4F;IAC5F,WAAW,EAAE,MAAM,CAAC;IACpB,kHAAkH;IAClH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yIAAyI;IACzI,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,4FAA4F;IAC5F,KAAK,EAAE,MAAM,CAAC;IACd,iLAAiL;IACjL,aAAa,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,GAAG,IAAI,CAAC;IACT,wIAAwI;IACxI,aAAa,EAAE,MAAM,CAAC;IACtB,qHAAqH;IACrH,UAAU,EAAE,MAAM,CAAC;IACnB,sJAAsJ;IACtJ,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4JAA4J;IAC5J,yBAAyB,EAAE,MAAM,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B,CAC7C,eAAe,SAAS,kBAAkB,CAC1C,SAAQ,iBAAiB,CAAC,eAAe,CAAC;IAC1C,sLAAsL;IACtL,IAAI,EAAE,IAAI,GAAG;QACX;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,qKAAqK;QACrK,GAAG,EAAE;YACH,SAAS,EAAE,MAAM,CAAC;YAClB,cAAc,EAAE,MAAM,CAAC;SACxB,CAAC;KACH,CAAC;CACH"}
|
package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-details-configuration.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/product-configuration/product-details-configuration.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"product-details-configuration.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/product-configuration/product-details-configuration.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAsFX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|