@vtex/faststore 0.0.4 → 0.0.6
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 +67 -0
- package/dist/actions.json +181 -0
- package/dist/catalog.json +1595 -481
- package/dist/client.d.ts +2 -1
- package/dist/client.js +2 -1
- package/dist/components.d.ts +31 -7
- package/dist/components.js +35 -13
- package/dist/content-types.json +73 -0
- package/dist/docs/access-code-sign-in.md +1 -1
- package/dist/docs/account-access-gate.md +153 -0
- package/dist/docs/account-entry-point.md +1 -2
- package/dist/docs/account-menu.md +164 -0
- package/dist/docs/address-summary.md +24 -3
- package/dist/docs/alert-dialog.md +204 -0
- package/dist/docs/billing-address.md +284 -0
- package/dist/docs/buy-button.md +1 -1
- package/dist/docs/card-entry.md +250 -0
- package/dist/docs/cardholder-document.md +142 -0
- package/dist/docs/cart.md +1 -1
- package/dist/docs/client-preferences-fieldset.md +148 -0
- package/dist/docs/client-preferences.md +2 -1
- package/dist/docs/client-profile-fieldset.md +184 -0
- package/dist/docs/client-profile.md +1 -1
- package/dist/docs/document-field.md +58 -4
- package/dist/docs/field.md +317 -0
- package/dist/docs/form.md +307 -0
- package/dist/docs/identity-edit.md +6 -6
- package/dist/docs/identity-summary.md +5 -5
- package/dist/docs/installments.md +248 -0
- package/dist/docs/my-account-profile.md +1 -0
- package/dist/docs/order-placed-payment-summary.md +138 -0
- package/dist/docs/payment-method-badges.md +232 -0
- package/dist/docs/payment-methods.md +1 -0
- package/dist/docs/payment.md +218 -0
- package/dist/docs/phone-field.md +58 -4
- package/dist/docs/place-order.md +157 -0
- package/dist/docs/save-card.md +186 -0
- package/dist/docs/saved-cards.md +218 -0
- package/dist/docs/select.md +465 -0
- package/dist/docs/session.md +1 -1
- package/dist/docs/shipping-address.md +110 -258
- package/dist/docs/sign-in-redirect.md +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/internal/client.d.ts +3 -1
- package/dist/internal/client.js +3 -1
- package/dist/matter/access-code-sign-in/access-code-sign-in.js +9 -8
- package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -1
- package/dist/matter/account-access-gate/account-access-gate.d.ts +86 -0
- package/dist/matter/account-access-gate/account-access-gate.js +283 -0
- package/dist/matter/account-access-gate/account-access-gate.js.map +1 -0
- package/dist/matter/account-access-gate/sign-out-intent.d.ts +17 -0
- package/dist/matter/account-access-gate/sign-out-intent.js +62 -0
- package/dist/matter/account-access-gate/sign-out-intent.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.js +2 -2
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +88 -0
- package/dist/matter/account-menu/account-menu.js +246 -0
- package/dist/matter/account-menu/account-menu.js.map +1 -0
- package/dist/matter/billing-address/billing-address.d.ts +165 -0
- package/dist/matter/billing-address/billing-address.js +408 -0
- package/dist/matter/billing-address/billing-address.js.map +1 -0
- package/dist/matter/card-entry/card-capture.d.ts +25 -0
- package/dist/matter/card-entry/card-capture.js +25 -0
- package/dist/matter/card-entry/card-capture.js.map +1 -0
- package/dist/matter/card-entry/card-entry.d.ts +120 -0
- package/dist/matter/card-entry/card-entry.js +832 -0
- package/dist/matter/card-entry/card-entry.js.map +1 -0
- package/dist/matter/cardholder-document/cardholder-document.d.ts +45 -0
- package/dist/matter/cardholder-document/cardholder-document.js +70 -0
- package/dist/matter/cardholder-document/cardholder-document.js.map +1 -0
- package/dist/matter/cart/cart.d.ts +1 -1
- package/dist/matter/cart/cart.js +2 -2
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences-fieldset.d.ts +77 -0
- package/dist/matter/client-preferences/client-preferences-fieldset.js +299 -0
- package/dist/matter/client-preferences/client-preferences-fieldset.js.map +1 -0
- package/dist/matter/client-preferences/client-preferences.d.ts +3 -5
- package/dist/matter/client-preferences/client-preferences.js +6 -6
- package/dist/matter/client-preferences/client-preferences.js.map +1 -1
- package/dist/matter/client-profile/client-profile.d.ts +4 -6
- package/dist/matter/client-profile/client-profile.js +9 -6
- package/dist/matter/client-profile/client-profile.js.map +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.d.ts +119 -0
- package/dist/matter/client-profile-form/client-profile-fieldset.js +488 -0
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -0
- package/dist/matter/delivery-options/delivery-options.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.js +2 -2
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.js +2 -2
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/installments/installments-select.d.ts +42 -0
- package/dist/matter/installments/installments-select.js +167 -0
- package/dist/matter/installments/installments-select.js.map +1 -0
- package/dist/matter/installments/installments.d.ts +58 -0
- package/dist/matter/installments/installments.js +176 -0
- package/dist/matter/installments/installments.js.map +1 -0
- package/dist/matter/installments/use-installments-selection.d.ts +29 -0
- package/dist/matter/installments/use-installments-selection.js +95 -0
- package/dist/matter/installments/use-installments-selection.js.map +1 -0
- package/dist/matter/my-account-profile/my-account-profile.js +5 -5
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +63 -0
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +305 -0
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.d.ts +19 -0
- package/dist/matter/payment/payment-card-capture.js +129 -0
- package/dist/matter/payment/payment-card-capture.js.map +1 -0
- package/dist/matter/payment/payment-controller.d.ts +24 -0
- package/dist/matter/payment/payment-controller.js +107 -0
- package/dist/matter/payment/payment-controller.js.map +1 -0
- package/dist/matter/payment/payment-method-badges.d.ts +57 -0
- package/dist/matter/payment/payment-method-badges.js +192 -0
- package/dist/matter/payment/payment-method-badges.js.map +1 -0
- package/dist/matter/payment/payment.d.ts +89 -0
- package/dist/matter/payment/payment.js +263 -0
- package/dist/matter/payment/payment.js.map +1 -0
- package/dist/matter/payment/use-payment-method-selection.d.ts +302 -0
- package/dist/matter/payment/use-payment-method-selection.js +458 -0
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -0
- package/dist/matter/payment/use-payment-submit-gate.d.ts +111 -0
- package/dist/matter/payment/use-payment-submit-gate.js +144 -0
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -0
- package/dist/matter/place-order/place-order.d.ts +74 -0
- package/dist/matter/place-order/place-order.js +379 -0
- package/dist/matter/place-order/place-order.js.map +1 -0
- package/dist/matter/product-list/product-list.d.ts +1 -0
- package/dist/matter/product-list/product-list.js.map +1 -1
- package/dist/matter/product-shelf/product-shelf.d.ts +1 -0
- package/dist/matter/product-shelf/product-shelf.js +2 -0
- package/dist/matter/product-shelf/product-shelf.js.map +1 -1
- package/dist/matter/region/region.js +1 -1
- package/dist/matter/region/region.js.map +1 -1
- package/dist/matter/save-card/save-card.d.ts +49 -0
- package/dist/matter/save-card/save-card.js +188 -0
- package/dist/matter/save-card/save-card.js.map +1 -0
- package/dist/matter/saved-cards/saved-cards.d.ts +79 -0
- package/dist/matter/saved-cards/saved-cards.js +387 -0
- package/dist/matter/saved-cards/saved-cards.js.map +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +20 -10
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/shipping-address.d.ts +113 -174
- package/dist/matter/shipping-address/shipping-address.js +481 -792
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/variant-selector/variant-selector.js +1 -1
- package/dist/particles/address-summary/address-summary.d.ts +24 -0
- package/dist/particles/address-summary/address-summary.js +83 -2
- package/dist/particles/address-summary/address-summary.js.map +1 -1
- package/dist/particles/alert-dialog/alert-dialog.d.ts +68 -0
- package/dist/particles/alert-dialog/alert-dialog.js +187 -0
- package/dist/particles/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/particles/checkbox/checkbox.d.ts +7 -3
- package/dist/particles/checkbox/checkbox.js +4 -1
- package/dist/particles/checkbox/checkbox.js.map +1 -1
- package/dist/particles/document-field/document-field.d.ts +48 -5
- package/dist/particles/document-field/document-field.js +189 -32
- package/dist/particles/document-field/document-field.js.map +1 -1
- package/dist/particles/field/bound-field-registry.js +52 -0
- package/dist/particles/field/bound-field-registry.js.map +1 -0
- package/dist/particles/field/field.d.ts +116 -0
- package/dist/particles/field/field.js +497 -6
- package/dist/particles/field/field.js.map +1 -1
- package/dist/particles/fieldset/fieldset.js +2 -2
- package/dist/particles/fieldset/fieldset.js.map +1 -1
- package/dist/particles/footer-social/footer-social.js +1 -1
- package/dist/particles/form/form.d.ts +104 -0
- package/dist/particles/form/form.js +485 -0
- package/dist/particles/form/form.js.map +1 -0
- package/dist/particles/incentives/incentives.js +1 -1
- package/dist/particles/phone-field/phone-field.d.ts +38 -10
- package/dist/particles/phone-field/phone-field.js +183 -39
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/postal-code-field/postal-code-field.js +2 -2
- package/dist/particles/postal-code-field/postal-code-field.js.map +1 -1
- package/dist/particles/select/field-select.d.ts +43 -0
- package/dist/particles/select/field-select.js +150 -0
- package/dist/particles/select/field-select.js.map +1 -0
- package/dist/particles/select/select.d.ts +2 -0
- package/dist/particles/select/select.js.map +1 -1
- package/dist/particles/shared/compose-refs.js +21 -0
- package/dist/particles/shared/compose-refs.js.map +1 -0
- package/dist/schema.graphql +701 -2
- package/dist/sdk/actions/analytics-action-provider.d.ts +15 -0
- package/dist/sdk/actions/analytics-action-provider.js +19 -0
- package/dist/sdk/actions/analytics-action-provider.js.map +1 -0
- package/dist/sdk/actions/cart-action-provider.d.ts +1 -1
- package/dist/sdk/actions/cart-action-provider.js +1 -1
- package/dist/sdk/actions/cart-action-provider.js.map +1 -1
- package/dist/sdk/actions/index.d.ts +3 -1
- package/dist/sdk/actions/index.js +3 -1
- package/dist/sdk/actions/payment-action-provider.d.ts +22 -0
- package/dist/sdk/actions/payment-action-provider.js +26 -0
- package/dist/sdk/actions/payment-action-provider.js.map +1 -0
- package/dist/sdk/actions/session-action-provider.d.ts +1 -1
- package/dist/sdk/actions/session-action-provider.js +1 -1
- package/dist/sdk/actions/session-action-provider.js.map +1 -1
- package/dist/sdk/actions/shipping-action-provider.d.ts +1 -1
- package/dist/sdk/actions/shipping-action-provider.js +1 -1
- package/dist/sdk/actions/shipping-action-provider.js.map +1 -1
- package/dist/sdk/actions/types.d.ts +6 -2
- package/dist/sdk/analytics/analytics-destination.d.ts +43 -0
- package/dist/sdk/analytics/analytics-destination.js +90 -0
- package/dist/sdk/analytics/analytics-destination.js.map +1 -0
- package/dist/sdk/analytics/use-analytics-actions.d.ts +57 -0
- package/dist/sdk/analytics/use-analytics-actions.js +108 -0
- package/dist/sdk/analytics/use-analytics-actions.js.map +1 -0
- package/dist/sdk/cache/storefront-cache.js +1 -1
- package/dist/sdk/cache/storefront-cache.js.map +1 -1
- package/dist/sdk/cart/operations.d.ts +4 -4
- package/dist/sdk/cart/operations.js +1 -1
- package/dist/sdk/cart/operations.js.map +1 -1
- package/dist/sdk/cart/optimistic.js +1 -1
- package/dist/sdk/cart/optimistic.js.map +1 -1
- package/dist/sdk/cart/use-cart-actions.d.ts +1 -1
- package/dist/sdk/cart/use-cart-actions.js +4 -4
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-validate-on-open.js +1 -1
- package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -1
- package/dist/sdk/cart/write-gate.js +1 -1
- package/dist/sdk/cart/write-gate.js.map +1 -1
- package/dist/sdk/data/entity-resolution-context.js +31 -0
- package/dist/sdk/data/entity-resolution-context.js.map +1 -0
- package/dist/sdk/data/entity-subscriber.js +18 -8
- package/dist/sdk/data/entity-subscriber.js.map +1 -1
- package/dist/sdk/data/index.js +1 -0
- package/dist/sdk/data/page-reactive-data-root.d.ts +38 -2
- package/dist/sdk/data/page-reactive-data-root.js +4 -2
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
- package/dist/sdk/data/reactive-data-provider.d.ts +1 -1
- package/dist/sdk/data/reactive-data-provider.js +8 -4
- package/dist/sdk/data/reactive-data-provider.js.map +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.d.ts +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.js +13 -5
- package/dist/sdk/data/reactive-list-item-data-provider.js.map +1 -1
- package/dist/sdk/data/use-reactive-data-settled.js +39 -0
- package/dist/sdk/data/use-reactive-data-settled.js.map +1 -0
- package/dist/sdk/data/use-reactive-entity.js +6 -2
- package/dist/sdk/data/use-reactive-entity.js.map +1 -1
- package/dist/sdk/generated/fragment-types.js +2 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -1
- package/dist/sdk/generated/gql.js +2 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.js +85 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/messages/en-US.js +3 -0
- package/dist/sdk/i18n/messages/en-US.json +3 -0
- package/dist/sdk/i18n/messages/en-US.json.d.ts +3 -0
- package/dist/sdk/i18n/messages/es-ES.js +3 -0
- package/dist/sdk/i18n/messages/es-ES.json +3 -0
- package/dist/sdk/i18n/messages/pt-BR.js +3 -0
- package/dist/sdk/i18n/messages/pt-BR.json +3 -0
- package/dist/sdk/identity/operations.js.map +1 -1
- package/dist/sdk/identity/use-identity-actions.d.ts +1 -1
- package/dist/sdk/identity/use-identity-actions.js +3 -2
- package/dist/sdk/identity/use-identity-actions.js.map +1 -1
- package/dist/sdk/payment/gateway-origin.js +35 -0
- package/dist/sdk/payment/gateway-origin.js.map +1 -0
- package/dist/sdk/payment/gateway.d.ts +85 -0
- package/dist/sdk/payment/gateway.js +183 -0
- package/dist/sdk/payment/gateway.js.map +1 -0
- package/dist/sdk/payment/operations.d.ts +52 -0
- package/dist/sdk/payment/operations.js +223 -0
- package/dist/sdk/payment/operations.js.map +1 -0
- package/dist/sdk/payment/security-code-mask.js +71 -0
- package/dist/sdk/payment/security-code-mask.js.map +1 -0
- package/dist/sdk/payment/submission-registry.d.ts +33 -0
- package/dist/sdk/payment/submission-registry.js +58 -0
- package/dist/sdk/payment/submission-registry.js.map +1 -0
- package/dist/sdk/payment/use-payment-actions.d.ts +78 -0
- package/dist/sdk/payment/use-payment-actions.js +276 -0
- package/dist/sdk/payment/use-payment-actions.js.map +1 -0
- package/dist/sdk/payment/use-place-order.d.ts +65 -0
- package/dist/sdk/payment/use-place-order.js +640 -0
- package/dist/sdk/payment/use-place-order.js.map +1 -0
- package/dist/sdk/session/auth-operations.d.ts +1 -1
- package/dist/sdk/session/auth-operations.js.map +1 -1
- package/dist/sdk/session/use-session-actions.d.ts +1 -1
- package/dist/sdk/session/use-session-actions.js.map +1 -1
- package/dist/sdk/session/use-session-revalidation.js +65 -0
- package/dist/sdk/session/use-session-revalidation.js.map +1 -0
- package/dist/sdk/shipping/option-select-operations.d.ts +1 -1
- package/dist/sdk/shipping/option-select-operations.js.map +1 -1
- package/dist/sdk/shipping/request-timeout.js +1 -1
- package/dist/sdk/shipping/request-timeout.js.map +1 -1
- package/dist/sdk/shipping/shipping-operations.d.ts +1 -1
- package/dist/sdk/shipping/shipping-operations.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-actions.d.ts +2 -2
- package/dist/sdk/shipping/use-shipping-actions.js +1 -1
- package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
- package/dist/sdk/state/cart.d.ts +3 -4
- package/dist/sdk/state/cart.js +6 -7
- package/dist/sdk/state/cart.js.map +1 -1
- package/dist/utils/loggable-error-name.js +49 -0
- package/dist/utils/loggable-error-name.js.map +1 -0
- package/dist/utils/resolve-authored-copy.js +18 -0
- package/dist/utils/resolve-authored-copy.js.map +1 -0
- package/dist/utils/safe-href.js +3 -3
- package/dist/utils/safe-href.js.map +1 -1
- package/dist/utils/substitute-template.js +33 -0
- package/dist/utils/substitute-template.js.map +1 -0
- package/package.json +2 -1
- package/src/styles/tailwind.css +34 -0
- package/dist/docs/client-profile-form.md +0 -192
- package/dist/matter/client-profile-form/client-profile-form.d.ts +0 -126
- package/dist/matter/client-profile-form/client-profile-form.js +0 -662
- package/dist/matter/client-profile-form/client-profile-form.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,73 @@ Every published version of `@vtex/faststore` has a section here. From `0.0.2` on
|
|
|
4
4
|
written when its release pull request opens, and reviewed alongside the API delta that justifies the
|
|
5
5
|
version.
|
|
6
6
|
|
|
7
|
+
## 0.0.6
|
|
8
|
+
|
|
9
|
+
**Removed from `./components`.** The `ClientProfileForm` family is gone: the `ClientProfileForm`
|
|
10
|
+
namespace, `ClientProfileFormRoot`, `ClientProfileFormFieldset`, the `EmailField`, `FirstNameField`,
|
|
11
|
+
`LastNameField`, `PhoneField`, `DocumentField`, `NewsletterCheckbox` and `SavePersonalDataCheckbox`
|
|
12
|
+
parts, `ClientProfileFormError`, `ClientProfileFormConfirmation`, `ClientProfileFormSubmitButton`, and
|
|
13
|
+
their `*Definition` and `*Props` exports, plus `ClientProfileFormData`. `ClientProfileFieldset` and
|
|
14
|
+
`ClientPreferencesFieldset` replace them, each with its own controls
|
|
15
|
+
(`ClientProfileFirstNameControl`, `ClientProfileLastNameControl`, `ClientProfileFieldsetPhoneControl`,
|
|
16
|
+
`ClientProfileDocumentControl`, `ClientPreferencesNewsletterControl`,
|
|
17
|
+
`ClientPreferencesSavePersonalDataControl`), skeletons and `*Data` types. An author who composed the
|
|
18
|
+
old form must move to the fieldsets and compose a `Form` around them.
|
|
19
|
+
|
|
20
|
+
`DocumentField` drops its `required` prop. `requirement: 'mandatory' | 'optional'` replaces it.
|
|
21
|
+
Requiredness is now a baseline that an author may raise, never lower. An unset phone requirement
|
|
22
|
+
raises nothing, so a phone field that used to demand a value no longer does. `FormRegistryContext`
|
|
23
|
+
is no longer exported from the barrel.
|
|
24
|
+
|
|
25
|
+
**Changed in `./components`.** `DocumentFieldProps` and `CheckboxRootProps` now extend
|
|
26
|
+
`ComponentPropsWithRef`, so `DocumentField` and `CheckboxRoot` accept the standard element props.
|
|
27
|
+
`DocumentField` returns `ReactNode` instead of `JSX.Element`.
|
|
28
|
+
|
|
29
|
+
**Added to `./components`.**
|
|
30
|
+
|
|
31
|
+
- Forms: `Form`, `FormRoot`, `FormSubmit`, `FormReset`, `FormClear`, `FormError` and
|
|
32
|
+
`FormEnterSubmit`. They come with `FieldBinding`, `FieldCheckbox`, `FieldSelect` and its parts,
|
|
33
|
+
`FieldRule`, `FieldContract` and the field registry types. A fieldset composes an entity form from
|
|
34
|
+
these.
|
|
35
|
+
- `AlertDialog`: root, trigger, portal, backdrop, viewport, popup, title, description and close.
|
|
36
|
+
- The credit-card payment surface: `CardEntry`, `CardholderDocument`, `BillingAddress`,
|
|
37
|
+
`Installments` and `InstallmentsSelect`, `PaymentMethodList`, `PaymentMethodBadges`,
|
|
38
|
+
`AcceptedPaymentMethodBadges` and `OrderPlacedPaymentSummary`, with their validators
|
|
39
|
+
(`isValidLuhn`, `isExpirationFormatValid`, `isExpirationInFuture`) and error codes.
|
|
40
|
+
- `AddressSummaryName`, `AddressSummaryCountry` and `AddressSummaryField`.
|
|
41
|
+
|
|
42
|
+
**Added to `./client`.** `AnalyticsDestinationProvider` sets the analytics destination for its
|
|
43
|
+
children. Three message keys join the catalog: `fs/form.clear`, `fs/form.reset` and `fs/form.submit`.
|
|
44
|
+
|
|
45
|
+
`.` and `./graphql` have no signature change.
|
|
46
|
+
|
|
47
|
+
In the Internal set, `@vtex/sukima` now runs content preflight across every active locale, names the
|
|
48
|
+
locales it checked when preflight fails, and reports a non-object Data Plane entry. It fills a
|
|
49
|
+
missing title template from `seo.titleTemplate`. `@vtex/fs-storefront-api-core` adds the catalog
|
|
50
|
+
route equivalence contract and picks the representative SKU for product routes.
|
|
51
|
+
|
|
52
|
+
## 0.0.5
|
|
53
|
+
|
|
54
|
+
`./components` adds `AccountAccessGate`, the single access decision for the account pages, placed
|
|
55
|
+
once in the account layout. It renders the account only for a signed-in shopper, sends a visitor who
|
|
56
|
+
arrived signed out to sign-in once per visit, and shows a notice with a sign-in link when the session
|
|
57
|
+
ended mid-visit or sign-in did not complete. It comes with `AccountAccessGateLoading`,
|
|
58
|
+
`AccountAccessGateNotice`, the `AccountAccessGateContent` content type,
|
|
59
|
+
`AccountAccessGateDefinition`, and the `AccountAccessGateProps`, `AccountAccessGateLoadingProps`,
|
|
60
|
+
`AccountAccessGateNoticeProps` and `AccountAccessGateNoticeReason` types. `declareSignOutIntent`,
|
|
61
|
+
`withdrawSignOutIntent` and `useSignOutIntent` let a sign-out tell the gate it was deliberate.
|
|
62
|
+
|
|
63
|
+
`./components` also adds `AccountMenu`, the account navigation: `AccountMenuRoot` and
|
|
64
|
+
`AccountMenuList`, their `*Definition` and `*Props` exports, the `AccountMenuContent` content type,
|
|
65
|
+
`useAccountMenu`, and the `AccountMenuContextValue`, `AccountMenuCurrent`, `AccountMenuSection` and
|
|
66
|
+
`AccountMenuResolvedSection` types.
|
|
67
|
+
|
|
68
|
+
Nothing is removed. `.`, `./client` and `./graphql` have no signature change.
|
|
69
|
+
|
|
70
|
+
In the Internal set, `@vtex/sukima` fixes `sukima dev --no-watch` overwriting the `dist/package.json`
|
|
71
|
+
another compiler wrote. The host's `@vtex/preview-bridge` link was dropped, so a store outside the
|
|
72
|
+
host's checkout failed with `Can't resolve '@vtex/preview-bridge'`.
|
|
73
|
+
|
|
7
74
|
## 0.0.4
|
|
8
75
|
|
|
9
76
|
`./components` adds `MyAccountProfile`, the signed-in shopper's profile editor. `Root` loads the saved
|
package/dist/actions.json
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
+
"analytics": {
|
|
3
|
+
"namespace": "analytics",
|
|
4
|
+
"description": "Dispatcher-flavor namespace that pushes standard add_payment_info / purchase events to window.dataLayer. Never touches the Apollo cache.",
|
|
5
|
+
"provider": {
|
|
6
|
+
"name": "AnalyticsActionProvider",
|
|
7
|
+
"importPath": "@vtex/faststore/internal/client"
|
|
8
|
+
},
|
|
9
|
+
"methods": {
|
|
10
|
+
"track": {
|
|
11
|
+
"description": "Push a standard analytics event (add_payment_info | purchase) to window.dataLayer. Fire-and-forget; never throws.",
|
|
12
|
+
"payload": [
|
|
13
|
+
{
|
|
14
|
+
"name": "name",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "currencyCode",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amount",
|
|
23
|
+
"type": "number"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "paymentType",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "transactionId",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
2
39
|
"cart": {
|
|
3
40
|
"namespace": "cart",
|
|
4
41
|
"description": "Mutation-backed writes against the current cart (consolidates useCartMutations / CartRoot).",
|
|
@@ -195,6 +232,150 @@
|
|
|
195
232
|
}
|
|
196
233
|
}
|
|
197
234
|
},
|
|
235
|
+
"payment": {
|
|
236
|
+
"namespace": "payment",
|
|
237
|
+
"description": "Mutation-backed payment writes against the VTEX orderForm paymentData/invoiceData, plus a façade that posts card data directly to the payment gateway (never through our GraphQL layer or cache).",
|
|
238
|
+
"provider": {
|
|
239
|
+
"name": "PaymentActionProvider",
|
|
240
|
+
"importPath": "@vtex/faststore/internal/client"
|
|
241
|
+
},
|
|
242
|
+
"methods": {
|
|
243
|
+
"setMethod": {
|
|
244
|
+
"description": "Select a payment method, optionally identifying a new card by BIN or a saved card by account (async/pessimistic). Resolves the payload userErrors.",
|
|
245
|
+
"payload": [
|
|
246
|
+
{
|
|
247
|
+
"name": "methodId",
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "bin",
|
|
252
|
+
"type": "string",
|
|
253
|
+
"optional": true
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "accountId",
|
|
257
|
+
"type": "string",
|
|
258
|
+
"optional": true
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"setInstallments": {
|
|
263
|
+
"description": "Select an installment count for the current method (async/pessimistic). The response recomputes the cart total with interest. Resolves the payload userErrors.",
|
|
264
|
+
"payload": [
|
|
265
|
+
{
|
|
266
|
+
"name": "count",
|
|
267
|
+
"type": "number"
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"setBillingAddress": {
|
|
272
|
+
"description": "Persist the billing address, or fall back to the delivery address with sameAsDelivery (async/pessimistic). Resolves the payload userErrors.",
|
|
273
|
+
"payload": [
|
|
274
|
+
{
|
|
275
|
+
"name": "sameAsDelivery",
|
|
276
|
+
"type": "boolean"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "addressType",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"optional": true
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "postalCode",
|
|
285
|
+
"type": "string",
|
|
286
|
+
"optional": true
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "country",
|
|
290
|
+
"type": "string",
|
|
291
|
+
"optional": true
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "street",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"optional": true
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "number",
|
|
300
|
+
"type": "string",
|
|
301
|
+
"optional": true
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "complement",
|
|
305
|
+
"type": "string",
|
|
306
|
+
"optional": true
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "neighborhood",
|
|
310
|
+
"type": "string",
|
|
311
|
+
"optional": true
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "city",
|
|
315
|
+
"type": "string",
|
|
316
|
+
"optional": true
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "state",
|
|
320
|
+
"type": "string",
|
|
321
|
+
"optional": true
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "reference",
|
|
325
|
+
"type": "string",
|
|
326
|
+
"optional": true
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"saveCard": {
|
|
331
|
+
"description": "Record the data-storage consent a saved card requires, reusing the existing clientPreferencesUpdate write. Does not itself save the card — the save flag and label travel on sendPayments.",
|
|
332
|
+
"payload": [
|
|
333
|
+
{
|
|
334
|
+
"name": "enabled",
|
|
335
|
+
"type": "boolean"
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"startTransaction": {
|
|
340
|
+
"description": "Open a VTEX transaction from the persisted payment selection. Takes no arguments; resolves the transaction identifiers the gateway call needs.",
|
|
341
|
+
"payload": []
|
|
342
|
+
},
|
|
343
|
+
"gatewayCallback": {
|
|
344
|
+
"description": "Finalize the transaction after the gateway accepted the card. Resolves the payload userErrors.",
|
|
345
|
+
"payload": [
|
|
346
|
+
{
|
|
347
|
+
"name": "orderGroup",
|
|
348
|
+
"type": "string"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
"sendPayments": {
|
|
353
|
+
"description": "Façade: post the card directly from the browser to the payment gateway. Issues no GraphQL operation and writes nothing to the cache. The card number and CVV are runtime-only arguments and are deliberately absent from this payload — they are never a bindable field (RFC D13).",
|
|
354
|
+
"payload": [
|
|
355
|
+
{
|
|
356
|
+
"name": "gatewayUrl",
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "transactionId",
|
|
361
|
+
"type": "string"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "merchantName",
|
|
365
|
+
"type": "string"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "orderGroup",
|
|
369
|
+
"type": "string"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "userProfileId",
|
|
373
|
+
"type": "string"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
198
379
|
"region": {
|
|
199
380
|
"namespace": "region",
|
|
200
381
|
"description": "Mutation-backed writes against the shopper's active region (postal code).",
|