@faststore/core 3.0.154 → 3.0.155

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 (32) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/.next/next-minimal-server.js.nft.json +1 -1
  11. package/.next/next-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.js +1 -1
  13. package/.next/prerender-manifest.json +1 -1
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/2082.js +15 -2
  16. package/.next/server/middleware-build-manifest.js +1 -1
  17. package/.next/server/pages/en-US/404.html +16 -3
  18. package/.next/server/pages/en-US/500.html +16 -3
  19. package/.next/server/pages/en-US/account.html +16 -3
  20. package/.next/server/pages/en-US/checkout.html +16 -3
  21. package/.next/server/pages/en-US/login.html +16 -3
  22. package/.next/server/pages/en-US/s.html +16 -3
  23. package/.next/server/pages/en-US.html +16 -3
  24. package/.next/trace +97 -97
  25. package/.turbo/turbo-build.log +1 -1
  26. package/.turbo/turbo-lint.log +1 -1
  27. package/.turbo/turbo-test.log +5 -5
  28. package/package.json +2 -2
  29. package/src/components/ThirdPartyScripts/ThirdPartyScripts.tsx +1 -1
  30. package/src/components/ThirdPartyScripts/vtex.tsx +21 -8
  31. /package/.next/static/{SfomoT7cCMNxtcr8yWFzF → S8L_8hrpu7sErrztJSYCX}/_buildManifest.js +0 -0
  32. /package/.next/static/{SfomoT7cCMNxtcr8yWFzF → S8L_8hrpu7sErrztJSYCX}/_ssgManifest.js +0 -0
@@ -74,4 +74,4 @@ Route (pages) Size First Load JS
74
74
  ○ (Static) automatically rendered as static HTML (uses no initial props)
75
75
  ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
76
76
 
77
- Done in 72.68s.
77
+ Done in 69.92s.
@@ -1,4 +1,4 @@
1
1
  yarn run v1.22.22
2
2
  $ next lint
3
3
  ✔ No ESLint warnings or errors
4
- Done in 5.97s.
4
+ Done in 6.23s.
@@ -1,12 +1,12 @@
1
1
  yarn run v1.22.22
2
2
  $ jest
3
- PASS test/server/cms/index.test.ts (34.73 s)
4
- PASS test/utils/multipleTemplates.test.ts (35.126 s)
5
- PASS test/server/index.test.ts (38.729 s)
3
+ PASS test/server/cms/index.test.ts (34.335 s)
4
+ PASS test/utils/multipleTemplates.test.ts (34.784 s)
5
+ PASS test/server/index.test.ts (38.428 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.901 s
10
+ Time: 39.496 s
11
11
  Ran all test suites.
12
- Done in 41.34s.
12
+ Done in 40.83s.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.0.154",
3
+ "version": "3.0.155",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -128,5 +128,5 @@
128
128
  "node": "18.19.0",
129
129
  "yarn": "1.19.1"
130
130
  },
131
- "gitHead": "1a368785a4a5b20300f346bfad13435a2395b6f8"
131
+ "gitHead": "859d18986fb0800c847cbb626047fe63ee804738"
132
132
  }
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV === 'development' && !includeGTM) {
17
17
 
18
18
  function ThirdPartyScripts() {
19
19
  const forwards = []
20
- if (includeVTEX) forwards.push('sendrc', 'vtexaf')
20
+ if (includeVTEX) forwards.push('sendrc')
21
21
 
22
22
  return (
23
23
  <>
@@ -19,18 +19,31 @@ function VTEX() {
19
19
  src="https://io.vtex.com.br/rc/rc.js"
20
20
  />
21
21
  <script
22
- key="vtex-af.js-init"
23
- type="text/partytown"
22
+ type="text/javascript"
23
+ key="vtexaf-init"
24
24
  dangerouslySetInnerHTML={{
25
- __html: `f=window.vtexaf=window.vtexaf||function(){(f.q=f.q||[]).push(arguments)};f.l=+new Date`,
25
+ __html: `
26
+ (function(v,t,e,x,a,f,s){
27
+ f=v.vtexaf=v.vtexaf||function(){(f.q=f.q||[]).push(arguments)}
28
+ ;f.l=+new Date;s=t.createElement(e);s.async=!0;
29
+ s.src=x;a=t.getElementsByTagName(e)[0];
30
+ a.parentNode.insertBefore(s,a)
31
+ })(window,document,'script','https://activity-flow.vtex.com/af/af.js');
32
+ `,
26
33
  }}
27
34
  />
28
35
  <script
29
- key="vtex-af.js-script"
30
- type="text/partytown"
31
- data-an={storeConfig.api.storeId}
32
- async
33
- src="https://activity-flow.vtex.com/af/af.js"
36
+ type="text/javascript"
37
+ key="vtexaf-config"
38
+ dangerouslySetInnerHTML={{
39
+ __html: `
40
+ window.vtexaf('init', {
41
+ account: '${storeConfig.api.storeId}',
42
+ env: '${storeConfig.api.environment}',
43
+ workspace: '${storeConfig.api.workspace}'
44
+ });
45
+ `,
46
+ }}
34
47
  />
35
48
  </>
36
49
  )