@faststore/core 3.0.52 → 3.0.54
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 +4 -4
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/fetch-cache/50912854cb7c781522a6ff8792d714e549515fcbbbfd660761961b06afe01c07 +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-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/fs-next-update.html +2 -2
- package/.next/server/app/fs-next-update.rsc +2 -2
- package/.next/server/chunks/334.js +2 -2
- package/.next/server/chunks/513.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +2 -2
- 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 +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{jSa0D6EYVF6ZyY9xud-2S → BNKlzM8EUdVejvFjscl_o}/_buildManifest.js +1 -1
- package/.next/static/chunks/{913-024e149266ee79b9.js → 913-f29dc656b7bffacd.js} +1 -1
- package/.next/trace +132 -132
- package/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-test.log +10 -10
- package/app/layout.tsx +19 -3
- package/package.json +9 -9
- package/src/sdk/search/state.ts +6 -1
- /package/.next/static/{jSa0D6EYVF6ZyY9xud-2S → BNKlzM8EUdVejvFjscl_o}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$ yarn partytown & yarn generate && next build
|
|
2
|
-
$ partytown copylib ./public/~partytown
|
|
3
2
|
$ faststore generate-graphql -c
|
|
3
|
+
$ partytown copylib ./public/~partytown
|
|
4
4
|
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
5
5
|
success - GraphQL schema, types, and optimizations successfully generated 🎉
|
|
6
6
|
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
@@ -34,13 +34,13 @@ warn - CustomIconsAlert not found. Add a new component for this section or remov
|
|
|
34
34
|
|
|
35
35
|
Generating static pages (2/9)
|
|
36
36
|
warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
|
|
37
37
|
warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
|
|
38
|
-
|
|
39
38
|
Generating static pages (4/9)
|
|
40
39
|
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.
|
|
40
|
+
|
|
41
41
|
Generating static pages (4/9)
|
|
42
42
|
warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
|
|
43
43
|
warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
|
|
44
|
-
|
|
45
44
|
Generating static pages (6/9)
|
|
46
45
|
warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
|
|
47
46
|
warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
|
|
47
|
+
|
|
48
48
|
Generating static pages (6/9)
|
|
49
49
|
warn - AlertWithImage not found. Add a new component for this section or remove it from the CMS
|
|
50
50
|
warn - CustomIconsAlert not found. Add a new component for this section or remove it from the CMS
|
|
51
51
|
|
|
52
52
|
✓ Generating static pages (9/9)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/server/index.test.ts (26.
|
|
2
|
+
PASS test/server/index.test.ts (26.329 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 (
|
|
8
|
-
✓ should return a valid GraphQL schema contain all expected mutations
|
|
5
|
+
✓ should return a valid GraphQL schema (9 ms)
|
|
6
|
+
✓ should return a valid GraphQL schema contain all expected types (6 ms)
|
|
7
|
+
✓ should return a valid GraphQL schema contain all expected queries (1 ms)
|
|
8
|
+
✓ should return a valid GraphQL schema contain all expected mutations (1 ms)
|
|
9
9
|
VTEX API Extension
|
|
10
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
10
|
+
✓ getTypeDefsFromFolder function should return an Array (7 ms)
|
|
11
11
|
Third Party API Extension
|
|
12
12
|
✓ getTypeDefsFromFolder function should return an Array (5 ms)
|
|
13
13
|
Final Schema after merging
|
|
14
|
-
✓ should return a valid merged GraphQL schema (
|
|
14
|
+
✓ should return a valid merged GraphQL schema (45 ms)
|
|
15
15
|
Envelop
|
|
16
|
-
✓ should exist with its plugins (
|
|
17
|
-
✓ should handle options and execute (
|
|
16
|
+
✓ should exist with its plugins (50 ms)
|
|
17
|
+
✓ should handle options and execute (193 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: 26.
|
|
22
|
+
Time: 26.4 s
|
|
23
23
|
Ran all test suites.
|
package/app/layout.tsx
CHANGED
|
@@ -3,6 +3,8 @@ import 'src/styles/global/index.scss'
|
|
|
3
3
|
|
|
4
4
|
import 'src/customizations/src/themes/index.scss'
|
|
5
5
|
|
|
6
|
+
import { Metadata } from 'next'
|
|
7
|
+
|
|
6
8
|
import ThirdPartyScripts from 'app/components/ThirdPartyScripts'
|
|
7
9
|
import AnalyticsHandler from 'app/sdk/analytics'
|
|
8
10
|
import ErrorBoundary from 'app/sdk/error/ErrorBoundary'
|
|
@@ -47,6 +49,23 @@ async function getGlobalSectionsData() {
|
|
|
47
49
|
return { sections }
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
// SEO metadata and tags
|
|
53
|
+
export const metadata: Metadata = {
|
|
54
|
+
robots: {
|
|
55
|
+
/*******************
|
|
56
|
+
* TODO: This will be the default config when the `app` directory be in use
|
|
57
|
+
* // index: !storeConfig.experimental.noRobots,
|
|
58
|
+
* // follow: !storeConfig.experimental.noRobots,
|
|
59
|
+
*/
|
|
60
|
+
index: false,
|
|
61
|
+
follow: false,
|
|
62
|
+
googleBot: {
|
|
63
|
+
index: false,
|
|
64
|
+
follow: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
50
69
|
export default async function RootLayout({
|
|
51
70
|
children,
|
|
52
71
|
}: {
|
|
@@ -56,9 +75,6 @@ export default async function RootLayout({
|
|
|
56
75
|
|
|
57
76
|
return (
|
|
58
77
|
<ErrorBoundary>
|
|
59
|
-
{/* TODO: we should use metadata api from Next 13 */}
|
|
60
|
-
{/* <DefaultSeo norobots={storeConfig.experimental.noRobots} /> */}
|
|
61
|
-
|
|
62
78
|
<AnalyticsHandler />
|
|
63
79
|
|
|
64
80
|
<html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.54",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@envelop/graphql-jit": "^1.1.1",
|
|
40
40
|
"@envelop/parser-cache": "^2.2.0",
|
|
41
41
|
"@envelop/validation-cache": "^2.2.0",
|
|
42
|
-
"@faststore/api": "^3.0.
|
|
43
|
-
"@faststore/components": "^3.0.
|
|
44
|
-
"@faststore/graphql-utils": "^3.0.
|
|
45
|
-
"@faststore/sdk": "^3.0.
|
|
46
|
-
"@faststore/ui": "^3.0.
|
|
42
|
+
"@faststore/api": "^3.0.54",
|
|
43
|
+
"@faststore/components": "^3.0.54",
|
|
44
|
+
"@faststore/graphql-utils": "^3.0.54",
|
|
45
|
+
"@faststore/sdk": "^3.0.54",
|
|
46
|
+
"@faststore/ui": "^3.0.54",
|
|
47
47
|
"@graphql-codegen/cli": "^3.3.1",
|
|
48
48
|
"@graphql-codegen/client-preset": "^4.1.0",
|
|
49
49
|
"@graphql-codegen/typescript": "^3.0.4",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@cypress/code-coverage": "^3.12.1",
|
|
84
84
|
"@envelop/testing": "^6.0.0",
|
|
85
|
-
"@faststore/cli": "^3.0.
|
|
86
|
-
"@faststore/eslint-config": "^3.0.
|
|
85
|
+
"@faststore/cli": "^3.0.54",
|
|
86
|
+
"@faststore/eslint-config": "^3.0.54",
|
|
87
87
|
"@faststore/lighthouse": "^1.12.32",
|
|
88
88
|
"@lhci/cli": "^0.9.0",
|
|
89
89
|
"@testing-library/cypress": "^10.0.1",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"node": "18.19.0",
|
|
125
125
|
"yarn": "1.19.1"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "21bd9cf63b6205f42b50bb744b67722ff794d256"
|
|
128
128
|
}
|
package/src/sdk/search/state.ts
CHANGED
|
@@ -5,7 +5,12 @@ export const useApplySearchState = () => {
|
|
|
5
5
|
const router = useRouter()
|
|
6
6
|
|
|
7
7
|
return useCallback(
|
|
8
|
-
(url: URL) =>
|
|
8
|
+
(url: URL) => {
|
|
9
|
+
const newUrl = `${url.pathname}${url.search}`
|
|
10
|
+
return url.searchParams.has('fuzzy') && url.searchParams.has('operator')
|
|
11
|
+
? router.replace(newUrl)
|
|
12
|
+
: router.push(newUrl)
|
|
13
|
+
},
|
|
9
14
|
[router]
|
|
10
15
|
)
|
|
11
16
|
}
|
|
File without changes
|