@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.
Files changed (326) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/dist/actions.json +181 -0
  3. package/dist/catalog.json +1673 -484
  4. package/dist/cli/UnreachableCaseError-Crd168Vu.js +10 -0
  5. package/dist/cli/UnreachableCaseError-Crd168Vu.js.map +1 -0
  6. package/dist/cli/cacheControl-CEojH_TM.js +158 -0
  7. package/dist/cli/cacheControl-CEojH_TM.js.map +1 -0
  8. package/dist/cli/cachePolicy-m2vASMRW.js +26 -0
  9. package/dist/cli/cachePolicy-m2vASMRW.js.map +1 -0
  10. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js +10 -0
  11. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js.map +1 -0
  12. package/dist/cli/default-BCQHcwbL.js +253 -0
  13. package/dist/cli/default-BCQHcwbL.js.map +1 -0
  14. package/dist/cli/disableSuggestions-yO9UqiWn.js +21 -0
  15. package/dist/cli/disableSuggestions-yO9UqiWn.js.map +1 -0
  16. package/dist/cli/dist-C1JhdHfo.js +2001 -0
  17. package/dist/cli/dist-C1JhdHfo.js.map +1 -0
  18. package/dist/cli/graphql-DG9thCDG.js +14589 -0
  19. package/dist/cli/graphql-DG9thCDG.js.map +1 -0
  20. package/dist/cli/index.d.ts +350 -0
  21. package/dist/cli/index.js +35047 -0
  22. package/dist/cli/index.js.map +1 -0
  23. package/dist/cli/index.min-BsIHDfFK.js +613 -0
  24. package/dist/cli/index.min-BsIHDfFK.js.map +1 -0
  25. package/dist/cli/inlineTrace-uLgOJ3TH.js +52 -0
  26. package/dist/cli/inlineTrace-uLgOJ3TH.js.map +1 -0
  27. package/dist/cli/internalPlugin-DnuwN4_4.js +11 -0
  28. package/dist/cli/internalPlugin-DnuwN4_4.js.map +1 -0
  29. package/dist/cli/packageVersion-DQAnIEil.js +6 -0
  30. package/dist/cli/packageVersion-DQAnIEil.js.map +1 -0
  31. package/dist/cli/rolldown-runtime-BMI-E3GI.js +44 -0
  32. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js +17 -0
  33. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js.map +1 -0
  34. package/dist/cli/schemaReporting-K-me-3-v.js +199 -0
  35. package/dist/cli/schemaReporting-K-me-3-v.js.map +1 -0
  36. package/dist/cli/server-runtime.js +49859 -0
  37. package/dist/cli/server-runtime.js.map +1 -0
  38. package/dist/cli/traceTreeBuilder-BIcV2U7b.js +9118 -0
  39. package/dist/cli/traceTreeBuilder-BIcV2U7b.js.map +1 -0
  40. package/dist/cli/usageReporting-Bpl8vSZX.js +10201 -0
  41. package/dist/cli/usageReporting-Bpl8vSZX.js.map +1 -0
  42. package/dist/cli/v4-CBhFvC49.js +42 -0
  43. package/dist/cli/v4-CBhFvC49.js.map +1 -0
  44. package/dist/client.d.ts +2 -1
  45. package/dist/client.js +2 -1
  46. package/dist/components.d.ts +32 -9
  47. package/dist/components.js +35 -14
  48. package/dist/content-types.json +93 -0
  49. package/dist/core/dist/define-component.d.ts +37 -0
  50. package/dist/core/dist/index.d.ts +2 -2
  51. package/dist/docs/access-code-sign-in.md +1 -1
  52. package/dist/docs/account-entry-point.md +1 -1
  53. package/dist/docs/account-menu-identity.md +160 -0
  54. package/dist/docs/account-menu.md +106 -23
  55. package/dist/docs/address-summary.md +24 -3
  56. package/dist/docs/alert-dialog.md +204 -0
  57. package/dist/docs/avatar.md +103 -0
  58. package/dist/docs/billing-address.md +284 -0
  59. package/dist/docs/card-entry.md +250 -0
  60. package/dist/docs/cardholder-document.md +142 -0
  61. package/dist/docs/client-preferences-fieldset.md +148 -0
  62. package/dist/docs/client-preferences.md +2 -1
  63. package/dist/docs/client-profile-fieldset.md +184 -0
  64. package/dist/docs/client-profile.md +1 -1
  65. package/dist/docs/document-field.md +58 -4
  66. package/dist/docs/field.md +317 -0
  67. package/dist/docs/form.md +307 -0
  68. package/dist/docs/identity-edit.md +6 -6
  69. package/dist/docs/identity-summary.md +5 -5
  70. package/dist/docs/installments.md +248 -0
  71. package/dist/docs/my-account-profile.md +2 -1
  72. package/dist/docs/order-placed-payment-summary.md +138 -0
  73. package/dist/docs/payment-method-badges.md +232 -0
  74. package/dist/docs/payment-methods.md +1 -0
  75. package/dist/docs/payment.md +218 -0
  76. package/dist/docs/phone-field.md +58 -4
  77. package/dist/docs/place-order.md +157 -0
  78. package/dist/docs/product-shelf.md +20 -13
  79. package/dist/docs/save-card.md +186 -0
  80. package/dist/docs/saved-cards.md +218 -0
  81. package/dist/docs/select.md +465 -0
  82. package/dist/docs/shipping-address.md +110 -258
  83. package/dist/index.d.ts +5 -2
  84. package/dist/internal/client.d.ts +3 -1
  85. package/dist/internal/client.js +4 -2
  86. package/dist/internal/content.d.ts +2 -2
  87. package/dist/internal/server.d.ts +4 -1
  88. package/dist/internal/server.js +4 -1
  89. package/dist/matter/access-code-sign-in/access-code-sign-in.js +9 -8
  90. package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -1
  91. package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
  92. package/dist/matter/account-entry-point/account-entry-point.js +1 -1
  93. package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
  94. package/dist/matter/account-menu/account-menu.d.ts +70 -0
  95. package/dist/matter/account-menu/account-menu.js +201 -9
  96. package/dist/matter/account-menu/account-menu.js.map +1 -1
  97. package/dist/matter/account-menu/sign-out-failure.js +50 -0
  98. package/dist/matter/account-menu/sign-out-failure.js.map +1 -0
  99. package/dist/matter/account-menu-identity/account-menu-identity.d.ts +21 -0
  100. package/dist/matter/account-menu-identity/account-menu-identity.js +88 -0
  101. package/dist/matter/account-menu-identity/account-menu-identity.js.map +1 -0
  102. package/dist/matter/billing-address/billing-address.d.ts +165 -0
  103. package/dist/matter/billing-address/billing-address.js +408 -0
  104. package/dist/matter/billing-address/billing-address.js.map +1 -0
  105. package/dist/matter/card-entry/card-capture.d.ts +25 -0
  106. package/dist/matter/card-entry/card-capture.js +25 -0
  107. package/dist/matter/card-entry/card-capture.js.map +1 -0
  108. package/dist/matter/card-entry/card-entry.d.ts +120 -0
  109. package/dist/matter/card-entry/card-entry.js +833 -0
  110. package/dist/matter/card-entry/card-entry.js.map +1 -0
  111. package/dist/matter/cardholder-document/cardholder-document.d.ts +45 -0
  112. package/dist/matter/cardholder-document/cardholder-document.js +70 -0
  113. package/dist/matter/cardholder-document/cardholder-document.js.map +1 -0
  114. package/dist/matter/cart/cart.js +1 -1
  115. package/dist/matter/client-preferences/client-preferences-fieldset.d.ts +77 -0
  116. package/dist/matter/client-preferences/client-preferences-fieldset.js +299 -0
  117. package/dist/matter/client-preferences/client-preferences-fieldset.js.map +1 -0
  118. package/dist/matter/client-preferences/client-preferences.d.ts +3 -5
  119. package/dist/matter/client-preferences/client-preferences.js +6 -6
  120. package/dist/matter/client-preferences/client-preferences.js.map +1 -1
  121. package/dist/matter/client-profile/client-profile.d.ts +4 -6
  122. package/dist/matter/client-profile/client-profile.js +9 -6
  123. package/dist/matter/client-profile/client-profile.js.map +1 -1
  124. package/dist/matter/client-profile-form/client-profile-fieldset.d.ts +119 -0
  125. package/dist/matter/client-profile-form/client-profile-fieldset.js +488 -0
  126. package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -0
  127. package/dist/matter/identity-edit/identity-edit.js +2 -2
  128. package/dist/matter/identity-edit/identity-edit.js.map +1 -1
  129. package/dist/matter/identity-summary/identity-summary.js +3 -2
  130. package/dist/matter/identity-summary/identity-summary.js.map +1 -1
  131. package/dist/matter/installments/installments-select.d.ts +42 -0
  132. package/dist/matter/installments/installments-select.js +167 -0
  133. package/dist/matter/installments/installments-select.js.map +1 -0
  134. package/dist/matter/installments/installments.d.ts +58 -0
  135. package/dist/matter/installments/installments.js +176 -0
  136. package/dist/matter/installments/installments.js.map +1 -0
  137. package/dist/matter/installments/use-installments-selection.d.ts +29 -0
  138. package/dist/matter/installments/use-installments-selection.js +95 -0
  139. package/dist/matter/installments/use-installments-selection.js.map +1 -0
  140. package/dist/matter/my-account-profile/my-account-profile.d.ts +3 -0
  141. package/dist/matter/my-account-profile/my-account-profile.js +6 -5
  142. package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
  143. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +63 -0
  144. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +305 -0
  145. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -0
  146. package/dist/matter/payment/payment-card-capture.d.ts +19 -0
  147. package/dist/matter/payment/payment-card-capture.js +129 -0
  148. package/dist/matter/payment/payment-card-capture.js.map +1 -0
  149. package/dist/matter/payment/payment-controller.d.ts +24 -0
  150. package/dist/matter/payment/payment-controller.js +108 -0
  151. package/dist/matter/payment/payment-controller.js.map +1 -0
  152. package/dist/matter/payment/payment-method-badges.d.ts +57 -0
  153. package/dist/matter/payment/payment-method-badges.js +192 -0
  154. package/dist/matter/payment/payment-method-badges.js.map +1 -0
  155. package/dist/matter/payment/payment.d.ts +89 -0
  156. package/dist/matter/payment/payment.js +264 -0
  157. package/dist/matter/payment/payment.js.map +1 -0
  158. package/dist/matter/payment/use-payment-method-selection.d.ts +302 -0
  159. package/dist/matter/payment/use-payment-method-selection.js +458 -0
  160. package/dist/matter/payment/use-payment-method-selection.js.map +1 -0
  161. package/dist/matter/payment/use-payment-submit-gate.d.ts +111 -0
  162. package/dist/matter/payment/use-payment-submit-gate.js +144 -0
  163. package/dist/matter/payment/use-payment-submit-gate.js.map +1 -0
  164. package/dist/matter/place-order/place-order.d.ts +74 -0
  165. package/dist/matter/place-order/place-order.js +379 -0
  166. package/dist/matter/place-order/place-order.js.map +1 -0
  167. package/dist/matter/product-list/product-list.d.ts +1 -0
  168. package/dist/matter/product-list/product-list.js.map +1 -1
  169. package/dist/matter/product-shelf/product-shelf.d.ts +62 -31
  170. package/dist/matter/product-shelf/product-shelf.js +159 -57
  171. package/dist/matter/product-shelf/product-shelf.js.map +1 -1
  172. package/dist/matter/region/region.js +1 -1
  173. package/dist/matter/region/region.js.map +1 -1
  174. package/dist/matter/save-card/save-card.d.ts +49 -0
  175. package/dist/matter/save-card/save-card.js +188 -0
  176. package/dist/matter/save-card/save-card.js.map +1 -0
  177. package/dist/matter/saved-cards/saved-cards.d.ts +79 -0
  178. package/dist/matter/saved-cards/saved-cards.js +388 -0
  179. package/dist/matter/saved-cards/saved-cards.js.map +1 -0
  180. package/dist/matter/shipping-address/country-descriptors.js +20 -10
  181. package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
  182. package/dist/matter/shipping-address/shipping-address.d.ts +113 -174
  183. package/dist/matter/shipping-address/shipping-address.js +480 -791
  184. package/dist/matter/shipping-address/shipping-address.js.map +1 -1
  185. package/dist/matter/variant-selector/variant-selector.js +1 -1
  186. package/dist/particles/address-summary/address-summary.d.ts +24 -0
  187. package/dist/particles/address-summary/address-summary.js +83 -2
  188. package/dist/particles/address-summary/address-summary.js.map +1 -1
  189. package/dist/particles/alert-dialog/alert-dialog.d.ts +68 -0
  190. package/dist/particles/alert-dialog/alert-dialog.js +187 -0
  191. package/dist/particles/alert-dialog/alert-dialog.js.map +1 -0
  192. package/dist/particles/avatar/avatar.d.ts +17 -0
  193. package/dist/particles/avatar/avatar.js +65 -0
  194. package/dist/particles/avatar/avatar.js.map +1 -0
  195. package/dist/particles/checkbox/checkbox.d.ts +7 -3
  196. package/dist/particles/checkbox/checkbox.js +4 -1
  197. package/dist/particles/checkbox/checkbox.js.map +1 -1
  198. package/dist/particles/document-field/document-field.d.ts +48 -5
  199. package/dist/particles/document-field/document-field.js +189 -32
  200. package/dist/particles/document-field/document-field.js.map +1 -1
  201. package/dist/particles/field/bound-field-registry.js +52 -0
  202. package/dist/particles/field/bound-field-registry.js.map +1 -0
  203. package/dist/particles/field/field.d.ts +116 -0
  204. package/dist/particles/field/field.js +497 -6
  205. package/dist/particles/field/field.js.map +1 -1
  206. package/dist/particles/fieldset/fieldset.js +2 -2
  207. package/dist/particles/fieldset/fieldset.js.map +1 -1
  208. package/dist/particles/form/form.d.ts +104 -0
  209. package/dist/particles/form/form.js +485 -0
  210. package/dist/particles/form/form.js.map +1 -0
  211. package/dist/particles/phone-field/phone-field.d.ts +38 -10
  212. package/dist/particles/phone-field/phone-field.js +183 -39
  213. package/dist/particles/phone-field/phone-field.js.map +1 -1
  214. package/dist/particles/postal-code-field/postal-code-field.js +2 -2
  215. package/dist/particles/postal-code-field/postal-code-field.js.map +1 -1
  216. package/dist/particles/select/field-select.d.ts +43 -0
  217. package/dist/particles/select/field-select.js +150 -0
  218. package/dist/particles/select/field-select.js.map +1 -0
  219. package/dist/particles/select/select.d.ts +2 -0
  220. package/dist/particles/select/select.js.map +1 -1
  221. package/dist/particles/shared/compose-refs.js +21 -0
  222. package/dist/particles/shared/compose-refs.js.map +1 -0
  223. package/dist/schema.graphql +766 -28
  224. package/dist/sdk/actions/analytics-action-provider.d.ts +15 -0
  225. package/dist/sdk/actions/analytics-action-provider.js +19 -0
  226. package/dist/sdk/actions/analytics-action-provider.js.map +1 -0
  227. package/dist/sdk/actions/index.d.ts +3 -1
  228. package/dist/sdk/actions/index.js +3 -1
  229. package/dist/sdk/actions/payment-action-provider.d.ts +22 -0
  230. package/dist/sdk/actions/payment-action-provider.js +26 -0
  231. package/dist/sdk/actions/payment-action-provider.js.map +1 -0
  232. package/dist/sdk/actions/types.d.ts +6 -2
  233. package/dist/sdk/analytics/analytics-destination.d.ts +43 -0
  234. package/dist/sdk/analytics/analytics-destination.js +90 -0
  235. package/dist/sdk/analytics/analytics-destination.js.map +1 -0
  236. package/dist/sdk/analytics/use-analytics-actions.d.ts +57 -0
  237. package/dist/sdk/analytics/use-analytics-actions.js +109 -0
  238. package/dist/sdk/analytics/use-analytics-actions.js.map +1 -0
  239. package/dist/sdk/cart/use-cart-actions.js +10 -9
  240. package/dist/sdk/cart/use-cart-actions.js.map +1 -1
  241. package/dist/sdk/cart/use-cart-validate-on-open.js +2 -1
  242. package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -1
  243. package/dist/sdk/content/create-content-runtime.d.ts +22 -1
  244. package/dist/sdk/content/create-content-runtime.js +89 -1
  245. package/dist/sdk/content/create-content-runtime.js.map +1 -1
  246. package/dist/sdk/data/empty-content-value.js +16 -0
  247. package/dist/sdk/data/empty-content-value.js.map +1 -0
  248. package/dist/sdk/data/entity-resolution-context.js +31 -0
  249. package/dist/sdk/data/entity-resolution-context.js.map +1 -0
  250. package/dist/sdk/data/entity-subscriber.js +18 -8
  251. package/dist/sdk/data/entity-subscriber.js.map +1 -1
  252. package/dist/sdk/data/hot-data-provider.js +2 -1
  253. package/dist/sdk/data/hot-data-provider.js.map +1 -1
  254. package/dist/sdk/data/index.js +2 -1
  255. package/dist/sdk/data/page-reactive-data-root.d.ts +36 -0
  256. package/dist/sdk/data/page-reactive-data-root.js +4 -2
  257. package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
  258. package/dist/sdk/data/reactive-data-provider.js +7 -3
  259. package/dist/sdk/data/reactive-data-provider.js.map +1 -1
  260. package/dist/sdk/data/reactive-list-item-data-provider.js +12 -4
  261. package/dist/sdk/data/reactive-list-item-data-provider.js.map +1 -1
  262. package/dist/sdk/data/use-reactive-data-settled.js +39 -0
  263. package/dist/sdk/data/use-reactive-data-settled.js.map +1 -0
  264. package/dist/sdk/data/use-reactive-entity.js +5 -1
  265. package/dist/sdk/data/use-reactive-entity.js.map +1 -1
  266. package/dist/sdk/data/variables-from-content.d.ts +43 -0
  267. package/dist/sdk/data/variables-from-content.js +57 -0
  268. package/dist/sdk/data/variables-from-content.js.map +1 -0
  269. package/dist/sdk/generated/fragment-types.js +2 -0
  270. package/dist/sdk/generated/fragment-types.js.map +1 -1
  271. package/dist/sdk/generated/gql.js +2 -1
  272. package/dist/sdk/generated/gql.js.map +1 -1
  273. package/dist/sdk/generated/graphql.js +85 -1
  274. package/dist/sdk/generated/graphql.js.map +1 -1
  275. package/dist/sdk/i18n/messages/en-US.js +3 -0
  276. package/dist/sdk/i18n/messages/en-US.json +3 -0
  277. package/dist/sdk/i18n/messages/en-US.json.d.ts +3 -0
  278. package/dist/sdk/i18n/messages/es-ES.js +3 -0
  279. package/dist/sdk/i18n/messages/es-ES.json +3 -0
  280. package/dist/sdk/i18n/messages/pt-BR.js +3 -0
  281. package/dist/sdk/i18n/messages/pt-BR.json +3 -0
  282. package/dist/sdk/identity/use-identity-actions.js +8 -6
  283. package/dist/sdk/identity/use-identity-actions.js.map +1 -1
  284. package/dist/sdk/payment/gateway-origin.js +35 -0
  285. package/dist/sdk/payment/gateway-origin.js.map +1 -0
  286. package/dist/sdk/payment/gateway.d.ts +85 -0
  287. package/dist/sdk/payment/gateway.js +183 -0
  288. package/dist/sdk/payment/gateway.js.map +1 -0
  289. package/dist/sdk/payment/operations.d.ts +52 -0
  290. package/dist/sdk/payment/operations.js +223 -0
  291. package/dist/sdk/payment/operations.js.map +1 -0
  292. package/dist/sdk/payment/security-code-mask.js +71 -0
  293. package/dist/sdk/payment/security-code-mask.js.map +1 -0
  294. package/dist/sdk/payment/submission-registry.d.ts +33 -0
  295. package/dist/sdk/payment/submission-registry.js +58 -0
  296. package/dist/sdk/payment/submission-registry.js.map +1 -0
  297. package/dist/sdk/payment/use-payment-actions.d.ts +78 -0
  298. package/dist/sdk/payment/use-payment-actions.js +276 -0
  299. package/dist/sdk/payment/use-payment-actions.js.map +1 -0
  300. package/dist/sdk/payment/use-place-order.d.ts +65 -0
  301. package/dist/sdk/payment/use-place-order.js +640 -0
  302. package/dist/sdk/payment/use-place-order.js.map +1 -0
  303. package/dist/sdk/region/use-region-actions.js +2 -1
  304. package/dist/sdk/region/use-region-actions.js.map +1 -1
  305. package/dist/sdk/session/read-server-session.d.ts +21 -0
  306. package/dist/sdk/session/read-server-session.js +61 -0
  307. package/dist/sdk/session/read-server-session.js.map +1 -0
  308. package/dist/sdk/session/use-session-actions.js +5 -4
  309. package/dist/sdk/session/use-session-actions.js.map +1 -1
  310. package/dist/sdk/session/use-session-revalidation.js +2 -1
  311. package/dist/sdk/session/use-session-revalidation.js.map +1 -1
  312. package/dist/sdk/shipping/use-shipping-actions.js +4 -3
  313. package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
  314. package/dist/utils/loggable-error-name.js +49 -0
  315. package/dist/utils/loggable-error-name.js.map +1 -0
  316. package/dist/utils/resolve-authored-copy.js +18 -0
  317. package/dist/utils/resolve-authored-copy.js.map +1 -0
  318. package/dist/utils/safe-href.d.ts +11 -0
  319. package/dist/utils/substitute-template.js +33 -0
  320. package/dist/utils/substitute-template.js.map +1 -0
  321. package/package.json +14 -2
  322. package/src/styles/tailwind.css +34 -0
  323. package/dist/docs/client-profile-form.md +0 -192
  324. package/dist/matter/client-profile-form/client-profile-form.d.ts +0 -126
  325. package/dist/matter/client-profile-form/client-profile-form.js +0 -662
  326. 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).",