@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,9 +1,267 @@
|
|
|
1
|
+
import { ContentTypeDefinition, 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 { PhoneCountry } from "../../particles/phone-field/phone-field.js";
|
|
5
6
|
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
6
7
|
//#region src/matter/my-account-profile/my-account-profile.d.ts
|
|
8
|
+
export declare const MyAccountProfileRootContent: {
|
|
9
|
+
readonly id: "my-account-profile-root";
|
|
10
|
+
readonly title: "My Account Profile Root";
|
|
11
|
+
readonly description: "The toasts the profile Save raises.";
|
|
12
|
+
readonly schema: {
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly additionalProperties: false;
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly saveFailedMessage: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Save failure message";
|
|
19
|
+
readonly description: "Shown for a network failure, and when the save cannot be dispatched at all.";
|
|
20
|
+
readonly format: "icu-message";
|
|
21
|
+
readonly messageSource: "Unable to save your profile. Please try again.";
|
|
22
|
+
};
|
|
23
|
+
readonly invalidValueMessage: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly title: "Refused value message";
|
|
26
|
+
readonly description: "Shown when the account refuses one or more of the submitted values.";
|
|
27
|
+
readonly format: "icu-message";
|
|
28
|
+
readonly messageSource: "Some of your details were not accepted. Check them and try again.";
|
|
29
|
+
};
|
|
30
|
+
readonly sessionExpiredMessage: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly title: "Session expired message";
|
|
33
|
+
readonly description: "Shown when the session ended before the save, so the shopper must sign in again.";
|
|
34
|
+
readonly format: "icu-message";
|
|
35
|
+
readonly messageSource: "Your session has expired. Please sign in again.";
|
|
36
|
+
};
|
|
37
|
+
readonly savedMessage: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly title: "Save success message";
|
|
40
|
+
readonly format: "icu-message";
|
|
41
|
+
readonly messageSource: "Your profile has been saved.";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const MyAccountProfileEditButtonContent: {
|
|
47
|
+
readonly id: "my-account-profile-edit";
|
|
48
|
+
readonly title: "My Account Profile Edit Button";
|
|
49
|
+
readonly description: "The edit button's label.";
|
|
50
|
+
readonly schema: {
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly label: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly title: "Button label";
|
|
57
|
+
readonly format: "icu-message";
|
|
58
|
+
readonly messageSource: "Edit";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const MyAccountProfileSaveButtonContent: {
|
|
64
|
+
readonly id: "my-account-profile-save";
|
|
65
|
+
readonly title: "My Account Profile Save Button";
|
|
66
|
+
readonly description: "The save button's label.";
|
|
67
|
+
readonly schema: {
|
|
68
|
+
readonly type: "object";
|
|
69
|
+
readonly additionalProperties: false;
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly label: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly title: "Button label";
|
|
74
|
+
readonly format: "icu-message";
|
|
75
|
+
readonly messageSource: "Save";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const MyAccountProfileCancelButtonContent: {
|
|
81
|
+
readonly id: "my-account-profile-cancel";
|
|
82
|
+
readonly title: "My Account Profile Cancel Button";
|
|
83
|
+
readonly description: "The cancel button's label.";
|
|
84
|
+
readonly schema: {
|
|
85
|
+
readonly type: "object";
|
|
86
|
+
readonly additionalProperties: false;
|
|
87
|
+
readonly properties: {
|
|
88
|
+
readonly label: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly title: "Button label";
|
|
91
|
+
readonly format: "icu-message";
|
|
92
|
+
readonly messageSource: "Cancel";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const MyAccountProfileFirstNameControlContent: {
|
|
98
|
+
readonly id: "my-account-profile-first-name";
|
|
99
|
+
readonly title: "My Account Profile First Name Control";
|
|
100
|
+
readonly description: "The first-name field's label and required message.";
|
|
101
|
+
readonly schema: {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly additionalProperties: false;
|
|
104
|
+
readonly properties: {
|
|
105
|
+
readonly label: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly title: "Label";
|
|
108
|
+
readonly format: "icu-message";
|
|
109
|
+
readonly messageSource: "First name";
|
|
110
|
+
};
|
|
111
|
+
readonly requiredMessage: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly title: "Required message";
|
|
114
|
+
readonly format: "icu-message";
|
|
115
|
+
readonly messageSource: "First name is required.";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export declare const MyAccountProfileLastNameControlContent: {
|
|
121
|
+
readonly id: "my-account-profile-last-name";
|
|
122
|
+
readonly title: "My Account Profile Last Name Control";
|
|
123
|
+
readonly description: "The last-name field's label and required message.";
|
|
124
|
+
readonly schema: {
|
|
125
|
+
readonly type: "object";
|
|
126
|
+
readonly additionalProperties: false;
|
|
127
|
+
readonly properties: {
|
|
128
|
+
readonly label: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly title: "Label";
|
|
131
|
+
readonly format: "icu-message";
|
|
132
|
+
readonly messageSource: "Last name";
|
|
133
|
+
};
|
|
134
|
+
readonly requiredMessage: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly title: "Required message";
|
|
137
|
+
readonly format: "icu-message";
|
|
138
|
+
readonly messageSource: "Last name is required.";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export declare const MyAccountProfilePhoneControlContent: {
|
|
144
|
+
readonly id: "my-account-profile-phone";
|
|
145
|
+
readonly title: "My Account Profile Phone Control";
|
|
146
|
+
readonly description: "The phone field's label and invalid message.";
|
|
147
|
+
readonly schema: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
readonly properties: {
|
|
151
|
+
readonly label: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly title: "Label";
|
|
154
|
+
readonly format: "icu-message";
|
|
155
|
+
readonly messageSource: "Phone";
|
|
156
|
+
};
|
|
157
|
+
readonly invalidMessage: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly title: "Invalid message";
|
|
160
|
+
readonly format: "icu-message";
|
|
161
|
+
readonly messageSource: "Invalid phone number";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
export declare const MyAccountProfileTaxIdControlContent: {
|
|
167
|
+
readonly id: "my-account-profile-tax-id";
|
|
168
|
+
readonly title: "My Account Profile Tax ID Control";
|
|
169
|
+
readonly description: "The tax-ID field's label, invalid message and the reason a saved document is locked.";
|
|
170
|
+
readonly schema: {
|
|
171
|
+
readonly type: "object";
|
|
172
|
+
readonly additionalProperties: false;
|
|
173
|
+
readonly properties: {
|
|
174
|
+
readonly label: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly title: "Label";
|
|
177
|
+
readonly format: "icu-message";
|
|
178
|
+
readonly messageSource: "National tax ID";
|
|
179
|
+
};
|
|
180
|
+
readonly invalidMessage: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly title: "Invalid message";
|
|
183
|
+
readonly format: "icu-message";
|
|
184
|
+
readonly messageSource: "Invalid document number.";
|
|
185
|
+
};
|
|
186
|
+
readonly lockedReason: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly title: "Locked reason";
|
|
189
|
+
readonly format: "icu-message";
|
|
190
|
+
readonly messageSource: "Your document ID can't be edited.";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export declare const MyAccountProfileBirthDateControlContent: {
|
|
196
|
+
readonly id: "my-account-profile-birth-date";
|
|
197
|
+
readonly title: "My Account Profile Birth Date Control";
|
|
198
|
+
readonly description: "The birth-date field's label.";
|
|
199
|
+
readonly schema: {
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
readonly properties: {
|
|
203
|
+
readonly label: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly title: "Label";
|
|
206
|
+
readonly format: "icu-message";
|
|
207
|
+
readonly messageSource: "Birth date";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export declare const MyAccountProfileGenderControlContent: {
|
|
213
|
+
readonly id: "my-account-profile-gender";
|
|
214
|
+
readonly title: "My Account Profile Gender Control";
|
|
215
|
+
readonly description: "The gender field's label, placeholder, clear button label and the default options' labels.";
|
|
216
|
+
readonly schema: {
|
|
217
|
+
readonly type: "object";
|
|
218
|
+
readonly additionalProperties: false;
|
|
219
|
+
readonly properties: {
|
|
220
|
+
readonly label: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly title: "Label";
|
|
223
|
+
readonly format: "icu-message";
|
|
224
|
+
readonly messageSource: "Gender";
|
|
225
|
+
};
|
|
226
|
+
readonly placeholder: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly title: "Placeholder";
|
|
229
|
+
readonly format: "icu-message";
|
|
230
|
+
readonly messageSource: "Select";
|
|
231
|
+
};
|
|
232
|
+
readonly clearLabel: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly title: "Clear button label";
|
|
235
|
+
readonly format: "icu-message";
|
|
236
|
+
readonly messageSource: "Clear";
|
|
237
|
+
};
|
|
238
|
+
readonly femaleLabel: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly title: "Female option label";
|
|
241
|
+
readonly format: "icu-message";
|
|
242
|
+
readonly messageSource: "Female";
|
|
243
|
+
};
|
|
244
|
+
readonly maleLabel: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly title: "Male option label";
|
|
247
|
+
readonly format: "icu-message";
|
|
248
|
+
readonly messageSource: "Male";
|
|
249
|
+
};
|
|
250
|
+
readonly otherLabel: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly title: "Other option label";
|
|
253
|
+
readonly format: "icu-message";
|
|
254
|
+
readonly messageSource: "Other";
|
|
255
|
+
};
|
|
256
|
+
readonly preferNotToSayLabel: {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly title: "Prefer-not-to-say option label";
|
|
259
|
+
readonly format: "icu-message";
|
|
260
|
+
readonly messageSource: "Prefer not to say";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
7
265
|
/**
|
|
8
266
|
* The `$data` slice forwarded by the reactive runtime — the `customerProfile` entity itself, not the
|
|
9
267
|
* `Query` shape the fragment above is authored against. The compiler derives an entity fragment `on
|
|
@@ -58,165 +316,159 @@ export type MyAccountProfileContextValue = Readonly<{
|
|
|
58
316
|
edit: () => void;
|
|
59
317
|
cancel: () => void;
|
|
60
318
|
}>;
|
|
61
|
-
export type MyAccountProfileRootProps = Readonly<{
|
|
319
|
+
export type MyAccountProfileRootProps = Readonly<MessageLocaleProp & {
|
|
62
320
|
/** Store-configured tax-ID type fallback, used when the saved `documentType` is not registered. */
|
|
63
321
|
documentType?: string;
|
|
64
|
-
|
|
65
|
-
|
|
322
|
+
/** The save failure and success toasts. */
|
|
323
|
+
$content?: ContentValue<typeof MyAccountProfileRootContent>;
|
|
66
324
|
className?: string;
|
|
67
325
|
children?: ReactNode;
|
|
68
326
|
$data?: MyAccountProfileData;
|
|
69
327
|
/** Compiler-injected action surface; carries `identity.customerProfileUpdate`. */
|
|
70
328
|
$actions?: ComponentActions;
|
|
71
329
|
}>;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
children?: ReactNode;
|
|
76
|
-
}>;
|
|
77
|
-
export type MyAccountProfileSaveButtonProps = Readonly<{
|
|
78
|
-
label?: string;
|
|
79
|
-
className?: string;
|
|
80
|
-
children?: ReactNode;
|
|
81
|
-
}>;
|
|
82
|
-
export type MyAccountProfileCancelButtonProps = Readonly<{
|
|
83
|
-
label?: string;
|
|
330
|
+
/** A frame button: its label is the `label` message unless children are composed. */
|
|
331
|
+
type FrameButtonProps<T extends ContentTypeDefinition> = Readonly<MessageLocaleProp & {
|
|
332
|
+
$content?: ContentValue<T>;
|
|
84
333
|
className?: string;
|
|
85
334
|
children?: ReactNode;
|
|
86
335
|
}>;
|
|
336
|
+
export type MyAccountProfileEditButtonProps = FrameButtonProps<typeof MyAccountProfileEditButtonContent>;
|
|
337
|
+
export type MyAccountProfileSaveButtonProps = FrameButtonProps<typeof MyAccountProfileSaveButtonContent>;
|
|
338
|
+
export type MyAccountProfileCancelButtonProps = FrameButtonProps<typeof MyAccountProfileCancelButtonContent>;
|
|
87
339
|
export type MyAccountProfileEmailProps = Readonly<{
|
|
88
340
|
className?: string;
|
|
89
341
|
}>;
|
|
90
342
|
/** Throws when used outside `MyAccountProfileRoot`, per ADR-0009. */
|
|
91
343
|
export declare function useMyAccountProfile(): MyAccountProfileContextValue;
|
|
92
|
-
export declare const MyAccountProfileRootDefinition: ComponentDefinition<Readonly<{
|
|
344
|
+
export declare const MyAccountProfileRootDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
93
345
|
/** Store-configured tax-ID type fallback, used when the saved `documentType` is not registered. */
|
|
94
346
|
documentType?: string;
|
|
95
|
-
|
|
96
|
-
|
|
347
|
+
/** The save failure and success toasts. */
|
|
348
|
+
$content?: ContentValue<typeof MyAccountProfileRootContent>;
|
|
97
349
|
className?: string;
|
|
98
350
|
children?: ReactNode;
|
|
99
351
|
$data?: MyAccountProfileData;
|
|
100
352
|
/** Compiler-injected action surface; carries `identity.customerProfileUpdate`. */
|
|
101
353
|
$actions?: ComponentActions;
|
|
102
354
|
}>>;
|
|
103
|
-
export declare function MyAccountProfileRoot({ $data: $dataProp, $actions: $actionsProp, documentType: documentTypeProp,
|
|
355
|
+
export declare function MyAccountProfileRoot({ $data: $dataProp, $actions: $actionsProp, documentType: documentTypeProp, $content, $locale, className, children }: MyAccountProfileRootProps): import("react/jsx-runtime").JSX.Element | null;
|
|
104
356
|
export declare namespace MyAccountProfileRoot {
|
|
105
357
|
var Skeleton: typeof MyAccountProfileSkeleton;
|
|
106
358
|
}
|
|
107
|
-
export declare const MyAccountProfileEditButtonDefinition: ComponentDefinition<Readonly<{
|
|
108
|
-
|
|
359
|
+
export declare const MyAccountProfileEditButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
360
|
+
$content?: {
|
|
361
|
+
label?: string | undefined;
|
|
362
|
+
} | undefined;
|
|
109
363
|
className?: string;
|
|
110
364
|
children?: ReactNode;
|
|
111
365
|
}>>;
|
|
112
|
-
export declare function MyAccountProfileEditButton({
|
|
113
|
-
export declare const MyAccountProfileSaveButtonDefinition: ComponentDefinition<Readonly<{
|
|
114
|
-
|
|
366
|
+
export declare function MyAccountProfileEditButton({ $content, $locale, className, children }: MyAccountProfileEditButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
367
|
+
export declare const MyAccountProfileSaveButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
368
|
+
$content?: {
|
|
369
|
+
label?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
115
371
|
className?: string;
|
|
116
372
|
children?: ReactNode;
|
|
117
373
|
}>>;
|
|
118
|
-
export declare function MyAccountProfileSaveButton({
|
|
119
|
-
export declare const MyAccountProfileCancelButtonDefinition: ComponentDefinition<Readonly<{
|
|
120
|
-
|
|
374
|
+
export declare function MyAccountProfileSaveButton({ $content, $locale, className, children }: MyAccountProfileSaveButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
375
|
+
export declare const MyAccountProfileCancelButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
376
|
+
$content?: {
|
|
377
|
+
label?: string | undefined;
|
|
378
|
+
} | undefined;
|
|
121
379
|
className?: string;
|
|
122
380
|
children?: ReactNode;
|
|
123
381
|
}>>;
|
|
124
|
-
export declare function MyAccountProfileCancelButton({
|
|
382
|
+
export declare function MyAccountProfileCancelButton({ $content, $locale, className, children }: MyAccountProfileCancelButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
125
383
|
export declare const MyAccountProfileEmailDefinition: ComponentDefinition<Readonly<{
|
|
126
384
|
className?: string;
|
|
127
385
|
}>>;
|
|
128
386
|
export declare function MyAccountProfileEmail({ className }: MyAccountProfileEmailProps): import("react/jsx-runtime").JSX.Element | null;
|
|
129
387
|
export declare const MyAccountProfileSkeletonDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
130
388
|
export declare function MyAccountProfileSkeleton({ className, ...props }: ComponentPropsWithRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
131
|
-
export type MyAccountProfileFirstNameControlProps = Readonly<{
|
|
132
|
-
label
|
|
133
|
-
|
|
389
|
+
export type MyAccountProfileFirstNameControlProps = Readonly<MessageLocaleProp & {
|
|
390
|
+
/** The label and the message shown when the field is left empty. */
|
|
391
|
+
$content?: ContentValue<typeof MyAccountProfileFirstNameControlContent>;
|
|
134
392
|
className?: string;
|
|
135
393
|
}>;
|
|
136
|
-
export declare const MyAccountProfileFirstNameControlDefinition: ComponentDefinition<Readonly<{
|
|
137
|
-
label
|
|
138
|
-
|
|
394
|
+
export declare const MyAccountProfileFirstNameControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
395
|
+
/** The label and the message shown when the field is left empty. */
|
|
396
|
+
$content?: ContentValue<typeof MyAccountProfileFirstNameControlContent>;
|
|
139
397
|
className?: string;
|
|
140
398
|
}>>;
|
|
141
|
-
export declare function MyAccountProfileFirstNameControl({
|
|
142
|
-
export type MyAccountProfileLastNameControlProps = Readonly<{
|
|
143
|
-
label
|
|
144
|
-
|
|
399
|
+
export declare function MyAccountProfileFirstNameControl({ $content, $locale, className }: MyAccountProfileFirstNameControlProps): import("react/jsx-runtime").JSX.Element;
|
|
400
|
+
export type MyAccountProfileLastNameControlProps = Readonly<MessageLocaleProp & {
|
|
401
|
+
/** The label and the message shown when the field is left empty. */
|
|
402
|
+
$content?: ContentValue<typeof MyAccountProfileLastNameControlContent>;
|
|
145
403
|
className?: string;
|
|
146
404
|
}>;
|
|
147
|
-
export declare const MyAccountProfileLastNameControlDefinition: ComponentDefinition<Readonly<{
|
|
148
|
-
label
|
|
149
|
-
|
|
405
|
+
export declare const MyAccountProfileLastNameControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
406
|
+
/** The label and the message shown when the field is left empty. */
|
|
407
|
+
$content?: ContentValue<typeof MyAccountProfileLastNameControlContent>;
|
|
150
408
|
className?: string;
|
|
151
409
|
}>>;
|
|
152
|
-
export declare function MyAccountProfileLastNameControl({
|
|
153
|
-
export type MyAccountProfilePhoneControlProps = Readonly<{
|
|
154
|
-
label?: string;
|
|
410
|
+
export declare function MyAccountProfileLastNameControl({ $content, $locale, className }: MyAccountProfileLastNameControlProps): import("react/jsx-runtime").JSX.Element;
|
|
411
|
+
export type MyAccountProfilePhoneControlProps = Readonly<MessageLocaleProp & {
|
|
155
412
|
/** Which draft key this instance binds. Compose the Control twice to expose both numbers. */
|
|
156
413
|
field?: 'homePhone' | 'mobilePhone';
|
|
157
414
|
country?: PhoneCountry;
|
|
158
|
-
|
|
415
|
+
/** The label and the message for an invalid number. */
|
|
416
|
+
$content?: ContentValue<typeof MyAccountProfilePhoneControlContent>;
|
|
159
417
|
className?: string;
|
|
160
418
|
}>;
|
|
161
|
-
export declare const MyAccountProfilePhoneControlDefinition: ComponentDefinition<Readonly<{
|
|
162
|
-
label?: string;
|
|
419
|
+
export declare const MyAccountProfilePhoneControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
163
420
|
/** Which draft key this instance binds. Compose the Control twice to expose both numbers. */
|
|
164
421
|
field?: "homePhone" | "mobilePhone";
|
|
165
422
|
country?: PhoneCountry;
|
|
166
|
-
|
|
423
|
+
/** The label and the message for an invalid number. */
|
|
424
|
+
$content?: ContentValue<typeof MyAccountProfilePhoneControlContent>;
|
|
167
425
|
className?: string;
|
|
168
426
|
}>>;
|
|
169
|
-
export declare function MyAccountProfilePhoneControl({
|
|
170
|
-
export type MyAccountProfileTaxIdControlProps = Readonly<{
|
|
171
|
-
label
|
|
172
|
-
|
|
173
|
-
/** Inline reason shown beside the locked saved document. */
|
|
174
|
-
lockedReason?: string;
|
|
427
|
+
export declare function MyAccountProfilePhoneControl({ field, country, $content, $locale, className }: MyAccountProfilePhoneControlProps): import("react/jsx-runtime").JSX.Element;
|
|
428
|
+
export type MyAccountProfileTaxIdControlProps = Readonly<MessageLocaleProp & {
|
|
429
|
+
/** The label, the invalid message, and the reason shown beside a locked saved document. */
|
|
430
|
+
$content?: ContentValue<typeof MyAccountProfileTaxIdControlContent>;
|
|
175
431
|
className?: string;
|
|
176
432
|
}>;
|
|
177
|
-
export declare const MyAccountProfileTaxIdControlDefinition: ComponentDefinition<Readonly<{
|
|
178
|
-
label
|
|
179
|
-
|
|
180
|
-
/** Inline reason shown beside the locked saved document. */
|
|
181
|
-
lockedReason?: string;
|
|
433
|
+
export declare const MyAccountProfileTaxIdControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
434
|
+
/** The label, the invalid message, and the reason shown beside a locked saved document. */
|
|
435
|
+
$content?: ContentValue<typeof MyAccountProfileTaxIdControlContent>;
|
|
182
436
|
className?: string;
|
|
183
437
|
}>>;
|
|
184
|
-
export declare function MyAccountProfileTaxIdControl({
|
|
185
|
-
export type MyAccountProfileBirthDateControlProps = Readonly<{
|
|
186
|
-
|
|
438
|
+
export declare function MyAccountProfileTaxIdControl({ $content, $locale, className }: MyAccountProfileTaxIdControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
439
|
+
export type MyAccountProfileBirthDateControlProps = Readonly<MessageLocaleProp & {
|
|
440
|
+
$content?: ContentValue<typeof MyAccountProfileBirthDateControlContent>;
|
|
187
441
|
className?: string;
|
|
188
442
|
}>;
|
|
189
|
-
export declare const MyAccountProfileBirthDateControlDefinition: ComponentDefinition<Readonly<{
|
|
190
|
-
|
|
443
|
+
export declare const MyAccountProfileBirthDateControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
444
|
+
$content?: ContentValue<typeof MyAccountProfileBirthDateControlContent>;
|
|
191
445
|
className?: string;
|
|
192
446
|
}>>;
|
|
193
|
-
export declare function MyAccountProfileBirthDateControl({
|
|
447
|
+
export declare function MyAccountProfileBirthDateControl({ $content, $locale, className }: MyAccountProfileBirthDateControlProps): import("react/jsx-runtime").JSX.Element;
|
|
194
448
|
export type MyAccountProfileGenderOption = Readonly<{
|
|
195
449
|
value: string;
|
|
196
450
|
label: string;
|
|
197
451
|
}>;
|
|
198
|
-
export type MyAccountProfileGenderControlProps = Readonly<{
|
|
199
|
-
label?: string;
|
|
200
|
-
placeholder?: string;
|
|
201
|
-
clearLabel?: string;
|
|
452
|
+
export type MyAccountProfileGenderControlProps = Readonly<MessageLocaleProp & {
|
|
202
453
|
options?: readonly MyAccountProfileGenderOption[];
|
|
454
|
+
/** The label, the placeholder and the clear button label. */
|
|
455
|
+
$content?: ContentValue<typeof MyAccountProfileGenderControlContent>;
|
|
203
456
|
className?: string;
|
|
204
457
|
}>;
|
|
205
|
-
export declare const MyAccountProfileGenderControlDefinition: ComponentDefinition<Readonly<{
|
|
206
|
-
label?: string;
|
|
207
|
-
placeholder?: string;
|
|
208
|
-
clearLabel?: string;
|
|
458
|
+
export declare const MyAccountProfileGenderControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
209
459
|
options?: readonly MyAccountProfileGenderOption[];
|
|
460
|
+
/** The label, the placeholder and the clear button label. */
|
|
461
|
+
$content?: ContentValue<typeof MyAccountProfileGenderControlContent>;
|
|
210
462
|
className?: string;
|
|
211
463
|
}>>;
|
|
212
|
-
export declare function MyAccountProfileGenderControl({
|
|
464
|
+
export declare function MyAccountProfileGenderControl({ options: authoredOptions, $content, $locale, className }: MyAccountProfileGenderControlProps): import("react/jsx-runtime").JSX.Element;
|
|
213
465
|
export declare const MyAccountProfile: {
|
|
214
466
|
Root: typeof MyAccountProfileRoot;
|
|
215
|
-
RootDefinition: ComponentDefinition<Readonly<{
|
|
467
|
+
RootDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
216
468
|
/** Store-configured tax-ID type fallback, used when the saved `documentType` is not registered. */
|
|
217
469
|
documentType?: string;
|
|
218
|
-
|
|
219
|
-
|
|
470
|
+
/** The save failure and success toasts. */
|
|
471
|
+
$content?: ContentValue<typeof MyAccountProfileRootContent>;
|
|
220
472
|
className?: string;
|
|
221
473
|
children?: ReactNode;
|
|
222
474
|
$data?: MyAccountProfileData;
|
|
@@ -224,20 +476,26 @@ export declare const MyAccountProfile: {
|
|
|
224
476
|
$actions?: ComponentActions;
|
|
225
477
|
}>>;
|
|
226
478
|
EditButton: typeof MyAccountProfileEditButton;
|
|
227
|
-
EditButtonDefinition: ComponentDefinition<Readonly<{
|
|
228
|
-
|
|
479
|
+
EditButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
480
|
+
$content?: {
|
|
481
|
+
label?: string | undefined;
|
|
482
|
+
} | undefined;
|
|
229
483
|
className?: string;
|
|
230
484
|
children?: ReactNode;
|
|
231
485
|
}>>;
|
|
232
486
|
SaveButton: typeof MyAccountProfileSaveButton;
|
|
233
|
-
SaveButtonDefinition: ComponentDefinition<Readonly<{
|
|
234
|
-
|
|
487
|
+
SaveButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
488
|
+
$content?: {
|
|
489
|
+
label?: string | undefined;
|
|
490
|
+
} | undefined;
|
|
235
491
|
className?: string;
|
|
236
492
|
children?: ReactNode;
|
|
237
493
|
}>>;
|
|
238
494
|
CancelButton: typeof MyAccountProfileCancelButton;
|
|
239
|
-
CancelButtonDefinition: ComponentDefinition<Readonly<{
|
|
240
|
-
|
|
495
|
+
CancelButtonDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
496
|
+
$content?: {
|
|
497
|
+
label?: string | undefined;
|
|
498
|
+
} | undefined;
|
|
241
499
|
className?: string;
|
|
242
500
|
children?: ReactNode;
|
|
243
501
|
}>>;
|
|
@@ -248,45 +506,42 @@ export declare const MyAccountProfile: {
|
|
|
248
506
|
Skeleton: typeof MyAccountProfileSkeleton;
|
|
249
507
|
SkeletonDefinition: ComponentDefinition<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
250
508
|
FirstNameControl: typeof MyAccountProfileFirstNameControl;
|
|
251
|
-
FirstNameControlDefinition: ComponentDefinition<Readonly<{
|
|
252
|
-
label
|
|
253
|
-
|
|
509
|
+
FirstNameControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
510
|
+
/** The label and the message shown when the field is left empty. */
|
|
511
|
+
$content?: ContentValue<typeof MyAccountProfileFirstNameControlContent>;
|
|
254
512
|
className?: string;
|
|
255
513
|
}>>;
|
|
256
514
|
LastNameControl: typeof MyAccountProfileLastNameControl;
|
|
257
|
-
LastNameControlDefinition: ComponentDefinition<Readonly<{
|
|
258
|
-
label
|
|
259
|
-
|
|
515
|
+
LastNameControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
516
|
+
/** The label and the message shown when the field is left empty. */
|
|
517
|
+
$content?: ContentValue<typeof MyAccountProfileLastNameControlContent>;
|
|
260
518
|
className?: string;
|
|
261
519
|
}>>;
|
|
262
520
|
PhoneControl: typeof MyAccountProfilePhoneControl;
|
|
263
|
-
PhoneControlDefinition: ComponentDefinition<Readonly<{
|
|
264
|
-
label?: string;
|
|
521
|
+
PhoneControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
265
522
|
/** Which draft key this instance binds. Compose the Control twice to expose both numbers. */
|
|
266
523
|
field?: "homePhone" | "mobilePhone";
|
|
267
524
|
country?: PhoneCountry;
|
|
268
|
-
|
|
525
|
+
/** The label and the message for an invalid number. */
|
|
526
|
+
$content?: ContentValue<typeof MyAccountProfilePhoneControlContent>;
|
|
269
527
|
className?: string;
|
|
270
528
|
}>>;
|
|
271
529
|
TaxIdControl: typeof MyAccountProfileTaxIdControl;
|
|
272
|
-
TaxIdControlDefinition: ComponentDefinition<Readonly<{
|
|
273
|
-
label
|
|
274
|
-
|
|
275
|
-
/** Inline reason shown beside the locked saved document. */
|
|
276
|
-
lockedReason?: string;
|
|
530
|
+
TaxIdControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
531
|
+
/** The label, the invalid message, and the reason shown beside a locked saved document. */
|
|
532
|
+
$content?: ContentValue<typeof MyAccountProfileTaxIdControlContent>;
|
|
277
533
|
className?: string;
|
|
278
534
|
}>>;
|
|
279
535
|
BirthDateControl: typeof MyAccountProfileBirthDateControl;
|
|
280
|
-
BirthDateControlDefinition: ComponentDefinition<Readonly<{
|
|
281
|
-
|
|
536
|
+
BirthDateControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
537
|
+
$content?: ContentValue<typeof MyAccountProfileBirthDateControlContent>;
|
|
282
538
|
className?: string;
|
|
283
539
|
}>>;
|
|
284
540
|
GenderControl: typeof MyAccountProfileGenderControl;
|
|
285
|
-
GenderControlDefinition: ComponentDefinition<Readonly<{
|
|
286
|
-
label?: string;
|
|
287
|
-
placeholder?: string;
|
|
288
|
-
clearLabel?: string;
|
|
541
|
+
GenderControlDefinition: ComponentDefinition<Readonly<MessageLocaleProp & {
|
|
289
542
|
options?: readonly MyAccountProfileGenderOption[];
|
|
543
|
+
/** The label, the placeholder and the clear button label. */
|
|
544
|
+
$content?: ContentValue<typeof MyAccountProfileGenderControlContent>;
|
|
290
545
|
className?: string;
|
|
291
546
|
}>>;
|
|
292
547
|
};
|