@vtex/faststore 0.0.7 → 0.0.8
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 +43 -0
- package/dist/actions.json +152 -1
- package/dist/catalog.json +1264 -142
- package/dist/cli/index.d.ts +512 -63
- package/dist/cli/index.js +2098 -686
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/server-runtime.js +44 -24
- package/dist/cli/server-runtime.js.map +1 -1
- package/dist/client.d.ts +5 -1
- package/dist/client.js +5 -1
- package/dist/components.d.ts +34 -7
- package/dist/components.js +38 -11
- package/dist/content-types.json +523 -0
- package/dist/core/dist/define-component.d.ts +6 -1
- package/dist/docs/account-access-gate.md +4 -4
- package/dist/docs/account-address-book.md +519 -0
- package/dist/docs/account-entry-point.md +1 -1
- package/dist/docs/account-menu.md +5 -5
- package/dist/docs/alert-dialog.md +2 -2
- package/dist/docs/billing-address.md +17 -9
- package/dist/docs/card-entry.md +37 -6
- package/dist/docs/cardholder-document.md +16 -14
- package/dist/docs/cart-item.md +1 -1
- package/dist/docs/cart.md +8 -8
- package/dist/docs/client-profile-fieldset.md +7 -5
- package/dist/docs/copy-text.md +84 -0
- package/dist/docs/document-field.md +8 -8
- package/dist/docs/footer-link-group.md +2 -2
- package/dist/docs/header-root.md +1 -1
- package/dist/docs/incentives.md +2 -2
- package/dist/docs/logo.md +5 -5
- package/dist/docs/my-account-profile.md +4 -4
- package/dist/docs/navigation-link-list.md +2 -2
- package/dist/docs/navigation-link.md +3 -3
- package/dist/docs/order-cancel.md +52 -0
- package/dist/docs/order-delivery-address.md +63 -0
- package/dist/docs/order-delivery-group.md +83 -0
- package/dist/docs/order-details-back.md +41 -0
- package/dist/docs/order-details-header.md +48 -0
- package/dist/docs/order-list-row.md +46 -0
- package/dist/docs/order-list-search.md +101 -0
- package/dist/docs/order-list-views.md +97 -0
- package/dist/docs/order-list.md +94 -0
- package/dist/docs/order-payment.md +94 -0
- package/dist/docs/order-placed-date.md +49 -0
- package/dist/docs/order-placed-payment-summary.md +13 -15
- package/dist/docs/order-placed.md +225 -0
- package/dist/docs/order-progress.md +88 -0
- package/dist/docs/order-status-badge.md +91 -0
- package/dist/docs/order-summary.md +53 -0
- package/dist/docs/payment-method-badges.md +14 -3
- package/dist/docs/place-order.md +13 -9
- package/dist/docs/saved-cards.md +2 -2
- package/dist/docs/select.md +19 -6
- package/dist/docs/session.md +1 -1
- package/dist/docs/shipping-address.md +1 -1
- package/dist/docs/sign-in-redirect.md +6 -6
- package/dist/docs/toast.md +7 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -1
- package/dist/internal/client.d.ts +6 -1
- package/dist/internal/client.js +7 -2
- package/dist/internal/server.d.ts +6 -2
- package/dist/internal/server.js +6 -2
- package/dist/matter/account-access-gate/account-access-gate.d.ts +2 -1
- package/dist/matter/account-access-gate/account-access-gate.js +19 -16
- package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-delete.d.ts +60 -0
- package/dist/matter/account-address-book/account-address-book-delete.js +184 -0
- package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +19 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js +50 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +42 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js +146 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +25 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js +72 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book.d.ts +120 -0
- package/dist/matter/account-address-book/account-address-book.js +469 -0
- package/dist/matter/account-address-book/account-address-book.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country-switch.js +59 -0
- package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country.d.ts +36 -0
- package/dist/matter/account-address-book/account-address-country.js +151 -0
- package/dist/matter/account-address-book/account-address-country.js.map +1 -0
- package/dist/matter/account-address-book/account-address-first-line.js +11 -0
- package/dist/matter/account-address-book/account-address-first-line.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form-context.d.ts +55 -0
- package/dist/matter/account-address-book/account-address-form-context.js +14 -0
- package/dist/matter/account-address-book/account-address-form-context.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form.d.ts +85 -0
- package/dist/matter/account-address-book/account-address-form.js +946 -0
- package/dist/matter/account-address-book/account-address-form.js.map +1 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js +189 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js.map +1 -0
- package/dist/matter/account-address-book/account-address-record.d.ts +26 -0
- package/dist/matter/account-address-book/account-address-record.js +138 -0
- package/dist/matter/account-address-book/account-address-record.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.js +11 -11
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +7 -3
- package/dist/matter/account-menu/account-menu.js +69 -28
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/billing-address/billing-address.d.ts +30 -17
- package/dist/matter/billing-address/billing-address.js +128 -33
- package/dist/matter/billing-address/billing-address.js.map +1 -1
- package/dist/matter/breadcrumb/breadcrumb.js +2 -2
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/matter/card-entry/card-capture.js +4 -3
- package/dist/matter/card-entry/card-capture.js.map +1 -1
- package/dist/matter/card-entry/card-entry.d.ts +5 -3
- package/dist/matter/card-entry/card-entry.js +77 -27
- package/dist/matter/card-entry/card-entry.js.map +1 -1
- package/dist/matter/cardholder-document/cardholder-document.d.ts +10 -9
- package/dist/matter/cardholder-document/cardholder-document.js +36 -16
- package/dist/matter/cardholder-document/cardholder-document.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +7 -2
- package/dist/matter/cart/cart.js +29 -26
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-item/cart-item.js +2 -2
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences-fieldset.js +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.js +8 -5
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.js +3 -3
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.js +2 -2
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/my-account-profile/my-account-profile.d.ts +3 -3
- package/dist/matter/my-account-profile/my-account-profile.js +4 -4
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-cancel/order-cancel.d.ts +110 -0
- package/dist/matter/order-cancel/order-cancel.js +344 -0
- package/dist/matter/order-cancel/order-cancel.js.map +1 -0
- package/dist/matter/order-delivery-address/order-delivery-address.d.ts +73 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js +172 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -0
- package/dist/matter/order-delivery-group/order-delivery-group.d.ts +128 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js +408 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -0
- package/dist/matter/order-details-header/order-details-header.d.ts +104 -0
- package/dist/matter/order-details-header/order-details-header.js +190 -0
- package/dist/matter/order-details-header/order-details-header.js.map +1 -0
- package/dist/matter/order-list/customer-orders-filter.d.ts +12 -0
- package/dist/matter/order-list/customer-orders-filter.js +30 -0
- package/dist/matter/order-list/customer-orders-filter.js.map +1 -0
- package/dist/matter/order-list/order-list.d.ts +121 -0
- package/dist/matter/order-list/order-list.js +395 -0
- package/dist/matter/order-list/order-list.js.map +1 -0
- package/dist/matter/order-list-row/order-list-row.d.ts +44 -0
- package/dist/matter/order-list-row/order-list-row.js +127 -0
- package/dist/matter/order-list-row/order-list-row.js.map +1 -0
- package/dist/matter/order-list-search/order-list-search.d.ts +72 -0
- package/dist/matter/order-list-search/order-list-search.js +296 -0
- package/dist/matter/order-list-search/order-list-search.js.map +1 -0
- package/dist/matter/order-list-views/order-list-views.d.ts +65 -0
- package/dist/matter/order-list-views/order-list-views.js +154 -0
- package/dist/matter/order-list-views/order-list-views.js.map +1 -0
- package/dist/matter/order-payment/order-payment.d.ts +83 -0
- package/dist/matter/order-payment/order-payment.js +258 -0
- package/dist/matter/order-payment/order-payment.js.map +1 -0
- package/dist/matter/order-placed/order-placed-deliveries.d.ts +145 -0
- package/dist/matter/order-placed/order-placed-deliveries.js +380 -0
- package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -0
- package/dist/matter/order-placed/order-placed.d.ts +122 -0
- package/dist/matter/order-placed/order-placed.js +452 -0
- package/dist/matter/order-placed/order-placed.js.map +1 -0
- package/dist/matter/order-placed-date/order-placed-date.d.ts +45 -0
- package/dist/matter/order-placed-date/order-placed-date.js +92 -0
- package/dist/matter/order-placed-date/order-placed-date.js.map +1 -0
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +5 -8
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +29 -81
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
- package/dist/matter/order-progress/order-progress.d.ts +85 -0
- package/dist/matter/order-progress/order-progress.js +203 -0
- package/dist/matter/order-progress/order-progress.js.map +1 -0
- package/dist/matter/order-summary/order-summary.d.ts +81 -0
- package/dist/matter/order-summary/order-summary.js +192 -0
- package/dist/matter/order-summary/order-summary.js.map +1 -0
- package/dist/matter/payment/cardholder-document-rule.d.ts +35 -0
- package/dist/matter/payment/cardholder-document-rule.js +35 -0
- package/dist/matter/payment/cardholder-document-rule.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.js +38 -23
- package/dist/matter/payment/payment-card-capture.js.map +1 -1
- package/dist/matter/payment/payment-controller.js +11 -0
- package/dist/matter/payment/payment-controller.js.map +1 -1
- package/dist/matter/payment/payment-method-badges.js +4 -2
- package/dist/matter/payment/payment-method-badges.js.map +1 -1
- package/dist/matter/payment/payment.js +11 -0
- package/dist/matter/payment/payment.js.map +1 -1
- package/dist/matter/payment/use-payment-method-selection.d.ts +39 -0
- package/dist/matter/payment/use-payment-method-selection.js +30 -2
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
- package/dist/matter/payment/use-payment-submit-gate.d.ts +16 -2
- package/dist/matter/payment/use-payment-submit-gate.js +42 -14
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
- package/dist/matter/place-order/place-order.d.ts +12 -7
- package/dist/matter/place-order/place-order.js +126 -103
- package/dist/matter/place-order/place-order.js.map +1 -1
- package/dist/matter/pricing/pricing.js +5 -5
- package/dist/matter/pricing/pricing.js.map +1 -1
- package/dist/matter/region/region.js +1 -1
- package/dist/matter/saved-cards/saved-cards.js +26 -15
- package/dist/matter/saved-cards/saved-cards.js.map +1 -1
- package/dist/matter/session/session.js +2 -2
- package/dist/matter/session/session.js.map +1 -1
- package/dist/matter/shipping-address/country-descriptors.d.ts +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +23 -1
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/shipping-address.js +62 -14
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/sign-in-redirect/sign-in-redirect.js +48 -10
- package/dist/matter/sign-in-redirect/sign-in-redirect.js.map +1 -1
- package/dist/matter/variant-selector/variant-selector.js +2 -2
- package/dist/matter/variant-selector/variant-selector.js.map +1 -1
- package/dist/particles/address-summary/address-summary.js +2 -2
- package/dist/particles/address-summary/address-summary.js.map +1 -1
- package/dist/particles/alert-dialog/alert-dialog.d.ts +5 -1
- package/dist/particles/alert-dialog/alert-dialog.js +5 -2
- package/dist/particles/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/particles/copy-text/copy-text.d.ts +28 -0
- package/dist/particles/copy-text/copy-text.js +140 -0
- package/dist/particles/copy-text/copy-text.js.map +1 -0
- package/dist/particles/document-field/document-field.d.ts +34 -5
- package/dist/particles/document-field/document-field.js +115 -19
- package/dist/particles/document-field/document-field.js.map +1 -1
- package/dist/particles/field/field.js +1 -1
- package/dist/particles/field/field.js.map +1 -1
- package/dist/particles/footer-link-group/footer-link-group.d.ts +6 -2
- package/dist/particles/footer-link-group/footer-link-group.js +18 -7
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
- package/dist/particles/incentives/incentives.d.ts +6 -2
- package/dist/particles/incentives/incentives.js +7 -2
- package/dist/particles/incentives/incentives.js.map +1 -1
- package/dist/particles/logo/logo.d.ts +3 -2
- package/dist/particles/logo/logo.js +20 -8
- package/dist/particles/logo/logo.js.map +1 -1
- package/dist/particles/navigation-link/navigation-link.d.ts +2 -3
- package/dist/particles/navigation-link/navigation-link.js +4 -4
- package/dist/particles/navigation-link/navigation-link.js.map +1 -1
- package/dist/particles/navigation-link-list/navigation-link-list.d.ts +6 -2
- package/dist/particles/navigation-link-list/navigation-link-list.js +18 -7
- package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -1
- package/dist/particles/order-details-back/order-details-back.d.ts +28 -0
- package/dist/particles/order-details-back/order-details-back.js +52 -0
- package/dist/particles/order-details-back/order-details-back.js.map +1 -0
- package/dist/particles/order-status-badge/order-status-badge.d.ts +19 -0
- package/dist/particles/order-status-badge/order-status-badge.js +50 -0
- package/dist/particles/order-status-badge/order-status-badge.js.map +1 -0
- package/dist/particles/phone-field/phone-field.js +2 -2
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/select/select.js +6 -6
- package/dist/particles/select/select.js.map +1 -1
- package/dist/particles/toast/toast.d.ts +1 -1
- package/dist/particles/toast/toast.js +32 -6
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +1014 -28
- package/dist/sdk/actions/address-action-provider.d.ts +16 -0
- package/dist/sdk/actions/address-action-provider.js +20 -0
- package/dist/sdk/actions/address-action-provider.js.map +1 -0
- package/dist/sdk/actions/analytics-action-provider.js +1 -1
- package/dist/sdk/actions/index.d.ts +3 -1
- package/dist/sdk/actions/index.js +3 -1
- package/dist/sdk/actions/order-action-provider.d.ts +12 -0
- package/dist/sdk/actions/order-action-provider.js +16 -0
- package/dist/sdk/actions/order-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +6 -2
- package/dist/sdk/address/address-fields.js +38 -0
- package/dist/sdk/address/address-fields.js.map +1 -0
- package/dist/sdk/address/checkout-readiness.js +17 -0
- package/dist/sdk/address/checkout-readiness.js.map +1 -0
- package/dist/sdk/address/constants.js +60 -0
- package/dist/sdk/address/constants.js.map +1 -0
- package/dist/sdk/address/country-display.js +19 -0
- package/dist/sdk/address/country-display.js.map +1 -0
- package/dist/sdk/address/country-rules.js +30 -0
- package/dist/sdk/address/country-rules.js.map +1 -0
- package/dist/sdk/address/format-address.js +18 -0
- package/dist/sdk/address/format-address.js.map +1 -0
- package/dist/sdk/address/iso-countries.js +262 -0
- package/dist/sdk/address/iso-countries.js.map +1 -0
- package/dist/sdk/address/layouts.js +56 -0
- package/dist/sdk/address/layouts.js.map +1 -0
- package/dist/sdk/address/messages.js +97 -0
- package/dist/sdk/address/messages.js.map +1 -0
- package/dist/sdk/address/operations.d.ts +54 -0
- package/dist/sdk/address/operations.js +83 -0
- package/dist/sdk/address/operations.js.map +1 -0
- package/dist/sdk/address/postal-code-lookup-operations.js +23 -0
- package/dist/sdk/address/postal-code-lookup-operations.js.map +1 -0
- package/dist/sdk/address/postal-code.js +11 -0
- package/dist/sdk/address/postal-code.js.map +1 -0
- package/dist/sdk/address/schema.js +14 -0
- package/dist/sdk/address/schema.js.map +1 -0
- package/dist/sdk/address/server-fields.js +25 -0
- package/dist/sdk/address/server-fields.js.map +1 -0
- package/dist/sdk/address/switch-country.js +57 -0
- package/dist/sdk/address/switch-country.js.map +1 -0
- package/dist/sdk/address/types.d.ts +26 -0
- package/dist/sdk/address/use-address-actions.d.ts +29 -0
- package/dist/sdk/address/use-address-actions.js +247 -0
- package/dist/sdk/address/use-address-actions.js.map +1 -0
- package/dist/sdk/address/use-address-by-postal-code.js +57 -0
- package/dist/sdk/address/use-address-by-postal-code.js.map +1 -0
- package/dist/sdk/address/validate-address.js +62 -0
- package/dist/sdk/address/validate-address.js.map +1 -0
- package/dist/sdk/cache/storefront-cache.js +29 -4
- package/dist/sdk/cache/storefront-cache.js.map +1 -1
- package/dist/sdk/client/fetch-page-data.d.ts +11 -0
- package/dist/sdk/client/fetch-page-data.js +12 -1
- package/dist/sdk/client/fetch-page-data.js.map +1 -1
- package/dist/sdk/content/create-content-runtime.js +1 -8
- package/dist/sdk/content/create-content-runtime.js.map +1 -1
- package/dist/sdk/data/failed-fields.js +23 -0
- package/dist/sdk/data/failed-fields.js.map +1 -0
- package/dist/sdk/data/index.js +2 -2
- package/dist/sdk/data/page-reactive-data-root.d.ts +45 -7
- package/dist/sdk/data/page-reactive-data-root.js +88 -12
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
- package/dist/sdk/generated/fragment-types.js +2 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -1
- package/dist/sdk/generated/gql.js +3 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +8 -0
- package/dist/sdk/generated/graphql.js +212 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/messages/en-US.js +138 -1
- package/dist/sdk/i18n/messages/en-US.json +138 -1
- package/dist/sdk/i18n/messages/en-US.json.d.ts +137 -0
- package/dist/sdk/i18n/messages/es-ES.js +138 -1
- package/dist/sdk/i18n/messages/es-ES.json +138 -1
- package/dist/sdk/i18n/messages/pt-BR.js +138 -1
- package/dist/sdk/i18n/messages/pt-BR.json +138 -1
- package/dist/sdk/navigation/current-page.js +30 -0
- package/dist/sdk/navigation/current-page.js.map +1 -0
- package/dist/sdk/navigation/not-found-log.d.ts +28 -0
- package/dist/sdk/navigation/not-found-log.js +133 -0
- package/dist/sdk/navigation/not-found-log.js.map +1 -0
- package/dist/sdk/navigation/path.js +25 -0
- package/dist/sdk/navigation/path.js.map +1 -0
- package/dist/sdk/navigation/redirect.d.ts +11 -0
- package/dist/sdk/navigation/redirect.js +22 -0
- package/dist/sdk/navigation/redirect.js.map +1 -0
- package/dist/sdk/navigation/report.js +70 -0
- package/dist/sdk/navigation/report.js.map +1 -0
- package/dist/sdk/navigation/resolve-storefront-href.d.ts +12 -0
- package/dist/sdk/navigation/resolve-storefront-href.js +214 -0
- package/dist/sdk/navigation/resolve-storefront-href.js.map +1 -0
- package/dist/sdk/navigation/route-identity-provider.d.ts +11 -0
- package/dist/sdk/navigation/route-identity-provider.js +20 -0
- package/dist/sdk/navigation/route-identity-provider.js.map +1 -0
- package/dist/sdk/navigation/route-map-provider.d.ts +19 -0
- package/dist/sdk/navigation/route-map-provider.js +29 -0
- package/dist/sdk/navigation/route-map-provider.js.map +1 -0
- package/dist/sdk/navigation/storefront-link.d.ts +16 -0
- package/dist/sdk/navigation/storefront-link.js +66 -0
- package/dist/sdk/navigation/storefront-link.js.map +1 -0
- package/dist/sdk/navigation/types.d.ts +45 -0
- package/dist/sdk/navigation/use-storefront-navigation.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-navigation.js +73 -0
- package/dist/sdk/navigation/use-storefront-navigation.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-route.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-route.js +87 -0
- package/dist/sdk/navigation/use-storefront-route.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-search-params.d.ts +11 -0
- package/dist/sdk/navigation/use-storefront-search-params.js +16 -0
- package/dist/sdk/navigation/use-storefront-search-params.js.map +1 -0
- package/dist/sdk/orders/completion-badge.d.ts +8 -0
- package/dist/sdk/orders/completion-badge.js +47 -0
- package/dist/sdk/orders/completion-badge.js.map +1 -0
- package/dist/sdk/orders/order-operations.d.ts +19 -0
- package/dist/sdk/orders/order-operations.js +21 -0
- package/dist/sdk/orders/order-operations.js.map +1 -0
- package/dist/sdk/orders/use-order-actions.d.ts +23 -0
- package/dist/sdk/orders/use-order-actions.js +62 -0
- package/dist/sdk/orders/use-order-actions.js.map +1 -0
- package/dist/sdk/payment/gateway-origin.js +26 -13
- package/dist/sdk/payment/gateway-origin.js.map +1 -1
- package/dist/sdk/payment/gateway.d.ts +14 -2
- package/dist/sdk/payment/gateway.js +32 -14
- package/dist/sdk/payment/gateway.js.map +1 -1
- package/dist/sdk/payment/operations.js +11 -0
- package/dist/sdk/payment/operations.js.map +1 -1
- package/dist/sdk/payment/submission-registry.d.ts +2 -1
- package/dist/sdk/payment/submission-registry.js +12 -8
- package/dist/sdk/payment/submission-registry.js.map +1 -1
- package/dist/sdk/payment/use-payment-actions.d.ts +5 -3
- package/dist/sdk/payment/use-payment-actions.js +5 -2
- package/dist/sdk/payment/use-payment-actions.js.map +1 -1
- package/dist/sdk/payment/use-place-order.d.ts +6 -3
- package/dist/sdk/payment/use-place-order.js +333 -143
- package/dist/sdk/payment/use-place-order.js.map +1 -1
- package/dist/sdk/seo/page-alternates.d.ts +55 -0
- package/dist/sdk/seo/page-alternates.js +132 -0
- package/dist/sdk/seo/page-alternates.js.map +1 -0
- package/dist/utils/own-value.js +19 -0
- package/dist/utils/own-value.js.map +1 -0
- package/dist/utils/safe-href.d.ts +4 -4
- package/dist/utils/safe-href.js +31 -22
- package/dist/utils/safe-href.js.map +1 -1
- package/package.json +5 -1
- package/skills/storefront-asset/SKILL.md +111 -0
- package/skills/storefront-asset/references/api-side.md +153 -0
- package/skills/storefront-asset/references/findings.md +40 -0
- package/skills/storefront-asset/references/ui-side.md +94 -0
- package/src/styles/tailwind.css +27 -0
package/dist/content-types.json
CHANGED
|
@@ -313,6 +313,21 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
|
+
"order-details-back": {
|
|
317
|
+
"id": "order-details-back",
|
|
318
|
+
"title": "Order Details Back",
|
|
319
|
+
"description": "The link back to the order list.",
|
|
320
|
+
"schema": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"properties": {
|
|
324
|
+
"label": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"title": "Label"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
316
331
|
"payment-methods": {
|
|
317
332
|
"id": "payment-methods",
|
|
318
333
|
"title": "Payment Methods",
|
|
@@ -721,6 +736,514 @@
|
|
|
721
736
|
}
|
|
722
737
|
}
|
|
723
738
|
},
|
|
739
|
+
"order-cancel": {
|
|
740
|
+
"id": "order-cancel",
|
|
741
|
+
"title": "Order Cancel",
|
|
742
|
+
"description": "Confirmation copy and the optional cancellation reasons for one order.",
|
|
743
|
+
"schema": {
|
|
744
|
+
"type": "object",
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"properties": {
|
|
747
|
+
"trigger": {
|
|
748
|
+
"type": "string",
|
|
749
|
+
"title": "Trigger",
|
|
750
|
+
"default": "Cancel order"
|
|
751
|
+
},
|
|
752
|
+
"title": {
|
|
753
|
+
"type": "string",
|
|
754
|
+
"title": "Title",
|
|
755
|
+
"default": "Cancel this order?"
|
|
756
|
+
},
|
|
757
|
+
"description": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"title": "Description",
|
|
760
|
+
"default": "This cannot be undone."
|
|
761
|
+
},
|
|
762
|
+
"confirm": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"title": "Confirm",
|
|
765
|
+
"default": "Cancel order"
|
|
766
|
+
},
|
|
767
|
+
"dismiss": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"title": "Dismiss",
|
|
770
|
+
"default": "Keep order"
|
|
771
|
+
},
|
|
772
|
+
"other": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"title": "Other",
|
|
775
|
+
"default": "Other"
|
|
776
|
+
},
|
|
777
|
+
"otherField": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"title": "Other field",
|
|
780
|
+
"default": "Reason"
|
|
781
|
+
},
|
|
782
|
+
"success": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"title": "Success",
|
|
785
|
+
"default": "Your order was cancelled."
|
|
786
|
+
},
|
|
787
|
+
"failure": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"title": "Failure",
|
|
790
|
+
"default": "Unable to cancel the order. Please try again."
|
|
791
|
+
},
|
|
792
|
+
"dismissMessage": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"title": "Dismiss message",
|
|
795
|
+
"default": "Dismiss"
|
|
796
|
+
},
|
|
797
|
+
"reasons": {
|
|
798
|
+
"type": "array",
|
|
799
|
+
"title": "Reasons",
|
|
800
|
+
"items": {
|
|
801
|
+
"type": "object",
|
|
802
|
+
"additionalProperties": false,
|
|
803
|
+
"required": [
|
|
804
|
+
"label"
|
|
805
|
+
],
|
|
806
|
+
"properties": {
|
|
807
|
+
"label": {
|
|
808
|
+
"type": "string",
|
|
809
|
+
"title": "Label",
|
|
810
|
+
"minLength": 1
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"order-delivery-address": {
|
|
819
|
+
"id": "order-delivery-address",
|
|
820
|
+
"title": "Order Delivery Address",
|
|
821
|
+
"description": "The labels above a delivery address and above a pickup store address.",
|
|
822
|
+
"schema": {
|
|
823
|
+
"type": "object",
|
|
824
|
+
"additionalProperties": false,
|
|
825
|
+
"properties": {
|
|
826
|
+
"deliveryLabel": {
|
|
827
|
+
"type": "string",
|
|
828
|
+
"title": "Delivery address label"
|
|
829
|
+
},
|
|
830
|
+
"storeLabel": {
|
|
831
|
+
"type": "string",
|
|
832
|
+
"title": "Store address label"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"order-delivery-group": {
|
|
838
|
+
"id": "order-delivery-group",
|
|
839
|
+
"title": "Order Delivery Group",
|
|
840
|
+
"description": "The labels of a delivery group. The item-count sentences keep {count}: one for a single item, the other for the rest.",
|
|
841
|
+
"schema": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"additionalProperties": false,
|
|
844
|
+
"properties": {
|
|
845
|
+
"label": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"title": "Accessible name"
|
|
848
|
+
},
|
|
849
|
+
"delivery": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"title": "Delivery"
|
|
852
|
+
},
|
|
853
|
+
"pickup": {
|
|
854
|
+
"type": "string",
|
|
855
|
+
"title": "Pickup"
|
|
856
|
+
},
|
|
857
|
+
"estimate": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"title": "Estimated delivery"
|
|
860
|
+
},
|
|
861
|
+
"itemsOne": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"title": "One item",
|
|
864
|
+
"description": "Keep the placeholder {count}."
|
|
865
|
+
},
|
|
866
|
+
"itemsOther": {
|
|
867
|
+
"type": "string",
|
|
868
|
+
"title": "Many items",
|
|
869
|
+
"description": "Keep the placeholder {count}."
|
|
870
|
+
},
|
|
871
|
+
"subtotal": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"title": "Subtotal"
|
|
874
|
+
},
|
|
875
|
+
"quantity": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"title": "Quantity"
|
|
878
|
+
},
|
|
879
|
+
"unitPrice": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"title": "Unit price"
|
|
882
|
+
},
|
|
883
|
+
"listPrice": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"title": "List price"
|
|
886
|
+
},
|
|
887
|
+
"total": {
|
|
888
|
+
"type": "string",
|
|
889
|
+
"title": "Total"
|
|
890
|
+
},
|
|
891
|
+
"tax": {
|
|
892
|
+
"type": "string",
|
|
893
|
+
"title": "Tax"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"order-details-header": {
|
|
899
|
+
"id": "order-details-header",
|
|
900
|
+
"title": "Order Details Header",
|
|
901
|
+
"description": "The prefix, the copy action, and the status sentences on the order page.",
|
|
902
|
+
"schema": {
|
|
903
|
+
"type": "object",
|
|
904
|
+
"additionalProperties": false,
|
|
905
|
+
"properties": {
|
|
906
|
+
"prefix": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"title": "Prefix"
|
|
909
|
+
},
|
|
910
|
+
"copyLabel": {
|
|
911
|
+
"type": "string",
|
|
912
|
+
"title": "Copy label"
|
|
913
|
+
},
|
|
914
|
+
"copyAccessibleName": {
|
|
915
|
+
"type": "string",
|
|
916
|
+
"title": "Copy accessible name"
|
|
917
|
+
},
|
|
918
|
+
"copyCopied": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"title": "Copied"
|
|
921
|
+
},
|
|
922
|
+
"copyFailure": {
|
|
923
|
+
"type": "string",
|
|
924
|
+
"title": "Copy failure"
|
|
925
|
+
},
|
|
926
|
+
"copyDismiss": {
|
|
927
|
+
"type": "string",
|
|
928
|
+
"title": "Dismiss copy"
|
|
929
|
+
},
|
|
930
|
+
"statusInProgress": {
|
|
931
|
+
"type": "string",
|
|
932
|
+
"title": "In progress"
|
|
933
|
+
},
|
|
934
|
+
"statusCancellationRequested": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"title": "Cancellation requested"
|
|
937
|
+
},
|
|
938
|
+
"statusCancelled": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"title": "Cancelled"
|
|
941
|
+
},
|
|
942
|
+
"statusDelivered": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"title": "Delivered"
|
|
945
|
+
},
|
|
946
|
+
"statusShipped": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"title": "Shipped"
|
|
949
|
+
},
|
|
950
|
+
"statusReadyForPickup": {
|
|
951
|
+
"type": "string",
|
|
952
|
+
"title": "Ready for pickup"
|
|
953
|
+
},
|
|
954
|
+
"statusCollected": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"title": "Collected"
|
|
957
|
+
},
|
|
958
|
+
"statusPlaceholder": {
|
|
959
|
+
"type": "string",
|
|
960
|
+
"title": "Status unavailable"
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"order-list": {
|
|
966
|
+
"id": "order-list",
|
|
967
|
+
"title": "Order List",
|
|
968
|
+
"description": "The count, empty, error, and advance sentences for the orders list.",
|
|
969
|
+
"schema": {
|
|
970
|
+
"type": "object",
|
|
971
|
+
"additionalProperties": false,
|
|
972
|
+
"properties": {
|
|
973
|
+
"label": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"title": "Accessible name"
|
|
976
|
+
},
|
|
977
|
+
"count": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"title": "Count"
|
|
980
|
+
},
|
|
981
|
+
"countIncomplete": {
|
|
982
|
+
"type": "string",
|
|
983
|
+
"title": "Incomplete count"
|
|
984
|
+
},
|
|
985
|
+
"emptyAccount": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"title": "Empty account"
|
|
988
|
+
},
|
|
989
|
+
"emptyView": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"title": "Empty view"
|
|
992
|
+
},
|
|
993
|
+
"emptySearch": {
|
|
994
|
+
"type": "string",
|
|
995
|
+
"title": "Empty search"
|
|
996
|
+
},
|
|
997
|
+
"pastEnd": {
|
|
998
|
+
"type": "string",
|
|
999
|
+
"title": "Past the end"
|
|
1000
|
+
},
|
|
1001
|
+
"walkStopped": {
|
|
1002
|
+
"type": "string",
|
|
1003
|
+
"title": "Walk stopped"
|
|
1004
|
+
},
|
|
1005
|
+
"error": {
|
|
1006
|
+
"type": "string",
|
|
1007
|
+
"title": "Error"
|
|
1008
|
+
},
|
|
1009
|
+
"retry": {
|
|
1010
|
+
"type": "string",
|
|
1011
|
+
"title": "Retry"
|
|
1012
|
+
},
|
|
1013
|
+
"next": {
|
|
1014
|
+
"type": "string",
|
|
1015
|
+
"title": "Next page"
|
|
1016
|
+
},
|
|
1017
|
+
"loadMore": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"title": "Load more"
|
|
1020
|
+
},
|
|
1021
|
+
"firstPage": {
|
|
1022
|
+
"type": "string",
|
|
1023
|
+
"title": "First page"
|
|
1024
|
+
},
|
|
1025
|
+
"clear": {
|
|
1026
|
+
"type": "string",
|
|
1027
|
+
"title": "Clear search"
|
|
1028
|
+
},
|
|
1029
|
+
"startShopping": {
|
|
1030
|
+
"type": "string",
|
|
1031
|
+
"title": "Start shopping"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"order-list-search": {
|
|
1037
|
+
"id": "order-list-search",
|
|
1038
|
+
"title": "Order List Search",
|
|
1039
|
+
"description": "The order-number label, the placed-date labels, and the invalid-range message.",
|
|
1040
|
+
"schema": {
|
|
1041
|
+
"type": "object",
|
|
1042
|
+
"additionalProperties": false,
|
|
1043
|
+
"properties": {
|
|
1044
|
+
"label": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"title": "Order number"
|
|
1047
|
+
},
|
|
1048
|
+
"from": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"title": "Placed from"
|
|
1051
|
+
},
|
|
1052
|
+
"to": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"title": "Placed to"
|
|
1055
|
+
},
|
|
1056
|
+
"submit": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"title": "Search"
|
|
1059
|
+
},
|
|
1060
|
+
"clear": {
|
|
1061
|
+
"type": "string",
|
|
1062
|
+
"title": "Clear search"
|
|
1063
|
+
},
|
|
1064
|
+
"invalidRange": {
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"title": "Invalid range"
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"order-list-views": {
|
|
1072
|
+
"id": "order-list-views",
|
|
1073
|
+
"title": "Order List Views",
|
|
1074
|
+
"description": "The names of the four order views and the accessible name of the switch.",
|
|
1075
|
+
"schema": {
|
|
1076
|
+
"type": "object",
|
|
1077
|
+
"additionalProperties": false,
|
|
1078
|
+
"properties": {
|
|
1079
|
+
"label": {
|
|
1080
|
+
"type": "string",
|
|
1081
|
+
"title": "Accessible name"
|
|
1082
|
+
},
|
|
1083
|
+
"all": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"title": "All orders"
|
|
1086
|
+
},
|
|
1087
|
+
"ongoing": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"title": "Ongoing"
|
|
1090
|
+
},
|
|
1091
|
+
"completed": {
|
|
1092
|
+
"type": "string",
|
|
1093
|
+
"title": "Completed"
|
|
1094
|
+
},
|
|
1095
|
+
"cancelled": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"title": "Cancelled"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"order-payment": {
|
|
1103
|
+
"id": "order-payment",
|
|
1104
|
+
"title": "Order Payment",
|
|
1105
|
+
"description": "The heading, the bank-invoice name, and the fixed labels of the payment section. The installment line keeps {count} and {amount}.",
|
|
1106
|
+
"schema": {
|
|
1107
|
+
"type": "object",
|
|
1108
|
+
"additionalProperties": false,
|
|
1109
|
+
"properties": {
|
|
1110
|
+
"heading": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"title": "Heading"
|
|
1113
|
+
},
|
|
1114
|
+
"bankInvoiceName": {
|
|
1115
|
+
"type": "string",
|
|
1116
|
+
"title": "Bank invoice name"
|
|
1117
|
+
},
|
|
1118
|
+
"empty": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"title": "Empty"
|
|
1121
|
+
},
|
|
1122
|
+
"methodPlaceholder": {
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"title": "Method unavailable"
|
|
1125
|
+
},
|
|
1126
|
+
"installments": {
|
|
1127
|
+
"type": "string",
|
|
1128
|
+
"title": "Installments",
|
|
1129
|
+
"description": "Keep the placeholders {count} and {amount}."
|
|
1130
|
+
},
|
|
1131
|
+
"redemptionCode": {
|
|
1132
|
+
"type": "string",
|
|
1133
|
+
"title": "Gift card code"
|
|
1134
|
+
},
|
|
1135
|
+
"bankInvoiceNumber": {
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
"title": "Bank invoice number"
|
|
1138
|
+
},
|
|
1139
|
+
"bankInvoicePrint": {
|
|
1140
|
+
"type": "string",
|
|
1141
|
+
"title": "Print bank invoice"
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"order-placed-date": {
|
|
1147
|
+
"id": "order-placed-date",
|
|
1148
|
+
"title": "Order Placed Date",
|
|
1149
|
+
"description": "The label beside the date the order was placed.",
|
|
1150
|
+
"schema": {
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
"additionalProperties": false,
|
|
1153
|
+
"properties": {
|
|
1154
|
+
"label": {
|
|
1155
|
+
"type": "string",
|
|
1156
|
+
"title": "Label"
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"order-progress": {
|
|
1162
|
+
"id": "order-progress",
|
|
1163
|
+
"title": "Order Progress",
|
|
1164
|
+
"description": "The stage names, the state sentences, and the accessible name of the progress list.",
|
|
1165
|
+
"schema": {
|
|
1166
|
+
"type": "object",
|
|
1167
|
+
"additionalProperties": false,
|
|
1168
|
+
"properties": {
|
|
1169
|
+
"label": {
|
|
1170
|
+
"type": "string",
|
|
1171
|
+
"title": "Accessible name"
|
|
1172
|
+
},
|
|
1173
|
+
"placed": {
|
|
1174
|
+
"type": "string",
|
|
1175
|
+
"title": "Order placed"
|
|
1176
|
+
},
|
|
1177
|
+
"payment": {
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"title": "Payment"
|
|
1180
|
+
},
|
|
1181
|
+
"processing": {
|
|
1182
|
+
"type": "string",
|
|
1183
|
+
"title": "Processing"
|
|
1184
|
+
},
|
|
1185
|
+
"shipping": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"title": "Shipping"
|
|
1188
|
+
},
|
|
1189
|
+
"stateDone": {
|
|
1190
|
+
"type": "string",
|
|
1191
|
+
"title": "Completed"
|
|
1192
|
+
},
|
|
1193
|
+
"stateCurrent": {
|
|
1194
|
+
"type": "string",
|
|
1195
|
+
"title": "In progress"
|
|
1196
|
+
},
|
|
1197
|
+
"statePending": {
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"title": "Not started"
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
"order-summary": {
|
|
1205
|
+
"id": "order-summary",
|
|
1206
|
+
"title": "Order Summary",
|
|
1207
|
+
"description": "The heading and the labels of the known total lines. An unknown total id keeps the name the API sent.",
|
|
1208
|
+
"schema": {
|
|
1209
|
+
"type": "object",
|
|
1210
|
+
"additionalProperties": false,
|
|
1211
|
+
"properties": {
|
|
1212
|
+
"heading": {
|
|
1213
|
+
"type": "string",
|
|
1214
|
+
"title": "Heading"
|
|
1215
|
+
},
|
|
1216
|
+
"items": {
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"title": "Items"
|
|
1219
|
+
},
|
|
1220
|
+
"shipping": {
|
|
1221
|
+
"type": "string",
|
|
1222
|
+
"title": "Shipping"
|
|
1223
|
+
},
|
|
1224
|
+
"discounts": {
|
|
1225
|
+
"type": "string",
|
|
1226
|
+
"title": "Discounts"
|
|
1227
|
+
},
|
|
1228
|
+
"tax": {
|
|
1229
|
+
"type": "string",
|
|
1230
|
+
"title": "Tax"
|
|
1231
|
+
},
|
|
1232
|
+
"change": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"title": "Change"
|
|
1235
|
+
},
|
|
1236
|
+
"interest": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"title": "Interest"
|
|
1239
|
+
},
|
|
1240
|
+
"grandTotal": {
|
|
1241
|
+
"type": "string",
|
|
1242
|
+
"title": "Total"
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
724
1247
|
"product-shelf": {
|
|
725
1248
|
"id": "product-shelf",
|
|
726
1249
|
"title": "Product Shelf",
|
|
@@ -9,7 +9,7 @@ export interface EditorMetadata {
|
|
|
9
9
|
description?: string;
|
|
10
10
|
icon?: string;
|
|
11
11
|
}
|
|
12
|
-
export type PropType = 'string' | 'number' | 'boolean' | 'object' | 'array' | readonly string[];
|
|
12
|
+
export type PropType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'link' | readonly string[];
|
|
13
13
|
export type PropSchemaField = {
|
|
14
14
|
/**
|
|
15
15
|
* Prop type keyword. The catalog wire value `"icon"` is a sukima convention (collected at
|
|
@@ -23,6 +23,11 @@ export type PropSchemaField = {
|
|
|
23
23
|
*/
|
|
24
24
|
items?: readonly string[];
|
|
25
25
|
default?: unknown;
|
|
26
|
+
/**
|
|
27
|
+
* The route params the component supplies when it navigates, honored only when `type === 'link'`
|
|
28
|
+
* (e.g. `{ type: 'link', default: { standard: 'order-placed' }, fills: ['orderGroup'] }`).
|
|
29
|
+
*/
|
|
30
|
+
fills?: readonly string[];
|
|
26
31
|
label?: string;
|
|
27
32
|
};
|
|
28
33
|
export type PropSchema = Record<string, PropSchemaField>;
|
|
@@ -21,7 +21,7 @@ The image is the source of truth for layout, and this component is not in any la
|
|
|
21
21
|
|
|
22
22
|
- On an individual account section, to repeat the rule → the layout already made it. A second gate is a second decision to keep in agreement with the first.
|
|
23
23
|
- To show or hide a subtree by session state, with nothing else riding on it → use `SessionGuard`, which is the declarative show/hide. This component navigates, remembers, and is meant to own a whole page.
|
|
24
|
-
- On the
|
|
24
|
+
- On the sign-in page → that page is [[sign-in-redirect]], and this component redirects *to* it. Gating it closes a loop the shopper cannot leave.
|
|
25
25
|
- To decide whether a shopper may read *this particular order* or *that address* → the gate answers "is anyone signed in", never "is this record theirs". Record-level authorization belongs to the resolver.
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -64,7 +64,7 @@ Content model (`account-access-gate`) fields, edited in the CMS — the same fou
|
|
|
64
64
|
|
|
65
65
|
**`identified` counts as signed out.** A shopper the platform recognizes but has not authenticated cannot reach their account, which is the same reading [[account-entry-point]] applies to its own label.
|
|
66
66
|
|
|
67
|
-
**A visitor who arrived signed out is sent, not told.** The redirect replaces the history entry rather than pushing one, carrying the page they were trying to reach as the return, query string included — so back from the platform's login reaches the page they were reading rather than the first page of it, and never bounces off the gate again.
|
|
67
|
+
**A visitor who arrived signed out is sent, not told.** The redirect replaces the history entry rather than pushing one, carrying the page they were trying to reach as the return, query string included, as a logical path the sign-in page prefixes on the way back — so back from the platform's login reaches the page they were reading rather than the first page of it, and never bounces off the gate again.
|
|
68
68
|
|
|
69
69
|
**A session that ended mid-visit is told, not sent.** Past a redirect there is no surface left to say anything on, so the gate keeps the page and renders the notice with a sign-in link the shopper may take. This is a deliberate departure from "redirect whenever signed out", and it applies only when the gate has already rendered the account for this shopper.
|
|
70
70
|
|
|
@@ -113,7 +113,7 @@ Bound to a CMS entry, the element authors no messages at all — the entry suppl
|
|
|
113
113
|
|
|
114
114
|
- **`AccountGate`, `AuthGuard`, `RequireLogin`, `ProtectedRoute`.** The correct name is `AccountAccessGate`.
|
|
115
115
|
- **Repeating it per account section.** It belongs once in the layout, wrapping the body. Two gates are two decisions that can disagree.
|
|
116
|
-
- **Putting [[sign-in-redirect]] under it.** The gate redirects to
|
|
116
|
+
- **Putting [[sign-in-redirect]] under it.** The gate redirects to the sign-in page `{ standard: 'sign-in' }`; a gated sign-in page redirects to itself.
|
|
117
117
|
- **Placing it outside `SessionRoot`.** It declares `requiresContext: 'session'` and has nothing to read without one.
|
|
118
118
|
- **Reaching for `SessionGuard when={['loggedIn']}` instead.** That expresses one of the five outcomes. It cannot redirect, cannot carry a return, cannot tell an arrival from an expiry, and renders nothing while the session is still resolving.
|
|
119
119
|
- **Expecting it to redirect an expired session.** It renders a notice on purpose — see above.
|
|
@@ -148,6 +148,6 @@ Styling the gate's swatch reaches the loading part and both notices, which is us
|
|
|
148
148
|
|
|
149
149
|
## Related
|
|
150
150
|
|
|
151
|
-
- [[sign-in-redirect]] — the
|
|
151
|
+
- [[sign-in-redirect]] — the sign-in page this component sends a signed-out visitor to, and which reads back the return this one encoded. Never place it under the gate.
|
|
152
152
|
- [[account-entry-point]] — the header control that offers sign-in to a shopper who chose to go there. It asks; this one insists.
|
|
153
153
|
- [[session]] — the context both read. `SessionGuard`, in the same group, is the declarative show/hide for a subtree with no navigation, no memory, and no loading state of its own.
|