@vtex/faststore 0.0.1 → 0.0.3

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 (94) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +4 -2
  3. package/dist/catalog.json +286 -265
  4. package/dist/components.d.ts +2 -1
  5. package/dist/components.js +2 -1
  6. package/dist/content-types.json +16 -0
  7. package/dist/core/dist/actions/registry.d.ts +1 -1
  8. package/dist/core/dist/actions/registry.js +1 -1
  9. package/dist/core/dist/actions/registry.js.map +1 -1
  10. package/dist/docs/account-entry-point.md +1 -1
  11. package/dist/docs/cart.md +2 -2
  12. package/dist/docs/session.md +12 -6
  13. package/dist/docs/sign-in-redirect.md +137 -0
  14. package/dist/matter/access-code-sign-in/access-code-sign-in.d.ts +2 -2
  15. package/dist/matter/access-code-sign-in/access-code-sign-in.js +5 -2
  16. package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -1
  17. package/dist/matter/account-entry-point/account-entry-point.js +4 -16
  18. package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
  19. package/dist/matter/buy-button/buy-button.d.ts +1 -1
  20. package/dist/matter/buy-button/buy-button.js +3 -1
  21. package/dist/matter/buy-button/buy-button.js.map +1 -1
  22. package/dist/matter/cart/cart.d.ts +6 -6
  23. package/dist/matter/cart/cart.js +13 -6
  24. package/dist/matter/cart/cart.js.map +1 -1
  25. package/dist/matter/cart-item/cart-item.d.ts +2 -2
  26. package/dist/matter/cart-item/cart-item.js +5 -2
  27. package/dist/matter/cart-item/cart-item.js.map +1 -1
  28. package/dist/matter/client-preferences/client-preferences.js +3 -1
  29. package/dist/matter/client-preferences/client-preferences.js.map +1 -1
  30. package/dist/matter/client-profile/client-profile.d.ts +1 -1
  31. package/dist/matter/client-profile/client-profile.js +3 -1
  32. package/dist/matter/client-profile/client-profile.js.map +1 -1
  33. package/dist/matter/client-profile-form/client-profile-form.d.ts +1 -1
  34. package/dist/matter/client-profile-form/client-profile-form.js +3 -1
  35. package/dist/matter/client-profile-form/client-profile-form.js.map +1 -1
  36. package/dist/matter/delivery-options/delivery-options-accordion.d.ts +1 -1
  37. package/dist/matter/delivery-options/delivery-options-accordion.js +3 -1
  38. package/dist/matter/delivery-options/delivery-options-accordion.js.map +1 -1
  39. package/dist/matter/delivery-options/delivery-options-controller.d.ts +1 -1
  40. package/dist/matter/delivery-options/delivery-options-controller.js +3 -1
  41. package/dist/matter/delivery-options/delivery-options-controller.js.map +1 -1
  42. package/dist/matter/delivery-options/delivery-options.d.ts +1 -1
  43. package/dist/matter/delivery-options/delivery-options.js +3 -1
  44. package/dist/matter/delivery-options/delivery-options.js.map +1 -1
  45. package/dist/matter/email-identification/email-identification.d.ts +1 -1
  46. package/dist/matter/email-identification/email-identification.js +3 -1
  47. package/dist/matter/email-identification/email-identification.js.map +1 -1
  48. package/dist/matter/identity-summary/identity-summary.d.ts +1 -1
  49. package/dist/matter/identity-summary/identity-summary.js +3 -1
  50. package/dist/matter/identity-summary/identity-summary.js.map +1 -1
  51. package/dist/matter/product-list/product-list.d.ts +1 -1
  52. package/dist/matter/product-list/product-list.js +3 -1
  53. package/dist/matter/product-list/product-list.js.map +1 -1
  54. package/dist/matter/region/region.d.ts +1 -1
  55. package/dist/matter/region/region.js +5 -2
  56. package/dist/matter/region/region.js.map +1 -1
  57. package/dist/matter/session/session.js +1 -1
  58. package/dist/matter/session/session.js.map +1 -1
  59. package/dist/matter/shipping-address/shipping-address.d.ts +1 -1
  60. package/dist/matter/shipping-address/shipping-address.js +3 -1
  61. package/dist/matter/shipping-address/shipping-address.js.map +1 -1
  62. package/dist/matter/sign-in-form/sign-in-form.d.ts +1 -1
  63. package/dist/matter/sign-in-form/sign-in-form.js +3 -1
  64. package/dist/matter/sign-in-form/sign-in-form.js.map +1 -1
  65. package/dist/matter/sign-in-redirect/sign-in-redirect.d.ts +45 -0
  66. package/dist/matter/sign-in-redirect/sign-in-redirect.js +127 -0
  67. package/dist/matter/sign-in-redirect/sign-in-redirect.js.map +1 -0
  68. package/dist/sdk/actions/actions-override-context.js +37 -0
  69. package/dist/sdk/actions/actions-override-context.js.map +1 -0
  70. package/dist/sdk/actions/cart-action-provider.d.ts +8 -6
  71. package/dist/sdk/actions/cart-action-provider.js +10 -8
  72. package/dist/sdk/actions/cart-action-provider.js.map +1 -1
  73. package/dist/sdk/actions/identity-action-provider.d.ts +2 -2
  74. package/dist/sdk/actions/identity-action-provider.js +4 -4
  75. package/dist/sdk/actions/identity-action-provider.js.map +1 -1
  76. package/dist/sdk/actions/inject-actions.d.ts +1 -5
  77. package/dist/sdk/actions/inject-actions.js +23 -21
  78. package/dist/sdk/actions/inject-actions.js.map +1 -1
  79. package/dist/sdk/actions/region-action-provider.d.ts +4 -3
  80. package/dist/sdk/actions/region-action-provider.js +6 -5
  81. package/dist/sdk/actions/region-action-provider.js.map +1 -1
  82. package/dist/sdk/actions/session-action-provider.d.ts +4 -3
  83. package/dist/sdk/actions/session-action-provider.js +6 -5
  84. package/dist/sdk/actions/session-action-provider.js.map +1 -1
  85. package/dist/sdk/actions/shipping-action-provider.d.ts +4 -3
  86. package/dist/sdk/actions/shipping-action-provider.js +6 -5
  87. package/dist/sdk/actions/shipping-action-provider.js.map +1 -1
  88. package/dist/sdk/cart/use-cart-actions.js.map +1 -1
  89. package/dist/sdk/client/create-client.js +24 -2
  90. package/dist/sdk/client/create-client.js.map +1 -1
  91. package/dist/sdk/content/create-content-runtime.js +1 -1
  92. package/dist/utils/safe-href.js +107 -1
  93. package/dist/utils/safe-href.js.map +1 -1
  94. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,41 @@ 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.3
8
+
9
+ `./components` adds `SignInRedirect`, the component a store's `/login` page renders to hand the
10
+ shopper over to the platform login. It comes with `SignInRedirectLoading`, the
11
+ `SignInRedirectContent` content type for the waiting message, `SignInRedirectDefinition`, and the
12
+ `SignInRedirectProps` and `SignInRedirectLoadingProps` types.
13
+
14
+ Five `./components` signatures now take their props as `Readonly<...>`: `ClientProfileFormRoot`,
15
+ `ClientProfilePhoneControl`, `DeliveryOptionsController`, `IdentitySummaryRoot` and
16
+ `ShippingAddressRoot`. Nothing changes for code that renders them.
17
+
18
+ Action providers now deliver `$actions` through context instead of `cloneElement`, so a child that
19
+ crosses the React Server Components boundary as a lazy reference receives its actions. The
20
+ signatures are unchanged.
21
+
22
+ The GraphQL client that `./internal/server` builds forwards the shopper's `Cookie` header into
23
+ server-rendered queries, so a signed-in shopper's server render is no longer anonymous. A
24
+ caller-supplied `Cookie` header wins, and outside a Next.js request the client sends none.
25
+
26
+ `dist/catalog.json` is now built by `@vtex/faststore-catalog`, and its `docPath` values are relative
27
+ to the package (`src/...`). `.`, `./client` and `./graphql` are unchanged.
28
+
29
+ This is the first version released in two sets at once (ADR-0004). The Public set goes to npmjs,
30
+ including the first real `@vtex/faststore-catalog` version, and the Internal set goes to
31
+ CodeArtifact, including the first `@vtex/sukima` that carries the command and the library together.
32
+
33
+ ## 0.0.2
34
+
35
+ No change to the public API surface across the four snapshotted entries (`.`, `./client`,
36
+ `./components`, `./graphql`). The code is identical to `0.0.1`.
37
+
38
+ This is the first release cut through the gated pipeline: `release-checks.yml` validates this pull
39
+ request, and `npm-publish.yml` publishes and tags `v0.0.2-faststore` on merge. It supersedes the
40
+ hand-published `0.0.1` bootstrap as the baseline every later release diffs against.
41
+
7
42
  ## 0.0.1
8
43
 
9
44
  Bootstrap release. It exists so that `@vtex/faststore` has a page on npmjs, which npm requires
package/README.md CHANGED
@@ -14,8 +14,10 @@ The version line is `0.0.x`. Under semver every patch may break, and a caret ran
14
14
  Nothing here is a compatibility promise yet: 138 types are reachable through the public entries without being
15
15
  named in them, and the authoring loop this SDK belongs to is not finished.
16
16
 
17
- This release makes the SDK installable and importable. It does not yet make an extension package buildable
18
- outside the FastStore repository — the catalog build runs through the `faststore` CLI, which is not published.
17
+ This release makes the SDK installable and importable, and it publishes the catalog build alongside it as
18
+ `@vtex/faststore-catalog`. It does not yet make an extension package buildable outside the FastStore
19
+ repository: what is still missing is the `faststore` CLI that wires that build into an extension's `build`
20
+ script, and it is not published.
19
21
 
20
22
  ## Entry points
21
23