@faststore/core 2.2.71 → 2.2.74
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 +3 -3
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- 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/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/[...slug].js +5 -3
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.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 +3 -3
- package/.next/server/pages/en-US.json +1 -1
- package/.next/static/chunks/pages/{[...slug]-cf872b9e9befd47c.js → [...slug]-90d4a89405e3a626.js} +1 -1
- package/.next/static/{IDskqcKTB7kE5quFZAhgJ → nuOb65PjRuGYkide48nIC}/_buildManifest.js +1 -1
- package/.next/trace +82 -82
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +10 -10
- package/package.json +3 -3
- package/src/components/templates/LandingPage/LandingPage.tsx +5 -1
- package/src/pages/[...slug].tsx +2 -0
- /package/.next/static/{IDskqcKTB7kE5quFZAhgJ → nuOb65PjRuGYkide48nIC}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -41,7 +41,7 @@ Route (pages) Size First Load JS
|
|
|
41
41
|
┌ ● / 3.38 kB 129 kB
|
|
42
42
|
├ └ css/7e897ebb936fac09.css 6.55 kB
|
|
43
43
|
├ /_app 0 B 83.8 kB
|
|
44
|
-
├ ● /[...slug] 4.
|
|
44
|
+
├ ● /[...slug] 4.5 kB 141 kB
|
|
45
45
|
├ └ css/510895065f32ed2f.css 7 kB
|
|
46
46
|
├ ● /[slug]/p 10.9 kB 136 kB
|
|
47
47
|
├ └ css/def381bf7c69fa2e.css 11.3 kB
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/server/index.test.ts (
|
|
2
|
+
PASS test/server/index.test.ts (21.557 s)
|
|
3
3
|
FastStore GraphQL Layer
|
|
4
4
|
@faststore/api
|
|
5
|
-
✓ should return a valid GraphQL schema (
|
|
6
|
-
✓ should return a valid GraphQL schema contain all expected types (
|
|
7
|
-
✓ should return a valid GraphQL schema contain all expected queries (
|
|
5
|
+
✓ should return a valid GraphQL schema (6 ms)
|
|
6
|
+
✓ should return a valid GraphQL schema contain all expected types (11 ms)
|
|
7
|
+
✓ should return a valid GraphQL schema contain all expected queries (1 ms)
|
|
8
8
|
✓ should return a valid GraphQL schema contain all expected mutations
|
|
9
9
|
VTEX API Extension
|
|
10
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
10
|
+
✓ getTypeDefsFromFolder function should return an Array (6 ms)
|
|
11
11
|
Third Party API Extension
|
|
12
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
12
|
+
✓ getTypeDefsFromFolder function should return an Array (4 ms)
|
|
13
13
|
Final Schema after merging
|
|
14
|
-
✓ should return a valid merged GraphQL schema (
|
|
14
|
+
✓ should return a valid merged GraphQL schema (25 ms)
|
|
15
15
|
Envelop
|
|
16
|
-
✓ should exist with its plugins (
|
|
17
|
-
✓ should handle options and execute (
|
|
16
|
+
✓ should exist with its plugins (25 ms)
|
|
17
|
+
✓ should handle options and execute (275 ms)
|
|
18
18
|
|
|
19
19
|
Test Suites: 1 passed, 1 total
|
|
20
20
|
Tests: 9 passed, 9 total
|
|
21
21
|
Snapshots: 0 total
|
|
22
|
-
Time:
|
|
22
|
+
Time: 21.709 s
|
|
23
23
|
Ran all test suites.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.74",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@cypress/code-coverage": "^3.12.1",
|
|
80
80
|
"@envelop/testing": "^6.0.0",
|
|
81
|
-
"@faststore/cli": "^2.2.
|
|
81
|
+
"@faststore/cli": "^2.2.73",
|
|
82
82
|
"@faststore/eslint-config": "^2.2.69",
|
|
83
83
|
"@faststore/lighthouse": "^1.12.32",
|
|
84
84
|
"@lhci/cli": "^0.9.0",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"node": "18.19.0",
|
|
124
124
|
"yarn": "1.19.1"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "ebad430129b52947acad123acc1d308d54ac0b3b"
|
|
127
127
|
}
|
|
@@ -29,10 +29,12 @@ const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
|
29
29
|
|
|
30
30
|
export type LandingPageProps = {
|
|
31
31
|
page: PageContentType
|
|
32
|
+
slug?: string
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export default function LandingPage({
|
|
35
36
|
page: { sections, settings },
|
|
37
|
+
slug,
|
|
36
38
|
}: LandingPageProps) {
|
|
37
39
|
return (
|
|
38
40
|
<>
|
|
@@ -41,7 +43,9 @@ export default function LandingPage({
|
|
|
41
43
|
title={settings?.seo?.title ?? storeConfig.seo.title}
|
|
42
44
|
description={settings?.seo?.description ?? storeConfig.seo?.description}
|
|
43
45
|
titleTemplate={storeConfig.seo?.titleTemplate ?? storeConfig.seo?.title}
|
|
44
|
-
canonical={
|
|
46
|
+
canonical={
|
|
47
|
+
settings?.seo?.canonical ?? `${storeConfig.storeUrl}/${slug}`
|
|
48
|
+
}
|
|
45
49
|
openGraph={{
|
|
46
50
|
type: 'website',
|
|
47
51
|
url: storeConfig.storeUrl,
|
package/src/pages/[...slug].tsx
CHANGED
|
@@ -36,6 +36,7 @@ type Props = BaseProps &
|
|
|
36
36
|
}
|
|
37
37
|
| {
|
|
38
38
|
type: 'page'
|
|
39
|
+
slug: string
|
|
39
40
|
page: PageContentType
|
|
40
41
|
}
|
|
41
42
|
)
|
|
@@ -94,6 +95,7 @@ export const getStaticProps: GetStaticProps<
|
|
|
94
95
|
page: await landingPagePromise,
|
|
95
96
|
globalSections: await globalSectionsPromise,
|
|
96
97
|
type: 'page',
|
|
98
|
+
slug,
|
|
97
99
|
},
|
|
98
100
|
}
|
|
99
101
|
}
|
|
File without changes
|