@shopify/ui-extensions 2025.10.0-rc.46 → 2025.10.0-rc.48
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 +1 -1
- package/build/cjs/surfaces/checkout/shared.js +1 -1
- package/build/esm/surfaces/checkout/preact/api.mjs +1 -1
- package/build/esm/surfaces/checkout/shared.mjs +1 -1
- package/build/esnext/surfaces/checkout/preact/api.esnext +1 -1
- package/build/esnext/surfaces/checkout/shared.esnext +1 -1
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts +4 -0
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts.map +1 -0
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts +4 -0
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts.map +1 -0
- package/build/ts/docs/shared/components/index.d.ts +2 -0
- package/build/ts/docs/shared/components/index.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -5
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -5
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/build/ts/surfaces/admin/components/shared.d.ts +30 -6
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +84 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +129 -0
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +98 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +17 -0
- package/build/ts/surfaces/checkout/components/components.d.ts +216 -144
- package/build/ts/surfaces/checkout/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +84 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +129 -0
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +98 -0
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +17 -0
- package/build/ts/surfaces/customer-account/components/components.d.ts +216 -144
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +3 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +10 -1
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +12 -4
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +51 -14
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +12 -2
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +3 -2
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +12 -5
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +11 -4
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +17 -8
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +10 -6
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +4 -3
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +7 -4
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +13 -3
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +12 -5
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +28 -7
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +25 -11
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +12 -13
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +12 -8
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +47 -15
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +15 -7
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +15 -9
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +67 -7
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +25 -4
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +17 -7
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +9 -7
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +12 -2
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +14 -6
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +102 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/docs/shared/components/ConsentCheckbox.ts +12 -0
- package/src/docs/shared/components/ConsentPhoneField.ts +12 -0
- package/src/docs/shared/components/index.ts +2 -0
- package/src/surfaces/admin/components/Chip.d.ts +1 -5
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -5
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -5
- package/src/surfaces/admin/components/DateField.d.ts +1 -5
- package/src/surfaces/admin/components/Menu.d.ts +1 -5
- package/src/surfaces/admin/components/Modal.d.ts +1 -5
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -5
- package/src/surfaces/admin/components/shared.d.ts +30 -6
- package/src/surfaces/admin/components.d.ts +64 -152
- package/src/surfaces/checkout/components/ConsentCheckbox/examples/basic-consent-checkbox.example.html +5 -0
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +84 -0
- package/src/surfaces/checkout/components/ConsentPhoneField/examples/basic-consent-phone-field.example.html +5 -0
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +129 -0
- package/src/surfaces/checkout/components/NumberField/examples/basic-number-field.example.html +8 -0
- package/src/surfaces/checkout/components/NumberField.d.ts +98 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +1 -1
- package/src/surfaces/checkout/components/PhoneField/examples/basic-phone-field.example.html +2 -1
- package/src/surfaces/checkout/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +4 -1
- package/src/surfaces/checkout/components/Stack/examples/basic-stack.example.html +20 -4
- package/src/surfaces/checkout/components/TextArea/examples/basic-text-area.example.html +5 -1
- package/src/surfaces/checkout/components/TextField/examples/basic-text-field.example.html +4 -1
- package/src/surfaces/checkout/components/components-shared.d.ts +17 -0
- package/src/surfaces/checkout/components/components.d.ts +216 -144
- package/src/surfaces/checkout/preact/api.ts +1 -1
- package/src/surfaces/checkout/preact/tests/api.test.tsx +22 -13
- package/src/surfaces/checkout/preact/tests/app-metafields.test.ts +52 -56
- package/src/surfaces/checkout/preact/tests/attributes.test.ts +34 -24
- package/src/surfaces/checkout/preact/tests/billing-address.test.ts +17 -7
- package/src/surfaces/checkout/preact/tests/buyer-identity-businessCustomer.test.ts +16 -9
- package/src/surfaces/checkout/preact/tests/buyer-identity.test.tsx +57 -26
- package/src/surfaces/checkout/preact/tests/buyer-journey.test.ts +71 -74
- package/src/surfaces/checkout/preact/tests/capabilities.test.ts +32 -28
- package/src/surfaces/checkout/preact/tests/cart-line-target.test.ts +31 -24
- package/src/surfaces/checkout/preact/tests/checkout-settings.test.ts +17 -9
- package/src/surfaces/checkout/preact/tests/checkout-token.test.ts +16 -6
- package/src/surfaces/checkout/preact/tests/configuration.test.ts +16 -6
- package/src/surfaces/checkout/preact/tests/country.test.tsx +18 -8
- package/src/surfaces/checkout/preact/tests/currency.test.tsx +18 -8
- package/src/surfaces/checkout/preact/tests/customer-privacy.test.ts +17 -8
- package/src/surfaces/checkout/preact/tests/delivery-group-list-target.test.ts +24 -18
- package/src/surfaces/checkout/preact/tests/delivery-group-target.test.ts +25 -19
- package/src/surfaces/checkout/preact/tests/delivery-group.test.ts +22 -16
- package/src/surfaces/checkout/preact/tests/delivery-groups.test.ts +17 -11
- package/src/surfaces/checkout/preact/tests/delivery-selection-groups.test.ts +31 -24
- package/src/surfaces/checkout/preact/tests/discounts.test.tsx +21 -14
- package/src/surfaces/checkout/preact/tests/extension-language.test.tsx +17 -8
- package/src/surfaces/checkout/preact/tests/gift-cards.test.tsx +17 -8
- package/src/surfaces/checkout/preact/tests/localized-fields.test.ts +58 -59
- package/src/surfaces/checkout/preact/tests/market.test.tsx +17 -7
- package/src/surfaces/checkout/preact/tests/metafield.test.tsx +33 -36
- package/src/surfaces/checkout/preact/tests/metafields.test.tsx +36 -53
- package/src/surfaces/checkout/preact/tests/mount.tsx +60 -17
- package/src/surfaces/checkout/preact/tests/notes.test.tsx +16 -6
- package/src/surfaces/checkout/preact/tests/payment-method.test.ts +87 -60
- package/src/surfaces/checkout/preact/tests/payment-options.test.tsx +26 -24
- package/src/surfaces/checkout/preact/tests/pickup-location-option-target.test.tsx +55 -46
- package/src/surfaces/checkout/preact/tests/redeemable.test.ts +30 -23
- package/src/surfaces/checkout/preact/tests/session-token.test.tsx +12 -6
- package/src/surfaces/checkout/preact/tests/shipping-address.test.ts +17 -7
- package/src/surfaces/checkout/preact/tests/shipping-option-target.test.ts +54 -50
- package/src/surfaces/checkout/preact/tests/shopping-address.test.tsx +18 -10
- package/src/surfaces/checkout/preact/tests/timezone.test.tsx +17 -7
- package/src/surfaces/checkout/preact/tests/translate.test.tsx +18 -13
- package/src/surfaces/checkout/preact/tests/tsconfig.json +1 -1
- package/src/surfaces/checkout/shared.ts +2 -0
- package/src/surfaces/point-of-sale/components/Badge.d.ts +10 -1
- package/src/surfaces/point-of-sale/components/Banner.d.ts +12 -4
- package/src/surfaces/point-of-sale/components/Box.d.ts +51 -14
- package/src/surfaces/point-of-sale/components/Button.d.ts +12 -2
- package/src/surfaces/point-of-sale/components/Choice.d.ts +3 -2
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +12 -5
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +11 -4
- package/src/surfaces/point-of-sale/components/DateField.d.ts +17 -8
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +10 -6
- package/src/surfaces/point-of-sale/components/Divider.d.ts +4 -3
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Heading.d.ts +7 -4
- package/src/surfaces/point-of-sale/components/Icon.d.ts +13 -3
- package/src/surfaces/point-of-sale/components/Image.d.ts +12 -5
- package/src/surfaces/point-of-sale/components/Modal.d.ts +28 -7
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Page.d.ts +25 -11
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +12 -13
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +12 -8
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +47 -15
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +15 -7
- package/src/surfaces/point-of-sale/components/Section.d.ts +15 -9
- package/src/surfaces/point-of-sale/components/Stack.d.ts +67 -7
- package/src/surfaces/point-of-sale/components/Text.d.ts +25 -4
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/TextField.d.ts +9 -7
- package/src/surfaces/point-of-sale/components/Tile.d.ts +12 -2
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +14 -6
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +102 -1
- package/src/surfaces/point-of-sale/components.d.ts +869 -481
- package/build/ts/surfaces/checkout/errors.d.ts +0 -10
- package/build/ts/surfaces/checkout/errors.d.ts.map +0 -1
- package/src/surfaces/checkout/errors.ts +0 -13
|
@@ -21,7 +21,7 @@ var errors = require('./errors.js');
|
|
|
21
21
|
function useApi(_target) {
|
|
22
22
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
23
23
|
if (!api) {
|
|
24
|
-
throw new errors.CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-
|
|
24
|
+
throw new errors.CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-10.');
|
|
25
25
|
}
|
|
26
26
|
return api;
|
|
27
27
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
* The list of supported components.
|
|
7
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', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
9
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', 'ClipboardItem', 'ConsentCheckbox', 'ConsentPhoneField', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
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.
|
|
@@ -17,7 +17,7 @@ import { CheckoutUIExtensionError } from './errors.mjs';
|
|
|
17
17
|
function useApi(_target) {
|
|
18
18
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
19
19
|
if (!api) {
|
|
20
|
-
throw new CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-
|
|
20
|
+
throw new CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-10.');
|
|
21
21
|
}
|
|
22
22
|
return api;
|
|
23
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The list of supported components.
|
|
3
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', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
5
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', 'ClipboardItem', 'ConsentCheckbox', 'ConsentPhoneField', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
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.
|
|
@@ -17,7 +17,7 @@ import { CheckoutUIExtensionError } from './errors.esnext';
|
|
|
17
17
|
function useApi(_target) {
|
|
18
18
|
const api = globalThis === null || globalThis === void 0 ? void 0 : globalThis.shopify;
|
|
19
19
|
if (!api) {
|
|
20
|
-
throw new CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-
|
|
20
|
+
throw new CheckoutUIExtensionError('You can only call this hook when running as a checkout UI extension on at least API version 2025-10.');
|
|
21
21
|
}
|
|
22
22
|
return api;
|
|
23
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The list of supported components.
|
|
3
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', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
5
|
+
const SUPPORTED_COMPONENTS = ['Abbreviation', 'Announcement', 'Badge', 'Banner', 'Box', 'Button', 'Checkbox', 'Chip', 'Choice', 'ChoiceList', 'Clickable', 'ClickableChip', 'ClipboardItem', 'ConsentCheckbox', 'ConsentPhoneField', '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', 'PressButton', 'ProductThumbnail', 'Progress', 'QueryContainer', 'QRCode', 'ScrollBox', 'Section', 'Select', 'Sheet', 'SkeletonParagraph', 'Spinner', 'Stack', 'Summary', 'Switch', 'Text', 'TextArea', 'TextField', 'Time', 'Tooltip', 'UnorderedList', 'UrlField'];
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentCheckbox.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/ConsentCheckbox.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":"ConsentPhoneField.d.ts","sourceRoot":"","sources":["../../../../../src/docs/shared/components/ConsentPhoneField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mCAAmC,EAAC,MAAM,cAAc,CAAC;AAEtE,QAAA,MAAM,IAAI,EAAE,mCAOX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -9,6 +9,8 @@ export { default as ChoiceList } from './ChoiceList';
|
|
|
9
9
|
export { default as Clickable } from './Clickable';
|
|
10
10
|
export { default as ClickableChip } from './ClickableChip';
|
|
11
11
|
export { default as ClipboardItem } from './ClipboardItem';
|
|
12
|
+
export { default as ConsentCheckbox } from './ConsentCheckbox';
|
|
13
|
+
export { default as ConsentPhoneField } from './ConsentPhoneField';
|
|
12
14
|
export { default as DateField } from './DateField';
|
|
13
15
|
export { default as DatePicker } from './DatePicker';
|
|
14
16
|
export { default as Details } from './Details';
|
|
@@ -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,OA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AAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -99,11 +99,7 @@ declare global {
|
|
|
99
99
|
declare module 'preact' {
|
|
100
100
|
namespace createElement.JSX {
|
|
101
101
|
interface IntrinsicElements {
|
|
102
|
-
[tagName]: Omit<
|
|
103
|
-
HTMLAttributes<HTMLElement>,
|
|
104
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
105
|
-
> &
|
|
106
|
-
Omit<ChipJSXProps, 'graphic'> &
|
|
102
|
+
[tagName]: Omit<ChipJSXProps, 'graphic'> &
|
|
107
103
|
PreactBaseElementPropsWithChildren<Chip>;
|
|
108
104
|
}
|
|
109
105
|
}
|
|
@@ -127,11 +127,7 @@ declare global {
|
|
|
127
127
|
declare module 'preact' {
|
|
128
128
|
namespace createElement.JSX {
|
|
129
129
|
interface IntrinsicElements {
|
|
130
|
-
[tagName]: Omit<
|
|
131
|
-
HTMLAttributes<HTMLElement>,
|
|
132
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
133
|
-
> &
|
|
134
|
-
Omit<ClickableChipJSXProps, 'graphic'> &
|
|
130
|
+
[tagName]: Omit<ClickableChipJSXProps, 'graphic'> &
|
|
135
131
|
PreactBaseElementPropsWithChildren<ClickableChip>;
|
|
136
132
|
}
|
|
137
133
|
}
|
|
@@ -108,11 +108,7 @@ declare global {
|
|
|
108
108
|
declare module 'preact' {
|
|
109
109
|
namespace createElement.JSX {
|
|
110
110
|
interface IntrinsicElements {
|
|
111
|
-
[tagName]:
|
|
112
|
-
HTMLAttributes<HTMLElement>,
|
|
113
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
114
|
-
> &
|
|
115
|
-
ColorPickerJSXProps;
|
|
111
|
+
[tagName]: ColorPickerJSXProps;
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
}
|
|
@@ -221,11 +221,7 @@ declare global {
|
|
|
221
221
|
declare module 'preact' {
|
|
222
222
|
namespace createElement.JSX {
|
|
223
223
|
interface IntrinsicElements {
|
|
224
|
-
[tagName]:
|
|
225
|
-
HTMLAttributes<HTMLElement>,
|
|
226
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
227
|
-
> &
|
|
228
|
-
DateFieldJSXProps;
|
|
224
|
+
[tagName]: DateFieldJSXProps;
|
|
229
225
|
}
|
|
230
226
|
}
|
|
231
227
|
}
|
|
@@ -125,11 +125,7 @@ declare global {
|
|
|
125
125
|
declare module 'preact' {
|
|
126
126
|
namespace createElement.JSX {
|
|
127
127
|
interface IntrinsicElements {
|
|
128
|
-
[tagName]:
|
|
129
|
-
HTMLAttributes<HTMLElement>,
|
|
130
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
131
|
-
> &
|
|
132
|
-
MenuJSXProps;
|
|
128
|
+
[tagName]: MenuJSXProps;
|
|
133
129
|
}
|
|
134
130
|
}
|
|
135
131
|
}
|
|
@@ -196,11 +196,7 @@ declare global {
|
|
|
196
196
|
declare module 'preact' {
|
|
197
197
|
namespace createElement.JSX {
|
|
198
198
|
interface IntrinsicElements {
|
|
199
|
-
[tagName]: Omit<
|
|
200
|
-
HTMLAttributes<HTMLElement>,
|
|
201
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
202
|
-
> &
|
|
203
|
-
Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
199
|
+
[tagName]: Omit<ModalJSXProps, 'primaryAction' | 'secondaryActions'>;
|
|
204
200
|
}
|
|
205
201
|
}
|
|
206
202
|
}
|
|
@@ -88,11 +88,7 @@ declare global {
|
|
|
88
88
|
declare module 'preact' {
|
|
89
89
|
namespace createElement.JSX {
|
|
90
90
|
interface IntrinsicElements {
|
|
91
|
-
[tagName]:
|
|
92
|
-
HTMLAttributes<HTMLElement>,
|
|
93
|
-
Extract<keyof HTMLAttributes<HTMLElement>, `on${Capitalize<string>}`>
|
|
94
|
-
> &
|
|
95
|
-
QueryContainerJSXProps;
|
|
91
|
+
[tagName]: QueryContainerJSXProps;
|
|
96
92
|
}
|
|
97
93
|
}
|
|
98
94
|
}
|
|
@@ -167,7 +167,7 @@ export interface ExtendableEvent extends Event {
|
|
|
167
167
|
interface AggregateError$1<T extends Error> extends Error {
|
|
168
168
|
errors: T[];
|
|
169
169
|
}
|
|
170
|
-
export interface
|
|
170
|
+
export interface AggregateErrorEvent<T extends Error> extends ErrorEvent {
|
|
171
171
|
error: AggregateError$1<T>;
|
|
172
172
|
}
|
|
173
173
|
export type SizeKeyword =
|
|
@@ -359,6 +359,7 @@ declare const privateIconArray: readonly [
|
|
|
359
359
|
'clipboard-check',
|
|
360
360
|
'clipboard-checklist',
|
|
361
361
|
'clock',
|
|
362
|
+
'clock-list',
|
|
362
363
|
'clock-revert',
|
|
363
364
|
'code',
|
|
364
365
|
'code-add',
|
|
@@ -576,6 +577,7 @@ declare const privateIconArray: readonly [
|
|
|
576
577
|
'note',
|
|
577
578
|
'note-add',
|
|
578
579
|
'notification',
|
|
580
|
+
'number-one',
|
|
579
581
|
'order',
|
|
580
582
|
'order-batches',
|
|
581
583
|
'order-draft',
|
|
@@ -662,6 +664,7 @@ declare const privateIconArray: readonly [
|
|
|
662
664
|
'profile-filled',
|
|
663
665
|
'question-circle',
|
|
664
666
|
'question-circle-filled',
|
|
667
|
+
'radio-control',
|
|
665
668
|
'receipt',
|
|
666
669
|
'receipt-dollar',
|
|
667
670
|
'receipt-euro',
|
|
@@ -716,6 +719,7 @@ declare const privateIconArray: readonly [
|
|
|
716
719
|
'sort-ascending',
|
|
717
720
|
'sort-descending',
|
|
718
721
|
'sound',
|
|
722
|
+
'split',
|
|
719
723
|
'sports',
|
|
720
724
|
'star',
|
|
721
725
|
'star-circle',
|
|
@@ -782,6 +786,9 @@ declare const privateIconArray: readonly [
|
|
|
782
786
|
'unlock',
|
|
783
787
|
'upload',
|
|
784
788
|
'variant',
|
|
789
|
+
'variant-list',
|
|
790
|
+
'video',
|
|
791
|
+
'video-list',
|
|
785
792
|
'view',
|
|
786
793
|
'viewport-narrow',
|
|
787
794
|
'viewport-short',
|
|
@@ -2098,7 +2105,7 @@ interface ColorPickerProps$1 extends GlobalProps, InputProps {
|
|
|
2098
2105
|
* For RGB and RGBA, both the legacy syntax (comma-separated) and modern syntax (space-separate) are supported.
|
|
2099
2106
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb
|
|
2100
2107
|
*
|
|
2101
|
-
* If the value is invalid, the component will
|
|
2108
|
+
* If the value is invalid, the component will return an empty string ''.
|
|
2102
2109
|
*
|
|
2103
2110
|
* Note that the `onChange` handler will emit the value in hex.
|
|
2104
2111
|
*/
|
|
@@ -2405,12 +2412,19 @@ interface DatePickerProps$1 extends GlobalProps, InputProps, FocusEventProps {
|
|
|
2405
2412
|
*/
|
|
2406
2413
|
value?: string;
|
|
2407
2414
|
/**
|
|
2408
|
-
* Callback when any date is selected.
|
|
2415
|
+
* Callback when any date is selected.
|
|
2416
|
+
*
|
|
2417
|
+
* - If `type="single"`, fires when a date is selected and happens before `onChange`.
|
|
2418
|
+
* - If `type="multiple"`, fires when a date is selected before `onChange`.
|
|
2419
|
+
* - If `type="range"`, fires when a first date is selected (with the partial value formatted as `YYYY-MM-DD--`), and when the last date is selected before `onChange`.
|
|
2409
2420
|
*/
|
|
2410
2421
|
onInput?: (event: Event) => void;
|
|
2411
2422
|
/**
|
|
2412
|
-
* Callback when the
|
|
2413
|
-
*
|
|
2423
|
+
* Callback when the value is committed.
|
|
2424
|
+
*
|
|
2425
|
+
* - If `type="single"`, fires when a date is selected after `onInput`.
|
|
2426
|
+
* - If `type="multiple"`, fires when a date is selected after `onInput`.
|
|
2427
|
+
* - If `type="range"`, fires when a range is completed by selecting the end date after `onInput`.
|
|
2414
2428
|
*/
|
|
2415
2429
|
onChange?: (event: Event) => void;
|
|
2416
2430
|
}
|
|
@@ -2430,6 +2444,16 @@ interface DateFieldProps$1
|
|
|
2430
2444
|
| 'onViewChange'
|
|
2431
2445
|
>,
|
|
2432
2446
|
AutocompleteProps<DateAutocompleteField> {
|
|
2447
|
+
/**
|
|
2448
|
+
* Callback when the user makes any changes in the field.
|
|
2449
|
+
* Also triggered when a date is selected using the date picker popup before `onChange`.
|
|
2450
|
+
*/
|
|
2451
|
+
onInput?: (event: Event) => void;
|
|
2452
|
+
/**
|
|
2453
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
2454
|
+
* Also triggered when a date is selected using the date picker popup after `onInput`.
|
|
2455
|
+
*/
|
|
2456
|
+
onChange?: (event: Event) => void;
|
|
2433
2457
|
/**
|
|
2434
2458
|
* Callback when the field has an invalid date.
|
|
2435
2459
|
* This callback will be called, if the date typed is invalid or disabled.
|
|
@@ -2560,7 +2584,7 @@ interface FunctionSettingsProps$1 extends GlobalProps, FormProps$1 {
|
|
|
2560
2584
|
* highlight the fields that caused the errors, and display the error messages
|
|
2561
2585
|
* to the user.
|
|
2562
2586
|
*/
|
|
2563
|
-
onError?: (event:
|
|
2587
|
+
onError?: (event: AggregateErrorEvent<FunctionSettingsError>) => void;
|
|
2564
2588
|
}
|
|
2565
2589
|
export interface FunctionSettingsError extends Error {
|
|
2566
2590
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentCheckbox.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BA+BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/** VERSION: 0.0.0 **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {ConsentCheckboxProps$1,CheckboxProps$1} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
22
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
23
|
+
};
|
|
24
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
25
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
26
|
+
}) | null;
|
|
27
|
+
|
|
28
|
+
declare const tagName$1 = "s-checkbox";
|
|
29
|
+
export interface CheckboxElementProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
|
|
30
|
+
command?: Extract<CheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
31
|
+
}
|
|
32
|
+
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
|
|
33
|
+
}
|
|
34
|
+
export interface CheckboxElement extends CheckboxElementProps, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
35
|
+
onchange: CheckboxEvents['onChange'];
|
|
36
|
+
}
|
|
37
|
+
export interface CheckboxProps extends CheckboxElementProps, CheckboxEvents {
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
[tagName$1]: CheckboxElement;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
declare module 'preact' {
|
|
45
|
+
namespace createElement.JSX {
|
|
46
|
+
interface IntrinsicElements {
|
|
47
|
+
[tagName$1]: CheckboxProps & BaseElementProps<CheckboxElement>;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare const tagName = "s-consent-checkbox";
|
|
53
|
+
export interface ConsentCheckboxElementProps extends Pick<ConsentCheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'policy' | 'value'> {
|
|
54
|
+
command?: Extract<ConsentCheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
|
|
55
|
+
}
|
|
56
|
+
export interface ConsentCheckboxEvents extends Pick<CheckboxEvents, 'onChange'> {
|
|
57
|
+
}
|
|
58
|
+
export interface ConsentCheckboxElementEvents {
|
|
59
|
+
/**
|
|
60
|
+
* A callback that is run whenever the control is changed.
|
|
61
|
+
*
|
|
62
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
63
|
+
*/
|
|
64
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
65
|
+
}
|
|
66
|
+
export interface ConsentCheckboxElement extends ConsentCheckboxElementProps, Omit<HTMLElement, 'id' | 'onchange'> {
|
|
67
|
+
onchange: ConsentCheckboxEvents['onChange'];
|
|
68
|
+
}
|
|
69
|
+
export interface ConsentCheckboxProps extends ConsentCheckboxElementProps, ConsentCheckboxEvents {
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
[tagName]: ConsentCheckboxElement;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
declare module 'preact' {
|
|
77
|
+
namespace createElement.JSX {
|
|
78
|
+
interface IntrinsicElements {
|
|
79
|
+
[tagName]: ConsentCheckboxProps & BaseElementProps<ConsentCheckboxElement>;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type { ConsentCheckboxElement, ConsentCheckboxElementEvents, ConsentCheckboxElementProps, ConsentCheckboxEvents, ConsentCheckboxProps };
|
package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentPhoneField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAoCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/** VERSION: 0.0.0 **/
|
|
2
|
+
/* eslint-disable import-x/extensions */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
/* eslint-disable line-comment-position */
|
|
6
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
7
|
+
/* eslint-disable no-var */
|
|
8
|
+
/* eslint-disable import-x/namespace */
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference, spaced-comment
|
|
10
|
+
/// <reference lib="DOM" />
|
|
11
|
+
import type {PhoneFieldProps$1, ConsentPhoneFieldProps$1} from './components-shared.d.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Used when an element does not have children.
|
|
15
|
+
*/
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
key?: preact.Key;
|
|
18
|
+
ref?: preact.Ref<TClass>;
|
|
19
|
+
slot?: Lowercase<string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used when an element has children.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends BaseElementProps<TClass> {
|
|
25
|
+
children?: preact.ComponentChildren;
|
|
26
|
+
}
|
|
27
|
+
export type CallbackEvent<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = TEvent & {
|
|
28
|
+
currentTarget: HTMLElementTagNameMap[TTagName];
|
|
29
|
+
};
|
|
30
|
+
export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap, TEvent extends Event = Event> = (EventListener & {
|
|
31
|
+
(event: CallbackEvent<TTagName, TEvent>): void;
|
|
32
|
+
}) | null;
|
|
33
|
+
|
|
34
|
+
declare const tagName$1 = "s-phone-field";
|
|
35
|
+
export interface PhoneFieldElementProps extends Pick<PhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'readOnly' | 'required' | 'value' | 'type'> {
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Use `label` instead.
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PhoneFieldEvents extends Pick<PhoneFieldProps$1, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
43
|
+
}
|
|
44
|
+
export interface PhoneFieldElement extends PhoneFieldElementProps, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
45
|
+
onblur: PhoneFieldEvents['onBlur'];
|
|
46
|
+
onchange: PhoneFieldEvents['onChange'];
|
|
47
|
+
onfocus: PhoneFieldEvents['onFocus'];
|
|
48
|
+
oninput: PhoneFieldEvents['onInput'];
|
|
49
|
+
}
|
|
50
|
+
export interface PhoneFieldProps extends PhoneFieldElementProps, PhoneFieldEvents {
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
[tagName$1]: PhoneFieldElement;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
declare module 'preact' {
|
|
58
|
+
namespace createElement.JSX {
|
|
59
|
+
interface IntrinsicElements {
|
|
60
|
+
[tagName$1]: PhoneFieldProps & BaseElementPropsWithChildren<PhoneFieldElement>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare const tagName = "s-consent-phone-field";
|
|
66
|
+
export interface ConsentPhoneFieldElementProps extends Pick<ConsentPhoneFieldProps$1, 'autocomplete' | 'defaultValue' | 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'name' | 'policy' | 'readOnly' | 'required' | 'type' | 'value'> {
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `label` instead.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
placeholder?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ConsentPhoneFieldEvents extends Pick<PhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
74
|
+
}
|
|
75
|
+
export interface ConsentPhoneFieldElementEvents {
|
|
76
|
+
/**
|
|
77
|
+
* Callback when the element loses focus.
|
|
78
|
+
*
|
|
79
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
80
|
+
*/
|
|
81
|
+
blur?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
82
|
+
/**
|
|
83
|
+
* Callback when the user has **finished editing** a field, e.g. once they have blurred the field.
|
|
84
|
+
*
|
|
85
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event
|
|
86
|
+
*/
|
|
87
|
+
change?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
88
|
+
/**
|
|
89
|
+
* Callback when the element receives focus.
|
|
90
|
+
*
|
|
91
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event
|
|
92
|
+
*/
|
|
93
|
+
focus?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
94
|
+
/**
|
|
95
|
+
* Callback when the user makes any changes in the field.
|
|
96
|
+
*
|
|
97
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
|
|
98
|
+
*/
|
|
99
|
+
input?: ((event: CallbackEventListener<typeof tagName>) => void) | null;
|
|
100
|
+
}
|
|
101
|
+
export interface ConsentPhoneFieldElement extends ConsentPhoneFieldElementProps, Omit<ConsentPhoneFieldEvents, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'> {
|
|
102
|
+
onblur: ConsentPhoneFieldEvents['onBlur'];
|
|
103
|
+
onchange: ConsentPhoneFieldEvents['onChange'];
|
|
104
|
+
onfocus: ConsentPhoneFieldEvents['onFocus'];
|
|
105
|
+
oninput: ConsentPhoneFieldEvents['onInput'];
|
|
106
|
+
}
|
|
107
|
+
export interface ConsentPhoneFieldElementSlots {
|
|
108
|
+
/**
|
|
109
|
+
* Additional content to be displayed in the field.
|
|
110
|
+
* Commonly used to display an icon that activates a tooltip providing more information.
|
|
111
|
+
*/
|
|
112
|
+
accessory?: HTMLElement;
|
|
113
|
+
}
|
|
114
|
+
export interface ConsentPhoneFieldProps extends ConsentPhoneFieldElementProps, ConsentPhoneFieldEvents {
|
|
115
|
+
}
|
|
116
|
+
declare global {
|
|
117
|
+
interface HTMLElementTagNameMap {
|
|
118
|
+
[tagName]: ConsentPhoneFieldElement;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
declare module 'preact' {
|
|
122
|
+
namespace createElement.JSX {
|
|
123
|
+
interface IntrinsicElements {
|
|
124
|
+
[tagName]: ConsentPhoneFieldProps & BaseElementProps<ConsentPhoneFieldElement>;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type { ConsentPhoneFieldElement, ConsentPhoneFieldElementEvents, ConsentPhoneFieldElementProps, ConsentPhoneFieldElementSlots, ConsentPhoneFieldEvents, ConsentPhoneFieldProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/components/NumberField/NumberField.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAI1E,QAAA,MAAM,IAAI,EAAE,6BAmCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|