@faststore/core 2.2.0 → 2.2.2
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/.turbo/turbo-build.log +10 -3
- package/.turbo/turbo-lint.log +3 -0
- package/.turbo/turbo-test.log +11 -59
- package/cms/faststore/sections.json +8 -8
- package/package.json +2 -2
- package/src/components/search/SearchTop/SearchTop.tsx +1 -1
- package/src/components/sections/CrossSellingShelf/CrossSellingShelf.tsx +3 -3
- package/src/components/ui/ProductShelf/ProductShelf.tsx +3 -2
- package/.next/BUILD_ID +0 -1
- package/.next/build-manifest.json +0 -128
- package/.next/cache/.tsbuildinfo +0 -1
- package/.next/cache/eslint/.cache_1ncte1t +0 -1
- package/.next/cache/next-server.js.nft.json +0 -1
- package/.next/cache/webpack/client-development/0.pack +0 -0
- package/.next/cache/webpack/client-development/1.pack +0 -0
- package/.next/cache/webpack/client-development/10.pack +0 -0
- package/.next/cache/webpack/client-development/11.pack +0 -0
- package/.next/cache/webpack/client-development/12.pack +0 -0
- package/.next/cache/webpack/client-development/13.pack +0 -0
- package/.next/cache/webpack/client-development/14.pack +0 -0
- package/.next/cache/webpack/client-development/15.pack +0 -0
- package/.next/cache/webpack/client-development/16.pack +0 -0
- package/.next/cache/webpack/client-development/17.pack +0 -0
- package/.next/cache/webpack/client-development/2.pack +0 -0
- package/.next/cache/webpack/client-development/3.pack +0 -0
- package/.next/cache/webpack/client-development/4.pack +0 -0
- package/.next/cache/webpack/client-development/5.pack +0 -0
- package/.next/cache/webpack/client-development/6.pack +0 -0
- package/.next/cache/webpack/client-development/7.pack +0 -0
- package/.next/cache/webpack/client-development/8.pack +0 -0
- package/.next/cache/webpack/client-development/9.pack +0 -0
- package/.next/cache/webpack/client-development/index.pack +0 -0
- package/.next/cache/webpack/client-development/index.pack.old +0 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/2.pack +0 -0
- package/.next/cache/webpack/client-production/3.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-development/0.pack +0 -0
- package/.next/cache/webpack/server-development/1.pack +0 -0
- package/.next/cache/webpack/server-development/10.pack +0 -0
- package/.next/cache/webpack/server-development/11.pack +0 -0
- package/.next/cache/webpack/server-development/12.pack +0 -0
- package/.next/cache/webpack/server-development/13.pack +0 -0
- package/.next/cache/webpack/server-development/14.pack +0 -0
- package/.next/cache/webpack/server-development/15.pack +0 -0
- package/.next/cache/webpack/server-development/16.pack +0 -0
- package/.next/cache/webpack/server-development/17.pack +0 -0
- package/.next/cache/webpack/server-development/18.pack +0 -0
- package/.next/cache/webpack/server-development/19.pack +0 -0
- package/.next/cache/webpack/server-development/19.pack_ +0 -0
- package/.next/cache/webpack/server-development/2.pack +0 -0
- package/.next/cache/webpack/server-development/20.pack +0 -0
- package/.next/cache/webpack/server-development/21.pack +0 -0
- package/.next/cache/webpack/server-development/3.pack +0 -0
- package/.next/cache/webpack/server-development/4.pack +0 -0
- package/.next/cache/webpack/server-development/5.pack +0 -0
- package/.next/cache/webpack/server-development/6.pack +0 -0
- package/.next/cache/webpack/server-development/7.pack +0 -0
- package/.next/cache/webpack/server-development/8.pack +0 -0
- package/.next/cache/webpack/server-development/9.pack +0 -0
- package/.next/cache/webpack/server-development/index.pack +0 -0
- package/.next/cache/webpack/server-development/index.pack.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/1.pack +0 -0
- package/.next/cache/webpack/server-production/2.pack +0 -0
- package/.next/cache/webpack/server-production/3.pack +0 -0
- package/.next/cache/webpack/server-production/4.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/export-marker.json +0 -1
- package/.next/images-manifest.json +0 -1
- package/.next/next-server.js.nft.json +0 -1
- package/.next/package.json +0 -1
- package/.next/prerender-manifest.json +0 -1
- package/.next/react-loadable-manifest.json +0 -47
- package/.next/required-server-files.json +0 -1
- package/.next/routes-manifest.json +0 -1
- package/.next/server/chunks/117.js +0 -430
- package/.next/server/chunks/177.js +0 -120
- package/.next/server/chunks/183.js +0 -95
- package/.next/server/chunks/184.js +0 -61
- package/.next/server/chunks/289.js +0 -240
- package/.next/server/chunks/312.js +0 -678
- package/.next/server/chunks/350.js +0 -200
- package/.next/server/chunks/37.js +0 -610
- package/.next/server/chunks/386.js +0 -200
- package/.next/server/chunks/387.js +0 -550
- package/.next/server/chunks/52.js +0 -4007
- package/.next/server/chunks/53.js +0 -61
- package/.next/server/chunks/574.js +0 -145
- package/.next/server/chunks/576.js +0 -95
- package/.next/server/chunks/585.js +0 -640
- package/.next/server/chunks/676.js +0 -32
- package/.next/server/chunks/692.js +0 -111
- package/.next/server/chunks/693.js +0 -58
- package/.next/server/chunks/732.js +0 -1880
- package/.next/server/chunks/74.js +0 -3964
- package/.next/server/chunks/779.js +0 -58
- package/.next/server/chunks/817.js +0 -4007
- package/.next/server/chunks/825.js +0 -4074
- package/.next/server/chunks/854.js +0 -72
- package/.next/server/chunks/859.js +0 -959
- package/.next/server/chunks/897.js +0 -1289
- package/.next/server/chunks/98.js +0 -163
- package/.next/server/chunks/988.js +0 -211
- package/.next/server/chunks/font-manifest.json +0 -1
- package/.next/server/font-manifest.json +0 -1
- package/.next/server/middleware-build-manifest.js +0 -1
- package/.next/server/middleware-manifest.json +0 -6
- package/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/.next/server/pages/404.js +0 -386
- package/.next/server/pages/404.js.nft.json +0 -1
- package/.next/server/pages/500.js +0 -388
- package/.next/server/pages/500.js.nft.json +0 -1
- package/.next/server/pages/[...slug].js +0 -1084
- package/.next/server/pages/[...slug].js.nft.json +0 -1
- package/.next/server/pages/[slug]/p.js +0 -2274
- package/.next/server/pages/[slug]/p.js.nft.json +0 -1
- package/.next/server/pages/_app.js +0 -279
- package/.next/server/pages/_app.js.nft.json +0 -1
- package/.next/server/pages/_document.js +0 -358
- package/.next/server/pages/_document.js.nft.json +0 -1
- package/.next/server/pages/_error.js +0 -164
- package/.next/server/pages/_error.js.nft.json +0 -1
- package/.next/server/pages/account.js +0 -363
- package/.next/server/pages/account.js.nft.json +0 -1
- package/.next/server/pages/api/graphql.js +0 -457
- package/.next/server/pages/api/graphql.js.nft.json +0 -1
- package/.next/server/pages/api/health/live.js +0 -31
- package/.next/server/pages/api/health/live.js.nft.json +0 -1
- package/.next/server/pages/api/health/ready.js +0 -31
- package/.next/server/pages/api/health/ready.js.nft.json +0 -1
- package/.next/server/pages/api/preview.js +0 -130
- package/.next/server/pages/api/preview.js.nft.json +0 -1
- package/.next/server/pages/checkout.js +0 -363
- package/.next/server/pages/checkout.js.nft.json +0 -1
- package/.next/server/pages/en-US/404.html +0 -81
- package/.next/server/pages/en-US/404.json +0 -1
- package/.next/server/pages/en-US/500.html +0 -81
- package/.next/server/pages/en-US/500.json +0 -1
- package/.next/server/pages/en-US/account.html +0 -81
- package/.next/server/pages/en-US/account.json +0 -1
- package/.next/server/pages/en-US/checkout.html +0 -81
- package/.next/server/pages/en-US/checkout.json +0 -1
- package/.next/server/pages/en-US/login.html +0 -81
- package/.next/server/pages/en-US/login.json +0 -1
- package/.next/server/pages/en-US/s.html +0 -81
- package/.next/server/pages/en-US/s.json +0 -1
- package/.next/server/pages/en-US.html +0 -90
- package/.next/server/pages/en-US.json +0 -1
- package/.next/server/pages/index.js +0 -432
- package/.next/server/pages/index.js.nft.json +0 -1
- package/.next/server/pages/login.js +0 -368
- package/.next/server/pages/login.js.nft.json +0 -1
- package/.next/server/pages/s.js +0 -548
- package/.next/server/pages/s.js.nft.json +0 -1
- package/.next/server/pages-manifest.json +0 -18
- package/.next/server/webpack-api-runtime.js +0 -229
- package/.next/server/webpack-runtime.js +0 -229
- package/.next/static/chunks/251.ffc4f3998ecb915a.js +0 -1
- package/.next/static/chunks/383-6217b37bd38ffd07.js +0 -1
- package/.next/static/chunks/386.d01e0db26c523f0f.js +0 -1
- package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
- package/.next/static/chunks/585.3350efefe61c9461.js +0 -1
- package/.next/static/chunks/635-666ee2cad2925bb7.js +0 -1
- package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
- package/.next/static/chunks/721-f1665b3f1d98b7a9.js +0 -1
- package/.next/static/chunks/722-d0cc87aacd616b5d.js +0 -1
- package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
- package/.next/static/chunks/783-ded9d8cda0d5c8d9.js +0 -1
- package/.next/static/chunks/800.851af48fe2ab4a4c.js +0 -1
- package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
- package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
- package/.next/static/chunks/main-e4e873ee741162eb.js +0 -1
- package/.next/static/chunks/pages/404-6c674028b2f80cbb.js +0 -1
- package/.next/static/chunks/pages/500-ff55de77265a7e43.js +0 -1
- package/.next/static/chunks/pages/[...slug]-7f8dc13cc9542463.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-2fb3fd9027f2923b.js +0 -1
- package/.next/static/chunks/pages/_app-7db7de3d205714be.js +0 -1
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
- package/.next/static/chunks/pages/account-b06035cba2c99604.js +0 -1
- package/.next/static/chunks/pages/checkout-f0c3e8d691cb8a54.js +0 -1
- package/.next/static/chunks/pages/index-a141c747fcc197a1.js +0 -1
- package/.next/static/chunks/pages/login-4e0e6cab7a07f1f3.js +0 -1
- package/.next/static/chunks/pages/s-823f8e1cabbf63b3.js +0 -1
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
- package/.next/static/chunks/webpack-4bb3d8db2d6302ef.js +0 -1
- package/.next/static/css/527e334fa69cf40a.css +0 -1
- package/.next/static/css/5d1f64b61ea581f4.css +0 -1
- package/.next/static/css/6a7fdc5a21fbead5.css +0 -1
- package/.next/static/css/6e1a7434f061d0ef.css +0 -1
- package/.next/static/css/723835bce380750d.css +0 -1
- package/.next/static/css/8f93a4630936c20b.css +0 -1
- package/.next/static/css/9f79fa103f49bca1.css +0 -1
- package/.next/static/css/a2eefb25a4608343.css +0 -1
- package/.next/static/css/cb7d1fcea42fab9c.css +0 -1
- package/.next/static/css/df588bb98c0b0ca6.css +0 -1
- package/.next/static/css/fd27ecc37832aa54.css +0 -1
- package/.next/static/nWxpZUamURezDcVWQSg4_/_buildManifest.js +0 -1
- package/.next/static/nWxpZUamURezDcVWQSg4_/_ssgManifest.js +0 -1
- package/.next/trace +0 -5
- package/dist/cjs/tsconfig.tsbuildinfo +0 -1
- package/dist/esm/tsconfig.tsbuildinfo +0 -1
- package/public/~partytown/debug/partytown-atomics.js +0 -556
- package/public/~partytown/debug/partytown-media.js +0 -374
- package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
- package/public/~partytown/debug/partytown-sw.js +0 -59
- package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
- package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
- package/public/~partytown/debug/partytown.js +0 -72
- package/public/~partytown/partytown-atomics.js +0 -2
- package/public/~partytown/partytown-media.js +0 -2
- package/public/~partytown/partytown-sw.js +0 -2
- package/public/~partytown/partytown.js +0 -2
- package/yarn-error.log +0 -25534
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
$ yarn partytown & yarn generate && next build
|
|
2
|
-
$ faststore generate-graphql -c
|
|
3
2
|
$ partytown copylib ./public/~partytown
|
|
4
|
-
|
|
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)
|
|
@@ -39,7 +46,7 @@ Route (pages) Size First Load JS
|
|
|
39
46
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
40
47
|
├ chunks/main-e4e873ee741162eb.js 24.1 kB
|
|
41
48
|
├ chunks/pages/_app-7db7de3d205714be.js 6.45 kB
|
|
42
|
-
├ chunks/webpack-
|
|
49
|
+
├ chunks/webpack-2b91845967d6dab5.js 2.25 kB
|
|
43
50
|
└ css/5d1f64b61ea581f4.css 3.06 kB
|
|
44
51
|
|
|
45
52
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -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 (
|
|
4
|
+
PASS test/server/index.test.ts (8.838s)
|
|
5
5
|
FastStore GraphQL Layer
|
|
6
6
|
@faststore/api
|
|
7
7
|
✓ should return a valid GraphQL schema (7ms)
|
|
8
|
-
✓ should return a valid GraphQL schema contain all expected types (
|
|
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
|
-
✓ should return a valid GraphQL schema contain all expected mutations
|
|
10
|
+
✓ should return a valid GraphQL schema contain all expected mutations (1ms)
|
|
11
11
|
VTEX API Extension
|
|
12
|
-
✓ should return
|
|
13
|
-
|
|
12
|
+
✓ getTypeDefsFromFolder function should return an Array (10ms)
|
|
13
|
+
Third Party API Extension
|
|
14
|
+
✓ getTypeDefsFromFolder function should return an Array (5ms)
|
|
14
15
|
Final Schema after merging
|
|
15
|
-
✓ should return a valid merged GraphQL schema (
|
|
16
|
+
✓ should return a valid merged GraphQL schema (42ms)
|
|
16
17
|
Envelop
|
|
17
|
-
|
|
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 (343ms)
|
|
68
20
|
|
|
69
21
|
Test Suites: 1 passed, 1 total
|
|
70
|
-
Tests:
|
|
22
|
+
Tests: 9 passed, 9 total
|
|
71
23
|
Snapshots: 0 total
|
|
72
|
-
Time:
|
|
24
|
+
Time: 9.499s
|
|
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", "
|
|
833
|
+
"required": ["title", "numberOfItems", "after", "sort"],
|
|
834
834
|
"properties": {
|
|
835
835
|
"title": {
|
|
836
836
|
"type": "string",
|
|
837
837
|
"title": "Title"
|
|
838
838
|
},
|
|
839
|
-
"
|
|
839
|
+
"numberOfItems": {
|
|
840
840
|
"type": "integer",
|
|
841
|
-
"title": "
|
|
841
|
+
"title": "Total number of items",
|
|
842
842
|
"default": 5,
|
|
843
|
-
"description": "
|
|
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", "
|
|
928
|
+
"required": ["title", "numberOfItems", "kind"],
|
|
929
929
|
"properties": {
|
|
930
930
|
"title": {
|
|
931
931
|
"title": "Title",
|
|
932
932
|
"type": "string"
|
|
933
933
|
},
|
|
934
|
-
"
|
|
935
|
-
"title": "
|
|
934
|
+
"numberOfItems": {
|
|
935
|
+
"title": "Total number of items",
|
|
936
936
|
"type": "integer",
|
|
937
937
|
"default": 5,
|
|
938
|
-
"description": "
|
|
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.
|
|
3
|
+
"version": "2.2.2",
|
|
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": "
|
|
132
|
+
"gitHead": "f55ce33ef5b706f6c7eaf7b53675036e2f84c1f4"
|
|
133
133
|
}
|
|
@@ -23,7 +23,7 @@ export interface SearchTopProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
23
23
|
sort?: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
function SearchTop({ topTerms, sort, ...otherProps }: SearchTopProps) {
|
|
26
|
+
function SearchTop({ topTerms = [], sort, ...otherProps }: SearchTopProps) {
|
|
27
27
|
const {
|
|
28
28
|
values: { onSearchSelection },
|
|
29
29
|
} = useSearch()
|
|
@@ -7,12 +7,12 @@ import styles from '../ProductShelf/section.module.scss'
|
|
|
7
7
|
import Section from '../Section'
|
|
8
8
|
|
|
9
9
|
interface Props {
|
|
10
|
-
|
|
10
|
+
numberOfItems: number
|
|
11
11
|
title: string
|
|
12
12
|
kind: 'buy' | 'view'
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const CrossSellingShelf = ({
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
}
|