@shopify/ui-extensions 2025.10.0-rc.40 → 2025.10.0-rc.42
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/preact/api.js +4 -0
- package/build/cjs/surfaces/checkout/preact/subscription.js +6 -5
- package/build/cjs/surfaces/checkout/shared.js +17 -4
- package/build/esm/surfaces/checkout/preact/api.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/subscription.mjs +6 -5
- package/build/esm/surfaces/checkout/shared.mjs +17 -4
- package/build/esnext/surfaces/checkout/preact/api.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/subscription.esnext +6 -5
- package/build/esnext/surfaces/checkout/shared.esnext +17 -4
- package/build/ts/docs/shared/components/Details.d.ts +4 -0
- package/build/ts/docs/shared/components/Details.d.ts.map +1 -0
- package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/PressButton.d.ts +4 -0
- package/build/ts/docs/shared/components/PressButton.d.ts.map +1 -0
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Summary.d.ts +4 -0
- package/build/ts/docs/shared/components/Summary.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Tooltip.d.ts +1 -1
- package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/index.d.ts +6 -1
- package/build/ts/docs/shared/components/index.d.ts.map +1 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/shared.d.ts +4 -34
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +30 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -1
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts +5 -3
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.data.d.ts +6 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +3 -3
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +45 -40
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Badge.d.ts +3 -8
- package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Button.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Details.d.ts +15 -2
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Divider.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +8 -3
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +8 -1
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Form.d.ts +3 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Grid.d.ts +7 -7
- package/build/ts/surfaces/checkout/components/Icon.d.ts +2 -7
- package/build/ts/surfaces/checkout/components/Link.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +9 -12
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Modal.d.ts +16 -15
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/{UrlField.d.ts → MoneyField.d.ts} +14 -18
- package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +10 -12
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Popover.d.ts +50 -2
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts.map +1 -0
- package/{src/surfaces/checkout/components/Select.d.ts → build/ts/surfaces/checkout/components/PressButton.d.ts} +20 -20
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +21 -15
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/Stack.d.ts +4 -4
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/TextField.d.ts +10 -17
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/{src/surfaces/checkout/components/Option.d.ts → build/ts/surfaces/checkout/components/Tooltip.d.ts} +9 -7
- package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +631 -275
- package/build/ts/surfaces/checkout/components/components.d.ts +1013 -501
- package/build/ts/surfaces/checkout/preact/api.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/subscription.d.ts +5 -4
- package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +27 -4
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +3 -4
- package/build/ts/surfaces/checkout.d.ts +1 -0
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +2 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +3 -8
- package/build/ts/surfaces/customer-account/components/Button.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Details.d.ts +15 -2
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +8 -3
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +8 -1
- package/build/ts/surfaces/customer-account/components/Form.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +7 -7
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +2 -7
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Link.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +9 -12
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +16 -15
- package/{src/surfaces/checkout/components/UrlField.d.ts → build/ts/surfaces/customer-account/components/MoneyField.d.ts} +14 -18
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +10 -12
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +50 -2
- package/build/ts/surfaces/customer-account/components/{Select.d.ts → PressButton.d.ts} +20 -20
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +21 -15
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +4 -4
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +10 -17
- package/build/ts/surfaces/customer-account/components/{Option.d.ts → Tooltip.d.ts} +9 -7
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +631 -275
- package/build/ts/surfaces/customer-account/components/components.d.ts +1013 -501
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +3 -4
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +3 -4
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +2 -9
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +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/Banner.d.ts +11 -2
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +29 -4
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
- package/{src/surfaces/point-of-sale/components/Navigator.d.ts → build/ts/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.receipt-footer.block.render.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.receipt-header.block.render.d.ts +2 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/Details.ts +12 -0
- package/src/docs/shared/components/EmailField.ts +1 -1
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/docs/shared/components/MoneyField.ts +2 -1
- package/src/docs/shared/components/Popover.ts +1 -1
- package/src/docs/shared/components/PressButton.ts +12 -0
- package/src/docs/shared/components/SkeletonParagraph.ts +12 -0
- package/src/docs/shared/components/Summary.ts +12 -0
- package/src/docs/shared/components/Tooltip.ts +2 -2
- package/src/docs/shared/components/index.ts +6 -1
- package/src/index.ts +0 -1
- package/src/shared.ts +5 -36
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +31 -0
- package/src/surfaces/admin/api.ts +4 -1
- package/src/surfaces/admin/components/patterns/examples/accountConnection.html +16 -0
- package/src/surfaces/admin/components.d.ts +366 -451
- package/src/surfaces/admin/extension-targets.ts +6 -5
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -1
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +3 -3
- package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +2 -2
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +3 -3
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -3
- package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +2 -2
- package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +2 -2
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +3 -3
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +3 -3
- package/src/surfaces/checkout/api/standard/standard.ts +44 -40
- package/src/surfaces/checkout/components/Badge/examples/basic-badge.example.html +3 -0
- package/src/surfaces/checkout/components/Badge.d.ts +3 -8
- package/src/surfaces/checkout/components/Banner/examples/basic-banner.example.html +1 -2
- package/src/surfaces/checkout/components/Button.d.ts +1 -1
- package/src/surfaces/checkout/components/Clickable/examples/basic-clickable.example.html +3 -0
- package/src/surfaces/checkout/components/Clickable.d.ts +1 -1
- package/src/surfaces/checkout/components/Details/examples/basic-details.example.html +6 -0
- package/src/surfaces/checkout/components/Details.d.ts +15 -2
- package/src/surfaces/checkout/components/Divider/examples/basic-divider.example.html +1 -0
- package/src/surfaces/checkout/components/Divider.d.ts +17 -2
- package/src/surfaces/checkout/components/DropZone/examples/basic-drop-zone.example.html +1 -0
- package/src/surfaces/checkout/components/DropZone.d.ts +8 -3
- package/src/surfaces/checkout/components/EmailField/examples/basic-email-field.example.html +1 -0
- package/src/surfaces/checkout/components/EmailField.d.ts +8 -1
- package/src/surfaces/checkout/components/Form/examples/basic-form.example.html +3 -3
- package/src/surfaces/checkout/components/Form.d.ts +3 -0
- package/src/surfaces/checkout/components/Grid/examples/basic-grid.example.html +11 -0
- package/src/surfaces/checkout/components/Grid.d.ts +7 -7
- package/src/surfaces/checkout/components/Icon.d.ts +2 -7
- package/src/surfaces/checkout/components/Image/examples/basic-image.example.html +1 -1
- package/src/surfaces/checkout/components/Link.d.ts +1 -1
- package/src/surfaces/checkout/components/Map/examples/basic-map.example.html +3 -3
- package/src/surfaces/checkout/components/MapMarker.d.ts +9 -12
- package/src/surfaces/checkout/components/Modal.d.ts +16 -15
- package/src/surfaces/checkout/components/MoneyField/examples/basic-money-field.example.html +1 -0
- package/{build/ts/surfaces/customer-account/components/UrlField.d.ts → src/surfaces/checkout/components/MoneyField.d.ts} +14 -18
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +1 -0
- package/src/surfaces/checkout/components/PhoneField.d.ts +10 -12
- package/src/surfaces/checkout/components/Popover/examples/basic-popover.example.html +7 -0
- package/src/surfaces/checkout/components/Popover.d.ts +50 -2
- package/src/surfaces/checkout/components/PressButton/examples/basic-press-button.example.html +1 -0
- package/{build/ts/surfaces/checkout/components/Select.d.ts → src/surfaces/checkout/components/PressButton.d.ts} +20 -20
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +1 -0
- package/src/surfaces/checkout/components/Progress/examples/basic-progress.example.html +1 -1
- package/src/surfaces/checkout/components/Sheet/examples/basic-sheet.example.html +5 -0
- package/src/surfaces/checkout/components/Sheet.d.ts +21 -15
- package/src/surfaces/checkout/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
- package/src/surfaces/checkout/components/Spinner/examples/basic-spinner.example.html +1 -1
- package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +4 -0
- package/src/surfaces/checkout/components/Stack.d.ts +4 -4
- package/src/surfaces/checkout/components/Switch/examples/basic-switch.example.html +1 -0
- package/src/surfaces/checkout/components/Text/examples/basic-text.example.html +1 -1
- package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +1 -0
- package/src/surfaces/checkout/components/TextField.d.ts +10 -17
- package/src/surfaces/checkout/components/Time/examples/basic-time.example.html +1 -1
- package/src/surfaces/checkout/components/Tooltip/examples/basic-tooltip.example.html +9 -0
- package/{build/ts/surfaces/checkout/components/Option.d.ts → src/surfaces/checkout/components/Tooltip.d.ts} +9 -7
- package/src/surfaces/checkout/components/components-shared.d.ts +631 -275
- package/src/surfaces/checkout/components/components.d.ts +1013 -501
- package/src/surfaces/checkout/preact/api.ts +4 -0
- package/src/surfaces/checkout/preact/subscription.ts +9 -8
- package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +2 -3
- package/src/surfaces/checkout/preact/tests/mount.tsx +3 -3
- package/src/surfaces/checkout/shared.ts +37 -3
- package/src/surfaces/checkout.ts +3 -1
- package/src/surfaces/customer-account/api/shared.ts +2 -1
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar.example.html +4 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +2 -2
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup.example.html +11 -0
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction.example.html +15 -0
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup.example.html +18 -0
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu.example.html +14 -0
- package/src/surfaces/customer-account/components/Page/examples/basic-Page.example.html +19 -0
- package/src/surfaces/customer-account/components/Page.d.ts +3 -3
- package/src/surfaces/customer-account/components/Section/examples/basic-Section.example.html +12 -0
- package/src/surfaces/customer-account/components/Section.d.ts +2 -2
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +2 -10
- package/src/surfaces/point-of-sale/components/Badge/examples/default.html +5 -5
- package/src/surfaces/point-of-sale/components/Banner.d.ts +11 -2
- package/src/surfaces/point-of-sale/components/Button.d.ts +29 -4
- package/{build/ts/surfaces/point-of-sale/components/Navigator.d.ts → src/surfaces/point-of-sale/components/Divider.d.ts} +7 -10
- package/src/surfaces/point-of-sale/components/Modal.d.ts +1 -2
- package/src/surfaces/point-of-sale/components/Page.d.ts +4 -4
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +43 -0
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +93 -2
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +14 -0
- package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +1 -1
- package/src/surfaces/point-of-sale/components.d.ts +554 -386
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +0 -57
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +0 -85
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +0 -84
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +0 -85
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +0 -84
- package/build/ts/surfaces/point-of-sale/components/Screen.d.ts +0 -91
- package/build/ts/surfaces/point-of-sale/components/shared.d.ts +0 -76
- package/src/surfaces/checkout/components/DropZone/examples/basic-dropzone.example.html +0 -1
- package/src/surfaces/checkout/components/EmailField/examples/basic-emailfield.example.html +0 -4
- package/src/surfaces/checkout/components/NumberField.d.ts +0 -85
- package/src/surfaces/checkout/components/PasswordField.d.ts +0 -84
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phonefield.example.html +0 -2
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-productthumbnail.example.html +0 -4
- package/src/surfaces/checkout/components/TextArea/examples/basic-textarea.example.html +0 -5
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +0 -10
- package/src/surfaces/customer-account/components/ButtonGroup/examples/basic-ButtonGroup-preact.example.tsx +0 -22
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/ImageGroup/examples/basic-ImageGroup-preact.example.tsx +0 -17
- package/src/surfaces/customer-account/components/Menu/examples/basic-Menu-preact.example.tsx +0 -24
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +0 -37
- package/src/surfaces/customer-account/components/Section/examples/basic-Section-preact.example.tsx +0 -23
- package/src/surfaces/point-of-sale/components/Screen.d.ts +0 -91
- package/src/surfaces/point-of-sale/components/shared.d.ts +0 -76
- /package/src/surfaces/checkout/components/ClipboardItem/examples/{basic-clipboarditem.example.html → basic-clipboard-item.example.html} +0 -0
- /package/src/surfaces/checkout/components/OrderedList/examples/{basic-orderedlist.example.html → basic-ordered-list.example.html} +0 -0
- /package/src/surfaces/checkout/components/PaymentIcon/examples/{basic-paymenticon.example.html → basic-payment-icon.example.html} +0 -0
- /package/src/surfaces/checkout/components/QRCode/examples/{basic-qrcode.example.html → basic-qr-code.example.html} +0 -0
- /package/src/surfaces/checkout/components/TextField/examples/{basic-textfield.example.html → basic-text-field.example.html} +0 -0
- /package/src/surfaces/checkout/components/UnorderedList/examples/{basic-unorderedlist.example.html → basic-unordered-list.example.html} +0 -0
|
@@ -13,6 +13,10 @@ var errors = require('./errors.js');
|
|
|
13
13
|
* which contains a basic set of properties about the checkout.
|
|
14
14
|
*
|
|
15
15
|
* For a full list of the API available to each extension target, see the [ExtensionTargets type](https://shopify.dev/docs/api/checkout-ui-extensions/apis/extensiontargets).
|
|
16
|
+
*
|
|
17
|
+
* > Note:
|
|
18
|
+
* > As of version 2025-10, you no longer need this hook. The full API object is accessible via
|
|
19
|
+
* > the global `shopify` object.
|
|
16
20
|
*/
|
|
17
21
|
function useApi(_target) {
|
|
18
22
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
@@ -10,11 +10,12 @@ var hooks = require('preact/hooks');
|
|
|
10
10
|
* and subscribes to update the value when changes occur in the checkout.
|
|
11
11
|
*
|
|
12
12
|
* > Note:
|
|
13
|
-
* >
|
|
14
|
-
* >
|
|
13
|
+
* > As of version 2025-10, you no longer need this hook. When you access `.value`
|
|
14
|
+
* > (instead of `.current`) on subscribable properties, Preact will automatically
|
|
15
|
+
* > re-render as `.value` changes.
|
|
15
16
|
*/
|
|
16
17
|
function useSubscription(subscription) {
|
|
17
|
-
const [, setValue] = hooks.useState(subscription.
|
|
18
|
+
const [, setValue] = hooks.useState(subscription.value);
|
|
18
19
|
hooks.useEffect(() => {
|
|
19
20
|
let didUnsubscribe = false;
|
|
20
21
|
const checkForUpdates = newValue => {
|
|
@@ -28,13 +29,13 @@ function useSubscription(subscription) {
|
|
|
28
29
|
// Because we're subscribing in a passive effect,
|
|
29
30
|
// it's possible for an update to occur between render and the effect handler.
|
|
30
31
|
// Check for this and schedule an update if work has occurred.
|
|
31
|
-
checkForUpdates(subscription.
|
|
32
|
+
checkForUpdates(subscription.value);
|
|
32
33
|
return () => {
|
|
33
34
|
didUnsubscribe = true;
|
|
34
35
|
unsubscribe();
|
|
35
36
|
};
|
|
36
37
|
}, [subscription]);
|
|
37
|
-
return subscription.
|
|
38
|
+
return subscription.value;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
exports.useSubscription = useSubscription;
|
|
@@ -4,19 +4,32 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The list of supported components.
|
|
7
|
-
* As of
|
|
7
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
8
8
|
*/
|
|
9
|
-
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Clickable', 'ClipboardItem', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'Progress', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'UnorderedList', 'UrlField'];
|
|
9
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Choice', 'ChoiceList', 'Clickable', 'ClipboardItem', 'DateField', 'DatePicker', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'MoneyField', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PasswordField', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'PressButton', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Note: Chat is not supported in the 2025-
|
|
12
|
+
* Note: Chat is not supported in the 2025-10 release candidate, but it is tied to a target, and we don't want to remove the target documentation.
|
|
13
13
|
* Once Chat is supported, you can remove this note.
|
|
14
14
|
* @private
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* The list of supported components.
|
|
19
|
-
* As of
|
|
19
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Represents a read-only value managed on the main thread that an extension can subscribe to.
|
|
24
|
+
*
|
|
25
|
+
* Example: Checkout uses this to manage the state of an object and
|
|
26
|
+
* communicate state changes to extensions running in a sandboxed web worker.
|
|
27
|
+
*
|
|
28
|
+
* This interface is compatible with [Preact's ReadonlySignal](https://github.com/preactjs/signals/blob/a023a132a81bd4ba4a0bebb8cbbeffbd8c8bbafc/packages/core/src/index.ts#L700-L709).
|
|
29
|
+
*
|
|
30
|
+
* Some fields are deprecated but still supported for backwards compatibility.
|
|
31
|
+
* In version 2025-10, [`StatefulRemoteSubscribable`](https://github.com/Shopify/remote-dom/blob/03929aa8418a89d41d294005f219837582718df8/packages/async-subscription/src/types.ts#L17) was replaced with `ReadonlySignalLike`. Checkout will remove the old fields some time in the future.
|
|
32
|
+
*
|
|
20
33
|
*/
|
|
21
34
|
|
|
22
35
|
exports.SUPPORTED_COMPONENTS = SUPPORTED_COMPONENTS;
|
|
@@ -9,6 +9,10 @@ import { CheckoutUIExtensionError } from './errors.mjs';
|
|
|
9
9
|
* which contains a basic set of properties about the checkout.
|
|
10
10
|
*
|
|
11
11
|
* For a full list of the API available to each extension target, see the [ExtensionTargets type](https://shopify.dev/docs/api/checkout-ui-extensions/apis/extensiontargets).
|
|
12
|
+
*
|
|
13
|
+
* > Note:
|
|
14
|
+
* > As of version 2025-10, you no longer need this hook. The full API object is accessible via
|
|
15
|
+
* > the global `shopify` object.
|
|
12
16
|
*/
|
|
13
17
|
function useApi(_target) {
|
|
14
18
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
@@ -6,11 +6,12 @@ import { useState, useEffect } from 'preact/hooks';
|
|
|
6
6
|
* and subscribes to update the value when changes occur in the checkout.
|
|
7
7
|
*
|
|
8
8
|
* > Note:
|
|
9
|
-
* >
|
|
10
|
-
* >
|
|
9
|
+
* > As of version 2025-10, you no longer need this hook. When you access `.value`
|
|
10
|
+
* > (instead of `.current`) on subscribable properties, Preact will automatically
|
|
11
|
+
* > re-render as `.value` changes.
|
|
11
12
|
*/
|
|
12
13
|
function useSubscription(subscription) {
|
|
13
|
-
const [, setValue] = useState(subscription.
|
|
14
|
+
const [, setValue] = useState(subscription.value);
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
let didUnsubscribe = false;
|
|
16
17
|
const checkForUpdates = newValue => {
|
|
@@ -24,13 +25,13 @@ function useSubscription(subscription) {
|
|
|
24
25
|
// Because we're subscribing in a passive effect,
|
|
25
26
|
// it's possible for an update to occur between render and the effect handler.
|
|
26
27
|
// Check for this and schedule an update if work has occurred.
|
|
27
|
-
checkForUpdates(subscription.
|
|
28
|
+
checkForUpdates(subscription.value);
|
|
28
29
|
return () => {
|
|
29
30
|
didUnsubscribe = true;
|
|
30
31
|
unsubscribe();
|
|
31
32
|
};
|
|
32
33
|
}, [subscription]);
|
|
33
|
-
return subscription.
|
|
34
|
+
return subscription.value;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export { useSubscription };
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The list of supported components.
|
|
3
|
-
* As of
|
|
3
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
4
4
|
*/
|
|
5
|
-
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Clickable', 'ClipboardItem', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'Progress', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'UnorderedList', 'UrlField'];
|
|
5
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Choice', 'ChoiceList', 'Clickable', 'ClipboardItem', 'DateField', 'DatePicker', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'MoneyField', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PasswordField', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'PressButton', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Note: Chat is not supported in the 2025-
|
|
8
|
+
* Note: Chat is not supported in the 2025-10 release candidate, but it is tied to a target, and we don't want to remove the target documentation.
|
|
9
9
|
* Once Chat is supported, you can remove this note.
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The list of supported components.
|
|
15
|
-
* As of
|
|
15
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Represents a read-only value managed on the main thread that an extension can subscribe to.
|
|
20
|
+
*
|
|
21
|
+
* Example: Checkout uses this to manage the state of an object and
|
|
22
|
+
* communicate state changes to extensions running in a sandboxed web worker.
|
|
23
|
+
*
|
|
24
|
+
* This interface is compatible with [Preact's ReadonlySignal](https://github.com/preactjs/signals/blob/a023a132a81bd4ba4a0bebb8cbbeffbd8c8bbafc/packages/core/src/index.ts#L700-L709).
|
|
25
|
+
*
|
|
26
|
+
* Some fields are deprecated but still supported for backwards compatibility.
|
|
27
|
+
* In version 2025-10, [`StatefulRemoteSubscribable`](https://github.com/Shopify/remote-dom/blob/03929aa8418a89d41d294005f219837582718df8/packages/async-subscription/src/types.ts#L17) was replaced with `ReadonlySignalLike`. Checkout will remove the old fields some time in the future.
|
|
28
|
+
*
|
|
16
29
|
*/
|
|
17
30
|
|
|
18
31
|
export { SUPPORTED_COMPONENTS };
|
|
@@ -9,6 +9,10 @@ import { CheckoutUIExtensionError } from './errors.esnext';
|
|
|
9
9
|
* which contains a basic set of properties about the checkout.
|
|
10
10
|
*
|
|
11
11
|
* For a full list of the API available to each extension target, see the [ExtensionTargets type](https://shopify.dev/docs/api/checkout-ui-extensions/apis/extensiontargets).
|
|
12
|
+
*
|
|
13
|
+
* > Note:
|
|
14
|
+
* > As of version 2025-10, you no longer need this hook. The full API object is accessible via
|
|
15
|
+
* > the global `shopify` object.
|
|
12
16
|
*/
|
|
13
17
|
function useApi(_target) {
|
|
14
18
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
@@ -6,11 +6,12 @@ import { useState, useEffect } from 'preact/hooks';
|
|
|
6
6
|
* and subscribes to update the value when changes occur in the checkout.
|
|
7
7
|
*
|
|
8
8
|
* > Note:
|
|
9
|
-
* >
|
|
10
|
-
* >
|
|
9
|
+
* > As of version 2025-10, you no longer need this hook. When you access `.value`
|
|
10
|
+
* > (instead of `.current`) on subscribable properties, Preact will automatically
|
|
11
|
+
* > re-render as `.value` changes.
|
|
11
12
|
*/
|
|
12
13
|
function useSubscription(subscription) {
|
|
13
|
-
const [, setValue] = useState(subscription.
|
|
14
|
+
const [, setValue] = useState(subscription.value);
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
let didUnsubscribe = false;
|
|
16
17
|
const checkForUpdates = newValue => {
|
|
@@ -24,13 +25,13 @@ function useSubscription(subscription) {
|
|
|
24
25
|
// Because we're subscribing in a passive effect,
|
|
25
26
|
// it's possible for an update to occur between render and the effect handler.
|
|
26
27
|
// Check for this and schedule an update if work has occurred.
|
|
27
|
-
checkForUpdates(subscription.
|
|
28
|
+
checkForUpdates(subscription.value);
|
|
28
29
|
return () => {
|
|
29
30
|
didUnsubscribe = true;
|
|
30
31
|
unsubscribe();
|
|
31
32
|
};
|
|
32
33
|
}, [subscription]);
|
|
33
|
-
return subscription.
|
|
34
|
+
return subscription.value;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export { useSubscription };
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The list of supported components.
|
|
3
|
-
* As of
|
|
3
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
4
4
|
*/
|
|
5
|
-
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Clickable', 'ClipboardItem', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'Progress', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'UnorderedList', 'UrlField'];
|
|
5
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Choice', 'ChoiceList', 'Clickable', 'ClipboardItem', 'DateField', 'DatePicker', 'Details', 'Divider', 'DropZone', 'EmailField', 'Form', 'Grid', 'GridItem', 'Heading', 'Icon', 'Image', 'Link', 'ListItem', 'Map', 'MapMarker', 'Modal', 'MoneyField', 'NumberField', 'Option', 'OrderedList', 'Paragraph', 'PasswordField', 'PaymentIcon', 'PhoneField', 'Popover', 'ProductThumbnail', 'PressButton', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Note: Chat is not supported in the 2025-
|
|
8
|
+
* Note: Chat is not supported in the 2025-10 release candidate, but it is tied to a target, and we don't want to remove the target documentation.
|
|
9
9
|
* Once Chat is supported, you can remove this note.
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The list of supported components.
|
|
15
|
-
* As of
|
|
15
|
+
* As of October 1st, 2025, this is a subset of the components that will be available in the 2025-10 stable release.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Represents a read-only value managed on the main thread that an extension can subscribe to.
|
|
20
|
+
*
|
|
21
|
+
* Example: Checkout uses this to manage the state of an object and
|
|
22
|
+
* communicate state changes to extensions running in a sandboxed web worker.
|
|
23
|
+
*
|
|
24
|
+
* This interface is compatible with [Preact's ReadonlySignal](https://github.com/preactjs/signals/blob/a023a132a81bd4ba4a0bebb8cbbeffbd8c8bbafc/packages/core/src/index.ts#L700-L709).
|
|
25
|
+
*
|
|
26
|
+
* Some fields are deprecated but still supported for backwards compatibility.
|
|
27
|
+
* In version 2025-10, [`StatefulRemoteSubscribable`](https://github.com/Shopify/remote-dom/blob/03929aa8418a89d41d294005f219837582718df8/packages/async-subscription/src/types.ts#L17) was replaced with `ReadonlySignalLike`. Checkout will remove the old fields some time in the future.
|
|
28
|
+
*
|
|
16
29
|
*/
|
|
17
30
|
|
|
18
31
|
export { SUPPORTED_COMPONENTS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/Details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyField.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/MoneyField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"MoneyField.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/MoneyField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressButton.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/PressButton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkeletonParagraph.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/SkeletonParagraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Summary.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/Summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -7,8 +7,8 @@ export { default as Checkbox } from './Checkbox';
|
|
|
7
7
|
export { default as ChoiceList } from './ChoiceList';
|
|
8
8
|
export { default as Clickable } from './Clickable';
|
|
9
9
|
export { default as ClipboardItem } from './ClipboardItem';
|
|
10
|
-
export { default as DateField } from './DateField';
|
|
11
10
|
export { default as DatePicker } from './DatePicker';
|
|
11
|
+
export { default as Details } from './Details';
|
|
12
12
|
export { default as Divider } from './Divider';
|
|
13
13
|
export { default as DropZone } from './DropZone';
|
|
14
14
|
export { default as EmailField } from './EmailField';
|
|
@@ -25,18 +25,23 @@ export { default as OrderedList } from './OrderedList';
|
|
|
25
25
|
export { default as Paragraph } from './Paragraph';
|
|
26
26
|
export { default as PasswordField } from './PasswordField';
|
|
27
27
|
export { default as PaymentIcon } from './PaymentIcon';
|
|
28
|
+
export { default as Popover } from './Popover';
|
|
29
|
+
export { default as PressButton } from './PressButton';
|
|
28
30
|
export { default as Progress } from './Progress';
|
|
29
31
|
export { default as QRCode } from './QRCode';
|
|
30
32
|
export { default as SearchField } from './SearchField';
|
|
31
33
|
export { default as Section } from './Section';
|
|
32
34
|
export { default as Select } from './Select';
|
|
35
|
+
export { default as SkeletonParagraph } from './SkeletonParagraph';
|
|
33
36
|
export { default as Spinner } from './Spinner';
|
|
34
37
|
export { default as Stack } from './Stack';
|
|
38
|
+
export { default as Summary } from './Summary';
|
|
35
39
|
export { default as Switch } from './Switch';
|
|
36
40
|
export { default as Table } from './Table';
|
|
37
41
|
export { default as Text } from './Text';
|
|
38
42
|
export { default as TextArea } from './TextArea';
|
|
39
43
|
export { default as Time } from './Time';
|
|
44
|
+
export { default as Tooltip } from './Tooltip';
|
|
40
45
|
export { default as UnorderedList } from './UnorderedList';
|
|
41
46
|
export { default as URLField } from './URLField';
|
|
42
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IA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AW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
package/build/ts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC"}
|
package/build/ts/shared.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Union of supported API versions
|
|
3
3
|
*/
|
|
4
|
-
export type ApiVersion = '2023-04' | '2023-07' | '2023-10' | '2024-01' | '2024-04' | '2024-07' | '2024-10' | '2025-01' | '2025-04' | 'unstable' | '2025-07' | '2025-10';
|
|
4
|
+
export type ApiVersion = '2023-04' | '2023-07' | '2023-10' | '2024-01' | '2024-04' | '2024-07' | '2024-10' | '2025-01' | '2025-04' | 'unstable' | '2025-07' | '2025-10' | '2026-01';
|
|
5
5
|
/**
|
|
6
6
|
* The capabilities an extension has access to.
|
|
7
7
|
*
|
|
@@ -56,44 +56,14 @@ export interface GraphQLError {
|
|
|
56
56
|
/**
|
|
57
57
|
* Represents a read-only value managed on the main thread that an extension can subscribe to.
|
|
58
58
|
*
|
|
59
|
-
* Example:
|
|
59
|
+
* Example: Checkout uses this to manage the state of an object and
|
|
60
60
|
* communicate state changes to extensions running in a sandboxed web worker.
|
|
61
61
|
*
|
|
62
|
-
* This interface is compatible with [Preact's
|
|
62
|
+
* This interface is compatible with [Preact's ReadonlySignal](https://github.com/preactjs/signals/blob/a023a132a81bd4ba4a0bebb8cbbeffbd8c8bbafc/packages/core/src/index.ts#L700-L709).
|
|
63
|
+
*
|
|
63
64
|
*/
|
|
64
65
|
export interface ReadonlySignalLike<T> {
|
|
65
66
|
readonly value: T;
|
|
66
67
|
subscribe(fn: (value: T) => void): () => void;
|
|
67
68
|
}
|
|
68
|
-
/**
|
|
69
|
-
* A remote-subscribable object exposed to a sandboxed web worker.
|
|
70
|
-
*
|
|
71
|
-
* Example: extensions use this to get updates about an object
|
|
72
|
-
* managed by extension surfaces on the main thread.
|
|
73
|
-
*/
|
|
74
|
-
export interface StatefulRemoteSubscribable<T> extends ReadonlySignalLike<T> {
|
|
75
|
-
readonly current: T;
|
|
76
|
-
destroy(): Promise<void>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Represents a read-only value managed on the main thread that an extension can subscribe to.
|
|
80
|
-
*
|
|
81
|
-
* Example: extension surfaces use this to manage the state of an object and
|
|
82
|
-
* communicate state changes to extensions running in a sandboxed web worker.
|
|
83
|
-
*
|
|
84
|
-
* This interface is compatible with [Preact's ReadonlySignal](https://github.com/preactjs/signals/blob/a023a132a81bd4ba4a0bebb8cbbeffbd8c8bbafc/packages/core/src/index.ts#L700-L709).
|
|
85
|
-
*
|
|
86
|
-
* Some fields are deprecated but still supported for backwards compatibility.
|
|
87
|
-
* In version 2025-10, [`StatefulRemoteSubscribable`](https://github.com/Shopify/remote-dom/blob/03929aa8418a89d41d294005f219837582718df8/packages/async-subscription/src/types.ts#L17) was replaced with `ReadonlySignalLike`. The old fields will be removed some time in the future.
|
|
88
|
-
*/
|
|
89
|
-
export interface SubscribableSignalLike<T> extends ReadonlySignalLike<T> {
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated Use `.value` instead.
|
|
92
|
-
*/
|
|
93
|
-
readonly current: T;
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated No longer needed. Use Preact Signal management instead.
|
|
96
|
-
*/
|
|
97
|
-
destroy(): Promise<void>;
|
|
98
|
-
}
|
|
99
69
|
//# sourceMappingURL=shared.d.ts.map
|
package/build/ts/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,qCAAqC,GACrC,wCAAwC,GACxC,gBAAgB,CAAC;AAGrB,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,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ACH,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC1E,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,qCAAqC,GACrC,wCAAwC,GACxC,gBAAgB,CAAC;AAGrB,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,G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AwB,GACxB,6BAA6B,GAC7B,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,wBAAwB,GACxB,wBAAwB,GACxB,uBAAuB,GACvB,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CAC/C"}
|
package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts
CHANGED
|
@@ -6,4 +6,34 @@ export interface CustomerSegmentTemplateApi<ExtensionTarget extends AnyExtension
|
|
|
6
6
|
/** @private */
|
|
7
7
|
__enabledFeatures: string[];
|
|
8
8
|
}
|
|
9
|
+
export type CustomerStandardMetafieldDependency = 'facts.birth_date';
|
|
10
|
+
export interface CustomerSegmentTemplate {
|
|
11
|
+
/**
|
|
12
|
+
* The localized title of the template.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* The localized description of the template. An array can be used for multiple paragraphs.
|
|
17
|
+
*/
|
|
18
|
+
description: string | string[];
|
|
19
|
+
/**
|
|
20
|
+
* The code snippet to render in the template with syntax highlighting. The `query` is not validated in the template.
|
|
21
|
+
*/
|
|
22
|
+
query: string;
|
|
23
|
+
/**
|
|
24
|
+
* The code snippet to insert in the segment editor. If missing, `query` will be used. The `queryToInsert` is not validated in the template.
|
|
25
|
+
*/
|
|
26
|
+
queryToInsert: string;
|
|
27
|
+
/**
|
|
28
|
+
* The list of customer standard metafields or custom metafields used in the template's query.
|
|
29
|
+
*/
|
|
30
|
+
dependencies?: {
|
|
31
|
+
standardMetafields?: CustomerStandardMetafieldDependency[];
|
|
32
|
+
customMetafields?: string[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* ISO 8601-encoded date and time string. A "New" badge will be rendered for templates introduced in the last month.
|
|
36
|
+
*/
|
|
37
|
+
createdOn: string;
|
|
38
|
+
}
|
|
9
39
|
//# sourceMappingURL=customer-segment-template.d.ts.map
|
package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-segment-template.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAEnF,MAAM,WAAW,0BAA0B,CACzC,eAAe,SAAS,kBAAkB,CAC1C,SAAQ,WAAW,CAAC,eAAe,CAAC;IAEpC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"customer-segment-template.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAC,eAAe,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAEnF,MAAM,WAAW,0BAA0B,CACzC,eAAe,SAAS,kBAAkB,CAC1C,SAAQ,WAAW,CAAC,eAAe,CAAC;IAEpC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,MAAM,MAAM,mCAAmC,GAAG,kBAAkB,CAAC;AACrE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,mCAAmC,EAAE,CAAC;QAC3D,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IACF;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { I18n, I18nTranslate } from '../../api';
|
|
2
2
|
export type { StandardApi, Intents } from './api/standard/standard';
|
|
3
3
|
export type { Navigation } from './api/block/block';
|
|
4
|
-
export type { CustomerSegmentTemplateApi } from './api/customer-segment-template/customer-segment-template';
|
|
4
|
+
export type { CustomerSegmentTemplateApi, CustomerSegmentTemplate, } from './api/customer-segment-template/customer-segment-template';
|
|
5
5
|
export type { ActionExtensionApi } from './api/action/action';
|
|
6
6
|
export type { BlockExtensionApi } from './api/block/block';
|
|
7
7
|
export type { PrintActionExtensionApi } from './api/print-action/print-action';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACnD,YAAY,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAClD,YAAY,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,IAAI,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACnD,YAAY,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,2DAA2D,CAAC;AACnE,YAAY,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAC,uBAAuB,EAAC,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAC,8BAA8B,EAAC,MAAM,2DAA2D,CAAC;AAC9G,YAAY,EAAC,qCAAqC,EAAC,MAAM,mEAAmE,CAAC;AAC7H,YAAY,EAAC,mBAAmB,EAAC,MAAM,6CAA6C,CAAC;AACrF,YAAY,EAAC,qBAAqB,EAAC,MAAM,0CAA0C,CAAC;AACpF,YAAY,EAAC,mCAAmC,EAAC,MAAM,oCAAoC,CAAC;AAC5F,YAAY,EAAC,2BAA2B,EAAC,MAAM,6DAA6D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Table/Table.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AASpE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Table.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/Table/Table.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,MAAM,kBAAkB,CAAC;AASpE,QAAA,MAAM,IAAI,EAAE,kCAoEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountConnection.ab.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/patterns/accountConnection.ab.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA4CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexTable.ab.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/patterns/indexTable.ab.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"indexTable.ab.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/components/patterns/indexTable.ab.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BA4CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RunnableExtension, RenderExtension } from '../../extension';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ActionExtensionApi, BlockExtensionApi, PrintActionExtensionApi, ProductDetailsConfigurationApi, ProductVariantDetailsConfigurationApi, OrderRoutingRuleApi, ValidationSettingsApi, PurchaseOptionsCardConfigurationApi, DiscountFunctionSettingsApi, CustomerSegmentTemplateApi, CustomerSegmentTemplate } from './api';
|
|
3
3
|
import { ShouldRenderApi, ShouldRenderOutput } from './api/should-render/should-render';
|
|
4
4
|
import type { StandardComponents } from './components/StandardComponents';
|
|
5
5
|
import type { BlockExtensionComponents } from './components/BlockExtensionComponents';
|
|
@@ -7,9 +7,11 @@ import type { ActionExtensionComponents } from './components/ActionExtensionComp
|
|
|
7
7
|
import type { PrintActionExtensionComponents } from './components/PrintActionExtensionComponents';
|
|
8
8
|
export interface ExtensionTargets {
|
|
9
9
|
/**
|
|
10
|
-
* Renders a
|
|
10
|
+
* Renders a [`CustomerSegmentTemplate`](/docs/api/admin-extensions/components/customersegmenttemplate) in the [customer segment editor](https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments).
|
|
11
11
|
*/
|
|
12
|
-
'admin.customers.segmentation-templates.
|
|
12
|
+
'admin.customers.segmentation-templates.data': RunnableExtension<CustomerSegmentTemplateApi<'admin.customers.segmentation-templates.data'>, {
|
|
13
|
+
templates: CustomerSegmentTemplate[];
|
|
14
|
+
}>;
|
|
13
15
|
/**
|
|
14
16
|
* Renders an admin block in the product details page.
|
|
15
17
|
*
|