@vtex/faststore 0.0.1
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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +95 -0
- package/dist/actions.json +334 -0
- package/dist/catalog.json +6615 -0
- package/dist/client.d.ts +17 -0
- package/dist/client.js +8 -0
- package/dist/components.d.ts +87 -0
- package/dist/components.js +87 -0
- package/dist/content-types.json +684 -0
- package/dist/core/dist/actions/mock-action.d.ts +24 -0
- package/dist/core/dist/actions/mock-action.js +28 -0
- package/dist/core/dist/actions/mock-action.js.map +1 -0
- package/dist/core/dist/actions/registry.d.ts +24 -0
- package/dist/core/dist/actions/registry.js +28 -0
- package/dist/core/dist/actions/registry.js.map +1 -0
- package/dist/core/dist/define-component.d.ts +100 -0
- package/dist/core/dist/define-component.js +8 -0
- package/dist/core/dist/define-component.js.map +1 -0
- package/dist/core/dist/define-content-type.d.ts +95 -0
- package/dist/core/dist/define-content-type.js +283 -0
- package/dist/core/dist/define-content-type.js.map +1 -0
- package/dist/core/dist/index.d.ts +7 -0
- package/dist/core/dist/index.js +5 -0
- package/dist/core/dist/schema/generated/schema.d.ts +28 -0
- package/dist/core/dist/types.d.ts +1 -0
- package/dist/docs/access-code-field.md +100 -0
- package/dist/docs/access-code-sign-in.md +174 -0
- package/dist/docs/account-entry-point.md +155 -0
- package/dist/docs/address-summary.md +50 -0
- package/dist/docs/buy-button.md +162 -0
- package/dist/docs/carousel.md +105 -0
- package/dist/docs/cart-item.md +162 -0
- package/dist/docs/cart-totalizer.md +197 -0
- package/dist/docs/cart.md +495 -0
- package/dist/docs/client-preferences.md +184 -0
- package/dist/docs/client-profile-form.md +192 -0
- package/dist/docs/client-profile.md +117 -0
- package/dist/docs/container.md +97 -0
- package/dist/docs/document-field.md +97 -0
- package/dist/docs/email-field.md +93 -0
- package/dist/docs/email-identification.md +102 -0
- package/dist/docs/footer-copyright.md +112 -0
- package/dist/docs/footer-link-group.md +162 -0
- package/dist/docs/footer-root.md +145 -0
- package/dist/docs/footer-social.md +151 -0
- package/dist/docs/free-shipping-progress.md +87 -0
- package/dist/docs/gallery.md +84 -0
- package/dist/docs/header-root.md +150 -0
- package/dist/docs/identity-edit.md +88 -0
- package/dist/docs/identity-summary.md +106 -0
- package/dist/docs/incentives.md +151 -0
- package/dist/docs/logo.md +135 -0
- package/dist/docs/meter.md +67 -0
- package/dist/docs/navigation-link-list.md +171 -0
- package/dist/docs/navigation-link.md +163 -0
- package/dist/docs/navigation-menu.md +264 -0
- package/dist/docs/payment-methods.md +139 -0
- package/dist/docs/phone-field.md +106 -0
- package/dist/docs/postal-code-field.md +126 -0
- package/dist/docs/pricing.md +499 -0
- package/dist/docs/product-gallery.md +409 -0
- package/dist/docs/product-information.md +295 -0
- package/dist/docs/product-list.md +170 -0
- package/dist/docs/product-quantity.md +88 -0
- package/dist/docs/product-shelf.md +141 -0
- package/dist/docs/promotion.md +109 -0
- package/dist/docs/region.md +225 -0
- package/dist/docs/session.md +123 -0
- package/dist/docs/shipping-address.md +390 -0
- package/dist/docs/shipping-simulator.md +147 -0
- package/dist/docs/sign-in-form.md +117 -0
- package/dist/docs/tabs.md +176 -0
- package/dist/docs/toast.md +124 -0
- package/dist/docs/variant-selector.md +450 -0
- package/dist/graphql/define-subgraph.d.ts +12 -0
- package/dist/graphql/define-subgraph.js +15 -0
- package/dist/graphql/define-subgraph.js.map +1 -0
- package/dist/graphql/gql.d.ts +10 -0
- package/dist/graphql/gql.js +16 -0
- package/dist/graphql/gql.js.map +1 -0
- package/dist/graphql/types.d.ts +88 -0
- package/dist/graphql.d.ts +4 -0
- package/dist/graphql.js +3 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +5 -0
- package/dist/internal/client.d.ts +24 -0
- package/dist/internal/client.js +23 -0
- package/dist/internal/content.d.ts +2 -0
- package/dist/internal/content.js +2 -0
- package/dist/internal/server.d.ts +7 -0
- package/dist/internal/server.js +6 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.d.ts +111 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.js +387 -0
- package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.d.ts +64 -0
- package/dist/matter/account-entry-point/account-entry-point.js +151 -0
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -0
- package/dist/matter/breadcrumb/breadcrumb.d.ts +40 -0
- package/dist/matter/breadcrumb/breadcrumb.js +155 -0
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/matter/buy-button/buy-button.d.ts +95 -0
- package/dist/matter/buy-button/buy-button.js +259 -0
- package/dist/matter/buy-button/buy-button.js.map +1 -0
- package/dist/matter/cart/cart-namespace.d.ts +48 -0
- package/dist/matter/cart/cart-namespace.js +50 -0
- package/dist/matter/cart/cart-namespace.js.map +1 -0
- package/dist/matter/cart/cart.d.ts +312 -0
- package/dist/matter/cart/cart.js +1034 -0
- package/dist/matter/cart/cart.js.map +1 -0
- package/dist/matter/cart-item/cart-item.d.ts +103 -0
- package/dist/matter/cart-item/cart-item.js +672 -0
- package/dist/matter/cart-item/cart-item.js.map +1 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.d.ts +49 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.js +165 -0
- package/dist/matter/cart-item-compositions/cart-item-compositions.js.map +1 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.d.ts +28 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.js +73 -0
- package/dist/matter/cart-item-customizations/cart-item-customizations.js.map +1 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.d.ts +33 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.js +70 -0
- package/dist/matter/cart-item-discounts/cart-item-discounts.js.map +1 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.d.ts +24 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js +54 -0
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js.map +1 -0
- package/dist/matter/cart-item-variations/cart-item-variations.d.ts +27 -0
- package/dist/matter/cart-item-variations/cart-item-variations.js +69 -0
- package/dist/matter/cart-item-variations/cart-item-variations.js.map +1 -0
- package/dist/matter/cart-totalizer/cart-totalizer.d.ts +78 -0
- package/dist/matter/cart-totalizer/cart-totalizer.js +220 -0
- package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -0
- package/dist/matter/client-preferences/client-preferences.d.ts +50 -0
- package/dist/matter/client-preferences/client-preferences.js +206 -0
- package/dist/matter/client-preferences/client-preferences.js.map +1 -0
- package/dist/matter/client-profile/client-profile.d.ts +59 -0
- package/dist/matter/client-profile/client-profile.js +185 -0
- package/dist/matter/client-profile/client-profile.js.map +1 -0
- package/dist/matter/client-profile-form/client-profile-form.d.ts +126 -0
- package/dist/matter/client-profile-form/client-profile-form.js +660 -0
- package/dist/matter/client-profile-form/client-profile-form.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options-accordion.d.ts +30 -0
- package/dist/matter/delivery-options/delivery-options-accordion.js +189 -0
- package/dist/matter/delivery-options/delivery-options-accordion.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options-controller.d.ts +49 -0
- package/dist/matter/delivery-options/delivery-options-controller.js +203 -0
- package/dist/matter/delivery-options/delivery-options-controller.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options.d.ts +31 -0
- package/dist/matter/delivery-options/delivery-options.js +103 -0
- package/dist/matter/delivery-options/delivery-options.js.map +1 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.d.ts +9 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js +76 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js.map +1 -0
- package/dist/matter/email-identification/email-identification.d.ts +37 -0
- package/dist/matter/email-identification/email-identification.js +111 -0
- package/dist/matter/email-identification/email-identification.js.map +1 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +44 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +170 -0
- package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -0
- package/dist/matter/identity-edit/identity-edit.d.ts +52 -0
- package/dist/matter/identity-edit/identity-edit.js +148 -0
- package/dist/matter/identity-edit/identity-edit.js.map +1 -0
- package/dist/matter/identity-summary/identity-summary.d.ts +128 -0
- package/dist/matter/identity-summary/identity-summary.js +344 -0
- package/dist/matter/identity-summary/identity-summary.js.map +1 -0
- package/dist/matter/pricing/pricing.d.ts +162 -0
- package/dist/matter/pricing/pricing.js +793 -0
- package/dist/matter/pricing/pricing.js.map +1 -0
- package/dist/matter/product-gallery/product-gallery.d.ts +23 -0
- package/dist/matter/product-gallery/product-gallery.js +188 -0
- package/dist/matter/product-gallery/product-gallery.js.map +1 -0
- package/dist/matter/product-information/product-information.d.ts +61 -0
- package/dist/matter/product-information/product-information.js +355 -0
- package/dist/matter/product-information/product-information.js.map +1 -0
- package/dist/matter/product-list/product-list.d.ts +86 -0
- package/dist/matter/product-list/product-list.js +342 -0
- package/dist/matter/product-list/product-list.js.map +1 -0
- package/dist/matter/product-quantity/product-quantity.d.ts +50 -0
- package/dist/matter/product-quantity/product-quantity.js +111 -0
- package/dist/matter/product-quantity/product-quantity.js.map +1 -0
- package/dist/matter/product-shelf/product-shelf.d.ts +125 -0
- package/dist/matter/product-shelf/product-shelf.js +376 -0
- package/dist/matter/product-shelf/product-shelf.js.map +1 -0
- package/dist/matter/region/region.d.ts +211 -0
- package/dist/matter/region/region.js +579 -0
- package/dist/matter/region/region.js.map +1 -0
- package/dist/matter/session/session.d.ts +58 -0
- package/dist/matter/session/session.js +112 -0
- package/dist/matter/session/session.js.map +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +101 -0
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -0
- package/dist/matter/shipping-address/shipping-address.d.ts +284 -0
- package/dist/matter/shipping-address/shipping-address.js +1036 -0
- package/dist/matter/shipping-address/shipping-address.js.map +1 -0
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +143 -0
- package/dist/matter/shipping-simulator/shipping-simulator.js +644 -0
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -0
- package/dist/matter/sign-in-form/sign-in-form.d.ts +79 -0
- package/dist/matter/sign-in-form/sign-in-form.js +226 -0
- package/dist/matter/sign-in-form/sign-in-form.js.map +1 -0
- package/dist/matter/variant-selector/variant-selector.d.ts +183 -0
- package/dist/matter/variant-selector/variant-selector.js +840 -0
- package/dist/matter/variant-selector/variant-selector.js.map +1 -0
- package/dist/message-locales.json +7 -0
- package/dist/particles/access-code-field/access-code-field.d.ts +33 -0
- package/dist/particles/access-code-field/access-code-field.js +95 -0
- package/dist/particles/access-code-field/access-code-field.js.map +1 -0
- package/dist/particles/accordion/accordion.d.ts +45 -0
- package/dist/particles/accordion/accordion.js +156 -0
- package/dist/particles/accordion/accordion.js.map +1 -0
- package/dist/particles/address-summary/address-summary.d.ts +50 -0
- package/dist/particles/address-summary/address-summary.js +129 -0
- package/dist/particles/address-summary/address-summary.js.map +1 -0
- package/dist/particles/badge/badge.d.ts +10 -0
- package/dist/particles/badge/badge.js +27 -0
- package/dist/particles/badge/badge.js.map +1 -0
- package/dist/particles/button/button.d.ts +18 -0
- package/dist/particles/button/button.js +37 -0
- package/dist/particles/button/button.js.map +1 -0
- package/dist/particles/carousel/carousel.d.ts +60 -0
- package/dist/particles/carousel/carousel.js +335 -0
- package/dist/particles/carousel/carousel.js.map +1 -0
- package/dist/particles/checkbox/checkbox.d.ts +40 -0
- package/dist/particles/checkbox/checkbox.js +82 -0
- package/dist/particles/checkbox/checkbox.js.map +1 -0
- package/dist/particles/container/container.d.ts +20 -0
- package/dist/particles/container/container.js +36 -0
- package/dist/particles/container/container.js.map +1 -0
- package/dist/particles/dialog/dialog.d.ts +54 -0
- package/dist/particles/dialog/dialog.js +192 -0
- package/dist/particles/dialog/dialog.js.map +1 -0
- package/dist/particles/document-field/document-field.d.ts +61 -0
- package/dist/particles/document-field/document-field.js +146 -0
- package/dist/particles/document-field/document-field.js.map +1 -0
- package/dist/particles/drawer/drawer.d.ts +52 -0
- package/dist/particles/drawer/drawer.js +183 -0
- package/dist/particles/drawer/drawer.js.map +1 -0
- package/dist/particles/email-field/email-field.d.ts +37 -0
- package/dist/particles/email-field/email-field.js +106 -0
- package/dist/particles/email-field/email-field.js.map +1 -0
- package/dist/particles/field/field.d.ts +50 -0
- package/dist/particles/field/field.js +133 -0
- package/dist/particles/field/field.js.map +1 -0
- package/dist/particles/fieldset/fieldset.d.ts +16 -0
- package/dist/particles/fieldset/fieldset.js +52 -0
- package/dist/particles/fieldset/fieldset.js.map +1 -0
- package/dist/particles/footer-copyright/footer-copyright.d.ts +32 -0
- package/dist/particles/footer-copyright/footer-copyright.js +50 -0
- package/dist/particles/footer-copyright/footer-copyright.js.map +1 -0
- package/dist/particles/footer-link-group/footer-link-group.d.ts +66 -0
- package/dist/particles/footer-link-group/footer-link-group.js +154 -0
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -0
- package/dist/particles/footer-root/footer-root.d.ts +21 -0
- package/dist/particles/footer-root/footer-root.js +38 -0
- package/dist/particles/footer-root/footer-root.js.map +1 -0
- package/dist/particles/footer-social/footer-social.d.ts +79 -0
- package/dist/particles/footer-social/footer-social.js +176 -0
- package/dist/particles/footer-social/footer-social.js.map +1 -0
- package/dist/particles/gallery/gallery.d.ts +181 -0
- package/dist/particles/gallery/gallery.js +920 -0
- package/dist/particles/gallery/gallery.js.map +1 -0
- package/dist/particles/header-root/header-root.d.ts +21 -0
- package/dist/particles/header-root/header-root.js +38 -0
- package/dist/particles/header-root/header-root.js.map +1 -0
- package/dist/particles/icon/icon.d.ts +22 -0
- package/dist/particles/icon/icon.js +48 -0
- package/dist/particles/icon/icon.js.map +1 -0
- package/dist/particles/image/image.d.ts +13 -0
- package/dist/particles/image/image.js +59 -0
- package/dist/particles/image/image.js.map +1 -0
- package/dist/particles/incentives/incentives.d.ts +85 -0
- package/dist/particles/incentives/incentives.js +200 -0
- package/dist/particles/incentives/incentives.js.map +1 -0
- package/dist/particles/input/input.d.ts +9 -0
- package/dist/particles/input/input.js +28 -0
- package/dist/particles/input/input.js.map +1 -0
- package/dist/particles/logo/logo.d.ts +55 -0
- package/dist/particles/logo/logo.js +96 -0
- package/dist/particles/logo/logo.js.map +1 -0
- package/dist/particles/menu/menu.d.ts +103 -0
- package/dist/particles/menu/menu.js +409 -0
- package/dist/particles/menu/menu.js.map +1 -0
- package/dist/particles/menubar/menubar.d.ts +18 -0
- package/dist/particles/menubar/menubar.js +42 -0
- package/dist/particles/menubar/menubar.js.map +1 -0
- package/dist/particles/meter/meter.d.ts +36 -0
- package/dist/particles/meter/meter.js +132 -0
- package/dist/particles/meter/meter.js.map +1 -0
- package/dist/particles/navigation-link/navigation-link.d.ts +43 -0
- package/dist/particles/navigation-link/navigation-link.js +82 -0
- package/dist/particles/navigation-link/navigation-link.js.map +1 -0
- package/dist/particles/navigation-link-list/navigation-link-list.d.ts +59 -0
- package/dist/particles/navigation-link-list/navigation-link-list.js +103 -0
- package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -0
- package/dist/particles/navigation-menu/navigation-menu.d.ts +78 -0
- package/dist/particles/navigation-menu/navigation-menu.js +295 -0
- package/dist/particles/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/particles/number-field/number-field.d.ts +46 -0
- package/dist/particles/number-field/number-field.js +169 -0
- package/dist/particles/number-field/number-field.js.map +1 -0
- package/dist/particles/password-field/password-field.d.ts +31 -0
- package/dist/particles/password-field/password-field.js +109 -0
- package/dist/particles/password-field/password-field.js.map +1 -0
- package/dist/particles/payment-methods/payment-methods.d.ts +72 -0
- package/dist/particles/payment-methods/payment-methods.js +151 -0
- package/dist/particles/payment-methods/payment-methods.js.map +1 -0
- package/dist/particles/phone-field/phone-field.d.ts +67 -0
- package/dist/particles/phone-field/phone-field.js +250 -0
- package/dist/particles/phone-field/phone-field.js.map +1 -0
- package/dist/particles/popover/popover.d.ts +68 -0
- package/dist/particles/popover/popover.js +284 -0
- package/dist/particles/popover/popover.js.map +1 -0
- package/dist/particles/postal-code-field/postal-code-field.d.ts +75 -0
- package/dist/particles/postal-code-field/postal-code-field.js +169 -0
- package/dist/particles/postal-code-field/postal-code-field.js.map +1 -0
- package/dist/particles/promotion/promotion.d.ts +46 -0
- package/dist/particles/promotion/promotion.js +78 -0
- package/dist/particles/promotion/promotion.js.map +1 -0
- package/dist/particles/quantity-selector/quantity-selector.d.ts +30 -0
- package/dist/particles/quantity-selector/quantity-selector.js +116 -0
- package/dist/particles/quantity-selector/quantity-selector.js.map +1 -0
- package/dist/particles/radio/radio.d.ts +36 -0
- package/dist/particles/radio/radio.js +76 -0
- package/dist/particles/radio/radio.js.map +1 -0
- package/dist/particles/scroll-area/scroll-area.d.ts +36 -0
- package/dist/particles/scroll-area/scroll-area.js +145 -0
- package/dist/particles/scroll-area/scroll-area.js.map +1 -0
- package/dist/particles/select/select.d.ts +125 -0
- package/dist/particles/select/select.js +478 -0
- package/dist/particles/select/select.js.map +1 -0
- package/dist/particles/separator/separator.d.ts +12 -0
- package/dist/particles/separator/separator.js +33 -0
- package/dist/particles/separator/separator.js.map +1 -0
- package/dist/particles/shared/input-mask.d.ts +5 -0
- package/dist/particles/shared/input-mask.js +58 -0
- package/dist/particles/shared/input-mask.js.map +1 -0
- package/dist/particles/spinner/spinner.d.ts +13 -0
- package/dist/particles/spinner/spinner.js +31 -0
- package/dist/particles/spinner/spinner.js.map +1 -0
- package/dist/particles/switch/switch.d.ts +27 -0
- package/dist/particles/switch/switch.js +59 -0
- package/dist/particles/switch/switch.js.map +1 -0
- package/dist/particles/tabs/tabs.d.ts +45 -0
- package/dist/particles/tabs/tabs.js +164 -0
- package/dist/particles/tabs/tabs.js.map +1 -0
- package/dist/particles/text/text.d.ts +24 -0
- package/dist/particles/text/text.js +40 -0
- package/dist/particles/text/text.js.map +1 -0
- package/dist/particles/toast/toast.d.ts +83 -0
- package/dist/particles/toast/toast.js +194 -0
- package/dist/particles/toast/toast.js.map +1 -0
- package/dist/particles/toggle/toggle.d.ts +26 -0
- package/dist/particles/toggle/toggle.js +61 -0
- package/dist/particles/toggle/toggle.js.map +1 -0
- package/dist/particles/tooltip/tooltip.d.ts +61 -0
- package/dist/particles/tooltip/tooltip.js +240 -0
- package/dist/particles/tooltip/tooltip.js.map +1 -0
- package/dist/schema.graphql +2953 -0
- package/dist/sdk/actions/cart-action-provider.d.ts +19 -0
- package/dist/sdk/actions/cart-action-provider.js +23 -0
- package/dist/sdk/actions/cart-action-provider.js.map +1 -0
- package/dist/sdk/actions/identity-action-provider.d.ts +15 -0
- package/dist/sdk/actions/identity-action-provider.js +19 -0
- package/dist/sdk/actions/identity-action-provider.js.map +1 -0
- package/dist/sdk/actions/index.d.ts +7 -0
- package/dist/sdk/actions/index.js +6 -0
- package/dist/sdk/actions/inject-actions.d.ts +14 -0
- package/dist/sdk/actions/inject-actions.js +36 -0
- package/dist/sdk/actions/inject-actions.js.map +1 -0
- package/dist/sdk/actions/region-action-provider.d.ts +15 -0
- package/dist/sdk/actions/region-action-provider.js +19 -0
- package/dist/sdk/actions/region-action-provider.js.map +1 -0
- package/dist/sdk/actions/session-action-provider.d.ts +15 -0
- package/dist/sdk/actions/session-action-provider.js +19 -0
- package/dist/sdk/actions/session-action-provider.js.map +1 -0
- package/dist/sdk/actions/shipping-action-provider.d.ts +15 -0
- package/dist/sdk/actions/shipping-action-provider.js +19 -0
- package/dist/sdk/actions/shipping-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +21 -0
- package/dist/sdk/cache/storefront-cache.js +35 -0
- package/dist/sdk/cache/storefront-cache.js.map +1 -0
- package/dist/sdk/cart/operations.d.ts +31 -0
- package/dist/sdk/cart/operations.js +215 -0
- package/dist/sdk/cart/operations.js.map +1 -0
- package/dist/sdk/cart/optimistic.d.ts +24 -0
- package/dist/sdk/cart/optimistic.js +164 -0
- package/dist/sdk/cart/optimistic.js.map +1 -0
- package/dist/sdk/cart/use-cart-actions.d.ts +56 -0
- package/dist/sdk/cart/use-cart-actions.js +348 -0
- package/dist/sdk/cart/use-cart-actions.js.map +1 -0
- package/dist/sdk/cart/use-cart-validate-on-open.js +50 -0
- package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -0
- package/dist/sdk/cart/write-gate.js +54 -0
- package/dist/sdk/cart/write-gate.js.map +1 -0
- package/dist/sdk/client/assert-api-url.js +20 -0
- package/dist/sdk/client/assert-api-url.js.map +1 -0
- package/dist/sdk/client/create-client.d.ts +23 -0
- package/dist/sdk/client/create-client.js +46 -0
- package/dist/sdk/client/create-client.js.map +1 -0
- package/dist/sdk/client/fetch-page-data.d.ts +39 -0
- package/dist/sdk/client/fetch-page-data.js +33 -0
- package/dist/sdk/client/fetch-page-data.js.map +1 -0
- package/dist/sdk/client/register-preload-query.d.ts +24 -0
- package/dist/sdk/client/register-preload-query.js +33 -0
- package/dist/sdk/client/register-preload-query.js.map +1 -0
- package/dist/sdk/content/create-content-runtime.d.ts +68 -0
- package/dist/sdk/content/create-content-runtime.js +503 -0
- package/dist/sdk/content/create-content-runtime.js.map +1 -0
- package/dist/sdk/context/headers.d.ts +15 -0
- package/dist/sdk/context/headers.js +21 -0
- package/dist/sdk/context/headers.js.map +1 -0
- package/dist/sdk/context/storefront-context.d.ts +11 -0
- package/dist/sdk/context/storefront-context.js +29 -0
- package/dist/sdk/context/storefront-context.js.map +1 -0
- package/dist/sdk/data/data-override-context.d.ts +12 -0
- package/dist/sdk/data/data-override-context.js +19 -0
- package/dist/sdk/data/data-override-context.js.map +1 -0
- package/dist/sdk/data/entity-subscriber.js +28 -0
- package/dist/sdk/data/entity-subscriber.js.map +1 -0
- package/dist/sdk/data/hot-data-provider.d.ts +19 -0
- package/dist/sdk/data/hot-data-provider.js +33 -0
- package/dist/sdk/data/hot-data-provider.js.map +1 -0
- package/dist/sdk/data/index.d.ts +8 -0
- package/dist/sdk/data/index.js +8 -0
- package/dist/sdk/data/list-item-ref-context.d.ts +20 -0
- package/dist/sdk/data/list-item-ref-context.js +11 -0
- package/dist/sdk/data/list-item-ref-context.js.map +1 -0
- package/dist/sdk/data/multiple-reactive-data-provider.d.ts +32 -0
- package/dist/sdk/data/multiple-reactive-data-provider.js +20 -0
- package/dist/sdk/data/multiple-reactive-data-provider.js.map +1 -0
- package/dist/sdk/data/page-reactive-data-root.d.ts +53 -0
- package/dist/sdk/data/page-reactive-data-root.js +153 -0
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -0
- package/dist/sdk/data/reactive-data-provider.d.ts +25 -0
- package/dist/sdk/data/reactive-data-provider.js +24 -0
- package/dist/sdk/data/reactive-data-provider.js.map +1 -0
- package/dist/sdk/data/reactive-list-item-data-provider.d.ts +26 -0
- package/dist/sdk/data/reactive-list-item-data-provider.js +42 -0
- package/dist/sdk/data/reactive-list-item-data-provider.js.map +1 -0
- package/dist/sdk/data/use-reactive-entity.js +40 -0
- package/dist/sdk/data/use-reactive-entity.js.map +1 -0
- package/dist/sdk/format/client.d.ts +12 -0
- package/dist/sdk/format/client.js +20 -0
- package/dist/sdk/format/client.js.map +1 -0
- package/dist/sdk/format/formatters.d.ts +32 -0
- package/dist/sdk/format/formatters.js +45 -0
- package/dist/sdk/format/formatters.js.map +1 -0
- package/dist/sdk/generated/fragment-types.js +23 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -0
- package/dist/sdk/generated/gql.js +51 -0
- package/dist/sdk/generated/gql.js.map +1 -0
- package/dist/sdk/generated/graphql.d.ts +622 -0
- package/dist/sdk/generated/graphql.js +11917 -0
- package/dist/sdk/generated/graphql.js.map +1 -0
- package/dist/sdk/graphql-tag.d.ts +10 -0
- package/dist/sdk/graphql-tag.js +21 -0
- package/dist/sdk/graphql-tag.js.map +1 -0
- package/dist/sdk/i18n/client.d.ts +4 -0
- package/dist/sdk/i18n/client.js +4 -0
- package/dist/sdk/i18n/locales.d.ts +8 -0
- package/dist/sdk/i18n/locales.js +57 -0
- package/dist/sdk/i18n/locales.js.map +1 -0
- package/dist/sdk/i18n/messages/en-US.js +24 -0
- package/dist/sdk/i18n/messages/en-US.js.map +1 -0
- package/dist/sdk/i18n/messages/en-US.json +19 -0
- package/dist/sdk/i18n/messages/en-US.json.d.ts +23 -0
- package/dist/sdk/i18n/messages/es-ES.js +24 -0
- package/dist/sdk/i18n/messages/es-ES.js.map +1 -0
- package/dist/sdk/i18n/messages/es-ES.json +19 -0
- package/dist/sdk/i18n/messages/pt-BR.js +24 -0
- package/dist/sdk/i18n/messages/pt-BR.js.map +1 -0
- package/dist/sdk/i18n/messages/pt-BR.json +19 -0
- package/dist/sdk/i18n/provider.d.ts +1 -0
- package/dist/sdk/i18n/provider.js +30 -0
- package/dist/sdk/i18n/provider.js.map +1 -0
- package/dist/sdk/i18n/server.d.ts +28 -0
- package/dist/sdk/i18n/server.js +59 -0
- package/dist/sdk/i18n/server.js.map +1 -0
- package/dist/sdk/identity/operations.d.ts +34 -0
- package/dist/sdk/identity/operations.js +78 -0
- package/dist/sdk/identity/operations.js.map +1 -0
- package/dist/sdk/identity/use-identity-actions.d.ts +62 -0
- package/dist/sdk/identity/use-identity-actions.js +180 -0
- package/dist/sdk/identity/use-identity-actions.js.map +1 -0
- package/dist/sdk/provider/index.d.ts +2 -0
- package/dist/sdk/provider/index.js +2 -0
- package/dist/sdk/provider/storefront-provider.d.ts +32 -0
- package/dist/sdk/provider/storefront-provider.js +111 -0
- package/dist/sdk/provider/storefront-provider.js.map +1 -0
- package/dist/sdk/region/operations.d.ts +6 -0
- package/dist/sdk/region/region-operations.d.ts +30 -0
- package/dist/sdk/region/region-operations.js +23 -0
- package/dist/sdk/region/region-operations.js.map +1 -0
- package/dist/sdk/region/use-region-actions.d.ts +23 -0
- package/dist/sdk/region/use-region-actions.js +66 -0
- package/dist/sdk/region/use-region-actions.js.map +1 -0
- package/dist/sdk/seller.js +11 -0
- package/dist/sdk/seller.js.map +1 -0
- package/dist/sdk/session/auth-operations.d.ts +47 -0
- package/dist/sdk/session/auth-operations.js +79 -0
- package/dist/sdk/session/auth-operations.js.map +1 -0
- package/dist/sdk/session/operations.d.ts +6 -0
- package/dist/sdk/session/use-session-actions.d.ts +27 -0
- package/dist/sdk/session/use-session-actions.js +126 -0
- package/dist/sdk/session/use-session-actions.js.map +1 -0
- package/dist/sdk/shipping/cart-operations.d.ts +3 -0
- package/dist/sdk/shipping/cart-operations.js +33 -0
- package/dist/sdk/shipping/cart-operations.js.map +1 -0
- package/dist/sdk/shipping/operations.d.ts +3 -0
- package/dist/sdk/shipping/operations.js +33 -0
- package/dist/sdk/shipping/operations.js.map +1 -0
- package/dist/sdk/shipping/option-select-operations.d.ts +24 -0
- package/dist/sdk/shipping/option-select-operations.js +45 -0
- package/dist/sdk/shipping/option-select-operations.js.map +1 -0
- package/dist/sdk/shipping/request-timeout.js +41 -0
- package/dist/sdk/shipping/request-timeout.js.map +1 -0
- package/dist/sdk/shipping/shipping-operations.d.ts +38 -0
- package/dist/sdk/shipping/shipping-operations.js +77 -0
- package/dist/sdk/shipping/shipping-operations.js.map +1 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.d.ts +7 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.js +72 -0
- package/dist/sdk/shipping/use-cart-shipping-simulation.js.map +1 -0
- package/dist/sdk/shipping/use-shipping-actions.d.ts +27 -0
- package/dist/sdk/shipping/use-shipping-actions.js +113 -0
- package/dist/sdk/shipping/use-shipping-actions.js.map +1 -0
- package/dist/sdk/shipping/use-shipping-simulation.d.ts +7 -0
- package/dist/sdk/shipping/use-shipping-simulation.js +72 -0
- package/dist/sdk/shipping/use-shipping-simulation.js.map +1 -0
- package/dist/sdk/state/cart.d.ts +42 -0
- package/dist/sdk/state/cart.js +64 -0
- package/dist/sdk/state/cart.js.map +1 -0
- package/dist/sdk/state/index.js +3 -0
- package/dist/sdk/state/variant-selector.d.ts +17 -0
- package/dist/sdk/state/variant-selector.js +14 -0
- package/dist/sdk/state/variant-selector.js.map +1 -0
- package/dist/utils/safe-href.js +63 -0
- package/dist/utils/safe-href.js.map +1 -0
- package/package.json +84 -0
- package/src/styles/tailwind.css +32 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
{
|
|
2
|
+
"footer-copyright": {
|
|
3
|
+
"id": "footer-copyright",
|
|
4
|
+
"title": "Footer Copyright",
|
|
5
|
+
"description": "Legal notice rendered at the bottom of the store.",
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"text"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"text": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "Copyright text",
|
|
16
|
+
"minLength": 1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"footer-link-group": {
|
|
22
|
+
"id": "footer-link-group",
|
|
23
|
+
"title": "Footer Link Group",
|
|
24
|
+
"description": "A heading and its ordered list of institutional links.",
|
|
25
|
+
"schema": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"properties": {
|
|
29
|
+
"heading": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "Group heading",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
},
|
|
34
|
+
"links": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"title": "Links",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"label",
|
|
42
|
+
"href"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"label": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"title": "Label",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"href": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"title": "URL",
|
|
53
|
+
"format": "uri-reference",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
56
|
+
},
|
|
57
|
+
"target": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"title": "Open in",
|
|
60
|
+
"default": "_self",
|
|
61
|
+
"enum": [
|
|
62
|
+
"_self",
|
|
63
|
+
"_blank"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"minItems": 1
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"footer-social": {
|
|
74
|
+
"id": "footer-social",
|
|
75
|
+
"title": "Footer Social",
|
|
76
|
+
"description": "Links to the store's official social profiles, shown as a row of platform icons.",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"properties": {
|
|
81
|
+
"heading": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"title": "Heading"
|
|
84
|
+
},
|
|
85
|
+
"entries": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"title": "Social profiles",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"label",
|
|
93
|
+
"url"
|
|
94
|
+
],
|
|
95
|
+
"properties": {
|
|
96
|
+
"platform": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"title": "Platform",
|
|
99
|
+
"enum": [
|
|
100
|
+
"facebook",
|
|
101
|
+
"instagram",
|
|
102
|
+
"linkedin",
|
|
103
|
+
"pinterest",
|
|
104
|
+
"youtube"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"url": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"title": "Profile URL",
|
|
110
|
+
"format": "uri-reference",
|
|
111
|
+
"minLength": 1,
|
|
112
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
113
|
+
},
|
|
114
|
+
"label": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"title": "Label",
|
|
117
|
+
"minLength": 1
|
|
118
|
+
},
|
|
119
|
+
"iconUrl": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"title": "Custom icon",
|
|
122
|
+
"format": "uri",
|
|
123
|
+
"widget": {
|
|
124
|
+
"ui:widget": "media-gallery"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"minItems": 1
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"incentives": {
|
|
135
|
+
"id": "incentives",
|
|
136
|
+
"title": "Incentives",
|
|
137
|
+
"description": "Store benefit highlights rendered as a strip in the footer.",
|
|
138
|
+
"schema": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"properties": {
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "array",
|
|
144
|
+
"title": "Incentive items",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": [
|
|
149
|
+
"title"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"title": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"title": "Title",
|
|
155
|
+
"minLength": 1
|
|
156
|
+
},
|
|
157
|
+
"firstLineText": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"title": "First line"
|
|
160
|
+
},
|
|
161
|
+
"secondLineText": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"title": "Second line"
|
|
164
|
+
},
|
|
165
|
+
"href": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"title": "Link",
|
|
168
|
+
"format": "uri-reference",
|
|
169
|
+
"minLength": 1,
|
|
170
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
171
|
+
},
|
|
172
|
+
"icon": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"title": "Icon",
|
|
175
|
+
"enum": [
|
|
176
|
+
"truck",
|
|
177
|
+
"calendar",
|
|
178
|
+
"gift",
|
|
179
|
+
"store",
|
|
180
|
+
"shield-check"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"iconUrl": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"title": "Custom icon",
|
|
186
|
+
"format": "uri",
|
|
187
|
+
"widget": {
|
|
188
|
+
"ui:widget": "media-gallery"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"alt": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"title": "Custom icon alt text"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"minItems": 1
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"logo": {
|
|
203
|
+
"id": "logo",
|
|
204
|
+
"title": "Logo",
|
|
205
|
+
"description": "Brand logo asset, alt text, and link destination.",
|
|
206
|
+
"schema": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"additionalProperties": false,
|
|
209
|
+
"required": [
|
|
210
|
+
"alt"
|
|
211
|
+
],
|
|
212
|
+
"properties": {
|
|
213
|
+
"src": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"title": "Source URL",
|
|
216
|
+
"minLength": 1,
|
|
217
|
+
"widget": {
|
|
218
|
+
"ui:widget": "media-gallery"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"alt": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"title": "Alt text",
|
|
224
|
+
"minLength": 1
|
|
225
|
+
},
|
|
226
|
+
"href": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"title": "Link destination",
|
|
229
|
+
"format": "uri-reference",
|
|
230
|
+
"minLength": 1,
|
|
231
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"navigation-link": {
|
|
237
|
+
"id": "navigation-link",
|
|
238
|
+
"title": "Navigation Link",
|
|
239
|
+
"description": "Link label, destination, and whether it opens in a new tab.",
|
|
240
|
+
"schema": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"additionalProperties": false,
|
|
243
|
+
"required": [
|
|
244
|
+
"text"
|
|
245
|
+
],
|
|
246
|
+
"properties": {
|
|
247
|
+
"text": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"title": "Label",
|
|
250
|
+
"minLength": 1
|
|
251
|
+
},
|
|
252
|
+
"href": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"title": "Destination",
|
|
255
|
+
"format": "uri-reference",
|
|
256
|
+
"pattern": "^$|^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
257
|
+
},
|
|
258
|
+
"target": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"title": "Target",
|
|
261
|
+
"enum": [
|
|
262
|
+
"_self",
|
|
263
|
+
"_blank"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"navigation-link-list": {
|
|
270
|
+
"id": "navigation-link-list",
|
|
271
|
+
"title": "Navigation Links",
|
|
272
|
+
"description": "The ordered list of navigation links, editable without a deployment.",
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"additionalProperties": false,
|
|
276
|
+
"properties": {
|
|
277
|
+
"links": {
|
|
278
|
+
"type": "array",
|
|
279
|
+
"title": "Links",
|
|
280
|
+
"items": {
|
|
281
|
+
"type": "object",
|
|
282
|
+
"additionalProperties": false,
|
|
283
|
+
"required": [
|
|
284
|
+
"label",
|
|
285
|
+
"href"
|
|
286
|
+
],
|
|
287
|
+
"properties": {
|
|
288
|
+
"label": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"title": "Label",
|
|
291
|
+
"minLength": 1
|
|
292
|
+
},
|
|
293
|
+
"href": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"title": "URL",
|
|
296
|
+
"format": "uri-reference",
|
|
297
|
+
"minLength": 1,
|
|
298
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
299
|
+
},
|
|
300
|
+
"target": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"title": "Open in",
|
|
303
|
+
"default": "_self",
|
|
304
|
+
"enum": [
|
|
305
|
+
"_self",
|
|
306
|
+
"_blank"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"minItems": 1
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"payment-methods": {
|
|
317
|
+
"id": "payment-methods",
|
|
318
|
+
"title": "Payment Methods",
|
|
319
|
+
"description": "Accepted payment methods shown as a strip of icons.",
|
|
320
|
+
"schema": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"properties": {
|
|
324
|
+
"heading": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"title": "Heading"
|
|
327
|
+
},
|
|
328
|
+
"methods": {
|
|
329
|
+
"type": "array",
|
|
330
|
+
"title": "Payment methods",
|
|
331
|
+
"items": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"required": [
|
|
335
|
+
"label"
|
|
336
|
+
],
|
|
337
|
+
"properties": {
|
|
338
|
+
"method": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"title": "Method",
|
|
341
|
+
"enum": [
|
|
342
|
+
"visa",
|
|
343
|
+
"amex",
|
|
344
|
+
"apple-pay",
|
|
345
|
+
"elo-card",
|
|
346
|
+
"diners",
|
|
347
|
+
"google-pay",
|
|
348
|
+
"mastercard",
|
|
349
|
+
"paypal",
|
|
350
|
+
"pix",
|
|
351
|
+
"stripe"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"label": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"title": "Label",
|
|
357
|
+
"minLength": 1
|
|
358
|
+
},
|
|
359
|
+
"iconUrl": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"title": "Custom icon",
|
|
362
|
+
"format": "uri",
|
|
363
|
+
"widget": {
|
|
364
|
+
"ui:widget": "media-gallery"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"minItems": 1
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"postal-code-field": {
|
|
375
|
+
"id": "postal-code-field",
|
|
376
|
+
"title": "Postal Code Field",
|
|
377
|
+
"description": "Editorial copy for the postal-code input.",
|
|
378
|
+
"schema": {
|
|
379
|
+
"type": "object",
|
|
380
|
+
"additionalProperties": false,
|
|
381
|
+
"properties": {
|
|
382
|
+
"label": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"title": "Label"
|
|
385
|
+
},
|
|
386
|
+
"placeholder": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"title": "Placeholder"
|
|
389
|
+
},
|
|
390
|
+
"errorMessage": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"title": "Error message"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"promotion": {
|
|
398
|
+
"id": "promotion",
|
|
399
|
+
"title": "Promotion",
|
|
400
|
+
"description": "Editorial fields for a promotional callout.",
|
|
401
|
+
"schema": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"additionalProperties": false,
|
|
404
|
+
"required": [
|
|
405
|
+
"title",
|
|
406
|
+
"body"
|
|
407
|
+
],
|
|
408
|
+
"properties": {
|
|
409
|
+
"title": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"title": "Title",
|
|
412
|
+
"minLength": 1
|
|
413
|
+
},
|
|
414
|
+
"body": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"title": "Body"
|
|
417
|
+
},
|
|
418
|
+
"image": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"title": "Image",
|
|
421
|
+
"format": "uri",
|
|
422
|
+
"widget": {
|
|
423
|
+
"ui:widget": "media-gallery"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"imageAlt": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"title": "Image alt text"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"account-entry-point": {
|
|
434
|
+
"id": "account-entry-point",
|
|
435
|
+
"title": "Account Entry Point",
|
|
436
|
+
"description": "Labels and icon for the header sign-in / account control.",
|
|
437
|
+
"schema": {
|
|
438
|
+
"type": "object",
|
|
439
|
+
"additionalProperties": false,
|
|
440
|
+
"properties": {
|
|
441
|
+
"signedOutLabel": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"title": "Signed-out label",
|
|
444
|
+
"minLength": 1
|
|
445
|
+
},
|
|
446
|
+
"signedInLabel": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"title": "Signed-in label",
|
|
449
|
+
"minLength": 1
|
|
450
|
+
},
|
|
451
|
+
"icon": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"title": "Icon",
|
|
454
|
+
"minLength": 1
|
|
455
|
+
},
|
|
456
|
+
"loadingLabel": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"title": "Loading announcement",
|
|
459
|
+
"minLength": 1
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"buy-button-labels": {
|
|
465
|
+
"id": "buy-button-labels",
|
|
466
|
+
"title": "Buy Button Labels",
|
|
467
|
+
"description": "Editorial labels for the add-to-cart button.",
|
|
468
|
+
"schema": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"additionalProperties": false,
|
|
471
|
+
"required": [
|
|
472
|
+
"availableLabel",
|
|
473
|
+
"unavailableLabel"
|
|
474
|
+
],
|
|
475
|
+
"properties": {
|
|
476
|
+
"availableLabel": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"title": "Available label",
|
|
479
|
+
"default": "Comprar",
|
|
480
|
+
"minLength": 1
|
|
481
|
+
},
|
|
482
|
+
"unavailableLabel": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"title": "Unavailable label",
|
|
485
|
+
"default": "Indisponivel",
|
|
486
|
+
"minLength": 1
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"cart-checkout-label": {
|
|
492
|
+
"id": "cart-checkout-label",
|
|
493
|
+
"title": "Cart Checkout Label",
|
|
494
|
+
"description": "Editorial label for the checkout call to action.",
|
|
495
|
+
"schema": {
|
|
496
|
+
"type": "object",
|
|
497
|
+
"additionalProperties": false,
|
|
498
|
+
"required": [
|
|
499
|
+
"label"
|
|
500
|
+
],
|
|
501
|
+
"properties": {
|
|
502
|
+
"label": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"title": "Checkout label",
|
|
505
|
+
"minLength": 1
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"cart-disclaimer": {
|
|
511
|
+
"id": "cart-disclaimer",
|
|
512
|
+
"title": "Cart Disclaimer",
|
|
513
|
+
"description": "Conditions, limits, or legal wording shown in the cart before checkout.",
|
|
514
|
+
"schema": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"additionalProperties": false,
|
|
517
|
+
"required": [
|
|
518
|
+
"text"
|
|
519
|
+
],
|
|
520
|
+
"properties": {
|
|
521
|
+
"text": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"title": "Disclaimer text",
|
|
524
|
+
"minLength": 1
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"cart-alert": {
|
|
530
|
+
"id": "cart-alert",
|
|
531
|
+
"title": "Cart Alert",
|
|
532
|
+
"description": "Merchant notice shown at the top of the mini-cart overlay.",
|
|
533
|
+
"schema": {
|
|
534
|
+
"type": "object",
|
|
535
|
+
"additionalProperties": false,
|
|
536
|
+
"properties": {
|
|
537
|
+
"text": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"title": "Message",
|
|
540
|
+
"minLength": 1
|
|
541
|
+
},
|
|
542
|
+
"icon": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"title": "Icon",
|
|
545
|
+
"enum": [
|
|
546
|
+
"bell",
|
|
547
|
+
"bell-ringing",
|
|
548
|
+
"tag",
|
|
549
|
+
"shopping-cart",
|
|
550
|
+
"map-pin",
|
|
551
|
+
"star"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"iconUrl": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"title": "Custom icon",
|
|
557
|
+
"format": "uri",
|
|
558
|
+
"widget": {
|
|
559
|
+
"ui:widget": "media-gallery"
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"iconAlt": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"title": "Custom icon alt text"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"cart-empty-message": {
|
|
570
|
+
"id": "cart-empty-message",
|
|
571
|
+
"title": "Cart Empty Message",
|
|
572
|
+
"description": "Message shown in the cart overlay when the cart has no items.",
|
|
573
|
+
"schema": {
|
|
574
|
+
"type": "object",
|
|
575
|
+
"additionalProperties": false,
|
|
576
|
+
"required": [
|
|
577
|
+
"text"
|
|
578
|
+
],
|
|
579
|
+
"properties": {
|
|
580
|
+
"text": {
|
|
581
|
+
"type": "string",
|
|
582
|
+
"title": "Empty cart message",
|
|
583
|
+
"default": "Your cart is empty",
|
|
584
|
+
"minLength": 1
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"cart-continue-shopping": {
|
|
590
|
+
"id": "cart-continue-shopping",
|
|
591
|
+
"title": "Cart Continue Shopping",
|
|
592
|
+
"description": "Label for the control that dismisses the cart overlay and returns the shopper to browsing.",
|
|
593
|
+
"schema": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"additionalProperties": false,
|
|
596
|
+
"required": [
|
|
597
|
+
"label"
|
|
598
|
+
],
|
|
599
|
+
"properties": {
|
|
600
|
+
"label": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"title": "Continue shopping label",
|
|
603
|
+
"default": "Continue shopping",
|
|
604
|
+
"minLength": 1
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"region-trigger": {
|
|
610
|
+
"id": "region-trigger",
|
|
611
|
+
"title": "Region Trigger",
|
|
612
|
+
"description": "Copy for the control that opens the region modal.",
|
|
613
|
+
"schema": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"additionalProperties": false,
|
|
616
|
+
"properties": {
|
|
617
|
+
"unsetLabel": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"title": "Label when no region is set"
|
|
620
|
+
},
|
|
621
|
+
"ariaLabel": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"title": "Accessible label"
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"region-submit": {
|
|
629
|
+
"id": "region-submit",
|
|
630
|
+
"title": "Region Submit",
|
|
631
|
+
"description": "Copy for the region submit control.",
|
|
632
|
+
"schema": {
|
|
633
|
+
"type": "object",
|
|
634
|
+
"additionalProperties": false,
|
|
635
|
+
"properties": {
|
|
636
|
+
"label": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"title": "Button label"
|
|
639
|
+
},
|
|
640
|
+
"pendingLabel": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"title": "Pending label"
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"region-error": {
|
|
648
|
+
"id": "region-error",
|
|
649
|
+
"title": "Region Error",
|
|
650
|
+
"description": "Fallback message shown when a write fails without a server message.",
|
|
651
|
+
"schema": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"additionalProperties": false,
|
|
654
|
+
"properties": {
|
|
655
|
+
"genericMessage": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"title": "Generic failure message"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"region-unknown-link": {
|
|
663
|
+
"id": "region-unknown-link",
|
|
664
|
+
"title": "Region \"I don't know my postal code\" Link",
|
|
665
|
+
"description": "Copy and destination for the postal-code lookup link. Absent href omits the link.",
|
|
666
|
+
"schema": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"additionalProperties": false,
|
|
669
|
+
"properties": {
|
|
670
|
+
"text": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"title": "Link text",
|
|
673
|
+
"minLength": 1
|
|
674
|
+
},
|
|
675
|
+
"href": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"title": "Destination",
|
|
678
|
+
"format": "uri-reference",
|
|
679
|
+
"pattern": "^(?:https?://.*|mailto:.+|tel:.+|/(?:[^/].*)?)$"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ActionSelector } from "./registry.js";
|
|
2
|
+
//#region ../core/dist/actions/mock-action.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* `$actions` shaped like a selector: namespace -> method -> handler. Mirrors the prop the
|
|
5
|
+
* compiler-emitted wrapper injects at runtime.
|
|
6
|
+
*/
|
|
7
|
+
export type MockActions = Record<string, Record<string, (...args: never[]) => unknown>>;
|
|
8
|
+
type ActionImpl = Record<string, Record<string, (...args: never[]) => unknown>>;
|
|
9
|
+
/**
|
|
10
|
+
* Builds a typed `$actions` value for a selector without going through the compiler wrapper, so
|
|
11
|
+
* Storybook, unit tests, and manual JSX can render components that declare `actions` — the
|
|
12
|
+
* defense-in-depth path the actions RFC mandates ($actions is the only sanctioned write surface
|
|
13
|
+
* for the compiler, but handlers stay directly callable off the compiled path).
|
|
14
|
+
*
|
|
15
|
+
* Any method in the selector without a provided implementation falls back to a no-op that resolves
|
|
16
|
+
* to an empty `userErrors` array, so a test that only cares about one method need not stub the rest.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* const $actions = mockAction({ cart: ['addItem'] }, { cart: { addItem: vi.fn() } });
|
|
20
|
+
* render(<AddToCartButton $actions={$actions} />);
|
|
21
|
+
*/
|
|
22
|
+
export declare function mockAction(selector: ActionSelector, impl?: ActionImpl): MockActions;
|
|
23
|
+
//#endregion
|
|
24
|
+
//# sourceMappingURL=mock-action.d.ts.map
|