@faststore/core 3.25.6 → 3.25.8

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 (31) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/middleware-build-manifest.js +1 -1
  13. package/.next/server/pages/[slug]/p.js +1 -1
  14. package/.next/server/pages/en-US/404.html +2 -2
  15. package/.next/server/pages/en-US/500.html +2 -2
  16. package/.next/server/pages/en-US/account.html +2 -2
  17. package/.next/server/pages/en-US/checkout.html +2 -2
  18. package/.next/server/pages/en-US/login.html +2 -2
  19. package/.next/server/pages/en-US/s.html +2 -2
  20. package/.next/server/pages/en-US.html +2 -2
  21. package/.next/server/pages-manifest.json +1 -1
  22. package/.next/static/{spn1rueV4Zrcg9XCFmPUp → bYqpLksq3FuYVGYZPEM3k}/_buildManifest.js +1 -1
  23. package/.next/static/chunks/pages/[slug]/{p-f551bd05f2c26f5f.js → p-b8eb944e32b2de58.js} +1 -1
  24. package/.next/trace +121 -121
  25. package/.turbo/turbo-build.log +9 -9
  26. package/.turbo/turbo-test.log +5 -5
  27. package/CHANGELOG.md +12 -0
  28. package/package.json +2 -2
  29. package/src/components/sections/ProductDetails/ProductDetails.tsx +21 -0
  30. package/src/pages/[slug]/p.tsx +11 -9
  31. /package/.next/static/{spn1rueV4Zrcg9XCFmPUp → bYqpLksq3FuYVGYZPEM3k}/_ssgManifest.js +0 -0
@@ -1,23 +1,23 @@
1
1
 
2
- > @faststore/core@3.25.5 prebuild /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.25.7 prebuild /home/runner/work/faststore/faststore/packages/core
3
3
  > na run partytown && na run generate
4
4
 
5
5
 
6
- > @faststore/core@3.25.5 partytown /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@3.25.7 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.25.5 generate /home/runner/work/faststore/faststore/packages/core
11
+ > @faststore/core@3.25.7 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.25.5 generate:schema /home/runner/work/faststore/faststore/packages/core
15
+ > @faststore/core@3.25.7 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.25.5 generate:codegen /home/runner/work/faststore/faststore/packages/core
20
+ > @faststore/core@3.25.7 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.25.5 format:generated /home/runner/work/faststore/faststore/packages/core
40
+ > @faststore/core@3.25.7 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.25.5 build /home/runner/work/faststore/faststore/packages/core
44
+ > @faststore/core@3.25.7 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
@@ -60,8 +60,8 @@ https://nextjs.org/telemetry
60
60
  Generating static pages (0/7) ...
61
61
 
62
62
  Generating static pages (1/7)
63
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
-
65
64
  Generating static pages (3/7)
66
65
  CustomModalFooterSection not found. Add a new component for this section or remove it from the CMS
66
+
67
67
  Generating static pages (3/7)
68
68
 
69
69
  Generating static pages (5/7)
70
70
 
71
71
  ✓ Generating static pages (7/7)
72
72
  Finalizing page optimization ...
@@ -72,7 +72,7 @@ Route (pages) Size First Load JS
72
72
  ├ └ css/b1806cbafd0c1f81.css 3.06 kB
73
73
  ├ /_app 0 B 92.2 kB
74
74
  ├ ● /[...slug] 2.15 kB 132 kB
75
- ├ ● /[slug]/p 35.1 kB 155 kB
75
+ ├ ● /[slug]/p 35.2 kB 155 kB
76
76
  ├ ├ css/a3ca6a9b63f657be.css 5.75 kB
77
77
  ├ ├ css/62a5153ac7061286.css 6.11 kB
78
78
  ├ └ css/b5bf49598c8f8b66.css 16.1 kB
@@ -1,14 +1,14 @@
1
1
 
2
- > @faststore/core@3.25.5 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.25.7 test /home/runner/work/faststore/faststore/packages/core
3
3
  > jest
4
4
 
5
- PASS test/utils/multipleTemplates.test.ts (29.309 s)
6
- PASS test/server/cms/global.test.ts (29.507 s)
5
+ PASS test/server/cms/global.test.ts (28.578 s)
6
+ PASS test/utils/multipleTemplates.test.ts (28.719 s)
7
7
  PASS test/server/cms/index.test.ts
8
- PASS test/server/index.test.ts (34.403 s)
8
+ PASS test/server/index.test.ts (33.244 s)
9
9
 
10
10
  Test Suites: 4 passed, 4 total
11
11
  Tests: 22 passed, 22 total
12
12
  Snapshots: 0 total
13
- Time: 35.56 s
13
+ Time: 34.384 s
14
14
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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.25.8](https://github.com/vtex/faststore/compare/v3.25.7...v3.25.8) (2025-03-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Adds back SKUMatrix to PDP ([#2699](https://github.com/vtex/faststore/issues/2699)) ([90c8c04](https://github.com/vtex/faststore/commit/90c8c04be0c11a68bd0665cfe895d48ed9a9cd50))
11
+
12
+ ## [3.25.7](https://github.com/vtex/faststore/compare/v3.25.6...v3.25.7) (2025-03-10)
13
+
14
+ ### Bug Fixes
15
+
16
+ - Get offer url only if `enableClientOffer` is enabled ([#2680](https://github.com/vtex/faststore/issues/2680)) ([4d44454](https://github.com/vtex/faststore/commit/4d4445453abf03b2c450d81670fce01ef3a1c9c7))
17
+
6
18
  ## [3.25.6](https://github.com/vtex/faststore/compare/v3.25.5...v3.25.6) (2025-03-07)
7
19
 
8
20
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.25.6",
3
+ "version": "3.25.8",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -104,5 +104,5 @@
104
104
  "ts-jest": "29.1.1",
105
105
  "typescript": "5.3.2"
106
106
  },
107
- "gitHead": "dc426353e47dd82f5aa0e04a0761f0a65b876dab"
107
+ "gitHead": "08fa9254c649ae811a3a5b6ddde2358c41314577"
108
108
  }
@@ -259,6 +259,27 @@ function ProductDetails({
259
259
  isValidating={isValidating}
260
260
  taxesConfiguration={taxesConfiguration}
261
261
  />
262
+
263
+ {skuMatrix?.shouldDisplaySKUMatrix &&
264
+ Object.keys(slugsMap).length > 1 && (
265
+ <>
266
+ <div data-fs-product-details-settings-separator>
267
+ {skuMatrix.separatorButtonsText}
268
+ </div>
269
+
270
+ <SKUMatrix.Component>
271
+ <SKUMatrixTrigger.Component disabled={isValidating}>
272
+ {skuMatrix.triggerButtonLabel}
273
+ </SKUMatrixTrigger.Component>
274
+
275
+ <SKUMatrixSidebar.Component
276
+ formatter={useFormattedPrice}
277
+ columns={skuMatrix.columns}
278
+ overlayProps={{ className: styles.section }}
279
+ />
280
+ </SKUMatrix.Component>
281
+ </>
282
+ )}
262
283
  </section>
263
284
 
264
285
  {!outOfStock && (
@@ -131,15 +131,17 @@ function Page({
131
131
 
132
132
  return (
133
133
  <>
134
- <Head>
135
- <link
136
- rel="preload"
137
- href={getOfferUrl(product.sku)}
138
- as="fetch"
139
- crossOrigin="anonymous"
140
- fetchPriority="high"
141
- />
142
- </Head>
134
+ {isClientOfferEnabled && (
135
+ <Head>
136
+ <link
137
+ rel="preload"
138
+ href={getOfferUrl(product.sku)}
139
+ as="fetch"
140
+ crossOrigin="anonymous"
141
+ fetchPriority="high"
142
+ />
143
+ </Head>
144
+ )}
143
145
  {/* SEO */}
144
146
  <NextSeo
145
147
  title={meta.title}