@faststore/core 2.1.106 → 2.1.107

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.
@@ -1,6 +1,9 @@
1
1
  $ yarn partytown && next build
2
2
  $ partytown copylib ./public/~partytown
3
3
  Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
4
+ warn - You have enabled experimental feature (scrollRestoration) in next.config.js.
5
+ warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
6
+
4
7
  warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
5
8
  Attention: Next.js now collects completely anonymous telemetry regarding usage.
6
9
  This information is used to shape Next.js' roadmap and prioritize features.
@@ -22,26 +25,26 @@ info - Finalizing page optimization...
22
25
 
23
26
  Route (pages) Size First Load JS
24
27
  ┌ ● / 3.14 kB 126 kB
25
- ├ /_app 0 B 77.9 kB
28
+ ├ /_app 0 B 78.1 kB
26
29
  ├ ● /[...slug] 4.04 kB 137 kB
27
30
  ├ └ css/527e334fa69cf40a.css 1.85 kB
28
31
  ├ ● /[slug]/p 10.6 kB 134 kB
29
- ├ └ css/1b48021b9c503e72.css 11.4 kB
32
+ ├ └ css/9f79fa103f49bca1.css 11.5 kB
30
33
  ├ ○ /404 1.19 kB 110 kB
31
34
  ├ ● /500 1.21 kB 110 kB
32
35
  ├ ● /account 668 B 110 kB
33
- ├ λ /api/graphql 0 B 77.9 kB
34
- ├ λ /api/health/live 0 B 77.9 kB
35
- ├ λ /api/health/ready 0 B 77.9 kB
36
- ├ λ /api/preview 0 B 77.9 kB
36
+ ├ λ /api/graphql 0 B 78.1 kB
37
+ ├ λ /api/health/live 0 B 78.1 kB
38
+ ├ λ /api/health/ready 0 B 78.1 kB
39
+ ├ λ /api/preview 0 B 78.1 kB
37
40
  ├ ● /checkout 655 B 110 kB
38
41
  ├ ● /login 1.09 kB 110 kB
39
42
  └ ● /s 4.59 kB 124 kB
40
- + First Load JS shared by all 81 kB
43
+ + First Load JS shared by all 81.2 kB
41
44
  ├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
42
- ├ chunks/main-fd466221927468fd.js 23.9 kB
45
+ ├ chunks/main-e4e873ee741162eb.js 24.1 kB
43
46
  ├ chunks/pages/_app-7db7de3d205714be.js 6.45 kB
44
- ├ chunks/webpack-683380d7d78e10c6.js 2.25 kB
47
+ ├ chunks/webpack-6c5004693f20bd94.js 2.25 kB
45
48
  └ css/9e76fef1c9ca89af.css 3.06 kB
46
49
 
47
50
  λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
@@ -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
package/next.config.js CHANGED
@@ -18,6 +18,10 @@ const nextConfig = {
18
18
  sassOptions: {
19
19
  additionalData: `@import "src/customizations/styles/custom-mixins.scss";`,
20
20
  },
21
+ // TODO: We won't need to enable this experimental feature when migrating to Next.js 13
22
+ experimental: {
23
+ scrollRestoration: true,
24
+ },
21
25
  webpack: (config, { isServer, dev }) => {
22
26
  // https://github.com/vercel/next.js/discussions/11267#discussioncomment-2479112
23
27
  // camel-case style names from css modules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.1.106",
3
+ "version": "2.1.107",
4
4
  "license": "MIT",
5
5
  "browserslist": "supports es6-module and not dead",
6
6
  "scripts": {
@@ -30,11 +30,11 @@
30
30
  "@envelop/graphql-jit": "^1.1.1",
31
31
  "@envelop/parser-cache": "^2.2.0",
32
32
  "@envelop/validation-cache": "^2.2.0",
33
- "@faststore/api": "^2.1.106",
34
- "@faststore/components": "^2.1.106",
35
- "@faststore/graphql-utils": "^2.1.106",
36
- "@faststore/sdk": "^2.1.106",
37
- "@faststore/ui": "^2.1.106",
33
+ "@faststore/api": "^2.1.107",
34
+ "@faststore/components": "^2.1.107",
35
+ "@faststore/graphql-utils": "^2.1.107",
36
+ "@faststore/sdk": "^2.1.107",
37
+ "@faststore/ui": "^2.1.107",
38
38
  "@types/react": "^18.0.14",
39
39
  "@vtex/client-cms": "^0.2.12",
40
40
  "autoprefixer": "^10.4.0",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@cypress/code-coverage": "^3.12.1",
64
- "@faststore/eslint-config": "^2.1.106",
64
+ "@faststore/eslint-config": "^2.1.107",
65
65
  "@faststore/lighthouse": "^1.12.32",
66
66
  "@graphql-codegen/cli": "^2.6.2",
67
67
  "@graphql-codegen/typescript": "^2.5.1",
@@ -110,5 +110,5 @@
110
110
  "msw": {
111
111
  "workerDirectory": "public"
112
112
  },
113
- "gitHead": "c1b21a901e670f739ad1667552fbe57df9935d16"
113
+ "gitHead": "3d666904a5e9d9908318e618b3ca93301b3ae82a"
114
114
  }
@@ -77,7 +77,12 @@ function ProductDescription({
77
77
  >
78
78
  <UIAccordionButton>{title}</UIAccordionButton>
79
79
  <UIAccordionPanel>
80
- <p className="text__body">{content}</p>
80
+ <div
81
+ // Applies display: contents through FastStore UI
82
+ data-fs-product-details-description-content
83
+ // The content is already sanitized by FastStore API
84
+ dangerouslySetInnerHTML={{ __html: content }}
85
+ />
81
86
  </UIAccordionPanel>
82
87
  </UIAccordionItem>
83
88
  ))}