@vtex/faststore 0.0.7 → 0.0.10
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 +102 -0
- package/dist/actions.json +194 -1
- package/dist/catalog.json +3449 -1612
- 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 +42 -10
- package/dist/components.js +47 -15
- package/dist/content-types.json +823 -0
- package/dist/core/dist/define-component.d.ts +12 -2
- 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 +5 -5
- package/dist/docs/account-menu.md +7 -7
- package/dist/docs/account-saved-cards.md +301 -0
- package/dist/docs/alert-dialog.md +2 -2
- package/dist/docs/billing-address.md +17 -9
- package/dist/docs/binding-switcher.md +154 -0
- package/dist/docs/card-entry.md +38 -7
- package/dist/docs/card-summary.md +175 -0
- package/dist/docs/cardholder-document.md +16 -14
- package/dist/docs/cart-destination.md +238 -0
- package/dist/docs/cart-item.md +22 -4
- package/dist/docs/cart-totalizer.md +1 -1
- package/dist/docs/cart.md +126 -19
- 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/footer-social.md +1 -1
- package/dist/docs/free-shipping-progress.md +13 -9
- package/dist/docs/header-root.md +1 -1
- package/dist/docs/incentives.md +4 -4
- package/dist/docs/logo.md +6 -6
- 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 +16 -5
- package/dist/docs/payment-methods.md +1 -1
- package/dist/docs/place-order.md +13 -9
- package/dist/docs/product-information.md +2 -2
- package/dist/docs/product-shelf.md +7 -0
- package/dist/docs/saved-cards.md +2 -2
- package/dist/docs/select.md +22 -10
- package/dist/docs/session.md +1 -1
- package/dist/docs/shipping-address.md +1 -1
- package/dist/docs/sign-in-redirect.md +7 -7
- package/dist/docs/toast.md +35 -13
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -1
- package/dist/internal/client.d.ts +9 -1
- package/dist/internal/client.js +10 -2
- package/dist/internal/server.d.ts +8 -2
- package/dist/internal/server.js +8 -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/account-saved-cards/account-saved-cards.d.ts +383 -0
- package/dist/matter/account-saved-cards/account-saved-cards.js +956 -0
- package/dist/matter/account-saved-cards/account-saved-cards.js.map +1 -0
- 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-namespace.d.ts +5 -1
- package/dist/matter/cart/cart-namespace.js +5 -1
- package/dist/matter/cart/cart-namespace.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +41 -6
- package/dist/matter/cart/cart.js +267 -54
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-destination/cart-destination.d.ts +222 -0
- package/dist/matter/cart-destination/cart-destination.js +613 -0
- package/dist/matter/cart-destination/cart-destination.js.map +1 -0
- package/dist/matter/cart-item/cart-item.d.ts +4 -2
- package/dist/matter/cart-item/cart-item.js +76 -17
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/cart-totalizer/cart-totalizer.js +3 -2
- package/dist/matter/cart-totalizer/cart-totalizer.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/free-shipping-progress/free-shipping-progress.d.ts +6 -3
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +76 -33
- package/dist/matter/free-shipping-progress/free-shipping-progress.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/product-shelf/product-shelf.d.ts +7 -0
- package/dist/matter/product-shelf/product-shelf.js +115 -1
- package/dist/matter/product-shelf/product-shelf.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 +2 -2
- package/dist/matter/shipping-simulator/shipping-simulator.js +6 -2
- 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/binding-switcher/binding-switcher.d.ts +38 -0
- package/dist/particles/binding-switcher/binding-switcher.js +183 -0
- package/dist/particles/binding-switcher/binding-switcher.js.map +1 -0
- package/dist/particles/card-summary/card-network.d.ts +17 -0
- package/dist/particles/card-summary/card-network.js +25 -0
- package/dist/particles/card-summary/card-network.js.map +1 -0
- package/dist/particles/card-summary/card-summary.d.ts +83 -0
- package/dist/particles/card-summary/card-summary.js +188 -0
- package/dist/particles/card-summary/card-summary.js.map +1 -0
- 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/footer-social/footer-social.d.ts +1 -1
- package/dist/particles/footer-social/footer-social.js +1 -1
- package/dist/particles/footer-social/footer-social.js.map +1 -1
- package/dist/particles/incentives/incentives.d.ts +7 -3
- package/dist/particles/incentives/incentives.js +8 -3
- 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/payment-methods/payment-methods.d.ts +1 -1
- package/dist/particles/payment-methods/payment-methods.js +1 -1
- package/dist/particles/payment-methods/payment-methods.js.map +1 -1
- 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 +21 -7
- package/dist/particles/toast/toast.js +76 -8
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +1376 -126
- 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 +5 -1
- package/dist/sdk/actions/index.js +5 -1
- package/dist/sdk/actions/locale-action-provider.d.ts +16 -0
- package/dist/sdk/actions/locale-action-provider.js +20 -0
- package/dist/sdk/actions/locale-action-provider.js.map +1 -0
- 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/saved-card-action-provider.d.ts +12 -0
- package/dist/sdk/actions/saved-card-action-provider.js +16 -0
- package/dist/sdk/actions/saved-card-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +10 -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 +30 -4
- package/dist/sdk/cache/storefront-cache.js.map +1 -1
- package/dist/sdk/cart/operations.d.ts +2 -1
- package/dist/sdk/cart/operations.js +55 -1
- package/dist/sdk/cart/operations.js.map +1 -1
- package/dist/sdk/cart/optimistic.d.ts +30 -7
- package/dist/sdk/cart/optimistic.js +78 -41
- package/dist/sdk/cart/optimistic.js.map +1 -1
- package/dist/sdk/cart/use-cart-actions.d.ts +7 -0
- package/dist/sdk/cart/use-cart-actions.js +61 -15
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-sync-sales-channel.js +70 -0
- package/dist/sdk/cart/use-cart-sync-sales-channel.js.map +1 -0
- 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 +17 -11
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +185 -46
- package/dist/sdk/generated/graphql.js +2587 -155
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/messages/en-US.js +157 -1
- package/dist/sdk/i18n/messages/en-US.json +157 -1
- package/dist/sdk/i18n/messages/en-US.json.d.ts +156 -0
- package/dist/sdk/i18n/messages/es-ES.js +157 -1
- package/dist/sdk/i18n/messages/es-ES.json +157 -1
- package/dist/sdk/i18n/messages/pt-BR.js +157 -1
- package/dist/sdk/i18n/messages/pt-BR.json +157 -1
- package/dist/sdk/i18n/provider.js +1 -1
- package/dist/sdk/i18n/provider.js.map +1 -1
- package/dist/sdk/locale/binding-switch-provider.d.ts +13 -0
- package/dist/sdk/locale/binding-switch-provider.js +20 -0
- package/dist/sdk/locale/binding-switch-provider.js.map +1 -0
- package/dist/sdk/locale/use-locale-actions.d.ts +16 -0
- package/dist/sdk/locale/use-locale-actions.js +70 -0
- package/dist/sdk/locale/use-locale-actions.js.map +1 -0
- package/dist/sdk/navigation/binding-switch.d.ts +39 -0
- package/dist/sdk/navigation/binding-switch.js +129 -0
- package/dist/sdk/navigation/binding-switch.js.map +1 -0
- package/dist/sdk/navigation/current-page.js +30 -0
- package/dist/sdk/navigation/current-page.js.map +1 -0
- package/dist/sdk/navigation/decode-route-params.d.ts +11 -0
- package/dist/sdk/navigation/decode-route-params.js +32 -0
- package/dist/sdk/navigation/decode-route-params.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/saved-cards/operations.d.ts +16 -0
- package/dist/sdk/saved-cards/operations.js +41 -0
- package/dist/sdk/saved-cards/operations.js.map +1 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.d.ts +26 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.js +86 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.js.map +1 -0
- package/dist/sdk/seo/page-alternates.d.ts +57 -0
- package/dist/sdk/seo/page-alternates.js +127 -0
- package/dist/sdk/seo/page-alternates.js.map +1 -0
- package/dist/sdk/shipping/shipping-operations.d.ts +1 -1
- package/dist/sdk/shipping/shipping-operations.js +13 -0
- package/dist/sdk/shipping/shipping-operations.js.map +1 -1
- package/dist/sdk/state/cart.d.ts +9 -2
- package/dist/sdk/state/cart.js +9 -2
- package/dist/sdk/state/cart.js.map +1 -1
- 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 +28 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cardholder-document.js","names":[],"sources":["../../../src/matter/cardholder-document/cardholder-document.tsx"],"sourcesContent":["'use client';\n\nimport { defineComponent } from '@vtex/fs-core';\nimport type { ComponentPropsWithRef, Ref } from 'react';\nimport { DocumentField } from '../../particles/document-field/document-field.js';\nimport { usePayment } from '../payment/payment.js';\nimport { isCardholderDocumentShown } from '../payment/use-payment-submit-gate.js';\n\n/**\n * The cardholder-document field (specs/cardholder-document.md, T8 of the Credit Card epic;\n * docs/features/credit-card/rfc.md § D3). Renders the existing `particles/document-field`\n * `DocumentField` for CPF, gated on the *selected* payment method's validator: presence follows\n * `documentDisplayable`, requiredness follows `documentRequired` — two distinct, non-null flags\n * (T1's read model; `use-payment-method-selection.ts`'s `PaymentSectionValidator`), read off\n * `usePayment().selectedMethod` (`selectedMethodId` resolved against the scoped `methods` list,\n * carrying the full validator — specs/payment-section-root.md's contract table names T8 as the\n * consumer of exactly these two flags on that field).\n *\n * Declares no fragment of its own: T5's merged `PaymentSectionData` fragment\n * (`matter/payment/payment.tsx`) already selects both flags, so this leaf reads them off context\n * instead of re-selecting them. The shipped precedent for a context-only, fragment-less payment\n * leaf is `SavedCardCvvField` (`matter/saved-cards/saved-cards.tsx`), deliberately absent from\n * `data-component-contract.test.ts`'s fragment-registration list for the same reason.\n *\n * The collected value is not sensitive — the RFC's \"The card-data submission channel\" section\n * names the cardholder document alongside the save-card flag/label as travelling on the ordinary\n * `draft`, never the submission registry — and is published via `setDraftDocument` on every\n * change, mirroring `CardEntry`'s own `setDraftBin` idiom (`card-entry.tsx`): no validation, no\n * dispatch, just keep the shared fact current. T7's `CardEntry` (merged) already folds\n * `draft.document` into its gateway card object, so this component's only job is keeping that\n * value current; it never itself calls `sendPayments` or registers a submission continuation.\n *\n * CPF-only by design, not by omission — see this task's own spec, § \"Multi-country deferral\", for\n * why the read model cannot yet select a document type or a country, and what widening a future\n * task would need to do about it.\n */\n\n// ---------------------------------------------------------------------------\n// Props\n// ---------------------------------------------------------------------------\n\nexport type CardholderDocumentProps = Omit<\n ComponentPropsWithRef<'div'>,\n 'defaultValue' | 'value' | 'onChange' | 'onBlur' | 'ref'\n> & {\n label?: string;\n placeholder?: string;\n errorMessage?: string;\n /** Disables the input without hiding it — distinct from the data-driven presence gate below. */\n disabled?: boolean;\n /** Forwarded to `DocumentField`, which lands it on the `<input>`, not on the wrapper `<div>`. */\n ref?: Ref<HTMLInputElement>;\n};\n\n// ---------------------------------------------------------------------------\n// Definition\n// ---------------------------------------------------------------------------\n\nexport const CardholderDocumentDefinition = defineComponent<CardholderDocumentProps>({\n name: 'CardholderDocument',\n importPath: '@vtex/faststore/components',\n component: CardholderDocument,\n requiresContext: 'payment',\n editor: { label: 'Cardholder Document', category: 'commerce' },\n schema: {\n label: { type: 'string', default: 'CPF', label: 'Label' },\n placeholder: { type: 'string', default: '000.000.000-00', label: 'Placeholder' },\n errorMessage: { type: 'string', default: 'Invalid CPF', label: 'Error message' },\n disabled: { type: 'boolean', default: false, label: 'Disabled' },\n },\n guideline:\n \"Cardholder tax-document field for the currently selected payment method (CPF only in this build): renders only when that method's validator marks a document displayable, and marks the input required when the validator marks the document required — the particle, not this leaf, decides whether a typed value is well-formed. Place as a sibling of CardEntry and SavedCards inside a PaymentSectionRoot or PaymentSectionController; renders nothing before a method is selected or when the selected method has no document to collect. The collected value is a plain draft fact — never a schema prop, a fragment field, or an action payload — and is unrelated to the shopper's saved profile document, which this component never reads. See cardholder-document.md.\",\n});\n\n// ---------------------------------------------------------------------------\n// Implementation\n// ---------------------------------------------------------------------------\n\nexport function CardholderDocument({\n label = 'CPF',\n placeholder = '000.000.000-00',\n errorMessage = 'Invalid CPF',\n disabled = false,\n className,\n ...props\n}: CardholderDocumentProps) {\n const { selectedMethod, draft, setDraftDocument, placing, cardPaymentCollapsed } = usePayment();\n const validator = selectedMethod?.validator;\n const documentRequired = validator?.documentRequired ?? false;\n\n // Presence follows `documentDisplayable` alone (specs/payment-section-root.md's contract table),\n // never the entry path: the validator is resolved off the selected *method*, not off\n // `draft.path`, matching the merged T5 spec verbatim. See this task's own spec, § \"Decisions\",\n // for the measured, deliberately-not-fixed interaction this has with a saved-card selection.\n // T191 (FR-7, Decision 3): nothing renders while the card payment is collapsed either, whatever the\n // selected method's own validator says. The field re-seeds from `draft.document` when it comes back.\n // T192 (Decision 3): `isCardholderDocumentShown` is that condition, defined once — the submit gate\n // reads the same function, so it never asks for a document this field is not showing.\n if (!isCardholderDocumentShown({ cardPaymentCollapsed, selectedMethod })) return null;\n\n return (\n <DocumentField\n {...props}\n className={className}\n // T28: `Field.Root` (Base UI) forwards unknown native props onto its rendered element\n // (`document-field.tsx`'s own `{...props}` spread), so `inert`/`aria-disabled` land on the same\n // element `data-fs-cardholder-document` is on — there is no separate root of this component's own.\n inert={placing}\n aria-disabled={placing || undefined}\n documentType=\"CPF\"\n requirement={documentRequired ? 'mandatory' : 'optional'}\n // Re-seeds from the shared draft on every mount, so a shopper's already-typed value survives\n // this leaf unmounting and remounting (e.g. `documentDisplayable` flips off then on again as\n // network detection re-resolves mid-typing) instead of starting blank again. Uncontrolled —\n // `DocumentField` owns masking and blur validation from here; this component never re-applies\n // its own mask (Decision \"Uncontrolled composition, not a second masking implementation\").\n defaultValue={draft.document ?? ''}\n label={label}\n placeholder={placeholder}\n errorMessage={errorMessage}\n disabled={disabled}\n onValueChange={(value) => setDraftDocument(value || null)}\n data-fs-cardholder-document=\"\"\n {...(documentRequired ? { 'data-fs-cardholder-document-required': '' } : {})}\n {...(placing ? { 'data-fs-cardholder-document-placing': '' } : {})}\n />\n );\n}\n"],"mappings":";;;;;;;;AA0DA,MAAa,+BAA+B,gBAAyC;CACnF,MAAM;CACN,YAAY;CACZ,WAAW;CACX,iBAAiB;CACjB,QAAQ;EAAE,OAAO;EAAuB,UAAU;CAAW;CAC7D,QAAQ;EACN,OAAO;GAAE,MAAM;GAAU,SAAS;GAAO,OAAO;EAAQ;EACxD,aAAa;GAAE,MAAM;GAAU,SAAS;GAAkB,OAAO;EAAc;EAC/E,cAAc;GAAE,MAAM;GAAU,SAAS;GAAe,OAAO;EAAgB;EAC/E,UAAU;GAAE,MAAM;GAAW,SAAS;GAAO,OAAO;EAAW;CACjE;CACA,WACE;AACJ,CAAC;AAMD,SAAgB,mBAAmB,EACjC,QAAQ,OACR,cAAc,kBACd,eAAe,eACf,WAAW,OACX,WACA,GAAG,SACuB;CAC1B,MAAM,EAAE,gBAAgB,OAAO,kBAAkB,SAAS,yBAAyB,WAAW;CAE9F,MAAM,oBADY,gBAAgB,UAAA,EACE,oBAAoB;CAUxD,IAAI,CAAC,0BAA0B;EAAE;EAAsB;CAAe,CAAC,GAAG,OAAO;CAEjF,OACE,oBAAC,eAAD;EACE,GAAI;EACO;EAIX,OAAO;EACP,iBAAe,WAAW,KAAA;EAC1B,cAAa;EACb,aAAa,mBAAmB,cAAc;EAM9C,cAAc,MAAM,YAAY;EACzB;EACM;EACC;EACJ;EACV,gBAAgB,UAAU,iBAAiB,SAAS,IAAI;EACxD,+BAA4B;EAC5B,GAAK,mBAAmB,EAAE,wCAAwC,GAAG,IAAI,CAAC;EAC1E,GAAK,UAAU,EAAE,uCAAuC,GAAG,IAAI,CAAC;CACjE,CAAA;AAEL"}
|
|
1
|
+
{"version":3,"file":"cardholder-document.js","names":[],"sources":["../../../src/matter/cardholder-document/cardholder-document.tsx"],"sourcesContent":["'use client';\n\nimport { defineComponent } from '@vtex/fs-core';\nimport { type ComponentPropsWithRef, type Ref, useEffect, useRef } from 'react';\nimport { DOCUMENTS, DocumentField } from '../../particles/document-field/document-field.js';\nimport { useComposedRef } from '../../particles/shared/compose-refs.js';\nimport { resolveCardholderDocument } from '../payment/cardholder-document-rule.js';\nimport { usePayment } from '../payment/payment.js';\nimport { isCardholderDocumentShown } from '../payment/use-payment-submit-gate.js';\n\n/**\n * The cardholder-document field (specs/cardholder-document.md, T8 of the Credit Card epic;\n * docs/features/credit-card/rfc.md § D3). Renders the existing `particles/document-field`\n * `DocumentField` for the document the store's country asks for (T42: `USA` SSN, `BRA` CPF, `CAN` SIN,\n * `MEX` RFC — `usePayment().countryDocumentType`), gated on the *selected* payment method's validator:\n * presence follows `documentDisplayable`, requiredness follows `documentRequired` — two distinct,\n * non-null flags (T1's read model; `use-payment-method-selection.ts`'s `PaymentSectionValidator`), read\n * off `usePayment().selectedMethod` (`selectedMethodId` resolved against the scoped `methods` list,\n * carrying the full validator — specs/payment-section-root.md's contract table names T8 as the\n * consumer of exactly these two flags on that field). `resolveCardholderDocument` combines the two\n * halves; the submit gate and the card capture read the same function.\n *\n * Declares no fragment of its own: T5's merged `PaymentSectionData` fragment\n * (`matter/payment/payment.tsx`) already selects both flags, so this leaf reads them off context\n * instead of re-selecting them. The shipped precedent for a context-only, fragment-less payment\n * leaf is `SavedCardCvvField` (`matter/saved-cards/saved-cards.tsx`), deliberately absent from\n * `data-component-contract.test.ts`'s fragment-registration list for the same reason.\n *\n * The collected value is not sensitive — the RFC's \"The card-data submission channel\" section\n * names the cardholder document alongside the save-card flag/label as travelling on the ordinary\n * `draft`, never the submission registry — and is published via `setDraftDocument` on every\n * change, mirroring `CardEntry`'s own `setDraftBin` idiom (`card-entry.tsx`): no validation, no\n * dispatch, just keep the shared fact current. T7's `CardEntry` (merged) already folds\n * `draft.document` into its gateway card object, so this component's only job is keeping that\n * value current; it never itself calls `sendPayments` or registers a submission continuation.\n *\n * A store whose country resolves to no document type shows no field, refuses nothing and sends no\n * document (T42, Decision 7).\n */\n\n// ---------------------------------------------------------------------------\n// Props\n// ---------------------------------------------------------------------------\n\nexport type CardholderDocumentProps = Omit<\n ComponentPropsWithRef<'div'>,\n 'defaultValue' | 'value' | 'onChange' | 'onBlur' | 'ref'\n> & {\n label?: string;\n placeholder?: string;\n errorMessage?: string;\n /** Disables the input without hiding it — distinct from the data-driven presence gate below. */\n disabled?: boolean;\n /** Forwarded to `DocumentField`, which lands it on the `<input>`, not on the wrapper `<div>`. */\n ref?: Ref<HTMLInputElement>;\n};\n\n// ---------------------------------------------------------------------------\n// Definition\n// ---------------------------------------------------------------------------\n\nexport const CardholderDocumentDefinition = defineComponent<CardholderDocumentProps>({\n name: 'CardholderDocument',\n importPath: '@vtex/faststore/components',\n component: CardholderDocument,\n requiresContext: 'payment',\n editor: { label: 'Cardholder Document', category: 'commerce' },\n schema: {\n label: { type: 'string', label: 'Label' },\n placeholder: { type: 'string', label: 'Placeholder' },\n errorMessage: { type: 'string', label: 'Error message' },\n disabled: { type: 'boolean', default: false, label: 'Disabled' },\n },\n guideline:\n \"Cardholder tax-document field for the currently selected payment method: the store's country picks the document (SSN for the United States, CPF for Brazil, SIN for Canada, RFC for Mexico) with its own label, mask and validation, so leave label, placeholder and errorMessage unset unless the store serves one country. Renders only when that method's validator marks a document displayable and the country has a document type, and marks the input required when the validator marks the document required — the particle, not this leaf, decides whether a typed value is well-formed. Place as a sibling of CardEntry and SavedCards inside a PaymentSectionRoot or PaymentSectionController; renders nothing before a method is selected or when the selected method has no document to collect. The collected value is a plain draft fact — never a schema prop, a fragment field, or an action payload — and is unrelated to the shopper's saved profile document, which this component never reads. See cardholder-document.md.\",\n});\n\n// ---------------------------------------------------------------------------\n// Implementation\n// ---------------------------------------------------------------------------\n\nexport function CardholderDocument({\n label,\n placeholder,\n errorMessage,\n disabled = false,\n className,\n ref,\n ...props\n}: CardholderDocumentProps) {\n const {\n selectedMethod,\n countryDocumentType,\n draft,\n setDraftDocument,\n placing,\n cardPaymentCollapsed,\n registerRefusalFocus,\n } = usePayment();\n const inputRef = useRef<HTMLInputElement>(null);\n const composedRef = useComposedRef(ref, inputRef);\n // T42: the method decides whether to ask and whether the answer is mandatory, the country decides which\n // document. `null` — no method, a method that asks for nothing, or a country with no document type — is\n // no field at all.\n const documentRule = resolveCardholderDocument({ method: selectedMethod, countryDocumentType });\n const documentRequired = documentRule?.required ?? false;\n\n // Presence follows `documentDisplayable` alone (specs/payment-section-root.md's contract table),\n // never the entry path: the validator is resolved off the selected *method*, not off\n // `draft.path`, matching the merged T5 spec verbatim. See this task's own spec, § \"Decisions\",\n // for the measured, deliberately-not-fixed interaction this has with a saved-card selection.\n // T191 (FR-7, Decision 3): nothing renders while the card payment is collapsed either, whatever the\n // selected method's own validator says. The field re-seeds from `draft.document` when it comes back.\n // T192 (Decision 3): `isCardholderDocumentShown` is that condition, defined once — the submit gate\n // reads the same function, so it never asks for a document this field is not showing.\n const shown = isCardholderDocumentShown({ cardPaymentCollapsed, selectedMethod, countryDocumentType });\n\n // T212: while this field is on screen and can take focus, a refusal naming it may move focus here. The\n // function reads the live element at call time, so registering costs nothing per render, and it reports\n // whether focus really landed so the registry can fall through to another leaf.\n const canTakeFocus = shown && !disabled;\n useEffect(() => {\n if (!canTakeFocus) return;\n return registerRefusalFocus('cardholder-field', () => {\n const input = inputRef.current;\n if (!input) return false;\n input.focus();\n return input.ownerDocument.activeElement === input;\n });\n }, [canTakeFocus, registerRefusalFocus]);\n\n if (!shown || !documentRule) return null;\n const spec = DOCUMENTS[documentRule.type];\n\n return (\n <DocumentField\n // Keyed by type, so a type change remounts the particle and the mask of one type never meets the\n // value of another.\n key={documentRule.type}\n {...props}\n ref={composedRef}\n className={className}\n // T28: `Field.Root` (Base UI) forwards unknown native props onto its rendered element\n // (`document-field.tsx`'s own `{...props}` spread), so `inert`/`aria-disabled` land on the same\n // element `data-fs-cardholder-document` is on — there is no separate root of this component's own.\n inert={placing}\n aria-disabled={placing || undefined}\n documentType={documentRule.type}\n requirement={documentRequired ? 'mandatory' : 'optional'}\n // Re-seeds from the shared draft on every mount, so a shopper's already-typed value survives\n // this leaf unmounting and remounting (e.g. `documentDisplayable` flips off then on again as\n // network detection re-resolves mid-typing) instead of starting blank again. Uncontrolled —\n // `DocumentField` owns masking and blur validation from here; this component never re-applies\n // its own mask (Decision \"Uncontrolled composition, not a second masking implementation\").\n defaultValue={draft.document ?? ''}\n label={label ?? spec.name}\n placeholder={placeholder ?? spec.placeholder}\n errorMessage={errorMessage ?? `Invalid ${spec.name}`}\n disabled={disabled}\n onValueChange={(value) => setDraftDocument(value || null)}\n data-fs-cardholder-document=\"\"\n {...(documentRequired ? { 'data-fs-cardholder-document-required': '' } : {})}\n {...(placing ? { 'data-fs-cardholder-document-placing': '' } : {})}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;AA6DA,MAAa,+BAA+B,gBAAyC;CACnF,MAAM;CACN,YAAY;CACZ,WAAW;CACX,iBAAiB;CACjB,QAAQ;EAAE,OAAO;EAAuB,UAAU;CAAW;CAC7D,QAAQ;EACN,OAAO;GAAE,MAAM;GAAU,OAAO;EAAQ;EACxC,aAAa;GAAE,MAAM;GAAU,OAAO;EAAc;EACpD,cAAc;GAAE,MAAM;GAAU,OAAO;EAAgB;EACvD,UAAU;GAAE,MAAM;GAAW,SAAS;GAAO,OAAO;EAAW;CACjE;CACA,WACE;AACJ,CAAC;AAMD,SAAgB,mBAAmB,EACjC,OACA,aACA,cACA,WAAW,OACX,WACA,KACA,GAAG,SACuB;CAC1B,MAAM,EACJ,gBACA,qBACA,OACA,kBACA,SACA,sBACA,yBACE,WAAW;CACf,MAAM,WAAW,OAAyB,IAAI;CAC9C,MAAM,cAAc,eAAe,KAAK,QAAQ;CAIhD,MAAM,eAAe,0BAA0B;EAAE,QAAQ;EAAgB;CAAoB,CAAC;CAC9F,MAAM,mBAAmB,cAAc,YAAY;CAUnD,MAAM,QAAQ,0BAA0B;EAAE;EAAsB;EAAgB;CAAoB,CAAC;CAKrG,MAAM,eAAe,SAAS,CAAC;CAC/B,gBAAgB;EACd,IAAI,CAAC,cAAc;EACnB,OAAO,qBAAqB,0BAA0B;GACpD,MAAM,QAAQ,SAAS;GACvB,IAAI,CAAC,OAAO,OAAO;GACnB,MAAM,MAAM;GACZ,OAAO,MAAM,cAAc,kBAAkB;EAC/C,CAAC;CACH,GAAG,CAAC,cAAc,oBAAoB,CAAC;CAEvC,IAAI,CAAC,SAAS,CAAC,cAAc,OAAO;CACpC,MAAM,OAAO,UAAU,aAAa;CAEpC,OACE,oBAAC,eAAD;EAIE,GAAI;EACJ,KAAK;EACM;EAIX,OAAO;EACP,iBAAe,WAAW,KAAA;EAC1B,cAAc,aAAa;EAC3B,aAAa,mBAAmB,cAAc;EAM9C,cAAc,MAAM,YAAY;EAChC,OAAO,SAAS,KAAK;EACrB,aAAa,eAAe,KAAK;EACjC,cAAc,gBAAgB,WAAW,KAAK;EACpC;EACV,gBAAgB,UAAU,iBAAiB,SAAS,IAAI;EACxD,+BAA4B;EAC5B,GAAK,mBAAmB,EAAE,wCAAwC,GAAG,IAAI,CAAC;EAC1E,GAAK,UAAU,EAAE,uCAAuC,GAAG,IAAI,CAAC;CACjE,GAzBM,aAAa,IAyBnB;AAEL"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CartAlertIcon, CartAlertRoot, CartAlertText, CartAppliedCoupons, CartCheckoutGuard, CartContinueShopping, CartCount, CartCouponError, CartCouponForm, CartCouponRemove, CartDisclaimer, CartEmpty, CartEmptyMessage, CartError, CartFilled, CartGoCheckout, CartItemSkeleton, CartList, CartLoading, CartOpenOnAdd, CartRedirectOnAdd, CartRemoveUnavailable, CartRoot, CartTotal, CartUnavailableCount } from "./cart.js";
|
|
1
|
+
import { CartAlertIcon, CartAlertRoot, CartAlertText, CartAppliedCoupons, CartCheckoutGuard, CartContinueShopping, CartCount, CartCouponEmpty, CartCouponError, CartCouponForm, CartCouponRemove, CartCouponSavings, CartCouponUnmatched, CartDisclaimer, CartEmpty, CartEmptyMessage, CartError, CartFilled, CartGoCheckout, CartItemSkeleton, CartList, CartLoading, CartOpenOnAdd, CartRedirectOnAdd, CartRemoveUnavailable, CartRoot, CartTotal, CartUnavailableCount, ClearCartButton } from "./cart.js";
|
|
2
2
|
import { CartItemAvailable, CartItemDiscountPercentage, CartItemGift, CartItemImage, CartItemLineTotal, CartItemListPrice, CartItemName, CartItemPrice, CartItemProductLink, CartItemQuantity, CartItemQuantityValue, CartItemRemove, CartItemRoot, CartItemSku, CartItemUnavailable, CartItemVariant } from "../cart-item/cart-item.js";
|
|
3
3
|
//#region src/matter/cart/cart-namespace.d.ts
|
|
4
4
|
export declare const Cart: {
|
|
@@ -28,6 +28,7 @@ export declare const Cart: {
|
|
|
28
28
|
CheckoutGuard: typeof CartCheckoutGuard;
|
|
29
29
|
UnavailableCount: typeof CartUnavailableCount;
|
|
30
30
|
RemoveUnavailable: typeof CartRemoveUnavailable;
|
|
31
|
+
ClearCart: typeof ClearCartButton;
|
|
31
32
|
OpenOnAdd: typeof CartOpenOnAdd;
|
|
32
33
|
RedirectOnAdd: typeof CartRedirectOnAdd;
|
|
33
34
|
Loading: typeof CartLoading;
|
|
@@ -40,6 +41,9 @@ export declare const Cart: {
|
|
|
40
41
|
AppliedCoupons: typeof CartAppliedCoupons;
|
|
41
42
|
CouponRemove: typeof CartCouponRemove;
|
|
42
43
|
CouponError: typeof CartCouponError;
|
|
44
|
+
CouponEmpty: typeof CartCouponEmpty;
|
|
45
|
+
CouponSavings: typeof CartCouponSavings;
|
|
46
|
+
CouponUnmatched: typeof CartCouponUnmatched;
|
|
43
47
|
AlertRoot: typeof CartAlertRoot;
|
|
44
48
|
AlertIcon: typeof CartAlertIcon;
|
|
45
49
|
AlertText: typeof CartAlertText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CartAlertIcon, CartAlertRoot, CartAlertText, CartAppliedCoupons, CartCheckoutGuard, CartContinueShopping, CartCount, CartCouponError, CartCouponForm, CartCouponRemove, CartDisclaimer, CartEmpty, CartEmptyMessage, CartError, CartFilled, CartGoCheckout, CartItemSkeleton, CartList, CartLoading, CartOpenOnAdd, CartRedirectOnAdd, CartRemoveUnavailable, CartRoot, CartTotal, CartUnavailableCount } from "./cart.js";
|
|
1
|
+
import { CartAlertIcon, CartAlertRoot, CartAlertText, CartAppliedCoupons, CartCheckoutGuard, CartContinueShopping, CartCount, CartCouponEmpty, CartCouponError, CartCouponForm, CartCouponRemove, CartCouponSavings, CartCouponUnmatched, CartDisclaimer, CartEmpty, CartEmptyMessage, CartError, CartFilled, CartGoCheckout, CartItemSkeleton, CartList, CartLoading, CartOpenOnAdd, CartRedirectOnAdd, CartRemoveUnavailable, CartRoot, CartTotal, CartUnavailableCount, ClearCartButton } from "./cart.js";
|
|
2
2
|
import { CartItemAvailable, CartItemDiscountPercentage, CartItemGift, CartItemImage, CartItemLineTotal, CartItemListPrice, CartItemName, CartItemPrice, CartItemProductLink, CartItemQuantity, CartItemQuantityValue, CartItemRemove, CartItemRoot, CartItemSku, CartItemUnavailable, CartItemVariant } from "../cart-item/cart-item.js";
|
|
3
3
|
//#region src/matter/cart/cart-namespace.ts
|
|
4
4
|
const Cart = {
|
|
@@ -28,6 +28,7 @@ const Cart = {
|
|
|
28
28
|
CheckoutGuard: CartCheckoutGuard,
|
|
29
29
|
UnavailableCount: CartUnavailableCount,
|
|
30
30
|
RemoveUnavailable: CartRemoveUnavailable,
|
|
31
|
+
ClearCart: ClearCartButton,
|
|
31
32
|
OpenOnAdd: CartOpenOnAdd,
|
|
32
33
|
RedirectOnAdd: CartRedirectOnAdd,
|
|
33
34
|
Loading: CartLoading,
|
|
@@ -40,6 +41,9 @@ const Cart = {
|
|
|
40
41
|
AppliedCoupons: CartAppliedCoupons,
|
|
41
42
|
CouponRemove: CartCouponRemove,
|
|
42
43
|
CouponError: CartCouponError,
|
|
44
|
+
CouponEmpty: CartCouponEmpty,
|
|
45
|
+
CouponSavings: CartCouponSavings,
|
|
46
|
+
CouponUnmatched: CartCouponUnmatched,
|
|
43
47
|
AlertRoot: CartAlertRoot,
|
|
44
48
|
AlertIcon: CartAlertIcon,
|
|
45
49
|
AlertText: CartAlertText
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-namespace.js","names":[],"sources":["../../../src/matter/cart/cart-namespace.ts"],"sourcesContent":["import {\n CartItemAvailable,\n CartItemDiscountPercentage,\n CartItemGift,\n CartItemImage,\n CartItemLineTotal,\n CartItemListPrice,\n CartItemName,\n CartItemPrice,\n CartItemProductLink,\n CartItemQuantity,\n CartItemQuantityValue,\n CartItemRemove,\n CartItemRoot,\n CartItemSku,\n CartItemUnavailable,\n CartItemVariant,\n} from '../cart-item/cart-item.js';\nimport {\n CartAlertIcon,\n CartAlertRoot,\n CartAlertText,\n CartAppliedCoupons,\n CartCheckoutGuard,\n CartContinueShopping,\n CartCount,\n CartCouponError,\n CartCouponForm,\n CartCouponRemove,\n CartDisclaimer,\n CartEmpty,\n CartEmptyMessage,\n CartError,\n CartFilled,\n CartGoCheckout,\n CartItemSkeleton,\n CartList,\n CartLoading,\n CartOpenOnAdd,\n CartRedirectOnAdd,\n CartRemoveUnavailable,\n CartRoot,\n CartTotal,\n CartUnavailableCount,\n} from './cart.js';\n\n// The `Cart.*` namespace combines the aggregate components (matter/cart) with the line-item\n// components (matter/cart-item). It lives in its own module so neither matter file imports the\n// other, keeping the read root and its per-item line template decoupled (ADR-0012 Option B).\nexport const Cart = {\n Root: CartRoot,\n List: CartList,\n ItemRoot: CartItemRoot,\n ItemImage: CartItemImage,\n ItemProductLink: CartItemProductLink,\n ItemName: CartItemName,\n ItemVariant: CartItemVariant,\n ItemSku: CartItemSku,\n ItemPrice: CartItemPrice,\n ItemListPrice: CartItemListPrice,\n ItemDiscountPercentage: CartItemDiscountPercentage,\n ItemLineTotal: CartItemLineTotal,\n ItemQuantity: CartItemQuantity,\n ItemQuantityValue: CartItemQuantityValue,\n ItemRemove: CartItemRemove,\n ItemAvailable: CartItemAvailable,\n ItemUnavailable: CartItemUnavailable,\n ItemGift: CartItemGift,\n ItemSkeleton: CartItemSkeleton,\n Total: CartTotal,\n Count: CartCount,\n Error: CartError,\n GoCheckout: CartGoCheckout,\n CheckoutGuard: CartCheckoutGuard,\n UnavailableCount: CartUnavailableCount,\n RemoveUnavailable: CartRemoveUnavailable,\n OpenOnAdd: CartOpenOnAdd,\n RedirectOnAdd: CartRedirectOnAdd,\n Loading: CartLoading,\n Empty: CartEmpty,\n EmptyMessage: CartEmptyMessage,\n ContinueShopping: CartContinueShopping,\n Filled: CartFilled,\n Disclaimer: CartDisclaimer,\n CouponForm: CartCouponForm,\n AppliedCoupons: CartAppliedCoupons,\n CouponRemove: CartCouponRemove,\n CouponError: CartCouponError,\n AlertRoot: CartAlertRoot,\n AlertIcon: CartAlertIcon,\n AlertText: CartAlertText,\n};\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart-namespace.js","names":[],"sources":["../../../src/matter/cart/cart-namespace.ts"],"sourcesContent":["import {\n CartItemAvailable,\n CartItemDiscountPercentage,\n CartItemGift,\n CartItemImage,\n CartItemLineTotal,\n CartItemListPrice,\n CartItemName,\n CartItemPrice,\n CartItemProductLink,\n CartItemQuantity,\n CartItemQuantityValue,\n CartItemRemove,\n CartItemRoot,\n CartItemSku,\n CartItemUnavailable,\n CartItemVariant,\n} from '../cart-item/cart-item.js';\nimport {\n CartAlertIcon,\n CartAlertRoot,\n CartAlertText,\n CartAppliedCoupons,\n CartCheckoutGuard,\n CartContinueShopping,\n CartCount,\n CartCouponEmpty,\n CartCouponError,\n CartCouponForm,\n CartCouponRemove,\n CartCouponSavings,\n CartCouponUnmatched,\n CartDisclaimer,\n CartEmpty,\n CartEmptyMessage,\n CartError,\n CartFilled,\n CartGoCheckout,\n CartItemSkeleton,\n CartList,\n CartLoading,\n CartOpenOnAdd,\n CartRedirectOnAdd,\n CartRemoveUnavailable,\n CartRoot,\n CartTotal,\n CartUnavailableCount,\n ClearCartButton,\n} from './cart.js';\n\n// The `Cart.*` namespace combines the aggregate components (matter/cart) with the line-item\n// components (matter/cart-item). It lives in its own module so neither matter file imports the\n// other, keeping the read root and its per-item line template decoupled (ADR-0012 Option B).\nexport const Cart = {\n Root: CartRoot,\n List: CartList,\n ItemRoot: CartItemRoot,\n ItemImage: CartItemImage,\n ItemProductLink: CartItemProductLink,\n ItemName: CartItemName,\n ItemVariant: CartItemVariant,\n ItemSku: CartItemSku,\n ItemPrice: CartItemPrice,\n ItemListPrice: CartItemListPrice,\n ItemDiscountPercentage: CartItemDiscountPercentage,\n ItemLineTotal: CartItemLineTotal,\n ItemQuantity: CartItemQuantity,\n ItemQuantityValue: CartItemQuantityValue,\n ItemRemove: CartItemRemove,\n ItemAvailable: CartItemAvailable,\n ItemUnavailable: CartItemUnavailable,\n ItemGift: CartItemGift,\n ItemSkeleton: CartItemSkeleton,\n Total: CartTotal,\n Count: CartCount,\n Error: CartError,\n GoCheckout: CartGoCheckout,\n CheckoutGuard: CartCheckoutGuard,\n UnavailableCount: CartUnavailableCount,\n RemoveUnavailable: CartRemoveUnavailable,\n ClearCart: ClearCartButton,\n OpenOnAdd: CartOpenOnAdd,\n RedirectOnAdd: CartRedirectOnAdd,\n Loading: CartLoading,\n Empty: CartEmpty,\n EmptyMessage: CartEmptyMessage,\n ContinueShopping: CartContinueShopping,\n Filled: CartFilled,\n Disclaimer: CartDisclaimer,\n CouponForm: CartCouponForm,\n AppliedCoupons: CartAppliedCoupons,\n CouponRemove: CartCouponRemove,\n CouponError: CartCouponError,\n CouponEmpty: CartCouponEmpty,\n CouponSavings: CartCouponSavings,\n CouponUnmatched: CartCouponUnmatched,\n AlertRoot: CartAlertRoot,\n AlertIcon: CartAlertIcon,\n AlertText: CartAlertText,\n};\n"],"mappings":";;;AAqDA,MAAa,OAAO;CAClB,MAAM;CACN,MAAM;CACN,UAAU;CACV,WAAW;CACX,iBAAiB;CACjB,UAAU;CACV,aAAa;CACb,SAAS;CACT,WAAW;CACX,eAAe;CACf,wBAAwB;CACxB,eAAe;CACf,cAAc;CACd,mBAAmB;CACnB,YAAY;CACZ,eAAe;CACf,iBAAiB;CACjB,UAAU;CACV,cAAc;CACd,OAAO;CACP,OAAO;CACP,OAAO;CACP,YAAY;CACZ,eAAe;CACf,kBAAkB;CAClB,mBAAmB;CACnB,WAAW;CACX,WAAW;CACX,eAAe;CACf,SAAS;CACT,OAAO;CACP,cAAc;CACd,kBAAkB;CAClB,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,gBAAgB;CAChB,cAAc;CACd,aAAa;CACb,aAAa;CACb,eAAe;CACf,iBAAiB;CACjB,WAAW;CACX,WAAW;CACX,WAAW;AACb"}
|
|
@@ -2,6 +2,7 @@ import { ContentValue } from "../../core/dist/define-content-type.js";
|
|
|
2
2
|
import { ComponentDefinition } from "../../core/dist/define-component.js";
|
|
3
3
|
import "../../core/dist/index.js";
|
|
4
4
|
import "../../sdk/generated/graphql.js";
|
|
5
|
+
import { PageRef } from "../../sdk/navigation/types.js";
|
|
5
6
|
import { CartEntity } from "../../sdk/cart/operations.js";
|
|
6
7
|
import { ComponentActions } from "../../sdk/actions/types.js";
|
|
7
8
|
import { NavigationLinkProps } from "../../particles/navigation-link/navigation-link.js";
|
|
@@ -58,6 +59,8 @@ export type CartRootProps = ComponentPropsWithRef<'div'> & {
|
|
|
58
59
|
* session, or `orderFormIdVar` is still null).
|
|
59
60
|
*/
|
|
60
61
|
$data?: CartEntity | null;
|
|
62
|
+
/** Injected by the compiler from `actions: { cart: ['syncSalesChannel'] }`. */
|
|
63
|
+
$actions?: ComponentActions;
|
|
61
64
|
};
|
|
62
65
|
export type CartListProps = ComponentPropsWithRef<'div'> & {
|
|
63
66
|
/** Number of CartItemSkeleton rows to render while the cart is still loading (FR-7). */
|
|
@@ -67,11 +70,14 @@ export type CartTotalProps = ComponentPropsWithRef<'span'> & {
|
|
|
67
70
|
label?: string;
|
|
68
71
|
};
|
|
69
72
|
export type CartCountProps = ComponentPropsWithRef<'span'> & {
|
|
73
|
+
/** Output format; `{count}` is replaced by the count. Used for every count without a `templateOne` match. */
|
|
70
74
|
template?: string;
|
|
75
|
+
/** Output format used only when the count is exactly 1; falls back to `template` when unset or blank. */
|
|
76
|
+
templateOne?: string;
|
|
71
77
|
};
|
|
72
78
|
export type CartErrorProps = ComponentPropsWithRef<'div'>;
|
|
73
79
|
export type CartGoCheckoutProps = Omit<NavigationLinkProps, 'href' | '$content'> & {
|
|
74
|
-
href?: string;
|
|
80
|
+
href?: PageRef | string;
|
|
75
81
|
/** Authored fallback for the button label; `children` still works for stores that label it there. */
|
|
76
82
|
label?: string;
|
|
77
83
|
/** Merchant-authored label, sliced from the page/layout content entry; wins over the label prop and
|
|
@@ -83,6 +89,8 @@ export type CartGoCheckoutProps = Omit<NavigationLinkProps, 'href' | '$content'>
|
|
|
83
89
|
export type CartCouponFormProps = ComponentPropsWithRef<'form'> & {
|
|
84
90
|
placeholder?: string;
|
|
85
91
|
applyLabel?: string;
|
|
92
|
+
/** Title of the toast raised after an apply whose code comes back matched; blank raises none. */
|
|
93
|
+
appliedMessage?: string;
|
|
86
94
|
/** Injected by the compiler from `actions: { cart: ['applyCoupon'] }`; the cart write surface. */
|
|
87
95
|
$actions?: ComponentActions;
|
|
88
96
|
};
|
|
@@ -100,6 +108,15 @@ export type CartCouponRemoveProps = ComponentPropsWithRef<'button'> & {
|
|
|
100
108
|
$actions?: ComponentActions;
|
|
101
109
|
};
|
|
102
110
|
export type CartCouponErrorProps = ComponentPropsWithRef<'div'>;
|
|
111
|
+
export type CartCouponEmptyProps = ComponentPropsWithRef<'div'>;
|
|
112
|
+
export type CartCouponUnmatchedProps = ComponentPropsWithRef<'output'> & {
|
|
113
|
+
/** Notice copy shown while the enclosing chip's coupon is unmatched; blank renders nothing. */
|
|
114
|
+
message?: string;
|
|
115
|
+
};
|
|
116
|
+
export type CartCouponSavingsProps = Omit<ComponentPropsWithRef<'span'>, 'children'> & {
|
|
117
|
+
/** Chip text; every `{amount}` is the formatted saving, every `{code}` the chip's code. Blank counts as unset. */
|
|
118
|
+
template?: string;
|
|
119
|
+
};
|
|
103
120
|
export type CartDisclaimerProps = ComponentPropsWithRef<'p'> & {
|
|
104
121
|
/**
|
|
105
122
|
* Authored fallback, rendered when no CMS entry supplies the notice. Ranks below `children`:
|
|
@@ -128,6 +145,12 @@ export type CartContinueShoppingProps = ComponentPropsWithRef<'button'> & {
|
|
|
128
145
|
export type CartUnavailableCountProps = ComponentPropsWithRef<'span'> & {
|
|
129
146
|
/** Output format; `{count}` is replaced by the integer count. */
|
|
130
147
|
template?: string;
|
|
148
|
+
/** Output format used only when exactly one line is unavailable; falls back to `template` when unset or blank. */
|
|
149
|
+
templateOne?: string;
|
|
150
|
+
};
|
|
151
|
+
export type ClearCartButtonProps = ComponentPropsWithRef<'button'> & {
|
|
152
|
+
/** Injected by the compiler from `actions: { cart: ['removeItems'] }`; the cart write surface. */
|
|
153
|
+
$actions?: ComponentActions;
|
|
131
154
|
};
|
|
132
155
|
export type CartRemoveUnavailableProps = ComponentPropsWithRef<'button'> & {
|
|
133
156
|
/** Injected by the compiler from `actions: { cart: ['removeItems'] }`; the cart write surface. */
|
|
@@ -139,7 +162,7 @@ export type CartOpenOnAddProps = {
|
|
|
139
162
|
$actions?: ComponentActions;
|
|
140
163
|
};
|
|
141
164
|
export type CartRedirectOnAddProps = {
|
|
142
|
-
href?: string;
|
|
165
|
+
href?: PageRef | string;
|
|
143
166
|
children?: ReactNode;
|
|
144
167
|
};
|
|
145
168
|
export declare const CartDataContext: React.Context<CartDataContextValue>;
|
|
@@ -162,25 +185,33 @@ export declare const CartCouponFormDefinition: ComponentDefinition<CartCouponFor
|
|
|
162
185
|
export declare const CartAppliedCouponsDefinition: ComponentDefinition<CartAppliedCouponsProps>;
|
|
163
186
|
export declare const CartCouponRemoveDefinition: ComponentDefinition<CartCouponRemoveProps>;
|
|
164
187
|
export declare const CartCouponErrorDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
165
|
-
export declare
|
|
188
|
+
export declare const CartCouponEmptyDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
189
|
+
export declare const CartCouponUnmatchedDefinition: ComponentDefinition<CartCouponUnmatchedProps>;
|
|
190
|
+
export declare const CartCouponSavingsDefinition: ComponentDefinition<CartCouponSavingsProps>;
|
|
191
|
+
export declare function CartRoot({ $data: $dataProp, $actions: $actionsProp, className, children, ...props }: CartRootProps): import("react/jsx-runtime").JSX.Element;
|
|
166
192
|
export declare function CartList({ className, children, skeletonCount, ...props }: CartListProps): import("react/jsx-runtime").JSX.Element;
|
|
167
193
|
export declare function CartTotal({ label, className, children, ...props }: CartTotalProps): import("react/jsx-runtime").JSX.Element;
|
|
168
|
-
export declare function CartCount({ className, children, template, ...props }: CartCountProps): import("react/jsx-runtime").JSX.Element;
|
|
194
|
+
export declare function CartCount({ className, children, template, templateOne, ...props }: CartCountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
169
195
|
export declare function CartError({ className, children, ...props }: CartErrorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
170
196
|
export declare function CartGoCheckout({ href, label, className, children, onClick, $content, $actions: $actionsProp, ...props }: CartGoCheckoutProps): import("react/jsx-runtime").JSX.Element;
|
|
171
|
-
export declare function CartCouponForm({ placeholder, applyLabel, className, children, onSubmit, $actions: $actionsProp, ...props }: CartCouponFormProps): import("react/jsx-runtime").JSX.Element;
|
|
197
|
+
export declare function CartCouponForm({ placeholder, applyLabel, appliedMessage, className, children, onSubmit, $actions: $actionsProp, ...props }: CartCouponFormProps): import("react/jsx-runtime").JSX.Element;
|
|
172
198
|
export declare function CartAppliedCoupons({ className, children, $actions: $actionsProp, ...props }: CartAppliedCouponsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
173
199
|
export declare function CartCouponRemove({ code, className, children, onClick, $actions: $actionsProp, ...props }: CartCouponRemoveProps): import("react/jsx-runtime").JSX.Element;
|
|
174
200
|
export declare function CartCouponError({ className, children, ...props }: CartCouponErrorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
201
|
+
export declare function CartCouponEmpty({ className, children, ...props }: CartCouponEmptyProps): import("react/jsx-runtime").JSX.Element | null;
|
|
202
|
+
export declare function CartCouponUnmatched({ message, className, children, ...props }: CartCouponUnmatchedProps): import("react/jsx-runtime").JSX.Element | null;
|
|
203
|
+
export declare function CartCouponSavings({ className, template, ...props }: CartCouponSavingsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
175
204
|
export declare const CartCheckoutGuardDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
176
205
|
export declare const CartLoadingDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
177
206
|
export declare const CartEmptyDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
178
207
|
export declare const CartFilledDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
179
208
|
export declare const CartUnavailableCountDefinition: ComponentDefinition<CartUnavailableCountProps>;
|
|
180
209
|
export declare const CartRemoveUnavailableDefinition: ComponentDefinition<CartRemoveUnavailableProps>;
|
|
210
|
+
export declare const ClearCartButtonDefinition: ComponentDefinition<ClearCartButtonProps>;
|
|
181
211
|
export declare function CartCheckoutGuard({ className, children, ...props }: CartCheckoutGuardProps): import("react/jsx-runtime").JSX.Element;
|
|
182
|
-
export declare function CartUnavailableCount({ className, children, template, ...props }: CartUnavailableCountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
212
|
+
export declare function CartUnavailableCount({ className, children, template, templateOne, ...props }: CartUnavailableCountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
183
213
|
export declare function CartRemoveUnavailable({ className, children, onClick, $actions: $actionsProp, ...props }: CartRemoveUnavailableProps): import("react/jsx-runtime").JSX.Element | null;
|
|
214
|
+
export declare function ClearCartButton({ className, children, disabled, onClick, $actions: $actionsProp, ...props }: ClearCartButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
184
215
|
export declare const CartOpenOnAddDefinition: ComponentDefinition<CartOpenOnAddProps>;
|
|
185
216
|
export declare const CartRedirectOnAddDefinition: ComponentDefinition<CartRedirectOnAddProps>;
|
|
186
217
|
/**
|
|
@@ -198,6 +229,10 @@ export declare function CartOpenOnAdd({ children, $actions: $actionsProp }: Cart
|
|
|
198
229
|
* redirect is post-resolve and success-gated. The initial `0` is ignored, so a fresh mount never
|
|
199
230
|
* navigates. Context-free — no `CartRoot` ancestor (ADR-0010). Renders its passthrough children (or
|
|
200
231
|
* nothing); it carries no drawer.
|
|
232
|
+
*
|
|
233
|
+
* The effect keys on the serialized `href`, not on its identity: a reference authored in a schema
|
|
234
|
+
* arrives as a new object on every server render, and keying on it would push to checkout again on a
|
|
235
|
+
* `router.refresh()` long after the add.
|
|
201
236
|
*/
|
|
202
237
|
export declare function CartRedirectOnAdd({ href, children }: CartRedirectOnAddProps): ReactNode;
|
|
203
238
|
export declare function CartLoading({ className, children, ...props }: CartLoadingProps): import("react/jsx-runtime").JSX.Element | null;
|