@faststore/core 2.1.90 → 2.2.0-alpha.1

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 (149) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +31 -31
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/next-server.js.nft.json +1 -1
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/next-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.json +1 -1
  13. package/.next/react-loadable-manifest.json +1 -1
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/{907.js → 112.js} +422 -278
  16. package/.next/server/chunks/177.js +3 -3
  17. package/.next/server/chunks/183.js +1 -1
  18. package/.next/server/chunks/184.js +4 -4
  19. package/.next/server/chunks/186.js +7 -7
  20. package/.next/server/chunks/289.js +32 -29
  21. package/.next/server/chunks/312.js +67 -67
  22. package/.next/server/chunks/350.js +98 -41
  23. package/.next/server/chunks/483.js +43 -42
  24. package/.next/server/chunks/52.js +4007 -0
  25. package/.next/server/chunks/53.js +6 -6
  26. package/.next/server/chunks/530.js +22 -22
  27. package/.next/server/chunks/574.js +2 -2
  28. package/.next/server/chunks/576.js +1 -1
  29. package/.next/server/chunks/{933.js → 647.js} +33 -117
  30. package/.next/server/chunks/676.js +2 -2
  31. package/.next/server/chunks/693.js +3 -3
  32. package/.next/server/chunks/71.js +103 -61
  33. package/.next/server/chunks/74.js +268 -271
  34. package/.next/server/chunks/753.js +73 -28
  35. package/.next/server/chunks/779.js +8 -8
  36. package/.next/server/chunks/817.js +4007 -0
  37. package/.next/server/chunks/825.js +89 -89
  38. package/.next/server/chunks/854.js +4 -4
  39. package/.next/server/chunks/859.js +12 -12
  40. package/.next/server/chunks/98.js +4 -4
  41. package/.next/server/chunks/988.js +10 -10
  42. package/.next/server/middleware-build-manifest.js +1 -1
  43. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  44. package/.next/server/pages/404.js +42 -42
  45. package/.next/server/pages/404.js.nft.json +1 -1
  46. package/.next/server/pages/500.js +42 -42
  47. package/.next/server/pages/500.js.nft.json +1 -1
  48. package/.next/server/pages/[...slug].js +293 -171
  49. package/.next/server/pages/[...slug].js.nft.json +1 -1
  50. package/.next/server/pages/[slug]/p.js +645 -663
  51. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  52. package/.next/server/pages/_app.js +18 -18
  53. package/.next/server/pages/_app.js.nft.json +1 -1
  54. package/.next/server/pages/_document.js +30 -30
  55. package/.next/server/pages/_document.js.nft.json +1 -1
  56. package/.next/server/pages/_error.js +8 -8
  57. package/.next/server/pages/account.js +42 -42
  58. package/.next/server/pages/account.js.nft.json +1 -1
  59. package/.next/server/pages/api/graphql.js +146 -61
  60. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  61. package/.next/server/pages/api/health/live.js +2 -2
  62. package/.next/server/pages/api/health/ready.js +2 -2
  63. package/.next/server/pages/api/preview.js +3 -3
  64. package/.next/server/pages/checkout.js +40 -40
  65. package/.next/server/pages/checkout.js.nft.json +1 -1
  66. package/.next/server/pages/en-US/404.html +2 -2
  67. package/.next/server/pages/en-US/500.html +2 -2
  68. package/.next/server/pages/en-US/account.html +2 -2
  69. package/.next/server/pages/en-US/checkout.html +2 -2
  70. package/.next/server/pages/en-US/login.html +2 -2
  71. package/.next/server/pages/en-US/s.html +2 -2
  72. package/.next/server/pages/en-US.html +2 -2
  73. package/.next/server/pages/index.js +53 -53
  74. package/.next/server/pages/index.js.nft.json +1 -1
  75. package/.next/server/pages/login.js +44 -44
  76. package/.next/server/pages/login.js.nft.json +1 -1
  77. package/.next/server/pages/s.js +183 -101
  78. package/.next/server/pages/s.js.nft.json +1 -1
  79. package/.next/server/pages-manifest.json +2 -2
  80. package/.next/static/chunks/{238-e5e4b2094f0e1df8.js → 238-86838f629f3d0aa4.js} +1 -1
  81. package/.next/static/chunks/{243-df6d1b248f7b4d3c.js → 243-ef9e49ef3df579c0.js} +1 -1
  82. package/.next/static/chunks/{709.7bc5a25ce30abda6.js → 709.daf1eddebf1e7952.js} +1 -1
  83. package/.next/static/chunks/932-33f45603c7d12a4b.js +1 -0
  84. package/.next/static/chunks/pages/[...slug]-362204c7e0b533cf.js +1 -0
  85. package/.next/static/chunks/pages/[slug]/p-885042c4b2b4f8ed.js +1 -0
  86. package/.next/static/chunks/pages/{index-d521ce4f4e2b89a6.js → index-79b05b0071c02fff.js} +1 -1
  87. package/.next/static/chunks/pages/s-e1bb00f8de6a386e.js +1 -0
  88. package/.next/static/chunks/{webpack-352e624909554726.js → webpack-88d120cefa1c4c09.js} +1 -1
  89. package/.next/static/wPqgZ8bYrPY473PZzuIX_/_buildManifest.js +1 -0
  90. package/.next/trace +80 -80
  91. package/.turbo/turbo-build.log +8 -6
  92. package/.turbo/turbo-test.log +25 -0
  93. package/@generated/graphql/index.ts +183 -79
  94. package/@generated/graphql/persisted.json +5 -5
  95. package/@generated/graphql/schema.graphql +1053 -0
  96. package/api/index.ts +15 -0
  97. package/codegen.yml +2 -1
  98. package/generate.sh +71 -0
  99. package/index.ts +15 -0
  100. package/jest.config.js +6 -0
  101. package/package.json +33 -18
  102. package/src/components/cms/RenderSections.tsx +4 -5
  103. package/src/components/product/ProductGrid/ProductGrid.tsx +4 -3
  104. package/src/components/sections/Breadcrumb/Breadcrumb.tsx +17 -22
  105. package/src/components/sections/CrossSellingShelf/CrossSellingShelf.tsx +8 -6
  106. package/src/components/sections/ProductDetails/ProductDetails.tsx +23 -33
  107. package/src/components/sections/ProductGallery/ProductGallery.tsx +15 -26
  108. package/src/components/sections/ProductShelf/ProductShelf.tsx +1 -1
  109. package/src/components/sections/ProductTiles/ProductTiles.tsx +4 -3
  110. package/src/components/templates/ProductListingPage/ProductListing.tsx +95 -0
  111. package/src/components/templates/ProductListingPage/ProductListingPage.tsx +34 -68
  112. package/src/components/templates/SearchPage/SearchPage.tsx +81 -0
  113. package/src/components/templates/SearchPage/index.ts +2 -0
  114. package/src/components/ui/ProductGallery/ProductGallery.tsx +24 -16
  115. package/src/components/ui/ProductGallery/ProductGalleryPage.tsx +8 -7
  116. package/src/components/ui/ProductGallery/useDelayedFacets.ts +3 -3
  117. package/src/components/ui/ProductShelf/ProductShelf.tsx +3 -2
  118. package/src/customizations/fragments/ClientProduct.ts +9 -0
  119. package/src/customizations/fragments/ClientProductGallery.ts +19 -0
  120. package/src/customizations/fragments/ClientProducts.ts +19 -0
  121. package/src/customizations/fragments/ServerCollectionPage.ts +9 -0
  122. package/src/customizations/fragments/ServerProductPage.ts +9 -0
  123. package/src/customizations/graphql/thirdParty/resolvers/index.ts +3 -0
  124. package/src/customizations/graphql/vtex/resolvers/index.ts +3 -0
  125. package/src/pages/[...slug].tsx +5 -3
  126. package/src/pages/[slug]/p.tsx +38 -18
  127. package/src/pages/s.tsx +22 -34
  128. package/src/sdk/graphql/useQuery.ts +17 -13
  129. package/src/sdk/overrides/PageProvider.tsx +78 -0
  130. package/src/sdk/product/useLocalizedVariables.ts +33 -0
  131. package/src/sdk/product/usePageProductsQuery.ts +139 -0
  132. package/src/{components/sections/ProductGallery/useGalleryQuery.ts → sdk/product/useProductGalleryQuery.ts} +12 -13
  133. package/src/sdk/product/{useProduct.ts → useProductQuery.ts} +10 -7
  134. package/src/sdk/product/useProductsPrefetch.ts +72 -0
  135. package/src/sdk/product/useProductsQuery.ts +17 -63
  136. package/src/server/generator/generateGraphQLSchemaFile.ts +3 -0
  137. package/src/server/generator/schema.ts +82 -0
  138. package/src/server/index.ts +34 -21
  139. package/src/server/options.ts +16 -0
  140. package/test/server/index.test.ts +146 -0
  141. package/.next/server/chunks/487.js +0 -9142
  142. package/.next/server/chunks/650.js +0 -9142
  143. package/.next/static/7SuqEgCuf5UtY9Gx-CYYB/_buildManifest.js +0 -1
  144. package/.next/static/chunks/603-d1c069aa8a349c86.js +0 -1
  145. package/.next/static/chunks/pages/[...slug]-ca533c74c22cb787.js +0 -1
  146. package/.next/static/chunks/pages/[slug]/p-7bb760bb3fcfc0bb.js +0 -1
  147. package/.next/static/chunks/pages/s-0e516ab36bb49c99.js +0 -1
  148. package/src/components/ui/ProductGallery/usePageProducts.ts +0 -48
  149. /package/.next/static/{7SuqEgCuf5UtY9Gx-CYYB → wPqgZ8bYrPY473PZzuIX_}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- 7SuqEgCuf5UtY9Gx-CYYB
1
+ wPqgZ8bYrPY473PZzuIX_
@@ -5,124 +5,124 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/7SuqEgCuf5UtY9Gx-CYYB/_buildManifest.js",
9
- "static/7SuqEgCuf5UtY9Gx-CYYB/_ssgManifest.js"
8
+ "static/wPqgZ8bYrPY473PZzuIX_/_buildManifest.js",
9
+ "static/wPqgZ8bYrPY473PZzuIX_/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "pages": {
13
13
  "/": [
14
- "static/chunks/webpack-352e624909554726.js",
14
+ "static/chunks/webpack-88d120cefa1c4c09.js",
15
15
  "static/chunks/framework-dfd14d7ce6600b03.js",
16
16
  "static/chunks/main-fd466221927468fd.js",
17
17
  "static/chunks/738-67a288ca3569cdbb.js",
18
18
  "static/chunks/548-ab84e9e8b49413ab.js",
19
19
  "static/css/e3b039e8f5daf95f.css",
20
- "static/chunks/243-df6d1b248f7b4d3c.js",
20
+ "static/chunks/243-ef9e49ef3df579c0.js",
21
21
  "static/css/20e4a3a45cdd65f4.css",
22
- "static/chunks/238-e5e4b2094f0e1df8.js",
22
+ "static/chunks/238-86838f629f3d0aa4.js",
23
23
  "static/css/a2eefb25a4608343.css",
24
- "static/chunks/pages/index-d521ce4f4e2b89a6.js"
24
+ "static/chunks/pages/index-79b05b0071c02fff.js"
25
25
  ],
26
26
  "/404": [
27
- "static/chunks/webpack-352e624909554726.js",
27
+ "static/chunks/webpack-88d120cefa1c4c09.js",
28
28
  "static/chunks/framework-dfd14d7ce6600b03.js",
29
29
  "static/chunks/main-fd466221927468fd.js",
30
30
  "static/chunks/738-67a288ca3569cdbb.js",
31
31
  "static/css/e3b039e8f5daf95f.css",
32
- "static/chunks/243-df6d1b248f7b4d3c.js",
32
+ "static/chunks/243-ef9e49ef3df579c0.js",
33
33
  "static/css/df588bb98c0b0ca6.css",
34
34
  "static/chunks/pages/404-af78f7cd1d3c1f60.js"
35
35
  ],
36
36
  "/500": [
37
- "static/chunks/webpack-352e624909554726.js",
37
+ "static/chunks/webpack-88d120cefa1c4c09.js",
38
38
  "static/chunks/framework-dfd14d7ce6600b03.js",
39
39
  "static/chunks/main-fd466221927468fd.js",
40
40
  "static/chunks/738-67a288ca3569cdbb.js",
41
41
  "static/css/e3b039e8f5daf95f.css",
42
- "static/chunks/243-df6d1b248f7b4d3c.js",
42
+ "static/chunks/243-ef9e49ef3df579c0.js",
43
43
  "static/css/df588bb98c0b0ca6.css",
44
44
  "static/chunks/pages/500-f6346ca5f9dc4fef.js"
45
45
  ],
46
46
  "/[...slug]": [
47
- "static/chunks/webpack-352e624909554726.js",
47
+ "static/chunks/webpack-88d120cefa1c4c09.js",
48
48
  "static/chunks/framework-dfd14d7ce6600b03.js",
49
49
  "static/chunks/main-fd466221927468fd.js",
50
50
  "static/chunks/738-67a288ca3569cdbb.js",
51
51
  "static/chunks/548-ab84e9e8b49413ab.js",
52
52
  "static/css/e3b039e8f5daf95f.css",
53
- "static/chunks/243-df6d1b248f7b4d3c.js",
53
+ "static/chunks/243-ef9e49ef3df579c0.js",
54
54
  "static/css/20e4a3a45cdd65f4.css",
55
- "static/chunks/238-e5e4b2094f0e1df8.js",
55
+ "static/chunks/238-86838f629f3d0aa4.js",
56
56
  "static/css/f0e2d1b8832e935d.css",
57
- "static/chunks/603-d1c069aa8a349c86.js",
57
+ "static/chunks/932-33f45603c7d12a4b.js",
58
58
  "static/css/a2eefb25a4608343.css",
59
59
  "static/css/527e334fa69cf40a.css",
60
- "static/chunks/pages/[...slug]-ca533c74c22cb787.js"
60
+ "static/chunks/pages/[...slug]-362204c7e0b533cf.js"
61
61
  ],
62
62
  "/[slug]/p": [
63
- "static/chunks/webpack-352e624909554726.js",
63
+ "static/chunks/webpack-88d120cefa1c4c09.js",
64
64
  "static/chunks/framework-dfd14d7ce6600b03.js",
65
65
  "static/chunks/main-fd466221927468fd.js",
66
66
  "static/chunks/738-67a288ca3569cdbb.js",
67
67
  "static/chunks/548-ab84e9e8b49413ab.js",
68
68
  "static/css/e3b039e8f5daf95f.css",
69
- "static/chunks/243-df6d1b248f7b4d3c.js",
69
+ "static/chunks/243-ef9e49ef3df579c0.js",
70
70
  "static/css/20e4a3a45cdd65f4.css",
71
- "static/chunks/238-e5e4b2094f0e1df8.js",
71
+ "static/chunks/238-86838f629f3d0aa4.js",
72
72
  "static/css/4b7138899cd07c63.css",
73
- "static/chunks/pages/[slug]/p-7bb760bb3fcfc0bb.js"
73
+ "static/chunks/pages/[slug]/p-885042c4b2b4f8ed.js"
74
74
  ],
75
75
  "/_app": [
76
- "static/chunks/webpack-352e624909554726.js",
76
+ "static/chunks/webpack-88d120cefa1c4c09.js",
77
77
  "static/chunks/framework-dfd14d7ce6600b03.js",
78
78
  "static/chunks/main-fd466221927468fd.js",
79
79
  "static/css/9e76fef1c9ca89af.css",
80
80
  "static/chunks/pages/_app-6d0e6ab9a4dd8106.js"
81
81
  ],
82
82
  "/_error": [
83
- "static/chunks/webpack-352e624909554726.js",
83
+ "static/chunks/webpack-88d120cefa1c4c09.js",
84
84
  "static/chunks/framework-dfd14d7ce6600b03.js",
85
85
  "static/chunks/main-fd466221927468fd.js",
86
86
  "static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"
87
87
  ],
88
88
  "/account": [
89
- "static/chunks/webpack-352e624909554726.js",
89
+ "static/chunks/webpack-88d120cefa1c4c09.js",
90
90
  "static/chunks/framework-dfd14d7ce6600b03.js",
91
91
  "static/chunks/main-fd466221927468fd.js",
92
92
  "static/chunks/738-67a288ca3569cdbb.js",
93
93
  "static/css/e3b039e8f5daf95f.css",
94
- "static/chunks/243-df6d1b248f7b4d3c.js",
94
+ "static/chunks/243-ef9e49ef3df579c0.js",
95
95
  "static/chunks/pages/account-05bd79fb78365e88.js"
96
96
  ],
97
97
  "/checkout": [
98
- "static/chunks/webpack-352e624909554726.js",
98
+ "static/chunks/webpack-88d120cefa1c4c09.js",
99
99
  "static/chunks/framework-dfd14d7ce6600b03.js",
100
100
  "static/chunks/main-fd466221927468fd.js",
101
101
  "static/chunks/738-67a288ca3569cdbb.js",
102
102
  "static/css/e3b039e8f5daf95f.css",
103
- "static/chunks/243-df6d1b248f7b4d3c.js",
103
+ "static/chunks/243-ef9e49ef3df579c0.js",
104
104
  "static/chunks/pages/checkout-c973786e68f25a39.js"
105
105
  ],
106
106
  "/login": [
107
- "static/chunks/webpack-352e624909554726.js",
107
+ "static/chunks/webpack-88d120cefa1c4c09.js",
108
108
  "static/chunks/framework-dfd14d7ce6600b03.js",
109
109
  "static/chunks/main-fd466221927468fd.js",
110
110
  "static/chunks/738-67a288ca3569cdbb.js",
111
111
  "static/css/e3b039e8f5daf95f.css",
112
- "static/chunks/243-df6d1b248f7b4d3c.js",
112
+ "static/chunks/243-ef9e49ef3df579c0.js",
113
113
  "static/css/df588bb98c0b0ca6.css",
114
114
  "static/chunks/pages/login-8deb9243376b6aa1.js"
115
115
  ],
116
116
  "/s": [
117
- "static/chunks/webpack-352e624909554726.js",
117
+ "static/chunks/webpack-88d120cefa1c4c09.js",
118
118
  "static/chunks/framework-dfd14d7ce6600b03.js",
119
119
  "static/chunks/main-fd466221927468fd.js",
120
120
  "static/chunks/738-67a288ca3569cdbb.js",
121
121
  "static/css/e3b039e8f5daf95f.css",
122
- "static/chunks/243-df6d1b248f7b4d3c.js",
122
+ "static/chunks/243-ef9e49ef3df579c0.js",
123
123
  "static/css/f0e2d1b8832e935d.css",
124
- "static/chunks/603-d1c069aa8a349c86.js",
125
- "static/chunks/pages/s-0e516ab36bb49c99.js"
124
+ "static/chunks/932-33f45603c7d12a4b.js",
125
+ "static/chunks/pages/s-e1bb00f8de6a386e.js"
126
126
  ]
127
127
  },
128
128
  "ampFirstPages": []