@vtex/faststore 0.0.10 → 0.0.12
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 +55 -0
- package/README.md +0 -1
- package/dist/_virtual/_rolldown/runtime.js +4 -0
- package/dist/actions.json +6 -1
- package/dist/catalog.json +789 -1701
- package/dist/cli/index.d.ts +66 -28
- package/dist/cli/index.js +7371 -512
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/server-runtime.js +41 -60
- package/dist/cli/server-runtime.js.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +2 -2
- package/dist/components.d.ts +63 -57
- package/dist/components.js +60 -54
- package/dist/content-types.json +5785 -754
- package/dist/core/dist/define-component.d.ts +1 -1
- package/dist/core/dist/define-content-type.d.ts +50 -2
- package/dist/core/dist/define-content-type.js +107 -3
- package/dist/core/dist/define-content-type.js.map +1 -1
- package/dist/core/dist/index.d.ts +2 -2
- package/dist/docs/access-code-field.md +1 -1
- package/dist/docs/access-code-sign-in.md +126 -77
- package/dist/docs/account-address-book.md +210 -95
- package/dist/docs/account-menu.md +14 -15
- package/dist/docs/account-saved-cards.md +44 -39
- package/dist/docs/alert-dialog.md +3 -1
- package/dist/docs/avatar.md +4 -2
- package/dist/docs/billing-address.md +99 -30
- package/dist/docs/binding-switcher.md +5 -2
- package/dist/docs/buy-button.md +7 -8
- package/dist/docs/card-entry.md +39 -26
- package/dist/docs/card-summary.md +18 -8
- package/dist/docs/cardholder-document.md +5 -3
- package/dist/docs/carousel.md +5 -4
- package/dist/docs/cart-destination.md +39 -26
- package/dist/docs/cart-item.md +29 -14
- package/dist/docs/cart-totalizer.md +7 -5
- package/dist/docs/cart.md +135 -41
- package/dist/docs/challenge-return.md +135 -0
- package/dist/docs/client-preferences-fieldset.md +10 -5
- package/dist/docs/client-preferences.md +31 -8
- package/dist/docs/client-profile-fieldset.md +20 -6
- package/dist/docs/client-profile.md +12 -3
- package/dist/docs/copy-text.md +9 -7
- package/dist/docs/document-field.md +1 -1
- package/dist/docs/email-field.md +2 -1
- package/dist/docs/email-identification.md +12 -2
- package/dist/docs/footer-copyright.md +4 -2
- package/dist/docs/form.md +54 -18
- package/dist/docs/free-shipping-progress.md +6 -5
- package/dist/docs/identity-edit.md +8 -2
- package/dist/docs/identity-summary.md +18 -5
- package/dist/docs/installments.md +46 -32
- package/dist/docs/my-account-profile.md +16 -11
- package/dist/docs/navigation-link.md +5 -3
- package/dist/docs/order-cancel.md +3 -1
- package/dist/docs/order-delivery-address.md +7 -5
- package/dist/docs/order-delivery-group.md +1 -3
- package/dist/docs/order-details-back.md +1 -1
- package/dist/docs/order-details-header.md +1 -4
- package/dist/docs/order-invoice-download.md +60 -0
- package/dist/docs/order-list-row.md +1 -1
- package/dist/docs/order-list-search.md +13 -20
- package/dist/docs/order-list-views.md +11 -17
- package/dist/docs/order-list.md +12 -5
- package/dist/docs/order-payment.md +9 -7
- package/dist/docs/order-placed-date.md +1 -1
- package/dist/docs/order-placed-payment-summary.md +28 -15
- package/dist/docs/order-placed.md +49 -14
- package/dist/docs/order-progress.md +1 -1
- package/dist/docs/order-status-badge.md +20 -9
- package/dist/docs/order-summary.md +2 -2
- package/dist/docs/order-tracking-link.md +58 -0
- package/dist/docs/payment-method-badges.md +30 -4
- package/dist/docs/payment-methods.md +1 -1
- package/dist/docs/payment.md +36 -17
- package/dist/docs/phone-field.md +4 -4
- package/dist/docs/place-order.md +84 -36
- package/dist/docs/postal-code-field.md +3 -1
- package/dist/docs/pricing.md +21 -23
- package/dist/docs/product-gallery.md +19 -20
- package/dist/docs/product-information.md +13 -9
- package/dist/docs/product-list.md +7 -6
- package/dist/docs/product-shelf.md +0 -1
- package/dist/docs/promotion.md +4 -2
- package/dist/docs/region.md +23 -15
- package/dist/docs/save-card.md +7 -6
- package/dist/docs/saved-cards.md +65 -36
- package/dist/docs/shipping-address.md +57 -21
- package/dist/docs/shipping-simulator.md +53 -15
- package/dist/docs/sign-in-disclosure.md +176 -0
- package/dist/docs/sign-in-form.md +78 -47
- package/dist/docs/sign-in-redirect.md +4 -2
- package/dist/docs/sign-in.md +173 -0
- package/dist/docs/toast.md +15 -4
- package/dist/docs/variant-selector.md +15 -11
- package/dist/domain-logic/dist/checkout/rules.js +33 -0
- package/dist/domain-logic/dist/checkout/rules.js.map +1 -0
- package/dist/graphql/types.d.ts +4 -14
- package/dist/index.d.ts +2 -2
- package/dist/internal/client.d.ts +1 -3
- package/dist/internal/client.js +1 -1
- package/dist/internal/server.d.ts +7 -4
- package/dist/internal/server.js +7 -4
- package/dist/matter/access-code-sign-in/access-code-sign-in.d.ts +250 -66
- package/dist/matter/access-code-sign-in/access-code-sign-in.js +459 -188
- package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-delete.d.ts +78 -40
- package/dist/matter/account-address-book/account-address-book-delete.js +86 -50
- package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +21 -4
- package/dist/matter/account-address-book/account-address-book-deliverability.js +45 -17
- package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +74 -19
- package/dist/matter/account-address-book/account-address-book-form-parts.js +77 -26
- package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +27 -6
- package/dist/matter/account-address-book/account-address-book-profile-notice.js +55 -28
- package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book.d.ts +67 -14
- package/dist/matter/account-address-book/account-address-book.js +74 -33
- package/dist/matter/account-address-book/account-address-book.js.map +1 -1
- package/dist/matter/account-address-book/account-address-country-switch.js +3 -3
- package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -1
- package/dist/matter/account-address-book/account-address-country.d.ts +66 -20
- package/dist/matter/account-address-book/account-address-country.js +83 -49
- package/dist/matter/account-address-book/account-address-country.js.map +1 -1
- package/dist/matter/account-address-book/account-address-form-context.d.ts +8 -4
- package/dist/matter/account-address-book/account-address-form-context.js.map +1 -1
- package/dist/matter/account-address-book/account-address-form.d.ts +468 -45
- package/dist/matter/account-address-book/account-address-form.js +518 -155
- package/dist/matter/account-address-book/account-address-form.js.map +1 -1
- package/dist/matter/account-address-book/account-address-record.d.ts +27 -6
- package/dist/matter/account-address-book/account-address-record.js +32 -17
- package/dist/matter/account-address-book/account-address-record.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +34 -17
- package/dist/matter/account-menu/account-menu.js +46 -54
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/account-menu-identity/account-menu-identity.js +1 -1
- package/dist/matter/account-saved-cards/account-saved-cards.d.ts +108 -28
- package/dist/matter/account-saved-cards/account-saved-cards.js +177 -122
- package/dist/matter/account-saved-cards/account-saved-cards.js.map +1 -1
- package/dist/matter/billing-address/billing-address.d.ts +156 -74
- package/dist/matter/billing-address/billing-address.js +227 -156
- package/dist/matter/billing-address/billing-address.js.map +1 -1
- package/dist/matter/breadcrumb/breadcrumb.d.ts +21 -3
- package/dist/matter/breadcrumb/breadcrumb.js +24 -9
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/matter/buy-button/buy-button.d.ts +8 -11
- package/dist/matter/buy-button/buy-button.js +10 -19
- package/dist/matter/buy-button/buy-button.js.map +1 -1
- package/dist/matter/card-entry/card-capture.js +12 -4
- package/dist/matter/card-entry/card-capture.js.map +1 -1
- package/dist/matter/card-entry/card-entry.d.ts +123 -32
- package/dist/matter/card-entry/card-entry.js +348 -221
- package/dist/matter/card-entry/card-entry.js.map +1 -1
- package/dist/matter/cart/cart-namespace.d.ts +7 -1
- package/dist/matter/cart/cart-namespace.js +7 -1
- package/dist/matter/cart/cart-namespace.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +402 -61
- package/dist/matter/cart/cart.js +624 -153
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-destination/cart-destination.d.ts +30 -19
- package/dist/matter/cart-destination/cart-destination.js +160 -70
- package/dist/matter/cart-destination/cart-destination.js.map +1 -1
- package/dist/matter/cart-item/cart-item.d.ts +144 -17
- package/dist/matter/cart-item/cart-item.js +166 -49
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/cart-item-compositions/cart-item-compositions.js +1 -1
- package/dist/matter/cart-item-compositions/cart-item-compositions.js.map +1 -1
- package/dist/matter/cart-item-customizations/cart-item-customizations.js +1 -1
- package/dist/matter/cart-item-customizations/cart-item-customizations.js.map +1 -1
- package/dist/matter/cart-item-discounts/cart-item-discounts.js +1 -1
- package/dist/matter/cart-item-discounts/cart-item-discounts.js.map +1 -1
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js +1 -1
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js.map +1 -1
- package/dist/matter/cart-item-variations/cart-item-variations.js +1 -1
- package/dist/matter/cart-item-variations/cart-item-variations.js.map +1 -1
- package/dist/matter/cart-totalizer/cart-totalizer.d.ts +43 -9
- package/dist/matter/cart-totalizer/cart-totalizer.js +46 -17
- package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -1
- package/dist/matter/challenge-return/challenge-return.d.ts +62 -0
- package/dist/matter/challenge-return/challenge-return.js +241 -0
- package/dist/matter/challenge-return/challenge-return.js.map +1 -0
- package/dist/matter/client-preferences/client-preferences-fieldset.d.ts +86 -17
- package/dist/matter/client-preferences/client-preferences-fieldset.js +126 -54
- package/dist/matter/client-preferences/client-preferences-fieldset.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences.d.ts +50 -7
- package/dist/matter/client-preferences/client-preferences.js +84 -15
- package/dist/matter/client-preferences/client-preferences.js.map +1 -1
- package/dist/matter/client-profile/client-profile.d.ts +44 -9
- package/dist/matter/client-profile/client-profile.js +64 -24
- package/dist/matter/client-profile/client-profile.js.map +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.d.ts +119 -22
- package/dist/matter/client-profile-form/client-profile-fieldset.js +161 -73
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options-accordion.d.ts +49 -4
- package/dist/matter/delivery-options/delivery-options-accordion.js +67 -14
- package/dist/matter/delivery-options/delivery-options-accordion.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options-controller.d.ts +69 -9
- package/dist/matter/delivery-options/delivery-options-controller.js +80 -14
- package/dist/matter/delivery-options/delivery-options-controller.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options.d.ts +37 -2
- package/dist/matter/delivery-options/delivery-options.js +75 -12
- package/dist/matter/delivery-options/delivery-options.js.map +1 -1
- package/dist/matter/delivery-options/use-delivery-option-selection.d.ts +1 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js +1 -1
- package/dist/matter/delivery-options/use-delivery-option-selection.js.map +1 -1
- package/dist/matter/email-identification/email-identification.d.ts +25 -3
- package/dist/matter/email-identification/email-identification.js +49 -12
- package/dist/matter/email-identification/email-identification.js.map +1 -1
- package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +79 -7
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +77 -20
- package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.d.ts +52 -10
- package/dist/matter/identity-edit/identity-edit.js +47 -19
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.d.ts +76 -22
- package/dist/matter/identity-summary/identity-summary.js +95 -45
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/installments/installments-select.d.ts +98 -16
- package/dist/matter/installments/installments-select.js +156 -48
- package/dist/matter/installments/installments-select.js.map +1 -1
- package/dist/matter/installments/installments.d.ts +96 -16
- package/dist/matter/installments/installments.js +115 -40
- package/dist/matter/installments/installments.js.map +1 -1
- package/dist/matter/installments/use-installments-selection.d.ts +1 -0
- package/dist/matter/installments/use-installments-selection.js +8 -3
- package/dist/matter/installments/use-installments-selection.js.map +1 -1
- package/dist/matter/my-account-profile/my-account-profile.d.ts +358 -103
- package/dist/matter/my-account-profile/my-account-profile.js +370 -174
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-cancel/order-cancel.d.ts +65 -19
- package/dist/matter/order-cancel/order-cancel.js +118 -51
- package/dist/matter/order-cancel/order-cancel.js.map +1 -1
- package/dist/matter/order-delivery-address/order-delivery-address.d.ts +8 -18
- package/dist/matter/order-delivery-address/order-delivery-address.js +14 -23
- package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -1
- package/dist/matter/order-delivery-group/order-delivery-group.d.ts +40 -24
- package/dist/matter/order-delivery-group/order-delivery-group.js +64 -74
- package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -1
- package/dist/matter/order-details-header/order-details-header.d.ts +32 -15
- package/dist/matter/order-details-header/order-details-header.js +66 -58
- package/dist/matter/order-details-header/order-details-header.js.map +1 -1
- package/dist/matter/order-invoice-download/order-invoice-download.d.ts +78 -0
- package/dist/matter/order-invoice-download/order-invoice-download.js +173 -0
- package/dist/matter/order-invoice-download/order-invoice-download.js.map +1 -0
- package/dist/matter/order-list/order-list.d.ts +164 -19
- package/dist/matter/order-list/order-list.js +229 -87
- package/dist/matter/order-list/order-list.js.map +1 -1
- package/dist/matter/order-list-row/order-list-row.d.ts +6 -1
- package/dist/matter/order-list-row/order-list-row.js +3 -2
- package/dist/matter/order-list-row/order-list-row.js.map +1 -1
- package/dist/matter/order-list-search/order-list-search.d.ts +18 -26
- package/dist/matter/order-list-search/order-list-search.js +30 -69
- package/dist/matter/order-list-search/order-list-search.js.map +1 -1
- package/dist/matter/order-list-views/order-list-views.d.ts +15 -22
- package/dist/matter/order-list-views/order-list-views.js +22 -68
- package/dist/matter/order-list-views/order-list-views.js.map +1 -1
- package/dist/matter/order-payment/order-payment.d.ts +33 -10
- package/dist/matter/order-payment/order-payment.js +44 -39
- package/dist/matter/order-payment/order-payment.js.map +1 -1
- package/dist/matter/order-placed/order-placed-deliveries.d.ts +144 -12
- package/dist/matter/order-placed/order-placed-deliveries.js +115 -40
- package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -1
- package/dist/matter/order-placed/order-placed.d.ts +198 -31
- package/dist/matter/order-placed/order-placed.js +230 -139
- package/dist/matter/order-placed/order-placed.js.map +1 -1
- package/dist/matter/order-placed-date/order-placed-date.d.ts +5 -8
- package/dist/matter/order-placed-date/order-placed-date.js +7 -8
- package/dist/matter/order-placed-date/order-placed-date.js.map +1 -1
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +90 -17
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +93 -117
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
- package/dist/matter/order-progress/order-progress.d.ts +19 -8
- package/dist/matter/order-progress/order-progress.js +37 -45
- package/dist/matter/order-progress/order-progress.js.map +1 -1
- package/dist/matter/order-summary/order-summary.d.ts +19 -9
- package/dist/matter/order-summary/order-summary.js +38 -44
- package/dist/matter/order-summary/order-summary.js.map +1 -1
- package/dist/matter/order-tracking-link/order-tracking-link.d.ts +43 -0
- package/dist/matter/order-tracking-link/order-tracking-link.js +107 -0
- package/dist/matter/order-tracking-link/order-tracking-link.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.js +17 -10
- package/dist/matter/payment/payment-card-capture.js.map +1 -1
- package/dist/matter/payment/payment-controller.d.ts +4 -2
- package/dist/matter/payment/payment-controller.js +30 -9
- package/dist/matter/payment/payment-controller.js.map +1 -1
- package/dist/matter/payment/payment-method-badges.js +1 -1
- package/dist/matter/payment/payment.d.ts +69 -19
- package/dist/matter/payment/payment.js +101 -35
- package/dist/matter/payment/payment.js.map +1 -1
- package/dist/matter/payment/use-payment-method-selection.d.ts +25 -4
- package/dist/matter/payment/use-payment-method-selection.js +94 -32
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
- package/dist/matter/payment/use-payment-submit-gate.d.ts +14 -3
- package/dist/matter/payment/use-payment-submit-gate.js +47 -8
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
- package/dist/matter/place-order/place-order.d.ts +171 -57
- package/dist/matter/place-order/place-order.js +376 -185
- package/dist/matter/place-order/place-order.js.map +1 -1
- package/dist/matter/pricing/pricing.d.ts +152 -13
- package/dist/matter/pricing/pricing.js +153 -52
- package/dist/matter/pricing/pricing.js.map +1 -1
- package/dist/matter/product-information/product-information.d.ts +27 -4
- package/dist/matter/product-information/product-information.js +32 -15
- package/dist/matter/product-information/product-information.js.map +1 -1
- package/dist/matter/product-list/product-list.d.ts +24 -6
- package/dist/matter/product-list/product-list.js +32 -26
- package/dist/matter/product-list/product-list.js.map +1 -1
- package/dist/matter/product-shelf/product-shelf.d.ts +1 -3
- package/dist/matter/product-shelf/product-shelf.js +2 -15
- package/dist/matter/product-shelf/product-shelf.js.map +1 -1
- package/dist/matter/region/region.d.ts +33 -16
- package/dist/matter/region/region.js +59 -52
- package/dist/matter/region/region.js.map +1 -1
- package/dist/matter/save-card/save-card.d.ts +43 -8
- package/dist/matter/save-card/save-card.js +61 -23
- package/dist/matter/save-card/save-card.js.map +1 -1
- package/dist/matter/saved-cards/saved-cards.d.ts +113 -21
- package/dist/matter/saved-cards/saved-cards.js +349 -77
- package/dist/matter/saved-cards/saved-cards.js.map +1 -1
- package/dist/matter/shipping-address/address-payload.js +25 -0
- package/dist/matter/shipping-address/address-payload.js.map +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +71 -71
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/library-country-descriptors.js +136 -0
- package/dist/matter/shipping-address/library-country-descriptors.js.map +1 -0
- package/dist/matter/shipping-address/shipping-address.d.ts +312 -45
- package/dist/matter/shipping-address/shipping-address.js +443 -188
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +250 -24
- package/dist/matter/shipping-simulator/shipping-simulator.js +257 -51
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/sign-in/sign-in.d.ts +108 -0
- package/dist/matter/sign-in/sign-in.js +285 -0
- package/dist/matter/sign-in/sign-in.js.map +1 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.d.ts +81 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.js +232 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.js.map +1 -0
- package/dist/matter/sign-in-form/sign-in-form.d.ts +93 -62
- package/dist/matter/sign-in-form/sign-in-form.js +134 -144
- package/dist/matter/sign-in-form/sign-in-form.js.map +1 -1
- package/dist/particles/binding-switcher/binding-switcher.d.ts +29 -8
- package/dist/particles/binding-switcher/binding-switcher.js +37 -26
- package/dist/particles/binding-switcher/binding-switcher.js.map +1 -1
- package/dist/particles/card-summary/card-summary.d.ts +38 -8
- package/dist/particles/card-summary/card-summary.js +55 -22
- package/dist/particles/card-summary/card-summary.js.map +1 -1
- package/dist/particles/carousel/carousel.d.ts +99 -11
- package/dist/particles/carousel/carousel.js +103 -35
- package/dist/particles/carousel/carousel.js.map +1 -1
- package/dist/particles/copy-text/copy-text.js +5 -15
- package/dist/particles/copy-text/copy-text.js.map +1 -1
- package/dist/particles/dialog/dialog.d.ts +14 -6
- package/dist/particles/dialog/dialog.js +6 -3
- package/dist/particles/dialog/dialog.js.map +1 -1
- package/dist/particles/drawer/drawer.js +1 -1
- package/dist/particles/drawer/drawer.js.map +1 -1
- package/dist/particles/email-field/email-field.d.ts +2 -1
- package/dist/particles/email-field/email-field.js +2 -1
- package/dist/particles/email-field/email-field.js.map +1 -1
- package/dist/particles/footer-link-group/footer-link-group.js +1 -0
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
- package/dist/particles/form/form.d.ts +85 -13
- package/dist/particles/form/form.js +91 -42
- package/dist/particles/form/form.js.map +1 -1
- package/dist/particles/gallery/gallery.d.ts +129 -12
- package/dist/particles/gallery/gallery.js +121 -34
- package/dist/particles/gallery/gallery.js.map +1 -1
- package/dist/particles/order-details-back/order-details-back.d.ts +5 -3
- package/dist/particles/order-details-back/order-details-back.js +8 -10
- package/dist/particles/order-details-back/order-details-back.js.map +1 -1
- package/dist/particles/order-status-badge/order-status-badge.d.ts +3 -3
- package/dist/particles/order-status-badge/order-status-badge.js +4 -20
- package/dist/particles/order-status-badge/order-status-badge.js.map +1 -1
- package/dist/particles/password-field/password-field.d.ts +1 -1
- package/dist/particles/password-field/password-field.js +2 -4
- package/dist/particles/password-field/password-field.js.map +1 -1
- package/dist/particles/phone-field/phone-field.d.ts +4 -4
- package/dist/particles/phone-field/phone-field.js +8 -11
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/spinner/spinner.d.ts +24 -4
- package/dist/particles/spinner/spinner.js +25 -9
- package/dist/particles/spinner/spinner.js.map +1 -1
- package/dist/particles/switch/switch.d.ts +4 -1
- package/dist/particles/switch/switch.js +3 -1
- package/dist/particles/switch/switch.js.map +1 -1
- package/dist/particles/toast/toast.d.ts +29 -3
- package/dist/particles/toast/toast.js +34 -10
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +164 -56
- package/dist/sdk/address/address-fields.js +4 -4
- package/dist/sdk/address/address-fields.js.map +1 -1
- package/dist/sdk/address/constants.js +1 -6
- package/dist/sdk/address/constants.js.map +1 -1
- package/dist/sdk/address/messages.js +44 -44
- package/dist/sdk/address/messages.js.map +1 -1
- package/dist/sdk/address/postal-code.js +15 -2
- package/dist/sdk/address/postal-code.js.map +1 -1
- package/dist/sdk/address/types.d.ts +5 -3
- package/dist/sdk/address/validate-address.js +3 -3
- package/dist/sdk/address/validate-address.js.map +1 -1
- package/dist/sdk/analytics/use-analytics-actions.d.ts +1 -1
- package/dist/sdk/analytics/use-analytics-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/data/index.js +2 -2
- package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
- package/dist/sdk/generated/gql.js +1 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +20 -5
- package/dist/sdk/generated/graphql.js +6 -0
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/format-error-code.js +23 -0
- package/dist/sdk/i18n/format-error-code.js.map +1 -0
- package/dist/sdk/i18n/message-formatter.d.ts +22 -0
- package/dist/sdk/i18n/message-formatter.js +140 -0
- package/dist/sdk/i18n/message-formatter.js.map +1 -0
- package/dist/sdk/i18n/use-message-formatter.d.ts +8 -0
- package/dist/sdk/i18n/use-message-formatter.js +18 -0
- package/dist/sdk/i18n/use-message-formatter.js.map +1 -0
- package/dist/sdk/identity/use-identity-actions.js.map +1 -1
- package/dist/sdk/navigation/redirect.d.ts +2 -0
- package/dist/sdk/navigation/redirect.js +19 -1
- package/dist/sdk/navigation/redirect.js.map +1 -1
- package/dist/sdk/navigation/types.d.ts +13 -0
- package/dist/sdk/payment/bin-format.js +21 -0
- package/dist/sdk/payment/bin-format.js.map +1 -0
- package/dist/sdk/payment/challenge-return.js +37 -0
- package/dist/sdk/payment/challenge-return.js.map +1 -0
- package/dist/sdk/payment/confirmation-last-four.js +39 -0
- package/dist/sdk/payment/confirmation-last-four.js.map +1 -0
- package/dist/sdk/payment/gateway.d.ts +1 -1
- package/dist/sdk/payment/gateway.js +8 -2
- package/dist/sdk/payment/gateway.js.map +1 -1
- package/dist/sdk/payment/operations.d.ts +1 -0
- package/dist/sdk/payment/operations.js +28 -6
- package/dist/sdk/payment/operations.js.map +1 -1
- package/dist/sdk/payment/resumed-purchase.d.ts +1 -0
- package/dist/sdk/payment/resumed-purchase.js +119 -0
- package/dist/sdk/payment/resumed-purchase.js.map +1 -0
- package/dist/sdk/payment/security-code-mask.js +16 -23
- package/dist/sdk/payment/security-code-mask.js.map +1 -1
- package/dist/sdk/payment/submission-registry.js +6 -2
- package/dist/sdk/payment/submission-registry.js.map +1 -1
- package/dist/sdk/payment/use-payment-actions.d.ts +18 -3
- package/dist/sdk/payment/use-payment-actions.js +23 -4
- package/dist/sdk/payment/use-payment-actions.js.map +1 -1
- package/dist/sdk/payment/use-place-order.d.ts +10 -2
- package/dist/sdk/payment/use-place-order.js +138 -76
- package/dist/sdk/payment/use-place-order.js.map +1 -1
- package/dist/sdk/provider/storefront-provider.d.ts +1 -7
- package/dist/sdk/provider/storefront-provider.js +4 -11
- package/dist/sdk/provider/storefront-provider.js.map +1 -1
- package/dist/sdk/seo/entity-landing.d.ts +24 -0
- package/dist/sdk/seo/entity-landing.js +30 -0
- package/dist/sdk/seo/entity-landing.js.map +1 -0
- package/dist/sdk/seo/page-alternates.d.ts +3 -2
- package/dist/sdk/seo/page-alternates.js +4 -2
- package/dist/sdk/seo/page-alternates.js.map +1 -1
- package/dist/sdk/seo/search-landing.d.ts +42 -0
- package/dist/sdk/seo/search-landing.js +85 -0
- package/dist/sdk/seo/search-landing.js.map +1 -0
- package/dist/sdk/session/mock-session.d.ts +9 -0
- package/dist/sdk/session/mock-session.js +31 -0
- package/dist/sdk/session/mock-session.js.map +1 -0
- package/dist/sdk/session/read-server-session.d.ts +3 -0
- package/dist/sdk/session/read-server-session.js +5 -0
- package/dist/sdk/session/read-server-session.js.map +1 -1
- package/dist/sdk/session/return-path-segment.d.ts +10 -0
- package/dist/sdk/session/return-path-segment.js +15 -0
- package/dist/sdk/session/return-path-segment.js.map +1 -0
- package/dist/sdk/session/use-session-actions.js.map +1 -1
- package/dist/sdk/shipping/use-cart-shipping-simulation.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-simulation.js.map +1 -1
- package/dist/utils/safe-href.d.ts +2 -0
- package/package.json +4 -3
- package/skills/storefront-asset/SKILL.md +2 -2
- package/skills/storefront-asset/references/api-side.md +27 -14
- package/skills/storefront-asset/references/findings.md +5 -2
- package/src/styles/tailwind.css +8 -0
- package/dist/matter/shipping-address/country-descriptors.d.ts +0 -1
- package/dist/message-locales.json +0 -7
- package/dist/sdk/i18n/client.d.ts +0 -4
- package/dist/sdk/i18n/client.js +0 -4
- package/dist/sdk/i18n/locales.d.ts +0 -8
- package/dist/sdk/i18n/locales.js +0 -57
- package/dist/sdk/i18n/locales.js.map +0 -1
- package/dist/sdk/i18n/messages/en-US.js +0 -183
- package/dist/sdk/i18n/messages/en-US.js.map +0 -1
- package/dist/sdk/i18n/messages/en-US.json +0 -178
- package/dist/sdk/i18n/messages/en-US.json.d.ts +0 -182
- package/dist/sdk/i18n/messages/es-ES.js +0 -183
- package/dist/sdk/i18n/messages/es-ES.js.map +0 -1
- package/dist/sdk/i18n/messages/es-ES.json +0 -178
- package/dist/sdk/i18n/messages/pt-BR.js +0 -183
- package/dist/sdk/i18n/messages/pt-BR.js.map +0 -1
- package/dist/sdk/i18n/messages/pt-BR.json +0 -178
- package/dist/sdk/i18n/provider.d.ts +0 -1
- package/dist/sdk/i18n/provider.js +0 -30
- package/dist/sdk/i18n/provider.js.map +0 -1
- package/dist/sdk/i18n/server.d.ts +0 -28
- package/dist/sdk/i18n/server.js +0 -59
- package/dist/sdk/i18n/server.js.map +0 -1
- package/dist/utils/resolve-authored-copy.js +0 -18
- package/dist/utils/resolve-authored-copy.js.map +0 -1
- package/dist/utils/substitute-template.js +0 -33
- package/dist/utils/substitute-template.js.map +0 -1
|
@@ -1,111 +1,295 @@
|
|
|
1
|
+
import { ContentValue, MessageLocaleProp } from "../../core/dist/define-content-type.js";
|
|
1
2
|
import { ComponentDefinition } from "../../core/dist/define-component.js";
|
|
2
3
|
import "../../core/dist/index.js";
|
|
3
4
|
import { ComponentActions } from "../../sdk/actions/types.js";
|
|
4
5
|
import { ComponentPropsWithRef } from "react";
|
|
5
6
|
//#region src/matter/access-code-sign-in/access-code-sign-in.d.ts
|
|
6
|
-
/** Colocated fragment slice forwarded by the reactive runtime — `null` until both fields resolve. */
|
|
7
|
-
export type AccessCodeSignInSlice = {
|
|
8
|
-
clientProfile: {
|
|
9
|
-
email: string | null;
|
|
10
|
-
} | null;
|
|
11
|
-
sessionAuthProviders: {
|
|
12
|
-
accessKeyAuthentication: boolean;
|
|
13
|
-
} | null;
|
|
14
|
-
};
|
|
15
7
|
export type AccessCodeSignInStep = 'request' | 'validate';
|
|
16
8
|
export type AccessCodeSignInContextValue = Readonly<{
|
|
17
|
-
/** The shopper's locally-typed draft email — never written to the cart; only ever an argument to
|
|
18
|
-
* requestAccessCode/validateAccessCode. Pre-fills from `clientProfile.email` when known, but a
|
|
19
|
-
* shopper edit is never persisted anywhere by this family. */
|
|
20
|
-
email: string;
|
|
21
|
-
/** Updates the draft email; marks it as shopper-touched so pre-fill no longer overwrites it. */
|
|
22
|
-
setEmail: (email: string) => void;
|
|
23
9
|
step: AccessCodeSignInStep;
|
|
24
10
|
/** Opaque token round-tripped from requestAccessCode into validateAccessCode. */
|
|
25
11
|
authenticationToken: string | null;
|
|
26
|
-
/**
|
|
27
|
-
|
|
12
|
+
/** The address `requestAccessCode` was dispatched with. `validateAccessCode` must use this, not the
|
|
13
|
+
* live `sign-in` draft: the server rejects a validate whose email differs from the request. */
|
|
14
|
+
requestedEmail: string | null;
|
|
15
|
+
/** Called by AccessCodeRequestControl and AccessCodeResendControl on a successful requestAccessCode.
|
|
16
|
+
* Writes the token and the address it was issued for in one transition, so neither can be set without
|
|
17
|
+
* the other, and arms the resend pace. */
|
|
18
|
+
startValidation: (authenticationToken: string, requestedEmail: string) => void;
|
|
19
|
+
/** Whole seconds until another code may be sent. `0` means permitted. */
|
|
20
|
+
resendAvailableInSeconds: number;
|
|
21
|
+
/** Discards the step, the token, the pinned address and the pace together, returning to `request`. */
|
|
22
|
+
resetToRequest: () => void;
|
|
28
23
|
}>;
|
|
29
|
-
export type AccessCodeSignInRootProps = ComponentPropsWithRef<'div'
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
export type AccessCodeEmailControlProps = ComponentPropsWithRef<'div'> & {
|
|
24
|
+
export type AccessCodeSignInRootProps = ComponentPropsWithRef<'div'>;
|
|
25
|
+
export type AccessCodeRequestControlProps = ComponentPropsWithRef<'div'> & MessageLocaleProp & {
|
|
33
26
|
label?: string;
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
pendingLabel?: string;
|
|
28
|
+
onRequested?: (authenticationToken: string) => void;
|
|
29
|
+
/** The inline message for each refusal of the send. */
|
|
30
|
+
$content?: ContentValue<typeof AccessCodeRequestControlContent>;
|
|
31
|
+
$actions?: ComponentActions;
|
|
36
32
|
};
|
|
37
|
-
export type
|
|
33
|
+
export type AccessCodeSentNoticeProps = ComponentPropsWithRef<'output'> & MessageLocaleProp & {
|
|
34
|
+
/** The confirmation sentence; its `email` argument is the address the code was sent to. */
|
|
35
|
+
$content?: ContentValue<typeof AccessCodeSentNoticeContent>;
|
|
36
|
+
};
|
|
37
|
+
export type AccessCodeResendControlProps = ComponentPropsWithRef<'div'> & MessageLocaleProp & {
|
|
38
38
|
label?: string;
|
|
39
39
|
pendingLabel?: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
onResent?: (authenticationToken: string) => void;
|
|
41
|
+
/** The button label while the pace has not elapsed (its `seconds` argument is the whole seconds left),
|
|
42
|
+
* and the inline message for each refusal of the send. */
|
|
43
|
+
$content?: ContentValue<typeof AccessCodeResendContent>;
|
|
44
44
|
$actions?: ComponentActions;
|
|
45
45
|
};
|
|
46
|
-
export type
|
|
46
|
+
export type AccessCodeCorrectEmailControlProps = ComponentPropsWithRef<'div'> & {
|
|
47
|
+
label?: string;
|
|
48
|
+
onCorrected?: () => void;
|
|
49
|
+
};
|
|
50
|
+
export type AccessCodeValidateControlProps = ComponentPropsWithRef<'div'> & MessageLocaleProp & {
|
|
47
51
|
label?: string;
|
|
48
52
|
placeholder?: string;
|
|
49
53
|
submitLabel?: string;
|
|
50
54
|
codeLength?: number;
|
|
51
|
-
invalidCodeMessage?: string;
|
|
52
|
-
blockedMessage?: string;
|
|
53
|
-
missingAuthContextMessage?: string;
|
|
54
|
-
networkErrorMessage?: string;
|
|
55
55
|
onValidated?: () => void;
|
|
56
|
+
/** The inline message for each refusal of the code. */
|
|
57
|
+
$content?: ContentValue<typeof AccessCodeValidateControlContent>;
|
|
56
58
|
$actions?: ComponentActions;
|
|
57
59
|
};
|
|
58
|
-
export declare const
|
|
59
|
-
|
|
60
|
+
export declare const AccessCodeRequestControlContent: {
|
|
61
|
+
readonly id: "access-code-request-control";
|
|
62
|
+
readonly title: "Access Code Request Control";
|
|
63
|
+
readonly description: "The inline messages shown when sending the access code fails.";
|
|
64
|
+
readonly schema: {
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly sendLimitMessage: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly title: "Send-limit message";
|
|
71
|
+
readonly description: "Shown when too many codes were requested for the address.";
|
|
72
|
+
readonly format: "icu-message";
|
|
73
|
+
readonly messageSource: "Too many codes requested. Try again later.";
|
|
74
|
+
};
|
|
75
|
+
readonly blockedMessage: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly title: "Blocked message";
|
|
78
|
+
readonly description: "Shown when the account is blocked. Names no duration: the account service returns none.";
|
|
79
|
+
readonly format: "icu-message";
|
|
80
|
+
readonly messageSource: "This account is blocked. Contact support.";
|
|
81
|
+
};
|
|
82
|
+
readonly networkErrorMessage: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly title: "Generic error message";
|
|
85
|
+
readonly description: "Shown for a network failure and for any refusal the shopper cannot act on.";
|
|
86
|
+
readonly format: "icu-message";
|
|
87
|
+
readonly messageSource: "Something went wrong. Please try again.";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const AccessCodeValidateControlContent: {
|
|
93
|
+
readonly id: "access-code-validate-control";
|
|
94
|
+
readonly title: "Access Code Validate Control";
|
|
95
|
+
readonly description: "The inline messages shown when the access code is refused.";
|
|
96
|
+
readonly schema: {
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly invalidCodeMessage: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly title: "Invalid code message";
|
|
103
|
+
readonly description: "Shown when the code is wrong or expired.";
|
|
104
|
+
readonly format: "icu-message";
|
|
105
|
+
readonly messageSource: "That code is incorrect or expired.";
|
|
106
|
+
};
|
|
107
|
+
readonly blockedMessage: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly title: "Blocked message";
|
|
110
|
+
readonly description: "Shown when the account is blocked. Names no duration: the account service returns none.";
|
|
111
|
+
readonly format: "icu-message";
|
|
112
|
+
readonly messageSource: "This account is blocked. Contact support.";
|
|
113
|
+
};
|
|
114
|
+
readonly missingAuthContextMessage: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly title: "Missing sign-in context message";
|
|
117
|
+
readonly description: "Shown when the request lost the context the code was issued for. Should not occur on a correct flow.";
|
|
118
|
+
readonly format: "icu-message";
|
|
119
|
+
readonly messageSource: "Something went wrong. Please try again.";
|
|
120
|
+
};
|
|
121
|
+
readonly networkErrorMessage: {
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
readonly title: "Generic error message";
|
|
124
|
+
readonly description: "Shown for a network failure and for any refusal the shopper cannot act on.";
|
|
125
|
+
readonly format: "icu-message";
|
|
126
|
+
readonly messageSource: "Something went wrong. Please try again.";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const AccessCodeSignInRootDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
60
132
|
export declare const AccessCodeRequestControlDefinition: ComponentDefinition<AccessCodeRequestControlProps>;
|
|
61
133
|
export declare const AccessCodeValidateControlDefinition: ComponentDefinition<AccessCodeValidateControlProps>;
|
|
134
|
+
export declare const AccessCodeSentNoticeContent: {
|
|
135
|
+
readonly id: "access-code-sent-notice";
|
|
136
|
+
readonly title: "Access Code Sent Notice";
|
|
137
|
+
readonly description: "Confirmation that names the address the access code was sent to.";
|
|
138
|
+
readonly schema: {
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly additionalProperties: false;
|
|
141
|
+
readonly properties: {
|
|
142
|
+
readonly template: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly title: "Template";
|
|
145
|
+
readonly format: "icu-message";
|
|
146
|
+
readonly messageSource: "We sent an access code to {email}.";
|
|
147
|
+
readonly messageArguments: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly email: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
readonly messageExample: {
|
|
156
|
+
readonly email: "shopper@example.com";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export declare const AccessCodeSentNoticeDefinition: ComponentDefinition<AccessCodeSentNoticeProps>;
|
|
163
|
+
export declare const AccessCodeResendContent: {
|
|
164
|
+
readonly id: "access-code-resend";
|
|
165
|
+
readonly title: "Access Code Resend";
|
|
166
|
+
readonly description: "Label of the resend button while the resend pace has not elapsed, and the inline messages shown when resending fails.";
|
|
167
|
+
readonly schema: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly additionalProperties: false;
|
|
170
|
+
readonly properties: {
|
|
171
|
+
readonly sendLimitMessage: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly title: "Send-limit message";
|
|
174
|
+
readonly description: "Shown when too many codes were requested for the address.";
|
|
175
|
+
readonly format: "icu-message";
|
|
176
|
+
readonly messageSource: "Too many codes requested. Try again later.";
|
|
177
|
+
};
|
|
178
|
+
readonly blockedMessage: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly title: "Blocked message";
|
|
181
|
+
readonly description: "Shown when the account is blocked. Names no duration: the account service returns none.";
|
|
182
|
+
readonly format: "icu-message";
|
|
183
|
+
readonly messageSource: "This account is blocked. Contact support.";
|
|
184
|
+
};
|
|
185
|
+
readonly networkErrorMessage: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly title: "Generic error message";
|
|
188
|
+
readonly description: "Shown for a network failure and for any refusal the shopper cannot act on.";
|
|
189
|
+
readonly format: "icu-message";
|
|
190
|
+
readonly messageSource: "Something went wrong. Please try again.";
|
|
191
|
+
};
|
|
192
|
+
readonly countdownTemplate: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly title: "Countdown template";
|
|
195
|
+
readonly format: "icu-message";
|
|
196
|
+
readonly messageSource: "Resend code in {seconds}s";
|
|
197
|
+
readonly messageArguments: {
|
|
198
|
+
readonly type: "object";
|
|
199
|
+
readonly properties: {
|
|
200
|
+
readonly seconds: {
|
|
201
|
+
readonly type: "integer";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly messageExample: {
|
|
206
|
+
readonly seconds: 42;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export declare const AccessCodeResendControlDefinition: ComponentDefinition<AccessCodeResendControlProps>;
|
|
213
|
+
export declare const AccessCodeCorrectEmailControlDefinition: ComponentDefinition<AccessCodeCorrectEmailControlProps>;
|
|
62
214
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* than
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* never touches the cart. Format validation is `EmailField`'s own blur-triggered check (never
|
|
80
|
-
* per-keystroke); `invalidEmailMessage` is only its fallback text, mirroring how
|
|
81
|
-
* `EmailIdentificationControl` defers to the same particle for the same reason.
|
|
215
|
+
* Root of the access-code method of the sign-in surface. It declares no fragment and reads no data of
|
|
216
|
+
* its own: the gate is the three `sign-in` context reads (`resolved`, `accessCodeEnabled` and
|
|
217
|
+
* `method === 'accessCode'`) plus the session read (`state !== 'loggedIn'`), so a store enabling both
|
|
218
|
+
* methods shows the code step only while the access code is the method showing. It returns `null`
|
|
219
|
+
* rather than unmounting, so its `useState` — the stepper, the token and the pinned address — survives
|
|
220
|
+
* a method switch and a gate close.
|
|
221
|
+
*
|
|
222
|
+
* Owns the `step`/`authenticationToken` stepper, the address the token was issued for and the resend
|
|
223
|
+
* deadline, broadcasting them through context. The shared email draft is `SignInRoot`'s, never this
|
|
224
|
+
* family's; the validate dispatch reads the pinned `requestedEmail` instead, because the server rejects a
|
|
225
|
+
* `validateAccessCode` whose email differs from the `requestAccessCode` that issued the token. The
|
|
226
|
+
* deadline lives here, not on the resend control, because this Root returns `null` on a method switch and
|
|
227
|
+
* unmounts every child with it. Everything clears together — `resetToRequest()` — on any change of
|
|
228
|
+
* `useSession().state` other than the session resolving, so a stale token, address and countdown never greet
|
|
229
|
+
* the next shopper. This Root never unmounts, so that reaction is the only thing that clears it: no manual call
|
|
230
|
+
* anywhere in this family.
|
|
82
231
|
*/
|
|
83
|
-
export declare function
|
|
232
|
+
export declare function AccessCodeSignInRoot({ className, children, ...props }: AccessCodeSignInRootProps): import("react/jsx-runtime").JSX.Element | null;
|
|
84
233
|
/**
|
|
85
|
-
* Renders only while the Root's stepper is at `step === 'request'`. Reads the draft email from
|
|
86
|
-
*
|
|
234
|
+
* Renders only while the Root's stepper is at `step === 'request'`. Reads the shared draft email from
|
|
235
|
+
* `useSignIn()` and dispatches `$actions.session.requestAccessCode({ email })` once it is a valid,
|
|
87
236
|
* non-empty address (no account-existence pre-check beyond that format gate). On a result with a
|
|
88
|
-
* non-null token and no `userErrors`, advances the Root's stepper
|
|
89
|
-
*
|
|
237
|
+
* non-null token and no `userErrors`, advances the Root's stepper and hands it the exact address that
|
|
238
|
+
* was dispatched, so the validate step is bound to it. Every `userErrors` entry renders
|
|
239
|
+
* inline, worded by the `$content` field for its code; the step never changes on error, so the shopper can
|
|
90
240
|
* retry or abandon the method and continue as a guest.
|
|
241
|
+
*
|
|
242
|
+
* A result that arrives after the session changed under it is dropped rather than written: the Root
|
|
243
|
+
* cleared the stepper for that change, and writing the result would bind the next shopper to the
|
|
244
|
+
* address and the live token of the one who pressed send.
|
|
91
245
|
*/
|
|
92
|
-
export declare function AccessCodeRequestControl({ label, pendingLabel,
|
|
246
|
+
export declare function AccessCodeRequestControl({ label, pendingLabel, onRequested, $content, $locale, $actions: $actionsProp, className, ...props }: AccessCodeRequestControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
93
247
|
/**
|
|
94
248
|
* Renders only while the Root's stepper is at `step === 'validate'`. Composes `AccessCodeField` for
|
|
95
249
|
* the code value and a submit control, disabled below `codeLength` (a UX courtesy, never a
|
|
96
|
-
* validity claim). Dispatches `$actions.session.validateAccessCode` with the
|
|
97
|
-
* `authenticationToken` read from context
|
|
98
|
-
* `invalid`/`errorMessage` from
|
|
99
|
-
* shopper can retry without re-requesting. On success it calls the optional `onValidated` and renders
|
|
250
|
+
* validity claim). Dispatches `$actions.session.validateAccessCode` with the pinned `requestedEmail`
|
|
251
|
+
* and `authenticationToken` read from context — never the live `sign-in` draft. On a non-empty
|
|
252
|
+
* `userErrors` result, sets the field's `invalid`/`errorMessage` from the `$content` field for its code
|
|
253
|
+
* and retains the code/token so the shopper can retry without re-requesting. On success it calls the optional `onValidated` and renders
|
|
100
254
|
* no local "success" UI — `useSession()` flipping to `loggedIn` is what makes the whole Root
|
|
101
255
|
* disappear.
|
|
102
256
|
*/
|
|
103
|
-
export declare function AccessCodeValidateControl({ label, placeholder, submitLabel, codeLength,
|
|
257
|
+
export declare function AccessCodeValidateControl({ label, placeholder, submitLabel, codeLength, onValidated, $content, $locale, $actions: $actionsProp, className, ...props }: AccessCodeValidateControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
258
|
+
/**
|
|
259
|
+
* Renders only at the validate step. Names the address the code was dispatched to — the Root's pinned
|
|
260
|
+
* `requestedEmail`, never the live `sign-in` draft, which a shopper edit or a profile re-seed can move
|
|
261
|
+
* after the request. The `template` message's `email` argument is the address. The wrapper is an
|
|
262
|
+
* `output`, whose implicit `status` role announces the confirmation once, when it appears.
|
|
263
|
+
*/
|
|
264
|
+
export declare function AccessCodeSentNotice({ $content, $locale, className, ...props }: AccessCodeSentNoticeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
265
|
+
/**
|
|
266
|
+
* Renders only at the validate step. Dispatches `$actions.session.requestAccessCode` with the Root's
|
|
267
|
+
* pinned `requestedEmail` — never the live draft, so a second code goes to the address the shopper was
|
|
268
|
+
* told about — and replaces the token with the one it returns through the same `startValidation` that
|
|
269
|
+
* the request control uses, which re-pins the same address and re-arms the pace. Inert until the pace
|
|
270
|
+
* has elapsed, with the whole seconds left in its own label. A failure renders inline and leaves the
|
|
271
|
+
* step, the token and the pace untouched: no code was sent, so none is paced.
|
|
272
|
+
*
|
|
273
|
+
* A result that arrives after the request it answered has been discarded (the shopper went back, the
|
|
274
|
+
* session changed, the Root closed) is dropped rather than written, so a token is never re-paired with
|
|
275
|
+
* the address that was left.
|
|
276
|
+
*/
|
|
277
|
+
export declare function AccessCodeResendControl({ label, pendingLabel, onResent, $content, $locale, $actions: $actionsProp, className, ...props }: AccessCodeResendControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
278
|
+
/**
|
|
279
|
+
* Renders only at the validate step. Calls the Root's `resetToRequest()`, which discards the step, the
|
|
280
|
+
* token, the pinned address and the resend pace in one transition. The shopper lands on the request step
|
|
281
|
+
* with the shared draft still in the field to edit; the next request pins whatever address they send and
|
|
282
|
+
* the token the server issues for it, and the earlier token is unreachable. Never held by the pace: the
|
|
283
|
+
* pace counts codes sent, and a shopper who mistyped is not made to wait for the address they meant.
|
|
284
|
+
*/
|
|
285
|
+
export declare function AccessCodeCorrectEmailControl({ label, onCorrected, className, ...props }: AccessCodeCorrectEmailControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
104
286
|
export declare const AccessCodeSignIn: {
|
|
105
287
|
Root: typeof AccessCodeSignInRoot;
|
|
106
|
-
Email: typeof AccessCodeEmailControl;
|
|
107
288
|
Request: typeof AccessCodeRequestControl;
|
|
289
|
+
SentNotice: typeof AccessCodeSentNotice;
|
|
108
290
|
Validate: typeof AccessCodeValidateControl;
|
|
291
|
+
Resend: typeof AccessCodeResendControl;
|
|
292
|
+
CorrectEmail: typeof AccessCodeCorrectEmailControl;
|
|
109
293
|
};
|
|
110
294
|
//#endregion
|
|
111
295
|
//# sourceMappingURL=access-code-sign-in.d.ts.map
|