@faststore/core 2.2.0 → 2.2.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 (217) hide show
  1. package/.turbo/turbo-build.log +9 -2
  2. package/.turbo/turbo-lint.log +3 -0
  3. package/.turbo/turbo-test.log +11 -59
  4. package/cms/faststore/sections.json +8 -8
  5. package/package.json +2 -2
  6. package/src/components/sections/CrossSellingShelf/CrossSellingShelf.tsx +3 -3
  7. package/src/components/ui/ProductShelf/ProductShelf.tsx +3 -2
  8. package/.next/BUILD_ID +0 -1
  9. package/.next/build-manifest.json +0 -128
  10. package/.next/cache/.tsbuildinfo +0 -1
  11. package/.next/cache/eslint/.cache_1ncte1t +0 -1
  12. package/.next/cache/next-server.js.nft.json +0 -1
  13. package/.next/cache/webpack/client-development/0.pack +0 -0
  14. package/.next/cache/webpack/client-development/1.pack +0 -0
  15. package/.next/cache/webpack/client-development/10.pack +0 -0
  16. package/.next/cache/webpack/client-development/11.pack +0 -0
  17. package/.next/cache/webpack/client-development/12.pack +0 -0
  18. package/.next/cache/webpack/client-development/13.pack +0 -0
  19. package/.next/cache/webpack/client-development/14.pack +0 -0
  20. package/.next/cache/webpack/client-development/15.pack +0 -0
  21. package/.next/cache/webpack/client-development/16.pack +0 -0
  22. package/.next/cache/webpack/client-development/17.pack +0 -0
  23. package/.next/cache/webpack/client-development/2.pack +0 -0
  24. package/.next/cache/webpack/client-development/3.pack +0 -0
  25. package/.next/cache/webpack/client-development/4.pack +0 -0
  26. package/.next/cache/webpack/client-development/5.pack +0 -0
  27. package/.next/cache/webpack/client-development/6.pack +0 -0
  28. package/.next/cache/webpack/client-development/7.pack +0 -0
  29. package/.next/cache/webpack/client-development/8.pack +0 -0
  30. package/.next/cache/webpack/client-development/9.pack +0 -0
  31. package/.next/cache/webpack/client-development/index.pack +0 -0
  32. package/.next/cache/webpack/client-development/index.pack.old +0 -0
  33. package/.next/cache/webpack/client-production/0.pack +0 -0
  34. package/.next/cache/webpack/client-production/1.pack +0 -0
  35. package/.next/cache/webpack/client-production/2.pack +0 -0
  36. package/.next/cache/webpack/client-production/3.pack +0 -0
  37. package/.next/cache/webpack/client-production/index.pack +0 -0
  38. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  39. package/.next/cache/webpack/server-development/0.pack +0 -0
  40. package/.next/cache/webpack/server-development/1.pack +0 -0
  41. package/.next/cache/webpack/server-development/10.pack +0 -0
  42. package/.next/cache/webpack/server-development/11.pack +0 -0
  43. package/.next/cache/webpack/server-development/12.pack +0 -0
  44. package/.next/cache/webpack/server-development/13.pack +0 -0
  45. package/.next/cache/webpack/server-development/14.pack +0 -0
  46. package/.next/cache/webpack/server-development/15.pack +0 -0
  47. package/.next/cache/webpack/server-development/16.pack +0 -0
  48. package/.next/cache/webpack/server-development/17.pack +0 -0
  49. package/.next/cache/webpack/server-development/18.pack +0 -0
  50. package/.next/cache/webpack/server-development/19.pack +0 -0
  51. package/.next/cache/webpack/server-development/19.pack_ +0 -0
  52. package/.next/cache/webpack/server-development/2.pack +0 -0
  53. package/.next/cache/webpack/server-development/20.pack +0 -0
  54. package/.next/cache/webpack/server-development/21.pack +0 -0
  55. package/.next/cache/webpack/server-development/3.pack +0 -0
  56. package/.next/cache/webpack/server-development/4.pack +0 -0
  57. package/.next/cache/webpack/server-development/5.pack +0 -0
  58. package/.next/cache/webpack/server-development/6.pack +0 -0
  59. package/.next/cache/webpack/server-development/7.pack +0 -0
  60. package/.next/cache/webpack/server-development/8.pack +0 -0
  61. package/.next/cache/webpack/server-development/9.pack +0 -0
  62. package/.next/cache/webpack/server-development/index.pack +0 -0
  63. package/.next/cache/webpack/server-development/index.pack.old +0 -0
  64. package/.next/cache/webpack/server-production/0.pack +0 -0
  65. package/.next/cache/webpack/server-production/1.pack +0 -0
  66. package/.next/cache/webpack/server-production/2.pack +0 -0
  67. package/.next/cache/webpack/server-production/3.pack +0 -0
  68. package/.next/cache/webpack/server-production/4.pack +0 -0
  69. package/.next/cache/webpack/server-production/index.pack +0 -0
  70. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  71. package/.next/export-marker.json +0 -1
  72. package/.next/images-manifest.json +0 -1
  73. package/.next/next-server.js.nft.json +0 -1
  74. package/.next/package.json +0 -1
  75. package/.next/prerender-manifest.json +0 -1
  76. package/.next/react-loadable-manifest.json +0 -47
  77. package/.next/required-server-files.json +0 -1
  78. package/.next/routes-manifest.json +0 -1
  79. package/.next/server/chunks/117.js +0 -430
  80. package/.next/server/chunks/177.js +0 -120
  81. package/.next/server/chunks/183.js +0 -95
  82. package/.next/server/chunks/184.js +0 -61
  83. package/.next/server/chunks/289.js +0 -240
  84. package/.next/server/chunks/312.js +0 -678
  85. package/.next/server/chunks/350.js +0 -200
  86. package/.next/server/chunks/37.js +0 -610
  87. package/.next/server/chunks/386.js +0 -200
  88. package/.next/server/chunks/387.js +0 -550
  89. package/.next/server/chunks/52.js +0 -4007
  90. package/.next/server/chunks/53.js +0 -61
  91. package/.next/server/chunks/574.js +0 -145
  92. package/.next/server/chunks/576.js +0 -95
  93. package/.next/server/chunks/585.js +0 -640
  94. package/.next/server/chunks/676.js +0 -32
  95. package/.next/server/chunks/692.js +0 -111
  96. package/.next/server/chunks/693.js +0 -58
  97. package/.next/server/chunks/732.js +0 -1880
  98. package/.next/server/chunks/74.js +0 -3964
  99. package/.next/server/chunks/779.js +0 -58
  100. package/.next/server/chunks/817.js +0 -4007
  101. package/.next/server/chunks/825.js +0 -4074
  102. package/.next/server/chunks/854.js +0 -72
  103. package/.next/server/chunks/859.js +0 -959
  104. package/.next/server/chunks/897.js +0 -1289
  105. package/.next/server/chunks/98.js +0 -163
  106. package/.next/server/chunks/988.js +0 -211
  107. package/.next/server/chunks/font-manifest.json +0 -1
  108. package/.next/server/font-manifest.json +0 -1
  109. package/.next/server/middleware-build-manifest.js +0 -1
  110. package/.next/server/middleware-manifest.json +0 -6
  111. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  112. package/.next/server/pages/404.js +0 -386
  113. package/.next/server/pages/404.js.nft.json +0 -1
  114. package/.next/server/pages/500.js +0 -388
  115. package/.next/server/pages/500.js.nft.json +0 -1
  116. package/.next/server/pages/[...slug].js +0 -1084
  117. package/.next/server/pages/[...slug].js.nft.json +0 -1
  118. package/.next/server/pages/[slug]/p.js +0 -2274
  119. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  120. package/.next/server/pages/_app.js +0 -279
  121. package/.next/server/pages/_app.js.nft.json +0 -1
  122. package/.next/server/pages/_document.js +0 -358
  123. package/.next/server/pages/_document.js.nft.json +0 -1
  124. package/.next/server/pages/_error.js +0 -164
  125. package/.next/server/pages/_error.js.nft.json +0 -1
  126. package/.next/server/pages/account.js +0 -363
  127. package/.next/server/pages/account.js.nft.json +0 -1
  128. package/.next/server/pages/api/graphql.js +0 -457
  129. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  130. package/.next/server/pages/api/health/live.js +0 -31
  131. package/.next/server/pages/api/health/live.js.nft.json +0 -1
  132. package/.next/server/pages/api/health/ready.js +0 -31
  133. package/.next/server/pages/api/health/ready.js.nft.json +0 -1
  134. package/.next/server/pages/api/preview.js +0 -130
  135. package/.next/server/pages/api/preview.js.nft.json +0 -1
  136. package/.next/server/pages/checkout.js +0 -363
  137. package/.next/server/pages/checkout.js.nft.json +0 -1
  138. package/.next/server/pages/en-US/404.html +0 -81
  139. package/.next/server/pages/en-US/404.json +0 -1
  140. package/.next/server/pages/en-US/500.html +0 -81
  141. package/.next/server/pages/en-US/500.json +0 -1
  142. package/.next/server/pages/en-US/account.html +0 -81
  143. package/.next/server/pages/en-US/account.json +0 -1
  144. package/.next/server/pages/en-US/checkout.html +0 -81
  145. package/.next/server/pages/en-US/checkout.json +0 -1
  146. package/.next/server/pages/en-US/login.html +0 -81
  147. package/.next/server/pages/en-US/login.json +0 -1
  148. package/.next/server/pages/en-US/s.html +0 -81
  149. package/.next/server/pages/en-US/s.json +0 -1
  150. package/.next/server/pages/en-US.html +0 -90
  151. package/.next/server/pages/en-US.json +0 -1
  152. package/.next/server/pages/index.js +0 -432
  153. package/.next/server/pages/index.js.nft.json +0 -1
  154. package/.next/server/pages/login.js +0 -368
  155. package/.next/server/pages/login.js.nft.json +0 -1
  156. package/.next/server/pages/s.js +0 -548
  157. package/.next/server/pages/s.js.nft.json +0 -1
  158. package/.next/server/pages-manifest.json +0 -18
  159. package/.next/server/webpack-api-runtime.js +0 -229
  160. package/.next/server/webpack-runtime.js +0 -229
  161. package/.next/static/chunks/251.ffc4f3998ecb915a.js +0 -1
  162. package/.next/static/chunks/383-6217b37bd38ffd07.js +0 -1
  163. package/.next/static/chunks/386.d01e0db26c523f0f.js +0 -1
  164. package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
  165. package/.next/static/chunks/585.3350efefe61c9461.js +0 -1
  166. package/.next/static/chunks/635-666ee2cad2925bb7.js +0 -1
  167. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  168. package/.next/static/chunks/721-f1665b3f1d98b7a9.js +0 -1
  169. package/.next/static/chunks/722-d0cc87aacd616b5d.js +0 -1
  170. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  171. package/.next/static/chunks/783-ded9d8cda0d5c8d9.js +0 -1
  172. package/.next/static/chunks/800.851af48fe2ab4a4c.js +0 -1
  173. package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
  174. package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
  175. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  176. package/.next/static/chunks/main-e4e873ee741162eb.js +0 -1
  177. package/.next/static/chunks/pages/404-6c674028b2f80cbb.js +0 -1
  178. package/.next/static/chunks/pages/500-ff55de77265a7e43.js +0 -1
  179. package/.next/static/chunks/pages/[...slug]-7f8dc13cc9542463.js +0 -1
  180. package/.next/static/chunks/pages/[slug]/p-2fb3fd9027f2923b.js +0 -1
  181. package/.next/static/chunks/pages/_app-7db7de3d205714be.js +0 -1
  182. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  183. package/.next/static/chunks/pages/account-b06035cba2c99604.js +0 -1
  184. package/.next/static/chunks/pages/checkout-f0c3e8d691cb8a54.js +0 -1
  185. package/.next/static/chunks/pages/index-a141c747fcc197a1.js +0 -1
  186. package/.next/static/chunks/pages/login-4e0e6cab7a07f1f3.js +0 -1
  187. package/.next/static/chunks/pages/s-823f8e1cabbf63b3.js +0 -1
  188. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  189. package/.next/static/chunks/webpack-4bb3d8db2d6302ef.js +0 -1
  190. package/.next/static/css/527e334fa69cf40a.css +0 -1
  191. package/.next/static/css/5d1f64b61ea581f4.css +0 -1
  192. package/.next/static/css/6a7fdc5a21fbead5.css +0 -1
  193. package/.next/static/css/6e1a7434f061d0ef.css +0 -1
  194. package/.next/static/css/723835bce380750d.css +0 -1
  195. package/.next/static/css/8f93a4630936c20b.css +0 -1
  196. package/.next/static/css/9f79fa103f49bca1.css +0 -1
  197. package/.next/static/css/a2eefb25a4608343.css +0 -1
  198. package/.next/static/css/cb7d1fcea42fab9c.css +0 -1
  199. package/.next/static/css/df588bb98c0b0ca6.css +0 -1
  200. package/.next/static/css/fd27ecc37832aa54.css +0 -1
  201. package/.next/static/nWxpZUamURezDcVWQSg4_/_buildManifest.js +0 -1
  202. package/.next/static/nWxpZUamURezDcVWQSg4_/_ssgManifest.js +0 -1
  203. package/.next/trace +0 -5
  204. package/dist/cjs/tsconfig.tsbuildinfo +0 -1
  205. package/dist/esm/tsconfig.tsbuildinfo +0 -1
  206. package/public/~partytown/debug/partytown-atomics.js +0 -556
  207. package/public/~partytown/debug/partytown-media.js +0 -374
  208. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  209. package/public/~partytown/debug/partytown-sw.js +0 -59
  210. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  211. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  212. package/public/~partytown/debug/partytown.js +0 -72
  213. package/public/~partytown/partytown-atomics.js +0 -2
  214. package/public/~partytown/partytown-media.js +0 -2
  215. package/public/~partytown/partytown-sw.js +0 -2
  216. package/public/~partytown/partytown.js +0 -2
  217. package/yarn-error.log +0 -25534
@@ -1,14 +1,21 @@
1
1
  $ yarn partytown & yarn generate && next build
2
- $ faststore generate-graphql -c
3
2
  $ partytown copylib ./public/~partytown
4
- Partytown lib copied to: /Users/eduardoformiga/Work/vtex/faststore/packages/core/public/~partytown
3
+ $ faststore generate-graphql -c
4
+ Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
5
5
  success - GraphQL schema, types, and optimizations successfully generated 🎉
6
6
  warn - You have enabled experimental feature (scrollRestoration) in next.config.js.
7
7
  warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
8
8
 
9
+ warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
10
+ Attention: Next.js now collects completely anonymous telemetry regarding usage.
11
+ This information is used to shape Next.js' roadmap and prioritize features.
12
+ You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
13
+ https://nextjs.org/telemetry
14
+
9
15
  info - Linting and checking validity of types...
10
16
  info - Creating an optimized production build...
11
17
  info - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
18
+ info - Using external babel configuration from /home/runner/work/faststore/faststore/packages/core/.babelrc
12
19
  info - Compiled successfully
13
20
  info - Collecting page data...
14
21
  info - Generating static pages (0/7)
@@ -1,2 +1,5 @@
1
1
  $ next lint
2
+ warn - You have enabled experimental feature (scrollRestoration) in next.config.js.
3
+ warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
4
+
2
5
  ✔ No ESLint warnings or errors
@@ -1,73 +1,25 @@
1
1
  $ tsdx test
2
2
  ts-jest[versions] (WARN) Version 29.1.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=25.0.0 <26.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
3
3
  ts-jest[versions] (WARN) Version 4.9.4 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.4.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
4
- PASS test/server/index.test.ts (9.985s)
4
+ PASS test/server/index.test.ts (8.223s)
5
5
  FastStore GraphQL Layer
6
6
  @faststore/api
7
- ✓ should return a valid GraphQL schema (7ms)
8
- ✓ should return a valid GraphQL schema contain all expected types (8ms)
7
+ ✓ should return a valid GraphQL schema (6ms)
8
+ ✓ should return a valid GraphQL schema contain all expected types (5ms)
9
9
  ✓ should return a valid GraphQL schema contain all expected queries (1ms)
10
10
  ✓ should return a valid GraphQL schema contain all expected mutations
11
11
  VTEX API Extension
12
- ✓ should return a valid GraphQL schema (38ms)
13
- getTypeDefsFromFolder function should return an Array (2ms)
12
+ getTypeDefsFromFolder function should return an Array (6ms)
13
+ Third Party API Extension
14
+ ✓ getTypeDefsFromFolder function should return an Array (6ms)
14
15
  Final Schema after merging
15
- ✓ should return a valid merged GraphQL schema (63ms)
16
+ ✓ should return a valid merged GraphQL schema (39ms)
16
17
  Envelop
17
- skipped Should run correctly with no errors
18
-
19
- console.log
20
- 🚀 ~ mySchema: GraphQLSchema {
21
- __validationErrors: undefined,
22
- description: undefined,
23
- extensions: undefined,
24
- astNode: undefined,
25
- extensionASTNodes: [],
26
- _queryType: Query,
27
- _mutationType: undefined,
28
- _subscriptionType: undefined,
29
- _directives: [ @include, @skip, @deprecated, @specifiedBy ],
30
- _typeMap: [Object: null prototype] {
31
- Query: Query,
32
- String: String,
33
- Boolean: Boolean,
34
- __Schema: __Schema,
35
- __Type: __Type,
36
- __TypeKind: __TypeKind,
37
- __Field: __Field,
38
- __InputValue: __InputValue,
39
- __EnumValue: __EnumValue,
40
- __Directive: __Directive,
41
- __DirectiveLocation: __DirectiveLocation
42
- },
43
- _subTypeMap: [Object: null prototype] {},
44
- _implementationsMap: [Object: null prototype] {}
45
- }
46
-
47
- at test/server/index.test.ts:144:13
48
-
49
- console.log
50
- ● Test suite failed to run
51
-
52
- Returning a Promise from "describe" is not supported. Tests must be defined synchronously.
53
- Returning a value from "describe" will fail the test in a future version of Jest.
54
-
55
- 139 | })
56
- 140 |
57
- > 141 | describe('Envelop', async () => {
58
- | ^
59
- 142 | const mySchema = buildSchema(`type Query { foo: String }`)
60
- 143 |
61
- 144 | console.log('🚀 ~ mySchema:', mySchema)
62
-
63
- at addSpecsToSuite (../../node_modules/jest-jasmine2/build/jasmine/Env.js:452:17)
64
- at Suite.<anonymous> (test/server/index.test.ts:141:3)
65
- at Object.<anonymous> (test/server/index.test.ts:82:1)
66
-
67
- at addSpecsToSuite (../../node_modules/jest-jasmine2/build/jasmine/Env.js:450:21)
18
+ should exist with its plugins (33ms)
19
+ ✓ should handle options and execute (88ms)
68
20
 
69
21
  Test Suites: 1 passed, 1 total
70
- Tests: 1 skipped, 7 passed, 8 total
22
+ Tests: 9 passed, 9 total
71
23
  Snapshots: 0 total
72
- Time: 11.371s, estimated 18s
24
+ Time: 8.873s
73
25
  Ran all test suites.
@@ -830,17 +830,17 @@
830
830
  "title": "Product Shelf",
831
831
  "description": "Add custom shelves to your store",
832
832
  "type": "object",
833
- "required": ["title", "first", "after", "sort"],
833
+ "required": ["title", "numberOfItems", "after", "sort"],
834
834
  "properties": {
835
835
  "title": {
836
836
  "type": "string",
837
837
  "title": "Title"
838
838
  },
839
- "first": {
839
+ "numberOfItems": {
840
840
  "type": "integer",
841
- "title": "First",
841
+ "title": "Total number of items",
842
842
  "default": 5,
843
- "description": "Number of items to display"
843
+ "description": "Total number of items. The quantity may be smaller if the query returns fewer products."
844
844
  },
845
845
  "after": {
846
846
  "type": "integer",
@@ -925,17 +925,17 @@
925
925
  "title": "Cross Selling Shelf",
926
926
  "description": "Add cross selling product data to your users",
927
927
  "type": "object",
928
- "required": ["title", "items", "kind"],
928
+ "required": ["title", "numberOfItems", "kind"],
929
929
  "properties": {
930
930
  "title": {
931
931
  "title": "Title",
932
932
  "type": "string"
933
933
  },
934
- "items": {
935
- "title": "First",
934
+ "numberOfItems": {
935
+ "title": "Total number of items",
936
936
  "type": "integer",
937
937
  "default": 5,
938
- "description": "Number of items to display"
938
+ "description": "Total number of items. The quantity may be smaller if the query returns fewer products."
939
939
  },
940
940
  "kind": {
941
941
  "title": "Kind",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "license": "MIT",
5
5
  "browserslist": "supports es6-module and not dead",
6
6
  "exports": {
@@ -129,5 +129,5 @@
129
129
  "msw": {
130
130
  "workerDirectory": "public"
131
131
  },
132
- "gitHead": "e1489a02bc5e4de1aec3f9d60f77a3c4455cc22b"
132
+ "gitHead": "d79a95a1c4cf1e59eb699418419027b8647c45f1"
133
133
  }
@@ -7,12 +7,12 @@ import styles from '../ProductShelf/section.module.scss'
7
7
  import Section from '../Section'
8
8
 
9
9
  interface Props {
10
- items: number
10
+ numberOfItems: number
11
11
  title: string
12
12
  kind: 'buy' | 'view'
13
13
  }
14
14
 
15
- const CrossSellingShelf = ({ items: first, title, kind }: Props) => {
15
+ const CrossSellingShelf = ({ numberOfItems, title, kind }: Props) => {
16
16
  const { ref, inView } = useInView()
17
17
  const context = usePDP()
18
18
  const productGroupID = context?.data?.product?.isVariantOf?.productGroupID
@@ -29,7 +29,7 @@ const CrossSellingShelf = ({ items: first, title, kind }: Props) => {
29
29
  >
30
30
  <UIProductShelf
31
31
  inView={inView}
32
- first={first}
32
+ numberOfItems={numberOfItems}
33
33
  title={title}
34
34
  selectedFacets={selectedFacets}
35
35
  />
@@ -23,7 +23,7 @@ type Sort =
23
23
 
24
24
  export type ProductShelfProps = {
25
25
  title: string
26
- first?: number
26
+ numberOfItems?: number
27
27
  after?: string
28
28
  sort?: Sort
29
29
  term?: string
@@ -45,12 +45,13 @@ function ProductShelf({
45
45
  bordered = ProductCard.props.bordered,
46
46
  showDiscountBadge = ProductCard.props.showDiscountBadge,
47
47
  } = {},
48
+ numberOfItems,
48
49
  ...otherProps
49
50
  }: ProductShelfProps) {
50
51
  const titleId = textToKebabCase(title)
51
52
  const id = useId()
52
53
  const viewedOnce = useRef(false)
53
- const data = useProductsQuery(otherProps)
54
+ const data = useProductsQuery({ first: numberOfItems, ...otherProps })
54
55
  const products = data?.search?.products
55
56
  const productEdges = products?.edges ?? []
56
57
  const aspectRatio = 1
package/.next/BUILD_ID DELETED
@@ -1 +0,0 @@
1
- nWxpZUamURezDcVWQSg4_
@@ -1,128 +0,0 @@
1
- {
2
- "polyfillFiles": [
3
- "static/chunks/polyfills-c67a75d1b6f99dc8.js"
4
- ],
5
- "devFiles": [],
6
- "ampDevFiles": [],
7
- "lowPriorityFiles": [
8
- "static/nWxpZUamURezDcVWQSg4_/_buildManifest.js",
9
- "static/nWxpZUamURezDcVWQSg4_/_ssgManifest.js"
10
- ],
11
- "rootMainFiles": [],
12
- "pages": {
13
- "/": [
14
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
15
- "static/chunks/framework-dfd14d7ce6600b03.js",
16
- "static/chunks/main-e4e873ee741162eb.js",
17
- "static/chunks/783-ded9d8cda0d5c8d9.js",
18
- "static/css/8f93a4630936c20b.css",
19
- "static/chunks/383-6217b37bd38ffd07.js",
20
- "static/css/fd27ecc37832aa54.css",
21
- "static/chunks/721-f1665b3f1d98b7a9.js",
22
- "static/css/a2eefb25a4608343.css",
23
- "static/chunks/pages/index-a141c747fcc197a1.js"
24
- ],
25
- "/404": [
26
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
27
- "static/chunks/framework-dfd14d7ce6600b03.js",
28
- "static/chunks/main-e4e873ee741162eb.js",
29
- "static/chunks/783-ded9d8cda0d5c8d9.js",
30
- "static/css/8f93a4630936c20b.css",
31
- "static/chunks/383-6217b37bd38ffd07.js",
32
- "static/css/df588bb98c0b0ca6.css",
33
- "static/chunks/pages/404-6c674028b2f80cbb.js"
34
- ],
35
- "/500": [
36
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
37
- "static/chunks/framework-dfd14d7ce6600b03.js",
38
- "static/chunks/main-e4e873ee741162eb.js",
39
- "static/chunks/783-ded9d8cda0d5c8d9.js",
40
- "static/css/8f93a4630936c20b.css",
41
- "static/chunks/383-6217b37bd38ffd07.js",
42
- "static/css/df588bb98c0b0ca6.css",
43
- "static/chunks/pages/500-ff55de77265a7e43.js"
44
- ],
45
- "/[...slug]": [
46
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
47
- "static/chunks/framework-dfd14d7ce6600b03.js",
48
- "static/chunks/main-e4e873ee741162eb.js",
49
- "static/chunks/783-ded9d8cda0d5c8d9.js",
50
- "static/chunks/635-666ee2cad2925bb7.js",
51
- "static/css/8f93a4630936c20b.css",
52
- "static/chunks/383-6217b37bd38ffd07.js",
53
- "static/css/fd27ecc37832aa54.css",
54
- "static/chunks/721-f1665b3f1d98b7a9.js",
55
- "static/css/723835bce380750d.css",
56
- "static/chunks/722-d0cc87aacd616b5d.js",
57
- "static/css/a2eefb25a4608343.css",
58
- "static/css/527e334fa69cf40a.css",
59
- "static/chunks/pages/[...slug]-7f8dc13cc9542463.js"
60
- ],
61
- "/[slug]/p": [
62
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
63
- "static/chunks/framework-dfd14d7ce6600b03.js",
64
- "static/chunks/main-e4e873ee741162eb.js",
65
- "static/chunks/783-ded9d8cda0d5c8d9.js",
66
- "static/chunks/635-666ee2cad2925bb7.js",
67
- "static/css/8f93a4630936c20b.css",
68
- "static/chunks/383-6217b37bd38ffd07.js",
69
- "static/css/fd27ecc37832aa54.css",
70
- "static/chunks/721-f1665b3f1d98b7a9.js",
71
- "static/css/9f79fa103f49bca1.css",
72
- "static/chunks/pages/[slug]/p-2fb3fd9027f2923b.js"
73
- ],
74
- "/_app": [
75
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
76
- "static/chunks/framework-dfd14d7ce6600b03.js",
77
- "static/chunks/main-e4e873ee741162eb.js",
78
- "static/css/5d1f64b61ea581f4.css",
79
- "static/chunks/pages/_app-7db7de3d205714be.js"
80
- ],
81
- "/_error": [
82
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
83
- "static/chunks/framework-dfd14d7ce6600b03.js",
84
- "static/chunks/main-e4e873ee741162eb.js",
85
- "static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"
86
- ],
87
- "/account": [
88
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
89
- "static/chunks/framework-dfd14d7ce6600b03.js",
90
- "static/chunks/main-e4e873ee741162eb.js",
91
- "static/chunks/783-ded9d8cda0d5c8d9.js",
92
- "static/css/8f93a4630936c20b.css",
93
- "static/chunks/383-6217b37bd38ffd07.js",
94
- "static/chunks/pages/account-b06035cba2c99604.js"
95
- ],
96
- "/checkout": [
97
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
98
- "static/chunks/framework-dfd14d7ce6600b03.js",
99
- "static/chunks/main-e4e873ee741162eb.js",
100
- "static/chunks/783-ded9d8cda0d5c8d9.js",
101
- "static/css/8f93a4630936c20b.css",
102
- "static/chunks/383-6217b37bd38ffd07.js",
103
- "static/chunks/pages/checkout-f0c3e8d691cb8a54.js"
104
- ],
105
- "/login": [
106
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
107
- "static/chunks/framework-dfd14d7ce6600b03.js",
108
- "static/chunks/main-e4e873ee741162eb.js",
109
- "static/chunks/783-ded9d8cda0d5c8d9.js",
110
- "static/css/8f93a4630936c20b.css",
111
- "static/chunks/383-6217b37bd38ffd07.js",
112
- "static/css/df588bb98c0b0ca6.css",
113
- "static/chunks/pages/login-4e0e6cab7a07f1f3.js"
114
- ],
115
- "/s": [
116
- "static/chunks/webpack-4bb3d8db2d6302ef.js",
117
- "static/chunks/framework-dfd14d7ce6600b03.js",
118
- "static/chunks/main-e4e873ee741162eb.js",
119
- "static/chunks/783-ded9d8cda0d5c8d9.js",
120
- "static/css/8f93a4630936c20b.css",
121
- "static/chunks/383-6217b37bd38ffd07.js",
122
- "static/css/723835bce380750d.css",
123
- "static/chunks/722-d0cc87aacd616b5d.js",
124
- "static/chunks/pages/s-823f8e1cabbf63b3.js"
125
- ]
126
- },
127
- "ampFirstPages": []
128
- }