@faststore/core 3.14.0 → 3.14.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 (44) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +15 -15
  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/next-minimal-server.js.nft.json +1 -1
  10. package/.next/next-server.js.nft.json +1 -1
  11. package/.next/prerender-manifest.js +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/371.js +1 -1
  16. package/.next/server/chunks/5430.js +1 -1
  17. package/.next/server/chunks/5671.js +1 -1
  18. package/.next/server/chunks/5754.js +1 -1
  19. package/.next/server/middleware-build-manifest.js +1 -1
  20. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  21. package/.next/server/pages/en-US/404.html +1 -1
  22. package/.next/server/pages/en-US/500.html +1 -1
  23. package/.next/server/pages/en-US/account.html +1 -1
  24. package/.next/server/pages/en-US/checkout.html +1 -1
  25. package/.next/server/pages/en-US/login.html +1 -1
  26. package/.next/server/pages/en-US/s.html +1 -1
  27. package/.next/server/pages/en-US.html +1 -1
  28. package/.next/server/pages/index.js +1 -1
  29. package/.next/server/pages-manifest.json +1 -1
  30. package/.next/static/chunks/{1153.d7522522b6c917ed.js → 1153.7f616071da309cf5.js} +1 -1
  31. package/.next/static/chunks/pages/{_app-c53030c25d32ee1c.js → _app-ba0d9245cbb082f7.js} +1 -1
  32. package/.next/static/chunks/pages/{index-01e855e8041d8ecd.js → index-3afad5f7b3649b98.js} +1 -1
  33. package/.next/static/chunks/{webpack-8945ec67c1208527.js → webpack-bc711f2cb2b8dee9.js} +1 -1
  34. package/.next/static/{KIl7doBcNtetVoNiYFa8I → d8jAlBz4zA9EzMiMiY092}/_buildManifest.js +1 -1
  35. package/.next/trace +102 -102
  36. package/.turbo/turbo-build.log +4 -4
  37. package/.turbo/turbo-test.log +5 -5
  38. package/CHANGELOG.md +4 -0
  39. package/cms/faststore/content-types.json +9 -0
  40. package/discovery.config.default.js +2 -0
  41. package/package.json +2 -2
  42. package/src/pages/index.tsx +5 -0
  43. package/src/server/cms/index.ts +2 -0
  44. /package/.next/static/{KIl7doBcNtetVoNiYFa8I → d8jAlBz4zA9EzMiMiY092}/_ssgManifest.js +0 -0
@@ -47,7 +47,7 @@ Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Cont
47
47
  Collecting build traces ...
48
48
 
49
49
  Route (pages) Size First Load JS
50
- ┌ ● / 3.23 kB 122 kB
50
+ ┌ ● / 3.35 kB 122 kB
51
51
  ├ └ css/b1806cbafd0c1f81.css 3.06 kB
52
52
  ├ /_app 0 B 92 kB
53
53
  ├ ● /[...slug] 2.09 kB 131 kB
@@ -68,12 +68,12 @@ Route (pages) Size First Load JS
68
68
  + First Load JS shared by all 95.1 kB
69
69
  ├ chunks/framework-12a146e94cfcf7c4.js 45.4 kB
70
70
  ├ chunks/main-48d1188fa94dad34.js 33.1 kB
71
- ├ chunks/pages/_app-c53030c25d32ee1c.js 10 kB
72
- ├ chunks/webpack-8945ec67c1208527.js 3.57 kB
71
+ ├ chunks/pages/_app-ba0d9245cbb082f7.js 10 kB
72
+ ├ chunks/webpack-bc711f2cb2b8dee9.js 3.57 kB
73
73
  └ css/ee0556daedda6306.css 3.07 kB
74
74
 
75
75
  λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
76
76
  ○ (Static) automatically rendered as static HTML (uses no initial props)
77
77
  ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
78
78
 
79
- Done in 80.54s.
79
+ Done in 79.03s.
@@ -1,12 +1,12 @@
1
1
  yarn run v1.22.22
2
2
  $ jest
3
- PASS test/server/cms/index.test.ts (33.2 s)
4
- PASS test/utils/multipleTemplates.test.ts (33.622 s)
5
- PASS test/server/index.test.ts (38.182 s)
3
+ PASS test/utils/multipleTemplates.test.ts (32.754 s)
4
+ PASS test/server/cms/index.test.ts (32.948 s)
5
+ PASS test/server/index.test.ts (37.218 s)
6
6
 
7
7
  Test Suites: 3 passed, 3 total
8
8
  Tests: 19 passed, 19 total
9
9
  Snapshots: 0 total
10
- Time: 39.438 s
10
+ Time: 38.386 s
11
11
  Ran all test suites.
12
- Done in 41.55s.
12
+ Done in 40.61s.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.14.1](https://github.com/vtex/faststore/compare/v3.14.0...v3.14.1) (2025-02-03)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
6
10
  # [3.14.0](https://github.com/vtex/faststore/compare/v3.13.1...v3.14.0) (2025-02-03)
7
11
 
8
12
  ### Features
@@ -91,6 +91,15 @@
91
91
  "canonical": {
92
92
  "title": "Canonical url for the page",
93
93
  "type": "string"
94
+ },
95
+ "name": {
96
+ "title": "Name",
97
+ "type": "string"
98
+ },
99
+ "publisherId": {
100
+ "title": "Publisher ID",
101
+ "description": "Uses to identifier to reference the publisher. E.g.: #website",
102
+ "type": "string"
94
103
  }
95
104
  }
96
105
  }
@@ -4,6 +4,8 @@ module.exports = {
4
4
  description: 'Fast Demo Store',
5
5
  titleTemplate: '%s | FastStore',
6
6
  author: 'Store Framework',
7
+ name: 'FastStore',
8
+ publisherId: '',
7
9
  plp: {
8
10
  titleTemplate: '%s | FastStore PLP',
9
11
  descriptionTemplate: '%s products on FastStore Product Listing Page',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.14.0",
3
+ "version": "3.14.1",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -101,5 +101,5 @@
101
101
  "jest": "^29.7.0",
102
102
  "ts-jest": "29.1.1"
103
103
  },
104
- "gitHead": "0c831c0467817916effc0b6acaed3c8c08c82211"
104
+ "gitHead": "df1f69065e2725cf0f2cf3184d338386f2e18729"
105
105
  }
@@ -30,6 +30,8 @@ function Page({
30
30
  data: serverData,
31
31
  }
32
32
 
33
+ const publisherId = settings?.seo?.publisherId ?? storeConfig.seo.publisherId
34
+
33
35
  return (
34
36
  <>
35
37
  {/* SEO */}
@@ -47,6 +49,8 @@ function Page({
47
49
  }}
48
50
  />
49
51
  <SiteLinksSearchBoxJsonLd
52
+ type="WebSite"
53
+ name={settings?.seo?.name ?? storeConfig.seo.name}
50
54
  url={storeConfig.storeUrl}
51
55
  potentialActions={[
52
56
  {
@@ -54,6 +58,7 @@ function Page({
54
58
  queryInput: 'search_term_string',
55
59
  },
56
60
  ]}
61
+ {...(publisherId && { publisher: { '@id': publisherId } })}
57
62
  />
58
63
 
59
64
  {/*
@@ -30,6 +30,8 @@ export type PageContentType = ContentData & {
30
30
  title: string
31
31
  description: string
32
32
  canonical?: string
33
+ name?: string
34
+ publisherId?: string
33
35
  }
34
36
  }
35
37
  }