@shopify/ui-extensions 2025.10.0-rc.3 → 2025.10.0-rc.5
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/ts/docs/shared/components/QueryContainer.d.ts +4 -0
- package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +17 -6
- package/build/ts/surfaces/admin/components/Banner.d.ts +17 -6
- package/build/ts/surfaces/admin/components/Box.d.ts +28 -7
- package/build/ts/surfaces/admin/components/Button.d.ts +16 -6
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +17 -2
- package/build/ts/surfaces/admin/components/Choice.d.ts +17 -2
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +17 -6
- package/build/ts/surfaces/admin/components/Clickable.d.ts +28 -7
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +11 -5
- package/build/ts/surfaces/admin/components/Divider.d.ts +12 -5
- package/build/ts/surfaces/admin/components/EmailField.d.ts +11 -5
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +28 -7
- package/build/ts/surfaces/admin/components/GridItem.d.ts +29 -7
- package/build/ts/surfaces/admin/components/Heading.d.ts +17 -6
- package/build/ts/surfaces/admin/components/Icon.d.ts +12 -5
- package/build/ts/surfaces/admin/components/Image.d.ts +22 -6
- package/build/ts/surfaces/admin/components/Link.d.ts +16 -6
- package/build/ts/surfaces/admin/components/ListItem.d.ts +18 -6
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +11 -6
- package/build/ts/surfaces/admin/components/NumberField.d.ts +11 -5
- package/build/ts/surfaces/admin/components/Option.d.ts +17 -5
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +18 -5
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +18 -6
- package/build/ts/surfaces/admin/components/Page.d.ts +20 -5
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +18 -6
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +11 -5
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +106 -0
- package/build/ts/surfaces/admin/components/SearchField.d.ts +14 -6
- package/build/ts/surfaces/admin/components/Section.d.ts +17 -6
- package/build/ts/surfaces/admin/components/Select.d.ts +16 -6
- package/build/ts/surfaces/admin/components/Spinner.d.ts +12 -2
- package/build/ts/surfaces/admin/components/Stack.d.ts +28 -7
- package/build/ts/surfaces/admin/components/Switch.d.ts +11 -2
- package/build/ts/surfaces/admin/components/Table.d.ts +17 -6
- package/build/ts/surfaces/admin/components/TableBody.d.ts +18 -6
- package/build/ts/surfaces/admin/components/TableCell.d.ts +18 -6
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +18 -6
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
- package/build/ts/surfaces/admin/components/TableRow.d.ts +18 -6
- package/build/ts/surfaces/admin/components/Text.d.ts +17 -6
- package/build/ts/surfaces/admin/components/TextArea.d.ts +11 -5
- package/build/ts/surfaces/admin/components/TextField.d.ts +13 -5
- package/build/ts/surfaces/admin/components/URLField.d.ts +11 -5
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +18 -6
- package/build/ts/surfaces/admin/components/shared.d.ts +34 -44
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +589 -219
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +589 -219
- 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 +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +0 -6
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
- package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
- package/build/ts/surfaces/customer-account/components/Page.d.ts +3 -5
- package/build/ts/surfaces/customer-account/components/shared.d.ts +11 -0
- package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared.ts +17 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +109 -18
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +109 -18
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/docs/shared/components/QueryContainer.ts +12 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +17 -6
- package/src/surfaces/admin/components/Banner.d.ts +17 -6
- package/src/surfaces/admin/components/Box.d.ts +28 -7
- package/src/surfaces/admin/components/Button.d.ts +16 -6
- package/src/surfaces/admin/components/Checkbox.d.ts +17 -2
- package/src/surfaces/admin/components/Choice.d.ts +17 -2
- package/src/surfaces/admin/components/ChoiceList.d.ts +17 -6
- package/src/surfaces/admin/components/Clickable.d.ts +28 -7
- package/src/surfaces/admin/components/DatePicker.d.ts +11 -5
- package/src/surfaces/admin/components/Divider.d.ts +12 -5
- package/src/surfaces/admin/components/EmailField.d.ts +11 -5
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +28 -7
- package/src/surfaces/admin/components/GridItem.d.ts +29 -7
- package/src/surfaces/admin/components/Heading.d.ts +17 -6
- package/src/surfaces/admin/components/Icon.d.ts +12 -5
- package/src/surfaces/admin/components/Image.d.ts +22 -6
- package/src/surfaces/admin/components/Link.d.ts +16 -6
- package/src/surfaces/admin/components/ListItem.d.ts +18 -6
- package/src/surfaces/admin/components/MoneyField.d.ts +11 -6
- package/src/surfaces/admin/components/NumberField.d.ts +11 -5
- package/src/surfaces/admin/components/Option.d.ts +17 -5
- package/src/surfaces/admin/components/OptionGroup.d.ts +18 -5
- package/src/surfaces/admin/components/OrderedList.d.ts +18 -6
- package/src/surfaces/admin/components/Page.d.ts +20 -5
- package/src/surfaces/admin/components/Paragraph.d.ts +18 -6
- package/src/surfaces/admin/components/PasswordField.d.ts +11 -5
- package/src/surfaces/admin/components/QueryContainer/examples/default.html +5 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +106 -0
- package/src/surfaces/admin/components/SearchField.d.ts +14 -6
- package/src/surfaces/admin/components/Section.d.ts +17 -6
- package/src/surfaces/admin/components/Select.d.ts +16 -6
- package/src/surfaces/admin/components/Spinner.d.ts +12 -2
- package/src/surfaces/admin/components/Stack.d.ts +28 -7
- package/src/surfaces/admin/components/Switch.d.ts +11 -2
- package/src/surfaces/admin/components/Table.d.ts +17 -6
- package/src/surfaces/admin/components/TableBody.d.ts +18 -6
- package/src/surfaces/admin/components/TableCell.d.ts +18 -6
- package/src/surfaces/admin/components/TableHeader.d.ts +18 -6
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +18 -6
- package/src/surfaces/admin/components/TableRow.d.ts +18 -6
- package/src/surfaces/admin/components/Text.d.ts +17 -6
- package/src/surfaces/admin/components/TextArea.d.ts +11 -5
- package/src/surfaces/admin/components/TextField.d.ts +13 -5
- package/src/surfaces/admin/components/URLField.d.ts +11 -5
- package/src/surfaces/admin/components/UnorderedList.d.ts +18 -6
- package/src/surfaces/admin/components/shared.d.ts +34 -44
- package/src/surfaces/admin/components.d.ts +333 -513
- package/src/surfaces/checkout/shared.ts +3 -0
- package/src/surfaces/customer-account/api/docs.ts +1 -1
- package/src/surfaces/customer-account/api/shared.ts +0 -6
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-js.example.ts +1 -1
- package/src/surfaces/customer-account/components/CustomerAccountAction/examples/basic-CustomerAccountAction-preact.example.tsx +1 -1
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +4 -5
- package/src/surfaces/customer-account/components/ImageGroup.d.ts +4 -4
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-js.example.ts +4 -4
- package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx +4 -4
- package/src/surfaces/customer-account/components/Page.d.ts +3 -5
- package/src/surfaces/customer-account/components/shared.ts +17 -0
|
@@ -191,7 +191,7 @@ export interface Docs_Menu_Button_Action
|
|
|
191
191
|
export interface Docs_OrderActionMenu_Button
|
|
192
192
|
extends Pick<
|
|
193
193
|
ButtonProps,
|
|
194
|
-
'onClick' | 'loading' | 'disabled' | 'accessibilityLabel' | 'href'
|
|
194
|
+
'onClick' | 'loading' | 'disabled' | 'accessibilityLabel' | 'href' | 'tone'
|
|
195
195
|
> {
|
|
196
196
|
/**
|
|
197
197
|
* Destination URL to link to.
|
|
@@ -393,12 +393,6 @@ export interface CompanyLocation {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
export interface Ui {
|
|
396
|
-
/**
|
|
397
|
-
* An overlay is a contextual element on top of the main interface that provides additional information or functionality.
|
|
398
|
-
*/
|
|
399
|
-
overlay: {
|
|
400
|
-
close(overlayId: string): void;
|
|
401
|
-
};
|
|
402
396
|
/**
|
|
403
397
|
* The Toast API displays a non-disruptive message that displays at the bottom
|
|
404
398
|
* of the interface to provide quick, at-a-glance feedback on the outcome
|
|
@@ -3,7 +3,7 @@ export default function extension() {
|
|
|
3
3
|
|
|
4
4
|
const closeButton = document.createElement('s-button');
|
|
5
5
|
closeButton.innerHTML = 'Click to close';
|
|
6
|
-
closeButton.slot = '
|
|
6
|
+
closeButton.slot = 'primary-action';
|
|
7
7
|
closeButton.addEventListener('click', () => shopify.close());
|
|
8
8
|
|
|
9
9
|
accountAction.append('Extension content');
|
|
@@ -8,7 +8,7 @@ function App() {
|
|
|
8
8
|
return (
|
|
9
9
|
<s-customer-account-action heading="Extension title">
|
|
10
10
|
Extension content
|
|
11
|
-
<s-button slot="
|
|
11
|
+
<s-button slot="primary-action" onClick={() => shopify.close()}>
|
|
12
12
|
Click to close
|
|
13
13
|
</s-button>
|
|
14
14
|
</s-customer-account-action>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {BaseElementPropsWithChildren} from './shared';
|
|
2
|
+
|
|
1
3
|
export interface CustomerAccountActionProps {
|
|
2
4
|
/**
|
|
3
5
|
* Sets the heading of the Action container.
|
|
@@ -16,14 +18,11 @@ declare global {
|
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
declare module 'preact' {
|
|
19
|
-
interface BaseProps {
|
|
20
|
-
children?: preact.ComponentChildren;
|
|
21
|
-
slot?: Lowercase<string>;
|
|
22
|
-
}
|
|
23
21
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
24
22
|
namespace createElement.JSX {
|
|
25
23
|
interface IntrinsicElements {
|
|
26
|
-
['s-customer-account-action']:
|
|
24
|
+
['s-customer-account-action']: BaseElementPropsWithChildren<CustomerAccountActionElement> &
|
|
25
|
+
CustomerAccountActionProps;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {BaseElementPropsWithChildren} from './shared';
|
|
2
|
+
|
|
1
3
|
export interface ImageGroupProps {
|
|
2
4
|
/**
|
|
3
5
|
* Indicates the total number of items that could be displayed in the image group.
|
|
@@ -15,13 +17,11 @@ declare global {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
declare module 'preact' {
|
|
18
|
-
interface BaseProps {
|
|
19
|
-
children?: preact.ComponentChildren;
|
|
20
|
-
}
|
|
21
20
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
22
21
|
namespace createElement.JSX {
|
|
23
22
|
interface IntrinsicElements {
|
|
24
|
-
['s-image-group']:
|
|
23
|
+
['s-image-group']: BaseElementPropsWithChildren<ImageGroupElement> &
|
|
24
|
+
ImageGroupProps;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -3,25 +3,25 @@ export default function extension() {
|
|
|
3
3
|
|
|
4
4
|
const primaryAction = document.createElement('s-button');
|
|
5
5
|
primaryAction.innerHTML = 'Primary action';
|
|
6
|
-
primaryAction.slot = '
|
|
6
|
+
primaryAction.slot = 'primary-action';
|
|
7
7
|
primaryAction.addEventListener('click', () => console.log('Primary action'));
|
|
8
8
|
|
|
9
9
|
const secondaryActions1 = document.createElement('s-button');
|
|
10
|
-
secondaryActions1.slot = '
|
|
10
|
+
secondaryActions1.slot = 'secondary-actions';
|
|
11
11
|
secondaryActions1.textContent = 'Secondary action 1';
|
|
12
12
|
secondaryActions1.addEventListener('click', () =>
|
|
13
13
|
console.log('Secondary action 1'),
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
const secondaryActions2 = document.createElement('s-button');
|
|
17
|
-
secondaryActions2.slot = '
|
|
17
|
+
secondaryActions2.slot = 'secondary-actions';
|
|
18
18
|
secondaryActions2.textContent = 'Secondary action 2';
|
|
19
19
|
secondaryActions2.addEventListener('click', () =>
|
|
20
20
|
console.log('Secondary action 2'),
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
const breadcrumbActions = document.createElement('s-button');
|
|
24
|
-
breadcrumbActions.slot = '
|
|
24
|
+
breadcrumbActions.slot = 'breadcrumb-actions';
|
|
25
25
|
breadcrumbActions.setAttribute('accessibilitylabel', 'Button');
|
|
26
26
|
breadcrumbActions.setAttribute('href', 'shopify://customer-account/orders');
|
|
27
27
|
|
package/src/surfaces/customer-account/components/Page/examples/basic-Page-preact.example.tsx
CHANGED
|
@@ -8,25 +8,25 @@ function App() {
|
|
|
8
8
|
return (
|
|
9
9
|
<s-page heading="Order #1411" subheading="Confirmed Oct 5">
|
|
10
10
|
<s-button
|
|
11
|
-
slot="
|
|
11
|
+
slot="primary-action"
|
|
12
12
|
onClick={() => console.log('Primary action')}
|
|
13
13
|
>
|
|
14
14
|
Primary action
|
|
15
15
|
</s-button>
|
|
16
16
|
<s-button
|
|
17
|
-
slot="
|
|
17
|
+
slot="secondary-actions"
|
|
18
18
|
onClick={() => console.log('Secondary action 1')}
|
|
19
19
|
>
|
|
20
20
|
Secondary action 1
|
|
21
21
|
</s-button>
|
|
22
22
|
<s-button
|
|
23
|
-
slot="
|
|
23
|
+
slot="secondary-actions"
|
|
24
24
|
onClick={() => console.log('Secondary action 2')}
|
|
25
25
|
>
|
|
26
26
|
Secondary action 2
|
|
27
27
|
</s-button>
|
|
28
28
|
<s-button
|
|
29
|
-
slot="
|
|
29
|
+
slot="breadcrumb-actions"
|
|
30
30
|
accessibilitylabel="Button"
|
|
31
31
|
href="shopify://customer-account/orders"
|
|
32
32
|
/>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {BaseElementPropsWithChildren} from './shared';
|
|
2
|
+
|
|
1
3
|
export interface PageProps {
|
|
2
4
|
/**
|
|
3
5
|
* The main page heading
|
|
@@ -19,14 +21,10 @@ declare global {
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
declare module 'preact' {
|
|
22
|
-
interface BaseProps {
|
|
23
|
-
children?: preact.ComponentChildren;
|
|
24
|
-
slot?: Lowercase<string>;
|
|
25
|
-
}
|
|
26
24
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
27
25
|
namespace createElement.JSX {
|
|
28
26
|
interface IntrinsicElements {
|
|
29
|
-
['s-page']:
|
|
27
|
+
['s-page']: BaseElementPropsWithChildren<PageElement> & PageProps;
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
30
|
}
|
|
@@ -12,3 +12,20 @@ export type Size =
|
|
|
12
12
|
| 'large'
|
|
13
13
|
| 'extraLarge'
|
|
14
14
|
| 'fill';
|
|
15
|
+
|
|
16
|
+
export interface BaseElementProps<TClass = HTMLElement> {
|
|
17
|
+
// Assigns a unique key to this element.
|
|
18
|
+
key?: preact.Key;
|
|
19
|
+
// Assigns a ref (generally from `useRef()`) to this element.
|
|
20
|
+
ref?: preact.Ref<TClass>;
|
|
21
|
+
// Assigns this element to a parent's slot.
|
|
22
|
+
slot?: Lowercase<string>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Used when an element has children.
|
|
27
|
+
*/
|
|
28
|
+
export interface BaseElementPropsWithChildren<TClass = HTMLElement>
|
|
29
|
+
extends BaseElementProps<TClass> {
|
|
30
|
+
children?: preact.ComponentChildren;
|
|
31
|
+
}
|