@faststore/core 2.2.3 → 2.2.4
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/.turbo/turbo-build.log +16 -16
- package/.turbo/turbo-test.log +7 -7
- package/faststore.config.default.js +95 -0
- package/faststore.config.js +8 -92
- package/next.config.js +2 -1
- package/package.json +3 -3
- package/src/components/ThirdPartyScripts/ThirdPartyScripts.tsx +1 -1
- package/src/components/cms/GlobalSections.tsx +1 -1
- package/src/components/sections/Alert/Overrides.tsx +1 -1
- package/src/components/sections/BannerText/Overrides.tsx +1 -1
- package/src/components/sections/Breadcrumb/Overrides.tsx +1 -1
- package/src/components/sections/EmptyState/Overrides.tsx +1 -1
- package/src/components/sections/Hero/Overrides.tsx +1 -1
- package/src/components/sections/Navbar/Overrides.tsx +1 -1
- package/src/components/sections/Newsletter/Overrides.tsx +1 -1
- package/src/components/sections/ProductDetails/Overrides.tsx +1 -1
- package/src/components/sections/ProductGallery/Overrides.tsx +1 -1
- package/src/components/sections/ProductShelf/Overrides.tsx +1 -1
- package/src/components/sections/RegionBar/Overrides.tsx +1 -1
- package/src/components/templates/LandingPage/LandingPage.tsx +1 -1
- package/src/components/templates/ProductListingPage/ProductListing.tsx +1 -1
- package/src/components/templates/SearchPage/SearchPage.tsx +1 -1
- package/src/customizations/faststore.config.js +2 -0
- package/src/customizations/{GlobalOverrides.tsx → src/GlobalOverrides.tsx} +2 -2
- package/src/customizations/{components → src/components}/overrides/ThirdPartyScripts.tsx +1 -1
- package/src/customizations/{components → src/components}/overrides/WebFonts.tsx +1 -1
- package/src/pages/[slug]/p.tsx +1 -1
- package/src/pages/_app.tsx +1 -1
- package/src/pages/_document.tsx +1 -1
- package/src/pages/index.tsx +1 -1
- package/src/server/generator/schema.ts +1 -1
- package/src/server/index.ts +2 -2
- /package/src/customizations/{components → src/components}/CustomComponent.tsx +0 -0
- /package/src/customizations/{components → src/components}/index.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/Alert.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/BannerText.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/Breadcrumb.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/EmptyState.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/Hero.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/Navbar.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/Newsletter.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/ProductDetails.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/ProductGallery.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/ProductShelf.tsx +0 -0
- /package/src/customizations/{components → src/components}/overrides/RegionBar.tsx +0 -0
- /package/src/customizations/{fonts → src/fonts}/WebFonts.tsx +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientManyProducts.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientProduct.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientProductGallery.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientSearchSuggestions.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientShippingSimulation.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ClientTopSearchSuggestions.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ServerCollectionPage.ts +0 -0
- /package/src/customizations/{fragments → src/fragments}/ServerProduct.ts +0 -0
- /package/src/customizations/{graphql → src/graphql}/thirdParty/resolvers/index.ts +0 -0
- /package/src/customizations/{graphql → src/graphql}/vtex/resolvers/index.ts +0 -0
- /package/src/customizations/{scripts → src/scripts}/ThirdPartyScripts.tsx +0 -0
- /package/src/customizations/{styles → src/styles}/custom-mixins.scss +0 -0
- /package/src/customizations/{themes → src/themes}/index.scss +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -26,27 +26,27 @@ info - Generating static pages (7/7)
|
|
|
26
26
|
info - Finalizing page optimization...
|
|
27
27
|
|
|
28
28
|
Route (pages) Size First Load JS
|
|
29
|
-
┌ ● /
|
|
30
|
-
├ /_app 0 B 78.
|
|
31
|
-
├ ● /[...slug] 4.
|
|
29
|
+
┌ ● / 3.18 kB 127 kB
|
|
30
|
+
├ /_app 0 B 78.6 kB
|
|
31
|
+
├ ● /[...slug] 4.3 kB 139 kB
|
|
32
32
|
├ └ css/527e334fa69cf40a.css 1.85 kB
|
|
33
33
|
├ ● /[slug]/p 11 kB 135 kB
|
|
34
34
|
├ └ css/9f79fa103f49bca1.css 11.5 kB
|
|
35
|
-
├ ○ /404 1.19 kB
|
|
36
|
-
├ ● /500 1.
|
|
37
|
-
├ ● /account
|
|
38
|
-
├ λ /api/graphql 0 B 78.
|
|
39
|
-
├ λ /api/health/live 0 B 78.
|
|
40
|
-
├ λ /api/health/ready 0 B 78.
|
|
41
|
-
├ λ /api/preview 0 B 78.
|
|
42
|
-
├ ● /checkout
|
|
43
|
-
├ ● /login 1.09 kB
|
|
44
|
-
└ ● /s 4.
|
|
45
|
-
+ First Load JS shared by all 81.
|
|
35
|
+
├ ○ /404 1.19 kB 111 kB
|
|
36
|
+
├ ● /500 1.2 kB 111 kB
|
|
37
|
+
├ ● /account 670 B 110 kB
|
|
38
|
+
├ λ /api/graphql 0 B 78.6 kB
|
|
39
|
+
├ λ /api/health/live 0 B 78.6 kB
|
|
40
|
+
├ λ /api/health/ready 0 B 78.6 kB
|
|
41
|
+
├ λ /api/preview 0 B 78.6 kB
|
|
42
|
+
├ ● /checkout 657 B 110 kB
|
|
43
|
+
├ ● /login 1.09 kB 111 kB
|
|
44
|
+
└ ● /s 4.58 kB 125 kB
|
|
45
|
+
+ First Load JS shared by all 81.7 kB
|
|
46
46
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
47
47
|
├ chunks/main-e4e873ee741162eb.js 24.1 kB
|
|
48
|
-
├ chunks/pages/_app-
|
|
49
|
-
├ chunks/webpack-
|
|
48
|
+
├ chunks/pages/_app-48d56037a2534a44.js 6.99 kB
|
|
49
|
+
├ chunks/webpack-743ed70fcff99e29.js 2.25 kB
|
|
50
50
|
└ css/5d1f64b61ea581f4.css 3.06 kB
|
|
51
51
|
|
|
52
52
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
$ tsdx test
|
|
2
2
|
ts-jest[versions] (WARN) Version 29.1.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=25.0.0 <26.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
3
3
|
ts-jest[versions] (WARN) Version 4.9.4 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.4.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
4
|
-
PASS test/server/index.test.ts (8.
|
|
4
|
+
PASS test/server/index.test.ts (8.456s)
|
|
5
5
|
FastStore GraphQL Layer
|
|
6
6
|
@faststore/api
|
|
7
|
-
✓ should return a valid GraphQL schema (
|
|
8
|
-
✓ should return a valid GraphQL schema contain all expected types (
|
|
7
|
+
✓ should return a valid GraphQL schema (7ms)
|
|
8
|
+
✓ should return a valid GraphQL schema contain all expected types (5ms)
|
|
9
9
|
✓ should return a valid GraphQL schema contain all expected queries (1ms)
|
|
10
10
|
✓ should return a valid GraphQL schema contain all expected mutations (1ms)
|
|
11
11
|
VTEX API Extension
|
|
12
12
|
✓ getTypeDefsFromFolder function should return an Array (7ms)
|
|
13
13
|
Third Party API Extension
|
|
14
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
14
|
+
✓ getTypeDefsFromFolder function should return an Array (13ms)
|
|
15
15
|
Final Schema after merging
|
|
16
|
-
✓ should return a valid merged GraphQL schema (
|
|
16
|
+
✓ should return a valid merged GraphQL schema (33ms)
|
|
17
17
|
Envelop
|
|
18
18
|
✓ should exist with its plugins (33ms)
|
|
19
|
-
✓ should handle options and execute (
|
|
19
|
+
✓ should handle options and execute (172ms)
|
|
20
20
|
|
|
21
21
|
Test Suites: 1 passed, 1 total
|
|
22
22
|
Tests: 9 passed, 9 total
|
|
23
23
|
Snapshots: 0 total
|
|
24
|
-
Time: 9.
|
|
24
|
+
Time: 9.077s
|
|
25
25
|
Ran all test suites.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
seo: {
|
|
3
|
+
title: 'FastStore Starter',
|
|
4
|
+
description: 'Fast Demo Store',
|
|
5
|
+
titleTemplate: '%s | FastStore',
|
|
6
|
+
author: 'Store Framework',
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
// Theming
|
|
10
|
+
theme: 'custom-theme',
|
|
11
|
+
|
|
12
|
+
// Ecommerce Platform
|
|
13
|
+
platform: 'vtex',
|
|
14
|
+
|
|
15
|
+
// Platform specific configs for API
|
|
16
|
+
api: {
|
|
17
|
+
storeId: 'storeframework',
|
|
18
|
+
workspace: 'master',
|
|
19
|
+
environment: 'vtexcommercestable',
|
|
20
|
+
hideUnavailableItems: false,
|
|
21
|
+
incrementAddress: true,
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// Default session
|
|
25
|
+
session: {
|
|
26
|
+
currency: {
|
|
27
|
+
code: 'USD',
|
|
28
|
+
symbol: '$',
|
|
29
|
+
},
|
|
30
|
+
locale: 'en-US',
|
|
31
|
+
channel: '{"salesChannel":"1","regionId":""}',
|
|
32
|
+
country: 'USA',
|
|
33
|
+
deliveryMode: null,
|
|
34
|
+
addressType: null,
|
|
35
|
+
postalCode: null,
|
|
36
|
+
geoCoordinates: null,
|
|
37
|
+
person: null,
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// Default cart
|
|
41
|
+
cart: {
|
|
42
|
+
id: '',
|
|
43
|
+
items: [],
|
|
44
|
+
messages: [],
|
|
45
|
+
shouldSplitItem: true,
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
// Production URLs
|
|
49
|
+
storeUrl: 'https://vtexfaststore.com',
|
|
50
|
+
secureSubdomain: 'https://secure.vtexfaststore.com',
|
|
51
|
+
checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
|
|
52
|
+
loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
|
|
53
|
+
accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
|
|
54
|
+
|
|
55
|
+
// Preview redirects
|
|
56
|
+
previewRedirects: {
|
|
57
|
+
home: '/',
|
|
58
|
+
plp: '/office',
|
|
59
|
+
search: '/s?q=headphone',
|
|
60
|
+
pdp: '/apple-magic-mouse/p',
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
// Lighthouse CI
|
|
64
|
+
lighthouse: {
|
|
65
|
+
server: process.env.BASE_SITE_URL || 'http://localhost:3000',
|
|
66
|
+
pages: {
|
|
67
|
+
home: '/',
|
|
68
|
+
pdp: '/apple-magic-mouse/p',
|
|
69
|
+
collection: '/office',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
// E2E CI
|
|
74
|
+
cypress: {
|
|
75
|
+
pages: {
|
|
76
|
+
home: '/',
|
|
77
|
+
pdp: '/apple-magic-mouse/p',
|
|
78
|
+
collection: '/office',
|
|
79
|
+
collection_2: '/technology',
|
|
80
|
+
collection_filtered:
|
|
81
|
+
'/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
|
|
82
|
+
search: '/s?q=orange',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
analytics: {
|
|
87
|
+
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
|
|
88
|
+
gtmContainerId: 'GTM-PGHZ95N',
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
experimental: {
|
|
92
|
+
cypressVersion: 12,
|
|
93
|
+
enableCypressExtension: false,
|
|
94
|
+
},
|
|
95
|
+
}
|
package/faststore.config.js
CHANGED
|
@@ -1,95 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
title: 'FastStore Starter',
|
|
4
|
-
description: 'Fast Demo Store',
|
|
5
|
-
titleTemplate: '%s | FastStore',
|
|
6
|
-
author: 'Store Framework',
|
|
7
|
-
},
|
|
1
|
+
const defaultConfig = require('./faststore.config.default')
|
|
2
|
+
const starterConfig = require('./src/customizations/faststore.config')
|
|
8
3
|
|
|
9
|
-
|
|
10
|
-
theme: 'custom-theme',
|
|
4
|
+
const deepmerge = require('deepmerge')
|
|
11
5
|
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @type {typeof defaultConfig & Record<string, any>}
|
|
8
|
+
* */
|
|
9
|
+
const finalConfig = deepmerge(defaultConfig, starterConfig)
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
api: {
|
|
17
|
-
storeId: 'storeframework',
|
|
18
|
-
workspace: 'master',
|
|
19
|
-
environment: 'vtexcommercestable',
|
|
20
|
-
hideUnavailableItems: false,
|
|
21
|
-
incrementAddress: true,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// Default session
|
|
25
|
-
session: {
|
|
26
|
-
currency: {
|
|
27
|
-
code: 'USD',
|
|
28
|
-
symbol: '$',
|
|
29
|
-
},
|
|
30
|
-
locale: 'en-US',
|
|
31
|
-
channel: '{"salesChannel":"1","regionId":""}',
|
|
32
|
-
country: 'USA',
|
|
33
|
-
deliveryMode: null,
|
|
34
|
-
addressType: null,
|
|
35
|
-
postalCode: null,
|
|
36
|
-
geoCoordinates: null,
|
|
37
|
-
person: null,
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
// Default cart
|
|
41
|
-
cart: {
|
|
42
|
-
id: '',
|
|
43
|
-
items: [],
|
|
44
|
-
messages: [],
|
|
45
|
-
shouldSplitItem: true,
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
// Production URLs
|
|
49
|
-
storeUrl: 'https://vtexfaststore.com',
|
|
50
|
-
secureSubdomain: 'https://secure.vtexfaststore.com',
|
|
51
|
-
checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
|
|
52
|
-
loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
|
|
53
|
-
accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
|
|
54
|
-
|
|
55
|
-
// Preview redirects
|
|
56
|
-
previewRedirects: {
|
|
57
|
-
home: '/',
|
|
58
|
-
plp: '/office',
|
|
59
|
-
search: '/s?q=headphone',
|
|
60
|
-
pdp: '/apple-magic-mouse/p',
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
// Lighthouse CI
|
|
64
|
-
lighthouse: {
|
|
65
|
-
server: process.env.BASE_SITE_URL || 'http://localhost:3000',
|
|
66
|
-
pages: {
|
|
67
|
-
home: '/',
|
|
68
|
-
pdp: '/apple-magic-mouse/p',
|
|
69
|
-
collection: '/office',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
// E2E CI
|
|
74
|
-
cypress: {
|
|
75
|
-
pages: {
|
|
76
|
-
home: '/',
|
|
77
|
-
pdp: '/apple-magic-mouse/p',
|
|
78
|
-
collection: '/office',
|
|
79
|
-
collection_2: '/technology',
|
|
80
|
-
collection_filtered:
|
|
81
|
-
'/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
|
|
82
|
-
search: '/s?q=orange',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
analytics: {
|
|
87
|
-
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
|
|
88
|
-
gtmContainerId: 'GTM-PGHZ95N',
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
experimental: {
|
|
92
|
-
cypressVersion: 12,
|
|
93
|
-
enableCypressExtension: false,
|
|
94
|
-
},
|
|
95
|
-
}
|
|
11
|
+
module.exports = finalConfig
|
package/next.config.js
CHANGED
|
@@ -16,7 +16,7 @@ const nextConfig = {
|
|
|
16
16
|
defaultLocale: 'en-US',
|
|
17
17
|
},
|
|
18
18
|
sassOptions: {
|
|
19
|
-
additionalData: `@import "src/customizations/styles/custom-mixins.scss";`,
|
|
19
|
+
additionalData: `@import "src/customizations/src/styles/custom-mixins.scss";`,
|
|
20
20
|
},
|
|
21
21
|
// TODO: We won't need to enable this experimental feature when migrating to Next.js 13
|
|
22
22
|
experimental: {
|
|
@@ -43,6 +43,7 @@ const nextConfig = {
|
|
|
43
43
|
|
|
44
44
|
return config
|
|
45
45
|
},
|
|
46
|
+
redirects: storeConfig.redirects,
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
module.exports = nextConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"browserslist": "supports es6-module and not dead",
|
|
6
6
|
"exports": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@cypress/code-coverage": "^3.12.1",
|
|
82
82
|
"@envelop/testing": "^6.0.0",
|
|
83
|
-
"@faststore/cli": "^2.2.
|
|
83
|
+
"@faststore/cli": "^2.2.4",
|
|
84
84
|
"@faststore/eslint-config": "^2.2.0",
|
|
85
85
|
"@faststore/lighthouse": "^1.12.32",
|
|
86
86
|
"@lhci/cli": "^0.9.0",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"msw": {
|
|
130
130
|
"workerDirectory": "public"
|
|
131
131
|
},
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "6f1cc208d14ce2b4a71ff0dc135aa1b7c54c4472"
|
|
133
133
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Partytown } from '@builder.io/partytown/react'
|
|
2
|
-
import OverrideComponents from 'src/customizations/GlobalOverrides'
|
|
2
|
+
import OverrideComponents from 'src/customizations/src/GlobalOverrides'
|
|
3
3
|
import storeConfig from '../../../faststore.config'
|
|
4
4
|
import GoogleTagManager from './GoogleTagManager'
|
|
5
5
|
import VTEX from './vtex'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locator, Section } from '@vtex/client-cms'
|
|
2
2
|
import type { ComponentType } from 'react'
|
|
3
3
|
import { PropsWithChildren, lazy } from 'react'
|
|
4
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
4
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
5
5
|
import { PageContentType, getPage } from 'src/server/cms'
|
|
6
6
|
|
|
7
7
|
import Toast from 'src/components/common/Toast'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Alert as UIAlert, Icon as UIIcon } from '@faststore/ui'
|
|
2
2
|
|
|
3
3
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
4
|
-
import { override } from 'src/customizations/components/overrides/Alert'
|
|
4
|
+
import { override } from 'src/customizations/src/components/overrides/Alert'
|
|
5
5
|
import type { AlertOverrideDefinition } from 'src/typings/overrides'
|
|
6
6
|
|
|
7
7
|
const { Alert, Icon } = getSectionOverrides(
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from '@faststore/ui'
|
|
5
5
|
|
|
6
6
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
7
|
-
import { override } from 'src/customizations/components/overrides/BannerText'
|
|
7
|
+
import { override } from 'src/customizations/src/components/overrides/BannerText'
|
|
8
8
|
import type { BannerTextOverrideDefinition } from 'src/typings/overrides'
|
|
9
9
|
|
|
10
10
|
const { BannerText, BannerTextContent } = getSectionOverrides(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Breadcrumb as UIBreadcrumb, Icon as UIIcon } from '@faststore/ui'
|
|
2
2
|
|
|
3
3
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
4
|
-
import { override } from 'src/customizations/components/overrides/Breadcrumb'
|
|
4
|
+
import { override } from 'src/customizations/src/components/overrides/Breadcrumb'
|
|
5
5
|
import type { BreadcrumbOverrideDefinition } from 'src/typings/overrides'
|
|
6
6
|
|
|
7
7
|
const { Breadcrumb, Icon } = getSectionOverrides(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyState as UIEmptyState } from '@faststore/ui'
|
|
2
2
|
|
|
3
3
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
4
|
-
import { override } from 'src/customizations/components/overrides/EmptyState'
|
|
4
|
+
import { override } from 'src/customizations/src/components/overrides/EmptyState'
|
|
5
5
|
import type { EmptyStateOverrideDefinition } from 'src/typings/overrides'
|
|
6
6
|
|
|
7
7
|
const { EmptyState } = getSectionOverrides(
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from '@faststore/ui'
|
|
6
6
|
|
|
7
7
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
8
|
-
import { override } from 'src/customizations/components/overrides/Hero'
|
|
8
|
+
import { override } from 'src/customizations/src/components/overrides/Hero'
|
|
9
9
|
import type { HeroOverrideDefinition } from 'src/typings/overrides'
|
|
10
10
|
|
|
11
11
|
const { Hero, HeroImage, HeroHeader } = getSectionOverrides(
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '@faststore/ui'
|
|
14
14
|
|
|
15
15
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
16
|
-
import { override } from 'src/customizations/components/overrides/Navbar'
|
|
16
|
+
import { override } from 'src/customizations/src/components/overrides/Navbar'
|
|
17
17
|
import type { NavbarOverrideDefinition } from 'src/typings/overrides'
|
|
18
18
|
|
|
19
19
|
const {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { NewsletterAddendum } from 'src/components/ui/Newsletter/NewsletterAddendum'
|
|
7
7
|
|
|
8
8
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
9
|
-
import { override } from 'src/customizations/components/overrides/Newsletter'
|
|
9
|
+
import { override } from 'src/customizations/src/components/overrides/Newsletter'
|
|
10
10
|
import type { NewsletterOverrideDefinition } from 'src/typings/overrides'
|
|
11
11
|
|
|
12
12
|
const {
|
|
@@ -17,7 +17,7 @@ import { Image } from 'src/components/ui/Image'
|
|
|
17
17
|
import LocalNotAvailableButton from 'src/components/product/NotAvailableButton'
|
|
18
18
|
|
|
19
19
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
20
|
-
import { override } from 'src/customizations/components/overrides/ProductDetails'
|
|
20
|
+
import { override } from 'src/customizations/src/components/overrides/ProductDetails'
|
|
21
21
|
import type { ProductDetailsOverrideDefinition } from 'src/typings/overrides'
|
|
22
22
|
|
|
23
23
|
const {
|
|
@@ -14,7 +14,7 @@ const FilterSlider = lazy(
|
|
|
14
14
|
)
|
|
15
15
|
|
|
16
16
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
17
|
-
import { override } from 'src/customizations/components/overrides/ProductGallery'
|
|
17
|
+
import { override } from 'src/customizations/src/components/overrides/ProductGallery'
|
|
18
18
|
import type { ProductGalleryOverrideDefinition } from 'src/typings/overrides'
|
|
19
19
|
|
|
20
20
|
const {
|
|
@@ -4,7 +4,7 @@ import ProductCard from 'src/components/product/ProductCard'
|
|
|
4
4
|
import Carousel from 'src/components/ui/Carousel'
|
|
5
5
|
|
|
6
6
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
7
|
-
import { override } from 'src/customizations/components/overrides/ProductShelf'
|
|
7
|
+
import { override } from 'src/customizations/src/components/overrides/ProductShelf'
|
|
8
8
|
import type { ProductShelfOverrideDefinition } from 'src/typings/overrides'
|
|
9
9
|
|
|
10
10
|
const { ProductShelf, __experimentalCarousel, __experimentalProductCard } =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegionBar as UIRegionBar, Icon as UIIcon } from '@faststore/ui'
|
|
2
2
|
|
|
3
3
|
import { getSectionOverrides } from 'src/utils/overrides'
|
|
4
|
-
import { override } from 'src/customizations/components/overrides/RegionBar'
|
|
4
|
+
import { override } from 'src/customizations/src/components/overrides/RegionBar'
|
|
5
5
|
import type { RegionBarOverrideDefinition } from 'src/typings/overrides'
|
|
6
6
|
|
|
7
7
|
const { RegionBar, LocationIcon, ButtonIcon } = getSectionOverrides(
|
|
@@ -12,7 +12,7 @@ import BannerText from 'src/components/sections/BannerText'
|
|
|
12
12
|
import Newsletter from 'src/components/sections/Newsletter'
|
|
13
13
|
import { getPage } from 'src/server/cms'
|
|
14
14
|
import type { PageContentType } from 'src/server/cms'
|
|
15
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
15
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
16
16
|
|
|
17
17
|
import storeConfig from '../../../../faststore.config'
|
|
18
18
|
|
|
@@ -10,7 +10,7 @@ import { useSearch } from '@faststore/sdk'
|
|
|
10
10
|
|
|
11
11
|
import type { ComponentType } from 'react'
|
|
12
12
|
import RenderSections from 'src/components/cms/RenderSections'
|
|
13
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
13
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
14
14
|
import { PLPContentType } from 'src/server/cms'
|
|
15
15
|
|
|
16
16
|
import {
|
|
@@ -4,7 +4,7 @@ import type { ComponentType } from 'react'
|
|
|
4
4
|
import Breadcrumb from 'src/components/sections/Breadcrumb'
|
|
5
5
|
import ProductGallery from 'src/components/sections/ProductGallery'
|
|
6
6
|
import { ITEMS_PER_PAGE } from 'src/constants'
|
|
7
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
7
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
8
8
|
import RenderSections from 'src/components/cms/RenderSections'
|
|
9
9
|
import { SearchContentType } from 'src/server/cms'
|
|
10
10
|
import { useProductGalleryQuery } from 'src/sdk/product/useProductGalleryQuery'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import WebFontsOverrides from 'src/customizations/components/overrides/WebFonts'
|
|
1
|
+
import WebFontsOverrides from 'src/customizations/src/components/overrides/WebFonts'
|
|
2
2
|
import { default as CoreWebFonts } from 'src/fonts/WebFonts'
|
|
3
|
-
import ThirdPartyScriptsOverrides from 'src/customizations/components/overrides/ThirdPartyScripts'
|
|
3
|
+
import ThirdPartyScriptsOverrides from 'src/customizations/src/components/overrides/ThirdPartyScripts'
|
|
4
4
|
|
|
5
5
|
const Components = {
|
|
6
6
|
WebFonts: CoreWebFonts,
|
package/src/pages/[slug]/p.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import BannerNewsletter from 'src/components/sections/BannerNewsletter/BannerNew
|
|
|
15
15
|
import Breadcrumb from 'src/components/sections/Breadcrumb'
|
|
16
16
|
import CrossSellingShelf from 'src/components/sections/CrossSellingShelf'
|
|
17
17
|
import ProductDetails from 'src/components/sections/ProductDetails'
|
|
18
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
18
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
19
19
|
import { useSession } from 'src/sdk/session'
|
|
20
20
|
import { mark } from 'src/sdk/tests/mark'
|
|
21
21
|
import { execute } from 'src/server'
|
package/src/pages/_app.tsx
CHANGED
package/src/pages/_document.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Head, Html, Main, NextScript } from 'next/document'
|
|
2
2
|
|
|
3
3
|
import ThirdPartyScripts from 'src/components/ThirdPartyScripts'
|
|
4
|
-
import { WebFonts } from 'src/customizations/GlobalOverrides'
|
|
4
|
+
import { WebFonts } from 'src/customizations/src/GlobalOverrides'
|
|
5
5
|
|
|
6
6
|
function Document() {
|
|
7
7
|
return (
|
package/src/pages/index.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import Incentives from 'src/components/sections/Incentives'
|
|
|
10
10
|
import Newsletter from 'src/components/sections/Newsletter'
|
|
11
11
|
import ProductShelf from 'src/components/sections/ProductShelf'
|
|
12
12
|
import ProductTiles from 'src/components/sections/ProductTiles'
|
|
13
|
-
import CUSTOM_COMPONENTS from 'src/customizations/components'
|
|
13
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
14
14
|
import { mark } from 'src/sdk/tests/mark'
|
|
15
15
|
import type { PageContentType } from 'src/server/cms'
|
|
16
16
|
import { getPage } from 'src/server/cms'
|
|
@@ -13,7 +13,7 @@ import { apiOptions } from '../options'
|
|
|
13
13
|
export function getTypeDefsFromFolder(
|
|
14
14
|
customPath: string | string[]
|
|
15
15
|
): TypeSource {
|
|
16
|
-
const basePath = ['src', 'customizations', 'graphql']
|
|
16
|
+
const basePath = ['src', 'customizations', 'src', 'graphql']
|
|
17
17
|
|
|
18
18
|
const pathArray = Array.isArray(customPath) ? customPath : [customPath]
|
|
19
19
|
|
package/src/server/index.ts
CHANGED
|
@@ -23,8 +23,8 @@ import type { TypeSource } from '@graphql-tools/utils'
|
|
|
23
23
|
|
|
24
24
|
import persisted from '../../@generated/graphql/persisted.json'
|
|
25
25
|
|
|
26
|
-
import vtexExtensionsResolvers from '../customizations/graphql/vtex/resolvers'
|
|
27
|
-
import thirdPartyResolvers from '../customizations/graphql/thirdParty/resolvers'
|
|
26
|
+
import vtexExtensionsResolvers from '../customizations/src/graphql/vtex/resolvers'
|
|
27
|
+
import thirdPartyResolvers from '../customizations/src/graphql/thirdParty/resolvers'
|
|
28
28
|
|
|
29
29
|
import { apiOptions } from './options'
|
|
30
30
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|