@vtex/faststore 0.0.5 → 0.0.7
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 +101 -0
- package/dist/actions.json +181 -0
- package/dist/catalog.json +1673 -484
- package/dist/cli/UnreachableCaseError-Crd168Vu.js +10 -0
- package/dist/cli/UnreachableCaseError-Crd168Vu.js.map +1 -0
- package/dist/cli/cacheControl-CEojH_TM.js +158 -0
- package/dist/cli/cacheControl-CEojH_TM.js.map +1 -0
- package/dist/cli/cachePolicy-m2vASMRW.js +26 -0
- package/dist/cli/cachePolicy-m2vASMRW.js.map +1 -0
- package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js +10 -0
- package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js.map +1 -0
- package/dist/cli/default-BCQHcwbL.js +253 -0
- package/dist/cli/default-BCQHcwbL.js.map +1 -0
- package/dist/cli/disableSuggestions-yO9UqiWn.js +21 -0
- package/dist/cli/disableSuggestions-yO9UqiWn.js.map +1 -0
- package/dist/cli/dist-C1JhdHfo.js +2001 -0
- package/dist/cli/dist-C1JhdHfo.js.map +1 -0
- package/dist/cli/graphql-DG9thCDG.js +14589 -0
- package/dist/cli/graphql-DG9thCDG.js.map +1 -0
- package/dist/cli/index.d.ts +350 -0
- package/dist/cli/index.js +35047 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/index.min-BsIHDfFK.js +613 -0
- package/dist/cli/index.min-BsIHDfFK.js.map +1 -0
- package/dist/cli/inlineTrace-uLgOJ3TH.js +52 -0
- package/dist/cli/inlineTrace-uLgOJ3TH.js.map +1 -0
- package/dist/cli/internalPlugin-DnuwN4_4.js +11 -0
- package/dist/cli/internalPlugin-DnuwN4_4.js.map +1 -0
- package/dist/cli/packageVersion-DQAnIEil.js +6 -0
- package/dist/cli/packageVersion-DQAnIEil.js.map +1 -0
- package/dist/cli/rolldown-runtime-BMI-E3GI.js +44 -0
- package/dist/cli/schemaIsSubgraph-DoGh3OYj.js +17 -0
- package/dist/cli/schemaIsSubgraph-DoGh3OYj.js.map +1 -0
- package/dist/cli/schemaReporting-K-me-3-v.js +199 -0
- package/dist/cli/schemaReporting-K-me-3-v.js.map +1 -0
- package/dist/cli/server-runtime.js +49859 -0
- package/dist/cli/server-runtime.js.map +1 -0
- package/dist/cli/traceTreeBuilder-BIcV2U7b.js +9118 -0
- package/dist/cli/traceTreeBuilder-BIcV2U7b.js.map +1 -0
- package/dist/cli/usageReporting-Bpl8vSZX.js +10201 -0
- package/dist/cli/usageReporting-Bpl8vSZX.js.map +1 -0
- package/dist/cli/v4-CBhFvC49.js +42 -0
- package/dist/cli/v4-CBhFvC49.js.map +1 -0
- package/dist/client.d.ts +2 -1
- package/dist/client.js +2 -1
- package/dist/components.d.ts +32 -9
- package/dist/components.js +35 -14
- package/dist/content-types.json +93 -0
- package/dist/core/dist/define-component.d.ts +37 -0
- package/dist/core/dist/index.d.ts +2 -2
- package/dist/docs/access-code-sign-in.md +1 -1
- package/dist/docs/account-entry-point.md +1 -1
- package/dist/docs/account-menu-identity.md +160 -0
- package/dist/docs/account-menu.md +106 -23
- package/dist/docs/address-summary.md +24 -3
- package/dist/docs/alert-dialog.md +204 -0
- package/dist/docs/avatar.md +103 -0
- package/dist/docs/billing-address.md +284 -0
- package/dist/docs/card-entry.md +250 -0
- package/dist/docs/cardholder-document.md +142 -0
- 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 +2 -1
- 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/product-shelf.md +20 -13
- 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/shipping-address.md +110 -258
- package/dist/index.d.ts +5 -2
- package/dist/internal/client.d.ts +3 -1
- package/dist/internal/client.js +4 -2
- package/dist/internal/content.d.ts +2 -2
- package/dist/internal/server.d.ts +4 -1
- package/dist/internal/server.js +4 -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.js.map +1 -1
- package/dist/matter/account-entry-point/account-entry-point.js +1 -1
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +70 -0
- package/dist/matter/account-menu/account-menu.js +201 -9
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/account-menu/sign-out-failure.js +50 -0
- package/dist/matter/account-menu/sign-out-failure.js.map +1 -0
- package/dist/matter/account-menu-identity/account-menu-identity.d.ts +21 -0
- package/dist/matter/account-menu-identity/account-menu-identity.js +88 -0
- package/dist/matter/account-menu-identity/account-menu-identity.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 +833 -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.js +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/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 +3 -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.d.ts +3 -0
- package/dist/matter/my-account-profile/my-account-profile.js +6 -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 +108 -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 +264 -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 +62 -31
- package/dist/matter/product-shelf/product-shelf.js +159 -57
- 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 +388 -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 +480 -791
- package/dist/matter/shipping-address/shipping-address.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/avatar/avatar.d.ts +17 -0
- package/dist/particles/avatar/avatar.js +65 -0
- package/dist/particles/avatar/avatar.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/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/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 +766 -28
- 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/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/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 +109 -0
- package/dist/sdk/analytics/use-analytics-actions.js.map +1 -0
- package/dist/sdk/cart/use-cart-actions.js +10 -9
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-validate-on-open.js +2 -1
- package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -1
- package/dist/sdk/content/create-content-runtime.d.ts +22 -1
- package/dist/sdk/content/create-content-runtime.js +89 -1
- package/dist/sdk/content/create-content-runtime.js.map +1 -1
- package/dist/sdk/data/empty-content-value.js +16 -0
- package/dist/sdk/data/empty-content-value.js.map +1 -0
- 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/hot-data-provider.js +2 -1
- package/dist/sdk/data/hot-data-provider.js.map +1 -1
- package/dist/sdk/data/index.js +2 -1
- package/dist/sdk/data/page-reactive-data-root.d.ts +36 -0
- 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.js +7 -3
- package/dist/sdk/data/reactive-data-provider.js.map +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.js +12 -4
- 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 +5 -1
- package/dist/sdk/data/use-reactive-entity.js.map +1 -1
- package/dist/sdk/data/variables-from-content.d.ts +43 -0
- package/dist/sdk/data/variables-from-content.js +57 -0
- package/dist/sdk/data/variables-from-content.js.map +1 -0
- 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/use-identity-actions.js +8 -6
- 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/region/use-region-actions.js +2 -1
- package/dist/sdk/region/use-region-actions.js.map +1 -1
- package/dist/sdk/session/read-server-session.d.ts +21 -0
- package/dist/sdk/session/read-server-session.js +61 -0
- package/dist/sdk/session/read-server-session.js.map +1 -0
- package/dist/sdk/session/use-session-actions.js +5 -4
- package/dist/sdk/session/use-session-actions.js.map +1 -1
- package/dist/sdk/session/use-session-revalidation.js +2 -1
- package/dist/sdk/session/use-session-revalidation.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-actions.js +4 -3
- package/dist/sdk/shipping/use-shipping-actions.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.d.ts +11 -0
- package/dist/utils/substitute-template.js +33 -0
- package/dist/utils/substitute-template.js.map +1 -0
- package/package.json +14 -2
- 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,107 @@ 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.7
|
|
8
|
+
|
|
9
|
+
**Removed from `./components`.** The `ProductShelf` variables API is gone: `buildProductShelfVariables`,
|
|
10
|
+
`ProductsFilterInput` and `ProductShelfVariables`. `ProductShelfConfig` loses `itemsPerPage` and
|
|
11
|
+
`specifications`, and `first`, `sort` and `availableOnly` are now required on it.
|
|
12
|
+
`ProductShelfContextValue.variables` is now `config`. The `specifications` filter has no replacement,
|
|
13
|
+
so a shelf can no longer filter by custom attributes. `ProductShelfRootProps` takes
|
|
14
|
+
`Partial<ProductShelfConfig>` and an optional `itemsPerPage`, so every prop of `ProductShelfRoot` stays
|
|
15
|
+
optional.
|
|
16
|
+
|
|
17
|
+
**Changed in `./components`.** `ProductShelfRoot` reads its configuration from the store's content first.
|
|
18
|
+
The `ProductShelfContent` content type, the `$content` prop and `PRODUCT_SHELF_SORT_MAP` carry it. The
|
|
19
|
+
merchant's value wins per field, and the prop is the default. A store with no `cms` binding sees no
|
|
20
|
+
change.
|
|
21
|
+
|
|
22
|
+
`AccountEntryPoint` now links to `/pvt/account`, and the default sections of `AccountMenu` link to
|
|
23
|
+
`/pvt/profile`, `/pvt/orders`, `/pvt/address`, `/pvt/payments` and `/pvt/security`. They pointed under
|
|
24
|
+
`/account` before. No signature changes, but a store that authored its account pages under `account`
|
|
25
|
+
must move them under `pvt`, or these links point at routes that do not exist.
|
|
26
|
+
|
|
27
|
+
**Added to `./components`.** `AccountMenu` gains the `IndexRedirect` and `SignOut` parts, each with its
|
|
28
|
+
`*Definition`, `*Props` and content type (`AccountMenuIndexRedirectContent`,
|
|
29
|
+
`AccountMenuSignOutContent`). `AccountMenuIdentity` renders the signed-in shopper's identity from
|
|
30
|
+
`AccountMenuIdentityData` (`id`, `firstName`, `lastName`, `email`), with `AccountMenuIdentitySkeleton`
|
|
31
|
+
and its `*Definition` and `*Props` exports. `Avatar` joins the particles, with `AvatarDefinition` and
|
|
32
|
+
`AvatarProps`.
|
|
33
|
+
|
|
34
|
+
**Added to `.` and `./components`.** `ComponentDefinition` gains two optional fields. `hardened: true`
|
|
35
|
+
is the author's claim that a component is hardened for card data; nothing verifies it. `variables`
|
|
36
|
+
binds the variables of the component's fragment to its content or its props. `VariableBinding` and
|
|
37
|
+
`VariableBindings` are new exports of `.`. `CardEntry`, `PaymentSectionController`,
|
|
38
|
+
`PaymentSectionRoot` and `SavedCardCvvField` carry the marker.
|
|
39
|
+
|
|
40
|
+
**Added to `./cli`.** The entry is new. It folds `@vtex/fs-graphql` into `@vtex/faststore`
|
|
41
|
+
and exports `buildExtension`, `runDev`, `runDevWatch`, `validateExtension`, `lintExtension`,
|
|
42
|
+
`buildSubgraph`, `printSubgraphSdl`, `resolveDeclarationEntry`, `templates`, `CompileError`,
|
|
43
|
+
`ValidationGateError` and their types. `typescript` becomes an optional peer dependency. Only the
|
|
44
|
+
capability lint and the type-check in `buildExtension` need it. Without it, those two fail with an
|
|
45
|
+
error that names the package.
|
|
46
|
+
|
|
47
|
+
`./client` and `./graphql` have no signature change. `./internal/server` adds `readServerSession` and
|
|
48
|
+
`resolveSignInHref`, and `./internal/content` adds `readContentItem`. Only generated code calls them.
|
|
49
|
+
|
|
50
|
+
In the Internal set, `@vtex/sukima` implements the page model. A page document now declares its
|
|
51
|
+
access, discovery, bindings and aliases, content kind, standard name and variants. From them the
|
|
52
|
+
compiler derives routing, gates `pvt` pages behind a server session read, emits Article and FAQPage
|
|
53
|
+
JSON-LD from the content kind, writes a page manifest and exposes a rule catalog to the store editor.
|
|
54
|
+
It reads a page's item by slug and binds `$content` on content-form pages, and it retires
|
|
55
|
+
`dataSources` with coded diagnostics. Fragment variables come from content or props, which is what
|
|
56
|
+
the `ProductShelfRoot` change above relies on. `global.json` takes a `responseHeaders` block that the
|
|
57
|
+
generated app writes into its `next.config.ts`.
|
|
58
|
+
|
|
59
|
+
Three checks are new, and each can fail a build that passed before: a card-bearing component placed
|
|
60
|
+
without the `hardened` marker, a store-authored SVG icon that is unsafe, and a store-authored prop
|
|
61
|
+
name that is not valid in the generated TSX.
|
|
62
|
+
|
|
63
|
+
## 0.0.6
|
|
64
|
+
|
|
65
|
+
**Removed from `./components`.** The `ClientProfileForm` family is gone: the `ClientProfileForm`
|
|
66
|
+
namespace, `ClientProfileFormRoot`, `ClientProfileFormFieldset`, the `EmailField`, `FirstNameField`,
|
|
67
|
+
`LastNameField`, `PhoneField`, `DocumentField`, `NewsletterCheckbox` and `SavePersonalDataCheckbox`
|
|
68
|
+
parts, `ClientProfileFormError`, `ClientProfileFormConfirmation`, `ClientProfileFormSubmitButton`, and
|
|
69
|
+
their `*Definition` and `*Props` exports, plus `ClientProfileFormData`. `ClientProfileFieldset` and
|
|
70
|
+
`ClientPreferencesFieldset` replace them, each with its own controls
|
|
71
|
+
(`ClientProfileFirstNameControl`, `ClientProfileLastNameControl`, `ClientProfileFieldsetPhoneControl`,
|
|
72
|
+
`ClientProfileDocumentControl`, `ClientPreferencesNewsletterControl`,
|
|
73
|
+
`ClientPreferencesSavePersonalDataControl`), skeletons and `*Data` types. An author who composed the
|
|
74
|
+
old form must move to the fieldsets and compose a `Form` around them.
|
|
75
|
+
|
|
76
|
+
`DocumentField` drops its `required` prop. `requirement: 'mandatory' | 'optional'` replaces it.
|
|
77
|
+
Requiredness is now a baseline that an author may raise, never lower. An unset phone requirement
|
|
78
|
+
raises nothing, so a phone field that used to demand a value no longer does. `FormRegistryContext`
|
|
79
|
+
is no longer exported from the barrel.
|
|
80
|
+
|
|
81
|
+
**Changed in `./components`.** `DocumentFieldProps` and `CheckboxRootProps` now extend
|
|
82
|
+
`ComponentPropsWithRef`, so `DocumentField` and `CheckboxRoot` accept the standard element props.
|
|
83
|
+
`DocumentField` returns `ReactNode` instead of `JSX.Element`.
|
|
84
|
+
|
|
85
|
+
**Added to `./components`.**
|
|
86
|
+
|
|
87
|
+
- Forms: `Form`, `FormRoot`, `FormSubmit`, `FormReset`, `FormClear`, `FormError` and
|
|
88
|
+
`FormEnterSubmit`. They come with `FieldBinding`, `FieldCheckbox`, `FieldSelect` and its parts,
|
|
89
|
+
`FieldRule`, `FieldContract` and the field registry types. A fieldset composes an entity form from
|
|
90
|
+
these.
|
|
91
|
+
- `AlertDialog`: root, trigger, portal, backdrop, viewport, popup, title, description and close.
|
|
92
|
+
- The credit-card payment surface: `CardEntry`, `CardholderDocument`, `BillingAddress`,
|
|
93
|
+
`Installments` and `InstallmentsSelect`, `PaymentMethodList`, `PaymentMethodBadges`,
|
|
94
|
+
`AcceptedPaymentMethodBadges` and `OrderPlacedPaymentSummary`, with their validators
|
|
95
|
+
(`isValidLuhn`, `isExpirationFormatValid`, `isExpirationInFuture`) and error codes.
|
|
96
|
+
- `AddressSummaryName`, `AddressSummaryCountry` and `AddressSummaryField`.
|
|
97
|
+
|
|
98
|
+
**Added to `./client`.** `AnalyticsDestinationProvider` sets the analytics destination for its
|
|
99
|
+
children. Three message keys join the catalog: `fs/form.clear`, `fs/form.reset` and `fs/form.submit`.
|
|
100
|
+
|
|
101
|
+
`.` and `./graphql` have no signature change.
|
|
102
|
+
|
|
103
|
+
In the Internal set, `@vtex/sukima` now runs content preflight across every active locale, names the
|
|
104
|
+
locales it checked when preflight fails, and reports a non-object Data Plane entry. It fills a
|
|
105
|
+
missing title template from `seo.titleTemplate`. `@vtex/fs-storefront-api-core` adds the catalog
|
|
106
|
+
route equivalence contract and picks the representative SKU for product routes.
|
|
107
|
+
|
|
7
108
|
## 0.0.5
|
|
8
109
|
|
|
9
110
|
`./components` adds `AccountAccessGate`, the single access decision for the account pages, placed
|
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).",
|