@faststore/core 3.0.117 → 3.0.119
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 +30 -30
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +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/chunks/202.js +1 -1
- package/.next/server/chunks/350.js +1 -1
- package/.next/server/chunks/{498.js → 371.js} +1 -1
- package/.next/server/chunks/{997.js → 430.js} +1 -1
- package/.next/server/chunks/484.js +1 -1
- package/.next/server/chunks/646.js +2 -2
- package/.next/server/chunks/82.js +2 -2
- package/.next/server/chunks/933.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.js +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -1
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js +1 -1
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +1 -1
- package/.next/server/pages/en-US/500.html +1 -1
- package/.next/server/pages/en-US/account.html +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js +1 -1
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{202.a21c6de815ba3b75.js → 202.adc31e548eafb936.js} +1 -1
- package/.next/static/chunks/{484.0c9f9b5defb5904d.js → 484.3e4d0dcb4c646a45.js} +1 -1
- package/.next/static/chunks/{968-3ed71db484b2d4e6.js → 968-c54b14bfbaa726e6.js} +1 -1
- package/.next/static/chunks/pages/{[...slug]-dd7f247ab9486429.js → [...slug]-7f74f18dc0f1f1a9.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-e7077156f76f4cef.js → p-646405f4438699b5.js} +1 -1
- package/.next/static/chunks/pages/{_app-c735dc8671b02901.js → _app-5260af30f47ea9f3.js} +1 -1
- package/.next/static/chunks/pages/{account-e7b06039b653381d.js → account-8931b40009337c51.js} +1 -1
- package/.next/static/chunks/pages/{checkout-996d898a57d037a0.js → checkout-1bffb8877653059e.js} +1 -1
- package/.next/static/chunks/pages/{index-d7ef84d142b53200.js → index-54d1ee40f5fcc0a0.js} +1 -1
- package/.next/static/chunks/pages/{login-b82e639bfe6d70ce.js → login-65d3c7a8402a4da5.js} +1 -1
- package/.next/static/chunks/pages/{s-5f2e23d107382a98.js → s-64e04e229bb07366.js} +1 -1
- package/.next/static/chunks/webpack-5b0bd69e10af14e4.js +1 -0
- package/.next/static/edfaQecxEidG7pfmnhQrw/_buildManifest.js +1 -0
- package/.next/trace +95 -95
- package/.turbo/turbo-build.log +32 -12
- package/.turbo/turbo-test.log +4 -4
- package/README.md +4 -4
- package/cypress/global.js +1 -1
- package/cypress/integration/a11y.test.js +1 -1
- package/cypress/integration/analytics.test.js +1 -1
- package/cypress/integration/cart.test.js +1 -1
- package/cypress/integration/plp.test.js +1 -1
- package/cypress/integration/search.test.js +1 -1
- package/cypress/integration/seo.test.js +1 -1
- package/discovery.config.js +24 -0
- package/lighthouserc.js +1 -1
- package/next-seo.config.ts +1 -1
- package/next.config.js +1 -1
- package/package.json +2 -2
- package/src/components/ThirdPartyScripts/ThirdPartyScripts.tsx +2 -2
- package/src/components/ThirdPartyScripts/vtex.tsx +1 -1
- package/src/components/cms/GlobalSections.tsx +1 -1
- package/src/components/templates/LandingPage/LandingPage.tsx +1 -1
- package/src/components/templates/ProductListingPage/ProductListingPage.tsx +1 -1
- package/src/components/ui/Image/loader.ts +1 -1
- package/src/pages/[...slug].tsx +1 -1
- package/src/pages/[slug]/p.tsx +1 -1
- package/src/pages/_document.tsx +1 -1
- package/src/pages/account.tsx +1 -1
- package/src/pages/api/preview.ts +1 -1
- package/src/pages/checkout.tsx +1 -1
- package/src/pages/index.tsx +1 -1
- package/src/pages/login.tsx +1 -1
- package/src/pages/s.tsx +1 -1
- package/src/sdk/analytics/index.tsx +1 -1
- package/src/sdk/analytics/platform/vtex/search.ts +1 -1
- package/src/sdk/cart/index.ts +1 -1
- package/src/sdk/cart/useCheckoutButton.ts +1 -1
- package/src/sdk/session/index.ts +1 -1
- package/src/server/cms/index.ts +1 -1
- package/src/server/cms/pdp.ts +1 -1
- package/src/server/cms/plp.ts +1 -1
- package/src/server/options.ts +1 -1
- package/test/server/index.test.ts +1 -1
- package/.next/static/ZcioUQf53yK_7-v4Io2W-/_buildManifest.js +0 -1
- package/.next/static/chunks/webpack-8883d8523b03e385.js +0 -1
- package/faststore.config.js +0 -11
- /package/.next/static/{ZcioUQf53yK_7-v4Io2W- → edfaQecxEidG7pfmnhQrw}/_ssgManifest.js +0 -0
- /package/{faststore.config.default.js → discovery.config.default.js} +0 -0
- /package/src/customizations/{faststore.config.js → discovery.config.js} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -33,7 +33,27 @@ https://nextjs.org/telemetry
|
|
|
33
33
|
Creating an optimized production build ...
|
|
34
34
|
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
|
|
35
35
|
Using external babel configuration from /home/runner/work/faststore/faststore/packages/core/.babelrc.js
|
|
36
|
-
|
|
36
|
+
⚠ Compiled with warnings
|
|
37
|
+
|
|
38
|
+
./discovery.config.js
|
|
39
|
+
Module not found: Can't resolve './src/customizations/faststore.config' in '/home/runner/work/faststore/faststore/packages/core'
|
|
40
|
+
|
|
41
|
+
Import trace for requested module:
|
|
42
|
+
./discovery.config.js
|
|
43
|
+
|
|
44
|
+
./discovery.config.js
|
|
45
|
+
Module not found: Can't resolve './src/customizations/faststore.config' in '/home/runner/work/faststore/faststore/packages/core'
|
|
46
|
+
|
|
47
|
+
Import trace for requested module:
|
|
48
|
+
./discovery.config.js
|
|
49
|
+
|
|
50
|
+
./discovery.config.js
|
|
51
|
+
Module not found: Can't resolve './src/customizations/faststore.config' in '/home/runner/work/faststore/faststore/packages/core'
|
|
52
|
+
|
|
53
|
+
Import trace for requested module:
|
|
54
|
+
./discovery.config.js
|
|
55
|
+
./src/pages/api/preview.ts
|
|
56
|
+
|
|
37
57
|
Collecting page data ...
|
|
38
58
|
Generating static pages (0/7) ...
|
|
39
59
|
|
|
40
60
|
Generating static pages (1/7)
|
|
@@ -47,26 +67,26 @@ Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Cont
|
|
|
47
67
|
Route (pages) Size First Load JS
|
|
48
68
|
┌ ● / 1.24 kB 143 kB
|
|
49
69
|
├ └ css/197e314c5a03eabd.css 740 B
|
|
50
|
-
├ /_app 0 B 90.
|
|
70
|
+
├ /_app 0 B 90.8 kB
|
|
51
71
|
├ ● /[...slug] 2.79 kB 155 kB
|
|
52
72
|
├ └ css/e47f1a002bdcf76f.css 2.38 kB
|
|
53
73
|
├ ● /[slug]/p 10.8 kB 152 kB
|
|
54
74
|
├ └ css/fbd711b9f5abf105.css 9.57 kB
|
|
55
75
|
├ ○ /404 1.28 kB 126 kB
|
|
56
76
|
├ ● /500 1.29 kB 126 kB
|
|
57
|
-
├ ● /account
|
|
58
|
-
├ λ /api/graphql 0 B 90.
|
|
59
|
-
├ λ /api/health/live 0 B 90.
|
|
60
|
-
├ λ /api/health/ready 0 B 90.
|
|
61
|
-
├ λ /api/preview 0 B 90.
|
|
62
|
-
├ ● /checkout
|
|
63
|
-
├ ● /login 1.4 kB
|
|
77
|
+
├ ● /account 676 B 126 kB
|
|
78
|
+
├ λ /api/graphql 0 B 90.8 kB
|
|
79
|
+
├ λ /api/health/live 0 B 90.8 kB
|
|
80
|
+
├ λ /api/health/ready 0 B 90.8 kB
|
|
81
|
+
├ λ /api/preview 0 B 90.8 kB
|
|
82
|
+
├ ● /checkout 661 B 126 kB
|
|
83
|
+
├ ● /login 1.4 kB 127 kB
|
|
64
84
|
└ ● /s 2.22 kB 154 kB
|
|
65
|
-
+ First Load JS shared by all 93.
|
|
85
|
+
+ First Load JS shared by all 93.8 kB
|
|
66
86
|
├ chunks/framework-8e279965036b6169.js 45.4 kB
|
|
67
87
|
├ chunks/main-029f1328cfee9686.js 33.1 kB
|
|
68
|
-
├ chunks/pages/_app-
|
|
69
|
-
├ chunks/webpack-
|
|
88
|
+
├ chunks/pages/_app-5260af30f47ea9f3.js 9.95 kB
|
|
89
|
+
├ chunks/webpack-5b0bd69e10af14e4.js 2.38 kB
|
|
70
90
|
└ css/ee0556daedda6306.css 3.07 kB
|
|
71
91
|
|
|
72
92
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/utils/multipleTemplates.test.ts (
|
|
3
|
-
PASS test/server/cms/index.test.ts (36.
|
|
4
|
-
PASS test/server/index.test.ts (39.
|
|
2
|
+
PASS test/utils/multipleTemplates.test.ts (35.814 s)
|
|
3
|
+
PASS test/server/cms/index.test.ts (36.007 s)
|
|
4
|
+
PASS test/server/index.test.ts (39.151 s)
|
|
5
5
|
|
|
6
6
|
Test Suites: 3 passed, 3 total
|
|
7
7
|
Tests: 19 passed, 19 total
|
|
8
8
|
Snapshots: 0 total
|
|
9
|
-
Time: 40.
|
|
9
|
+
Time: 40.189 s
|
|
10
10
|
Ran all test suites.
|
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ A quick look at the top-level files and directories you'll see in a this NextJS
|
|
|
56
56
|
├── codegen.ts
|
|
57
57
|
├── cypress
|
|
58
58
|
├── cypress.config.ts
|
|
59
|
-
├──
|
|
60
|
-
├──
|
|
59
|
+
├── discovery.config.default.js
|
|
60
|
+
├── discovery.config.js
|
|
61
61
|
├── index.ts
|
|
62
62
|
├── jest.config.js
|
|
63
63
|
├── LICENSE
|
|
@@ -88,7 +88,7 @@ A quick look at the top-level files and directories you'll see in a this NextJS
|
|
|
88
88
|
|
|
89
89
|
7. **`tsconfig.json`**: The configuration file for the typescript compiler. This will statically analyze your code for errors and bugs before releasing them into production
|
|
90
90
|
|
|
91
|
-
8. **`
|
|
91
|
+
8. **`discovery.config.default.js`**: Configure your e-commerce platform, default sales channel etc.
|
|
92
92
|
|
|
93
93
|
9. **`@generated`**: Where TypeScript typings are generated for your GraphQL queries. You can use these files for strongly typing your App
|
|
94
94
|
|
|
@@ -196,7 +196,7 @@ The `cms/faststore` contains the `content-types.json` and `sections.json` files.
|
|
|
196
196
|
|
|
197
197
|
### CMS configs
|
|
198
198
|
|
|
199
|
-
It's possible to change the CMS tenant and workspace at `
|
|
199
|
+
It's possible to change the CMS tenant and workspace at `discovery.config.default.js`.
|
|
200
200
|
|
|
201
201
|
## 🎓 Learning the Frameworks
|
|
202
202
|
|
package/cypress/global.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* TODO: Improve structured data validaton by actually using schema.org's schemas
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { cypress, storeUrl } from '../../
|
|
9
|
+
import { cypress, storeUrl } from '../../discovery.config'
|
|
10
10
|
import { options } from '../global'
|
|
11
11
|
|
|
12
12
|
const { pages } = cypress
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const defaultConfig = require('./discovery.config.default')
|
|
2
|
+
const deepmerge = require('deepmerge')
|
|
3
|
+
|
|
4
|
+
let starterConfig
|
|
5
|
+
|
|
6
|
+
try {
|
|
7
|
+
starterConfig = require('./src/customizations/discovery.config')
|
|
8
|
+
} catch (e) {
|
|
9
|
+
try {
|
|
10
|
+
starterConfig = require('./src/customizations/faststore.config')
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.error(
|
|
13
|
+
"Failed to load './src/customizations/faststore.config'. Please ensure the file exists."
|
|
14
|
+
)
|
|
15
|
+
throw e // Re-throw the error after logging
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @type {typeof defaultConfig & Record<string, any>}
|
|
21
|
+
* */
|
|
22
|
+
const finalConfig = deepmerge(defaultConfig, starterConfig)
|
|
23
|
+
|
|
24
|
+
module.exports = finalConfig
|
package/lighthouserc.js
CHANGED
package/next-seo.config.ts
CHANGED
package/next.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.119",
|
|
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": "
|
|
131
|
+
"gitHead": "ca6a0f31bf3c3ff791d3e5e14f3a3a2822511e74"
|
|
132
132
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Partytown } from '@builder.io/partytown/react'
|
|
2
|
+
import storeConfig from 'discovery.config'
|
|
2
3
|
import OverrideComponents from 'src/customizations/src/GlobalOverrides'
|
|
3
|
-
import storeConfig from '../../../faststore.config'
|
|
4
4
|
import GoogleTagManager, { GTM_DEBUG_QUERY_STRING } from './GoogleTagManager'
|
|
5
5
|
import VTEX from './vtex'
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const includeVTEX = storeConfig.platform === 'vtex'
|
|
|
11
11
|
|
|
12
12
|
if (process.env.NODE_ENV === 'development' && !includeGTM) {
|
|
13
13
|
console.warn(
|
|
14
|
-
'No GTM container id found. Check the analytics section on your
|
|
14
|
+
'No GTM container id found. Check the analytics section on your discovery.config.js file for enhanced observability of your store.'
|
|
15
15
|
)
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Locator, Section } from '@vtex/client-cms'
|
|
2
|
-
import storeConfig from '
|
|
2
|
+
import storeConfig from 'discovery.config'
|
|
3
3
|
import type { ComponentType } from 'react'
|
|
4
4
|
import { PropsWithChildren } from 'react'
|
|
5
5
|
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
@@ -17,7 +17,7 @@ import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
|
17
17
|
import type { PageContentType } from 'src/server/cms'
|
|
18
18
|
import { getPage } from 'src/server/cms'
|
|
19
19
|
|
|
20
|
-
import storeConfig from '
|
|
20
|
+
import storeConfig from 'discovery.config'
|
|
21
21
|
|
|
22
22
|
/* A list of components that can be used in the CMS. */
|
|
23
23
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
@@ -14,7 +14,7 @@ import { useApplySearchState } from 'src/sdk/search/state'
|
|
|
14
14
|
|
|
15
15
|
import { PLPContentType } from 'src/server/cms/plp'
|
|
16
16
|
|
|
17
|
-
import storeConfig from '../../../../
|
|
17
|
+
import storeConfig from '../../../../discovery.config'
|
|
18
18
|
import ProductListing from './ProductListing'
|
|
19
19
|
|
|
20
20
|
export type ProductListingPageProps = {
|
package/src/pages/[...slug].tsx
CHANGED
package/src/pages/[slug]/p.tsx
CHANGED
|
@@ -24,7 +24,7 @@ import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
|
24
24
|
import { useSession } from 'src/sdk/session'
|
|
25
25
|
import { execute } from 'src/server'
|
|
26
26
|
|
|
27
|
-
import storeConfig from '
|
|
27
|
+
import storeConfig from 'discovery.config'
|
|
28
28
|
import GlobalSections, {
|
|
29
29
|
GlobalSectionsData,
|
|
30
30
|
getGlobalSectionsData,
|
package/src/pages/_document.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Head, Html, Main, NextScript } from 'next/document'
|
|
2
|
-
import storeConfig from '../../
|
|
2
|
+
import storeConfig from '../../discovery.config'
|
|
3
3
|
|
|
4
4
|
import ThirdPartyScripts from 'src/components/ThirdPartyScripts'
|
|
5
5
|
import { WebFonts } from 'src/customizations/src/GlobalOverrides'
|
package/src/pages/account.tsx
CHANGED
package/src/pages/api/preview.ts
CHANGED
package/src/pages/checkout.tsx
CHANGED
package/src/pages/index.tsx
CHANGED
|
@@ -21,7 +21,7 @@ import GlobalSections, {
|
|
|
21
21
|
} from 'src/components/cms/GlobalSections'
|
|
22
22
|
import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
23
23
|
import { getDynamicContent } from 'src/utils/dynamicContent'
|
|
24
|
-
import storeConfig from '../../
|
|
24
|
+
import storeConfig from '../../discovery.config'
|
|
25
25
|
|
|
26
26
|
/* A list of components that can be used in the CMS. */
|
|
27
27
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
package/src/pages/login.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { useEffect } from 'react'
|
|
|
2
2
|
import { NextSeo } from 'next-seo'
|
|
3
3
|
import type { ComponentType } from 'react'
|
|
4
4
|
|
|
5
|
-
import storeConfig from '../../
|
|
5
|
+
import storeConfig from '../../discovery.config'
|
|
6
6
|
import GlobalSections, {
|
|
7
7
|
GlobalSectionsData,
|
|
8
8
|
getGlobalSectionsData,
|
package/src/pages/s.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import { ITEMS_PER_PAGE } from 'src/constants'
|
|
|
15
15
|
import { useApplySearchState } from 'src/sdk/search/state'
|
|
16
16
|
|
|
17
17
|
import { Locator } from '@vtex/client-cms'
|
|
18
|
-
import storeConfig from '
|
|
18
|
+
import storeConfig from 'discovery.config'
|
|
19
19
|
import GlobalSections, {
|
|
20
20
|
getGlobalSectionsData,
|
|
21
21
|
GlobalSectionsData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnalyticsEvent } from '@faststore/sdk'
|
|
2
2
|
import { useAnalyticsEvent } from '@faststore/sdk'
|
|
3
3
|
|
|
4
|
-
import storeConfig from '../../../
|
|
4
|
+
import storeConfig from '../../../discovery.config'
|
|
5
5
|
|
|
6
6
|
if (typeof window !== 'undefined') {
|
|
7
7
|
window.dataLayer = window.dataLayer ?? []
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
SearchSelectItemEvent,
|
|
8
8
|
} from '../../types'
|
|
9
9
|
|
|
10
|
-
import config from '../../../../../
|
|
10
|
+
import config from '../../../../../discovery.config'
|
|
11
11
|
import { getCookie } from '../../../../utils/getCookie'
|
|
12
12
|
|
|
13
13
|
const THIRTY_MINUTES_S = 30 * 60
|
package/src/sdk/cart/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
ValidateCartMutationMutationVariables,
|
|
12
12
|
} from '@generated/graphql'
|
|
13
13
|
|
|
14
|
-
import storeConfig from '../../../
|
|
14
|
+
import storeConfig from '../../../discovery.config'
|
|
15
15
|
import { request } from '../graphql/request'
|
|
16
16
|
import { sessionStore } from '../session'
|
|
17
17
|
import { createValidationStore, useStore } from '../useStore'
|
package/src/sdk/session/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
ValidateSessionMutation,
|
|
8
8
|
ValidateSessionMutationVariables,
|
|
9
9
|
} from '@generated/graphql'
|
|
10
|
-
import storeConfig from '../../../
|
|
10
|
+
import storeConfig from '../../../discovery.config'
|
|
11
11
|
import { cartStore } from '../cart'
|
|
12
12
|
import { request } from '../graphql/request'
|
|
13
13
|
import { createValidationStore, useStore } from '../useStore'
|
package/src/server/cms/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import ClientCMS from '@vtex/client-cms'
|
|
|
3
3
|
|
|
4
4
|
import MissingContentError from 'src/sdk/error/MissingContentError'
|
|
5
5
|
import MultipleContentError from 'src/sdk/error/MultipleContentError'
|
|
6
|
-
import config from '../../../
|
|
6
|
+
import config from '../../../discovery.config'
|
|
7
7
|
|
|
8
8
|
export type Options =
|
|
9
9
|
| Locator
|
package/src/server/cms/pdp.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ContentData, Locator } from '@vtex/client-cms'
|
|
|
3
3
|
import MissingContentError from 'src/sdk/error/MissingContentError'
|
|
4
4
|
import { findBestPDPTemplate } from 'src/utils/multipleTemplates'
|
|
5
5
|
import { Options, getCMSPage, getPage } from '.'
|
|
6
|
-
import config from '../../../
|
|
6
|
+
import config from '../../../discovery.config'
|
|
7
7
|
|
|
8
8
|
type PDPSettings = {
|
|
9
9
|
settings: {
|
package/src/server/cms/plp.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RewritesConfig,
|
|
6
6
|
findBestPLPTemplate,
|
|
7
7
|
} from 'src/utils/multipleTemplates'
|
|
8
|
-
import config from '../../../
|
|
8
|
+
import config from '../../../discovery.config'
|
|
9
9
|
import { Options, getCMSPage, getPage } from '../cms'
|
|
10
10
|
|
|
11
11
|
type PLPSettings = {
|
package/src/server/options.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,a,t,e,d,f,i){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,c,a,t,e,"static/css/197e314c5a03eabd.css","static/chunks/pages/index-d7ef84d142b53200.js"],"/404":[s,c,a,d,"static/chunks/pages/404-3c76e2c43ca8dcd4.js"],"/500":[s,c,a,d,"static/chunks/pages/500-1ad030e3adff740a.js"],"/_error":["static/chunks/pages/_error-fbf331a03642b495.js"],"/account":[s,c,a,"static/chunks/pages/account-e7b06039b653381d.js"],"/checkout":[s,c,a,"static/chunks/pages/checkout-996d898a57d037a0.js"],"/login":[s,c,a,d,"static/chunks/pages/login-b82e639bfe6d70ce.js"],"/s":[s,c,a,t,e,f,i,d,"static/chunks/pages/s-5f2e23d107382a98.js"],"/[slug]/p":[s,c,a,t,e,"static/css/fbd711b9f5abf105.css","static/chunks/pages/[slug]/p-e7077156f76f4cef.js"],"/[...slug]":[s,c,a,t,e,f,i,"static/css/e47f1a002bdcf76f.css","static/chunks/pages/[...slug]-dd7f247ab9486429.js"],sortedPages:["/","/404","/500","/_app","/_error","/account","/checkout","/login","/s","/[slug]/p","/[...slug]"]}}("static/chunks/108-090729aea2c4ba4c.js","static/css/4fae3c7fc719f5c5.css","static/chunks/968-3ed71db484b2d4e6.js","static/css/3e19bc8739388691.css","static/chunks/661-64696c6b69aad0cd.js","static/css/2980acad3f8e1028.css","static/css/c725ca9e956e11d7.css","static/chunks/629-0cb613f9bcc4f486.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e,r,t,_,n,u,c,i,a,o,f,p,b={},d={};function __webpack_require__(e){var r=d[e];if(void 0!==r)return r.exports;var t=d[e]={exports:{}},_=!0;try{b[e].call(t.exports,t,t.exports,__webpack_require__),_=!1}finally{_&&delete d[e]}return t.exports}__webpack_require__.m=b,e=[],__webpack_require__.O=function(r,t,_,n){if(t){n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[t,_,n];return}for(var c=1/0,u=0;u<e.length;u++){for(var t=e[u][0],_=e[u][1],n=e[u][2],i=!0,a=0;a<t.length;a++)c>=n&&Object.keys(__webpack_require__.O).every(function(e){return __webpack_require__.O[e](t[a])})?t.splice(a--,1):(i=!1,n<c&&(c=n));if(i){e.splice(u--,1);var o=_()}}return o},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,_){if(1&_&&(e=this(e)),8&_||"object"==typeof e&&e&&(4&_&&e.__esModule||16&_&&"function"==typeof e.then))return e;var n=Object.create(null);__webpack_require__.r(n);var u={};r=r||[null,t({}),t([]),t(t)];for(var c=2&_&&e;"object"==typeof c&&!~r.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(function(r){u[r]=function(){return e[r]}});return u.default=function(){return e},__webpack_require__.d(n,u),n},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(r,t){return __webpack_require__.f[t](e,r),r},[]))},__webpack_require__.u=function(e){return"static/chunks/"+e+"."+({65:"8e4235e2d3871cb7",202:"a21c6de815ba3b75",217:"01bc0ad07edd6f1b",484:"0c9f9b5defb5904d",624:"455cdc0925956ae5",758:"a411edd1cbd09134",857:"d2299cfe995af21d"})[e]+".js"},__webpack_require__.miniCssF=function(e){return"static/css/"+({103:"fbd711b9f5abf105",197:"2980acad3f8e1028",330:"e47f1a002bdcf76f",405:"197e314c5a03eabd",459:"2980acad3f8e1028",552:"2980acad3f8e1028",573:"2980acad3f8e1028",624:"8ebfe153c3ea130f",629:"c725ca9e956e11d7",661:"3e19bc8739388691",888:"ee0556daedda6306",968:"4fae3c7fc719f5c5"})[e]+".css"},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},_={},n="_N_E:",__webpack_require__.l=function(e,r,t,u){if(_[e]){_[e].push(r);return}if(void 0!==t)for(var c,i,a=document.getElementsByTagName("script"),o=0;o<a.length;o++){var f=a[o];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+t){c=f;break}}c||(i=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,__webpack_require__.nc&&c.setAttribute("nonce",__webpack_require__.nc),c.setAttribute("data-webpack",n+t),c.src=__webpack_require__.tu(e)),_[e]=[r];var onScriptComplete=function(r,t){c.onerror=c.onload=null,clearTimeout(p);var n=_[e];if(delete _[e],c.parentNode&&c.parentNode.removeChild(c),n&&n.forEach(function(e){return e(t)}),r)return r(t)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=onScriptComplete.bind(null,c.onerror),c.onload=onScriptComplete.bind(null,c.onload),i&&document.head.appendChild(c)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},__webpack_require__.tu=function(e){return __webpack_require__.tt().createScriptURL(e)},__webpack_require__.p="/_next/",c=function(e,r,t,_){var n=document.createElement("link");return n.rel="stylesheet",n.type="text/css",n.onerror=n.onload=function(u){if(n.onerror=n.onload=null,"load"===u.type)t();else{var c=u&&("load"===u.type?"missing":u.type),i=u&&u.target&&u.target.href||r,a=Error("Loading CSS chunk "+e+" failed.\n("+i+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=c,a.request=i,n.parentNode.removeChild(n),_(a)}},n.href=r,document.head.appendChild(n),n},i=function(e,r){for(var t=document.getElementsByTagName("link"),_=0;_<t.length;_++){var n=t[_],u=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(u===e||u===r))return n}for(var c=document.getElementsByTagName("style"),_=0;_<c.length;_++){var n=c[_],u=n.getAttribute("data-href");if(u===e||u===r)return n}},a={272:0},__webpack_require__.f.miniCss=function(e,r){a[e]?r.push(a[e]):0!==a[e]&&({624:1})[e]&&r.push(a[e]=new Promise(function(r,t){var _=__webpack_require__.miniCssF(e),n=__webpack_require__.p+_;if(i(_,n))return r();c(e,n,r,t)}).then(function(){a[e]=0},function(r){throw delete a[e],r}))},o={272:0},__webpack_require__.f.j=function(e,r){var t=__webpack_require__.o(o,e)?o[e]:void 0;if(0!==t){if(t)r.push(t[2]);else if(272!=e){var _=new Promise(function(r,_){t=o[e]=[r,_]});r.push(t[2]=_);var n=__webpack_require__.p+__webpack_require__.u(e),u=Error();__webpack_require__.l(n,function(r){if(__webpack_require__.o(o,e)&&(0!==(t=o[e])&&(o[e]=void 0),t)){var _=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+_+": "+n+")",u.name="ChunkLoadError",u.type=_,u.request=n,t[1](u)}},"chunk-"+e,e)}else o[e]=0}},__webpack_require__.O.j=function(e){return 0===o[e]},f=function(e,r){var t,_,n=r[0],u=r[1],c=r[2],i=0;if(n.some(function(e){return 0!==o[e]})){for(t in u)__webpack_require__.o(u,t)&&(__webpack_require__.m[t]=u[t]);if(c)var a=c(__webpack_require__)}for(e&&e(r);i<n.length;i++)_=n[i],__webpack_require__.o(o,_)&&o[_]&&o[_][0](),o[_]=0;return __webpack_require__.O(a)},(p=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(f.bind(null,0)),p.push=f.bind(null,p.push.bind(p))}();
|
package/faststore.config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const defaultConfig = require('./faststore.config.default')
|
|
2
|
-
const starterConfig = require('./src/customizations/faststore.config')
|
|
3
|
-
|
|
4
|
-
const deepmerge = require('deepmerge')
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @type {typeof defaultConfig & Record<string, any>}
|
|
8
|
-
* */
|
|
9
|
-
const finalConfig = deepmerge(defaultConfig, starterConfig)
|
|
10
|
-
|
|
11
|
-
module.exports = finalConfig
|
|
File without changes
|
|
File without changes
|
|
File without changes
|