@faststore/core 3.21.0 → 3.22.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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +25 -25
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +29 -29
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/7816.js +1 -1
- package/.next/server/chunks/939.js +1 -1
- package/.next/server/chunks/9622.js +1 -1
- package/.next/server/chunks/UIBannerText.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{jGYkYNpB4nDaNLTkLBE97 → NZUdW56e32JN9U7GbiDWk}/_buildManifest.js +1 -1
- package/.next/static/chunks/{1552.e7cece605fc2e1cd.js → 1552.b5a073e7ac834965.js} +1 -1
- package/.next/static/chunks/{266-a8b0f589219806b8.js → 266-4aaebc2df7d43bc7.js} +1 -1
- package/.next/static/chunks/{2682.8e15d0c6bca86466.js → 4865.126c24a1b84ae097.js} +1 -1
- package/.next/static/chunks/{7761-b8a9a5895fb36249.js → 7761-33490557cf671fea.js} +1 -1
- package/.next/static/chunks/{939.40cddea6099fc7f3.js → 939.7f40e3b8cbeef24b.js} +1 -1
- package/.next/static/chunks/{BannerNewsletter.e49efb298f982da1.js → BannerNewsletter.1378a8b327cded16.js} +1 -1
- package/.next/static/chunks/{BannerText.7f8491d690773aca.js → BannerText.aebd5ffcb4d14023.js} +1 -1
- package/.next/static/chunks/{CartSidebar.25187c3dcc1c6de8.js → CartSidebar.cd375f26fdf67c49.js} +1 -1
- package/.next/static/chunks/{ProductShelf.816b78f6841bd2b3.js → ProductShelf.1c213dd4b651f559.js} +1 -1
- package/.next/static/chunks/{RegionModal.d60366c72bb3c488.js → RegionModal.d0e693a270555033.js} +1 -1
- package/.next/static/chunks/{Toast.00a95522854a78fc.js → Toast.178c6c2340874d07.js} +1 -1
- package/.next/static/chunks/pages/{[...slug]-de4989a17e31600b.js → [...slug]-da7d9dc180306001.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-69513544fba08477.js → p-ce4cf864661e2340.js} +1 -1
- package/.next/static/chunks/{webpack-7a7178ec38c87e21.js → webpack-d75fedf95eeeadf6.js} +1 -1
- package/.next/trace +121 -121
- package/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +8 -0
- package/package.json +4 -4
- package/src/components/templates/ProductListingPage/ProductListingPage.tsx +12 -3
- package/src/pages/[slug]/p.tsx +12 -3
- /package/.next/static/{jGYkYNpB4nDaNLTkLBE97 → NZUdW56e32JN9U7GbiDWk}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.22.0 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.
|
|
6
|
+
> @faststore/core@3.22.0 partytown /home/runner/work/faststore/faststore/packages/core
|
|
7
7
|
> partytown copylib ./public/~partytown
|
|
8
8
|
|
|
9
9
|
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
10
10
|
|
|
11
|
-
> @faststore/core@3.
|
|
11
|
+
> @faststore/core@3.22.0 generate /home/runner/work/faststore/faststore/packages/core
|
|
12
12
|
> na run generate:schema && na run generate:codegen && na run format:generated
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> @faststore/core@3.
|
|
15
|
+
> @faststore/core@3.22.0 generate:schema /home/runner/work/faststore/faststore/packages/core
|
|
16
16
|
> tsx src/server/generator/generateGraphQLSchemaFile.ts
|
|
17
17
|
|
|
18
18
|
Schema GraphQL file generated successfully
|
|
19
19
|
|
|
20
|
-
> @faststore/core@3.
|
|
20
|
+
> @faststore/core@3.22.0 generate:codegen /home/runner/work/faststore/faststore/packages/core
|
|
21
21
|
> graphql-codegen
|
|
22
22
|
|
|
23
23
|
[STARTED] Parse Configuration
|
|
@@ -37,11 +37,11 @@ Running lifecycle hook "afterStart" scripts...
|
|
|
37
37
|
[CLI] Loading Documents
|
|
38
38
|
[CLI] Generating output
|
|
39
39
|
|
|
40
|
-
> @faststore/core@3.
|
|
40
|
+
> @faststore/core@3.22.0 format:generated /home/runner/work/faststore/faststore/packages/core
|
|
41
41
|
> prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
> @faststore/core@3.
|
|
44
|
+
> @faststore/core@3.22.0 build /home/runner/work/faststore/faststore/packages/core
|
|
45
45
|
> next build
|
|
46
46
|
|
|
47
47
|
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
@@ -59,10 +59,10 @@ https://nextjs.org/telemetry
|
|
|
59
59
|
Collecting page data ...
|
|
60
60
|
Generating static pages (0/7) ...
|
|
61
61
|
|
|
62
62
|
Generating static pages (1/7)
|
|
63
|
-
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
64
|
-
CustomModalFooterSection not found. Add a new component for this section or remove it from the CMS
|
|
65
63
|
|
|
66
64
|
Generating static pages (3/7)
|
|
65
|
+
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
67
66
|
|
|
68
67
|
Generating static pages (5/7)
|
|
68
|
+
CustomModalFooterSection not found. Add a new component for this section or remove it from the CMS
|
|
69
69
|
|
|
70
70
|
✓ Generating static pages (7/7)
|
|
71
71
|
Finalizing page optimization ...
|
|
72
72
|
Collecting build traces ...
|
|
@@ -71,7 +71,7 @@ Route (pages) Size First Load JS
|
|
|
71
71
|
┌ ● / 3.87 kB 124 kB
|
|
72
72
|
├ └ css/b1806cbafd0c1f81.css 3.06 kB
|
|
73
73
|
├ /_app 0 B 92.2 kB
|
|
74
|
-
├ ● /[...slug] 2.
|
|
74
|
+
├ ● /[...slug] 2.15 kB 132 kB
|
|
75
75
|
├ ● /[slug]/p 34.9 kB 155 kB
|
|
76
76
|
├ ├ css/a3ca6a9b63f657be.css 5.75 kB
|
|
77
77
|
├ ├ css/62a5153ac7061286.css 6.11 kB
|
|
@@ -90,7 +90,7 @@ Route (pages) Size First Load JS
|
|
|
90
90
|
├ chunks/framework-807b0f81cbc129f0.js 45.4 kB
|
|
91
91
|
├ chunks/main-1617ca75abfe1b79.js 33.1 kB
|
|
92
92
|
├ chunks/pages/_app-859f97f9c8a57799.js 10.2 kB
|
|
93
|
-
├ chunks/webpack-
|
|
93
|
+
├ chunks/webpack-d75fedf95eeeadf6.js 3.58 kB
|
|
94
94
|
└ css/2eafb8997a3946dc.css 3.07 kB
|
|
95
95
|
|
|
96
96
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.22.0 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/utils/multipleTemplates.test.ts (29.
|
|
6
|
-
PASS test/server/cms/index.test.ts (29.
|
|
7
|
-
PASS test/server/index.test.ts (33.
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (29.245 s)
|
|
6
|
+
PASS test/server/cms/index.test.ts (29.463 s)
|
|
7
|
+
PASS test/server/index.test.ts (33.696 s)
|
|
8
8
|
|
|
9
9
|
Test Suites: 3 passed, 3 total
|
|
10
10
|
Tests: 19 passed, 19 total
|
|
11
11
|
Snapshots: 0 total
|
|
12
|
-
Time: 34.
|
|
12
|
+
Time: 34.608 s
|
|
13
13
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.22.1](https://github.com/vtex/faststore/compare/v3.22.0...v3.22.1) (2025-02-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/core
|
|
9
|
+
|
|
10
|
+
# [3.22.0](https://github.com/vtex/faststore/compare/v3.21.0...v3.22.0) (2025-02-18)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @faststore/core
|
|
13
|
+
|
|
6
14
|
# [3.21.0](https://github.com/vtex/faststore/compare/v3.20.0...v3.21.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@envelop/parser-cache": "^6.0.2",
|
|
45
45
|
"@envelop/validation-cache": "^6.0.2",
|
|
46
46
|
"@faststore/api": "^3.15.3",
|
|
47
|
-
"@faststore/components": "^3.
|
|
47
|
+
"@faststore/components": "^3.22.0",
|
|
48
48
|
"@faststore/graphql-utils": "^3.15.3",
|
|
49
49
|
"@faststore/lighthouse": "^3.15.3",
|
|
50
50
|
"@faststore/sdk": "^3.15.3",
|
|
51
|
-
"@faststore/ui": "^3.
|
|
51
|
+
"@faststore/ui": "^3.22.0",
|
|
52
52
|
"@graphql-codegen/cli": "5.0.2",
|
|
53
53
|
"@graphql-codegen/client-preset": "4.2.6",
|
|
54
54
|
"@graphql-codegen/typescript": "4.0.7",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"ts-jest": "29.1.1",
|
|
104
104
|
"typescript": "5.3.2"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "9139477e837f111cd555a7e106c232f24f8ef157"
|
|
107
107
|
}
|
|
@@ -82,6 +82,17 @@ export default function ProductListingPage({
|
|
|
82
82
|
const canonical = `${storeConfig.storeUrl}${pathname}`
|
|
83
83
|
const itemsPerPage = settings?.productGallery?.itemsPerPage ?? ITEMS_PER_PAGE
|
|
84
84
|
|
|
85
|
+
let itemListElements = collection?.breadcrumbList.itemListElement ?? []
|
|
86
|
+
if (itemListElements.length !== 0) {
|
|
87
|
+
itemListElements = itemListElements.map(
|
|
88
|
+
({ item: pathname, name, position }) => {
|
|
89
|
+
const pageUrl = storeConfig.storeUrl + pathname
|
|
90
|
+
|
|
91
|
+
return { name, position, item: pageUrl }
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
85
96
|
return (
|
|
86
97
|
<SearchProvider
|
|
87
98
|
onChange={applySearchState}
|
|
@@ -100,9 +111,7 @@ export default function ProductListingPage({
|
|
|
100
111
|
description,
|
|
101
112
|
}}
|
|
102
113
|
/>
|
|
103
|
-
<BreadcrumbJsonLd
|
|
104
|
-
itemListElements={collection?.breadcrumbList.itemListElement ?? []}
|
|
105
|
-
/>
|
|
114
|
+
<BreadcrumbJsonLd itemListElements={itemListElements} />
|
|
106
115
|
|
|
107
116
|
<ProductListing
|
|
108
117
|
globalSections={globalSections}
|
package/src/pages/[slug]/p.tsx
CHANGED
|
@@ -85,6 +85,17 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
85
85
|
const { currency } = useSession()
|
|
86
86
|
const titleTemplate = storeConfig?.seo?.titleTemplate ?? ''
|
|
87
87
|
|
|
88
|
+
let itemListElements = product.breadcrumbList.itemListElement ?? []
|
|
89
|
+
if (itemListElements.length !== 0) {
|
|
90
|
+
itemListElements = itemListElements.map(
|
|
91
|
+
({ item: pathname, name, position }) => {
|
|
92
|
+
const pageUrl = storeConfig.storeUrl + pathname
|
|
93
|
+
|
|
94
|
+
return { name, position, item: pageUrl }
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
|
|
88
99
|
const { client, isValidating } = isClientOfferEnabled
|
|
89
100
|
? (() => {
|
|
90
101
|
const offer = useOffer({ skuId: product.sku })
|
|
@@ -148,9 +159,7 @@ function Page({ data: server, sections, globalSections, offers, meta }: Props) {
|
|
|
148
159
|
]}
|
|
149
160
|
titleTemplate={titleTemplate}
|
|
150
161
|
/>
|
|
151
|
-
<BreadcrumbJsonLd
|
|
152
|
-
itemListElements={product.breadcrumbList.itemListElement}
|
|
153
|
-
/>
|
|
162
|
+
<BreadcrumbJsonLd itemListElements={itemListElements} />
|
|
154
163
|
<ProductJsonLd
|
|
155
164
|
productName={product.name}
|
|
156
165
|
description={product.description}
|
|
File without changes
|