@faststore/core 2.2.66 → 2.2.68
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 +40 -37
- 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/chunks/74.js +12 -15
- package/.next/server/chunks/796.js +143 -84
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/[slug]/p.js +4 -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 +4 -4
- package/.next/server/pages-manifest.json +2 -2
- package/.next/static/UqOs8JLqk-fWN0wuNR3He/_buildManifest.js +1 -0
- package/.next/static/chunks/762-1e3db91e2888dca7.js +1 -0
- package/.next/static/chunks/846-d7c6a8d1d102ccf3.js +1 -0
- package/.next/static/chunks/pages/[...slug]-36dce5cc96853b94.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-039e11d837033561.js +1 -0
- package/.next/static/chunks/pages/index-a5448a22526e3ea8.js +1 -0
- package/.next/static/chunks/{webpack-340b017ee637c5d4.js → webpack-6c4b31200fed6646.js} +1 -1
- package/.next/static/css/{d2e8564f2bf133d9.css → 4ee95588f27a8b6b.css} +1 -1
- package/.next/static/css/527e334fa69cf40a.css +1 -0
- package/.next/static/css/563a68087e4de59c.css +1 -0
- package/.next/static/css/c33c62a3d0c77436.css +1 -0
- package/.next/trace +82 -82
- package/.turbo/turbo-build.log +6 -7
- package/.turbo/turbo-test.log +11 -11
- package/cms/faststore/sections.json +71 -11
- package/package.json +4 -4
- package/src/components/sections/BannerNewsletter/BannerNewsletter.tsx +4 -2
- package/src/components/sections/BannerText/BannerText.tsx +17 -19
- package/src/components/sections/Footer/Footer.tsx +3 -1
- package/src/components/sections/Footer/section.module.scss +2 -0
- package/src/components/sections/Newsletter/Newsletter.tsx +46 -20
- package/src/components/sections/Newsletter/Overrides.tsx +21 -4
- package/src/components/sections/Newsletter/section.module.scss +0 -2
- package/src/components/ui/Newsletter/Newsletter.tsx +131 -180
- package/src/components/ui/Newsletter/NewsletterAddendum.tsx +7 -8
- package/src/typings/overrides.ts +22 -5
- package/.next/static/Z7PsIH45Cy7Rnzoy9ETnz/_buildManifest.js +0 -1
- package/.next/static/chunks/846-fbe704a112d163f4.js +0 -1
- package/.next/static/chunks/pages/[...slug]-c7b64458aaf57ba4.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-1b15ce4b48000425.js +0 -1
- package/.next/static/chunks/pages/index-9bda5b7b8c3a723e.js +0 -1
- package/.next/static/css/7926db3235e499be.css +0 -1
- package/.next/static/css/e67c73ff7fbc8c54.css +0 -1
- package/.next/static/css/eababca67e15ef4b.css +0 -1
- /package/.next/static/{Z7PsIH45Cy7Rnzoy9ETnz → UqOs8JLqk-fWN0wuNR3He}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -38,13 +38,12 @@ info - Generating static pages (7/7)
|
|
|
38
38
|
info - Finalizing page optimization...
|
|
39
39
|
|
|
40
40
|
Route (pages) Size First Load JS
|
|
41
|
-
┌ ● /
|
|
42
|
-
├ └ css/d2e8564f2bf133d9.css 8.38 kB
|
|
41
|
+
┌ ● / 1.08 kB 142 kB
|
|
43
42
|
├ /_app 0 B 83.7 kB
|
|
44
|
-
├ ● /[...slug]
|
|
45
|
-
├ └ css/
|
|
46
|
-
├ ● /[slug]/p 5.
|
|
47
|
-
├ └ css/
|
|
43
|
+
├ ● /[...slug] 3.29 kB 145 kB
|
|
44
|
+
├ └ css/527e334fa69cf40a.css 1.85 kB
|
|
45
|
+
├ ● /[slug]/p 5.89 kB 141 kB
|
|
46
|
+
├ └ css/c33c62a3d0c77436.css 4.48 kB
|
|
48
47
|
├ ○ /404 1.03 kB 136 kB
|
|
49
48
|
├ ● /500 1.05 kB 136 kB
|
|
50
49
|
├ ● /account 676 B 136 kB
|
|
@@ -59,7 +58,7 @@ Route (pages) Size First Load JS
|
|
|
59
58
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
60
59
|
├ chunks/main-e4e873ee741162eb.js 24.2 kB
|
|
61
60
|
├ chunks/pages/_app-30b9666307e4b3b1.js 12.1 kB
|
|
62
|
-
├ chunks/webpack-
|
|
61
|
+
├ chunks/webpack-6c4b31200fed6646.js 2.22 kB
|
|
63
62
|
└ css/5d1f64b61ea581f4.css 3.05 kB
|
|
64
63
|
|
|
65
64
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
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.676 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 (8 ms)
|
|
6
|
+
✓ should return a valid GraphQL schema contain all expected types (4 ms)
|
|
7
|
+
✓ should return a valid GraphQL schema contain all expected queries (2 ms)
|
|
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 (8 ms)
|
|
11
11
|
Third Party API Extension
|
|
12
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
12
|
+
✓ getTypeDefsFromFolder function should return an Array (17 ms)
|
|
13
13
|
Final Schema after merging
|
|
14
|
-
✓ should return a valid merged GraphQL schema (
|
|
14
|
+
✓ should return a valid merged GraphQL schema (54 ms)
|
|
15
15
|
Envelop
|
|
16
|
-
✓ should exist with its plugins (
|
|
17
|
-
✓ should handle options and execute (
|
|
16
|
+
✓ should exist with its plugins (71 ms)
|
|
17
|
+
✓ should handle options and execute (585 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.77 s
|
|
23
23
|
Ran all test suites.
|
|
@@ -1063,13 +1063,14 @@
|
|
|
1063
1063
|
"icon": {
|
|
1064
1064
|
"title": "Icon",
|
|
1065
1065
|
"type": "string",
|
|
1066
|
-
"enumNames": ["
|
|
1067
|
-
"enum": ["
|
|
1066
|
+
"enumNames": ["Envelope"],
|
|
1067
|
+
"enum": ["Envelope"],
|
|
1068
|
+
"default": "Envelope"
|
|
1068
1069
|
},
|
|
1069
1070
|
"alt": {
|
|
1070
1071
|
"type": "string",
|
|
1071
1072
|
"title": "Alternative Label",
|
|
1072
|
-
"default": "
|
|
1073
|
+
"default": "Envelope"
|
|
1073
1074
|
}
|
|
1074
1075
|
}
|
|
1075
1076
|
},
|
|
@@ -1120,6 +1121,13 @@
|
|
|
1120
1121
|
"type": "boolean",
|
|
1121
1122
|
"default": false
|
|
1122
1123
|
},
|
|
1124
|
+
"colorVariant": {
|
|
1125
|
+
"title": "Color variant",
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"enumNames": ["Main", "Light", "Accent"],
|
|
1128
|
+
"enum": ["main", "light", "accent"],
|
|
1129
|
+
"default": "main"
|
|
1130
|
+
},
|
|
1123
1131
|
"toastSubscribe": {
|
|
1124
1132
|
"title": "Toast Subscribe",
|
|
1125
1133
|
"type": "object",
|
|
@@ -1249,14 +1257,14 @@
|
|
|
1249
1257
|
"icon": {
|
|
1250
1258
|
"title": "Icon",
|
|
1251
1259
|
"type": "string",
|
|
1252
|
-
"enumNames": ["
|
|
1253
|
-
"enum": ["
|
|
1254
|
-
"default": "
|
|
1260
|
+
"enumNames": ["Envelope"],
|
|
1261
|
+
"enum": ["Envelope"],
|
|
1262
|
+
"default": "Envelope"
|
|
1255
1263
|
},
|
|
1256
1264
|
"alt": {
|
|
1257
1265
|
"type": "string",
|
|
1258
1266
|
"title": "Alternative Label",
|
|
1259
|
-
"default": "
|
|
1267
|
+
"default": "Envelope"
|
|
1260
1268
|
}
|
|
1261
1269
|
}
|
|
1262
1270
|
},
|
|
@@ -1302,10 +1310,62 @@
|
|
|
1302
1310
|
"type": "string",
|
|
1303
1311
|
"default": "Loading..."
|
|
1304
1312
|
},
|
|
1305
|
-
"
|
|
1306
|
-
"title": "
|
|
1307
|
-
"type": "
|
|
1308
|
-
"
|
|
1313
|
+
"colorVariant": {
|
|
1314
|
+
"title": "Color variant",
|
|
1315
|
+
"type": "string",
|
|
1316
|
+
"enumNames": ["Main", "Light", "Accent"],
|
|
1317
|
+
"enum": ["main", "light", "accent"],
|
|
1318
|
+
"default": "main"
|
|
1319
|
+
},
|
|
1320
|
+
"toastSubscribe": {
|
|
1321
|
+
"title": "Toast Subscribe",
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"properties": {
|
|
1324
|
+
"title": {
|
|
1325
|
+
"title": "Title",
|
|
1326
|
+
"description": "Message Title",
|
|
1327
|
+
"type": "string",
|
|
1328
|
+
"default": "Hooray!"
|
|
1329
|
+
},
|
|
1330
|
+
"message": {
|
|
1331
|
+
"title": "Message",
|
|
1332
|
+
"description": "Message",
|
|
1333
|
+
"type": "string",
|
|
1334
|
+
"default": "Thank for your subscription."
|
|
1335
|
+
},
|
|
1336
|
+
"icon": {
|
|
1337
|
+
"title": "Icon",
|
|
1338
|
+
"type": "string",
|
|
1339
|
+
"enumNames": ["CircleWavyCheck"],
|
|
1340
|
+
"enum": ["CircleWavyCheck"],
|
|
1341
|
+
"default": "CircleWavyCheck"
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
"toastSubscribeError": {
|
|
1346
|
+
"title": "Toast Subscribe Error",
|
|
1347
|
+
"type": "object",
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"title": {
|
|
1350
|
+
"title": "Title",
|
|
1351
|
+
"description": "Message Title",
|
|
1352
|
+
"type": "string",
|
|
1353
|
+
"default": "Oops."
|
|
1354
|
+
},
|
|
1355
|
+
"message": {
|
|
1356
|
+
"title": "Message",
|
|
1357
|
+
"description": "Message",
|
|
1358
|
+
"type": "string",
|
|
1359
|
+
"default": "Something went wrong. Please Try again."
|
|
1360
|
+
},
|
|
1361
|
+
"icon": {
|
|
1362
|
+
"title": "Icon",
|
|
1363
|
+
"type": "string",
|
|
1364
|
+
"enumNames": ["CircleWavyWarning"],
|
|
1365
|
+
"enum": ["CircleWavyWarning"],
|
|
1366
|
+
"default": "CircleWavyWarning"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1309
1369
|
}
|
|
1310
1370
|
}
|
|
1311
1371
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.68",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"@envelop/parser-cache": "^2.2.0",
|
|
39
39
|
"@envelop/validation-cache": "^2.2.0",
|
|
40
40
|
"@faststore/api": "^2.2.56",
|
|
41
|
-
"@faststore/components": "^2.2.
|
|
41
|
+
"@faststore/components": "^2.2.67",
|
|
42
42
|
"@faststore/graphql-utils": "^2.2.56",
|
|
43
43
|
"@faststore/sdk": "^2.2.61",
|
|
44
|
-
"@faststore/ui": "^2.2.
|
|
44
|
+
"@faststore/ui": "^2.2.67",
|
|
45
45
|
"@graphql-codegen/cli": "^3.3.1",
|
|
46
46
|
"@graphql-codegen/typescript": "^3.0.4",
|
|
47
47
|
"@graphql-codegen/typescript-operations": "^3.0.4",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"node": "18.19.0",
|
|
124
124
|
"yarn": "1.19.1"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "7f7a80acfe28da4f8466d5513411c3a01722e959"
|
|
127
127
|
}
|
|
@@ -9,7 +9,7 @@ function BannerNewsletter({
|
|
|
9
9
|
newsletter,
|
|
10
10
|
}: {
|
|
11
11
|
banner: BannerTextProps
|
|
12
|
-
newsletter: NewsletterProps
|
|
12
|
+
newsletter: Omit<NewsletterProps, 'card'>
|
|
13
13
|
}) {
|
|
14
14
|
return (
|
|
15
15
|
<Section className={`${styles.section} section-banner-newsletter`}>
|
|
@@ -22,6 +22,8 @@ function BannerNewsletter({
|
|
|
22
22
|
colorVariant={banner.colorVariant}
|
|
23
23
|
/>
|
|
24
24
|
<Newsletter
|
|
25
|
+
card
|
|
26
|
+
colorVariant={newsletter.colorVariant}
|
|
25
27
|
title={newsletter.title}
|
|
26
28
|
description={newsletter.description}
|
|
27
29
|
icon={newsletter.icon}
|
|
@@ -30,9 +32,9 @@ function BannerNewsletter({
|
|
|
30
32
|
displayNameInput={newsletter.displayNameInput}
|
|
31
33
|
nameInputLabel={newsletter.nameInputLabel}
|
|
32
34
|
subscribeButtonLabel={newsletter.subscribeButtonLabel}
|
|
35
|
+
subscribeButtonLoadingLabel={newsletter.subscribeButtonLoadingLabel}
|
|
33
36
|
toastSubscribe={newsletter.toastSubscribe}
|
|
34
37
|
toastSubscribeError={newsletter.toastSubscribeError}
|
|
35
|
-
card={newsletter.card}
|
|
36
38
|
/>
|
|
37
39
|
</div>
|
|
38
40
|
</Section>
|
|
@@ -33,26 +33,24 @@ function BannerText({
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<Section className={`${styles.section} section-banner layout__section`}>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
colorVariant
|
|
41
|
-
|
|
36
|
+
<BannerTextWrapper.Component
|
|
37
|
+
{...BannerTextWrapper.props}
|
|
38
|
+
variant={variant ?? BannerTextWrapper.props.variant ?? 'primary'}
|
|
39
|
+
colorVariant={
|
|
40
|
+
colorVariant ?? BannerTextWrapper.props.colorVariant ?? 'main'
|
|
41
|
+
}
|
|
42
|
+
>
|
|
43
|
+
<BannerTextContent.Component
|
|
44
|
+
{...BannerTextContent.props}
|
|
45
|
+
title={title}
|
|
46
|
+
caption={caption}
|
|
47
|
+
link={linkUrl ?? BannerTextContent.props.link}
|
|
48
|
+
linkText={linkText ?? BannerTextContent.props.linkText}
|
|
49
|
+
linkTargetBlank={
|
|
50
|
+
linkTargetBlank ?? BannerTextContent.props.linkTargetBlank
|
|
42
51
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{...BannerTextContent.props}
|
|
46
|
-
title={title}
|
|
47
|
-
caption={caption}
|
|
48
|
-
link={linkUrl ?? BannerTextContent.props.link}
|
|
49
|
-
linkText={linkText ?? BannerTextContent.props.linkText}
|
|
50
|
-
linkTargetBlank={
|
|
51
|
-
linkTargetBlank ?? BannerTextContent.props.linkTargetBlank
|
|
52
|
-
}
|
|
53
|
-
/>
|
|
54
|
-
</BannerTextWrapper.Component>
|
|
55
|
-
</div>
|
|
52
|
+
/>
|
|
53
|
+
</BannerTextWrapper.Component>
|
|
56
54
|
</Section>
|
|
57
55
|
)
|
|
58
56
|
}
|
|
@@ -55,7 +55,9 @@ const Footer = ({
|
|
|
55
55
|
}: FooterProps) => {
|
|
56
56
|
const homeLabel = 'Go to Home'
|
|
57
57
|
return (
|
|
58
|
-
<Section
|
|
58
|
+
<Section
|
|
59
|
+
className={`section ${styles.section} section-footer layout__section`}
|
|
60
|
+
>
|
|
59
61
|
<UIFooter>
|
|
60
62
|
<UIIncentives incentives={incentives} />
|
|
61
63
|
<UIFooterNavigation>
|
|
@@ -1,31 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
NewsletterProps as UINewsletterProps,
|
|
3
|
+
NewsletterAddendumProps as UINewsletterAddendumProps,
|
|
4
|
+
NewsletterFormProps as UINewsletterFormProps,
|
|
5
|
+
NewsletterHeaderProps as UINewsletterHeaderProps,
|
|
6
|
+
} from '@faststore/ui'
|
|
7
|
+
|
|
2
8
|
import UINewsletter from 'src/components/ui/Newsletter'
|
|
3
|
-
import { SubscribeMessage } from 'src/components/ui/Newsletter/Newsletter'
|
|
4
9
|
|
|
5
10
|
import Section from '../Section'
|
|
6
11
|
import styles from './section.module.scss'
|
|
7
12
|
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
type SubscribeMessage = {
|
|
14
|
+
icon: string
|
|
15
|
+
title: string
|
|
16
|
+
message: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface NewsletterProps {
|
|
10
20
|
/**
|
|
11
|
-
*
|
|
21
|
+
* Title for the section.
|
|
12
22
|
*/
|
|
13
|
-
|
|
14
|
-
icon: string
|
|
15
|
-
alt: string
|
|
16
|
-
}
|
|
23
|
+
title: UINewsletterHeaderProps['title']
|
|
17
24
|
/**
|
|
18
|
-
*
|
|
25
|
+
* The card Variant
|
|
19
26
|
*/
|
|
20
|
-
|
|
27
|
+
card?: UINewsletterProps['card']
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the component's color variant combination.
|
|
30
|
+
*/
|
|
31
|
+
colorVariant?: UINewsletterProps['colorVariant']
|
|
21
32
|
/**
|
|
22
33
|
* A description for the section.
|
|
23
34
|
*/
|
|
24
|
-
description?:
|
|
35
|
+
description?: UINewsletterHeaderProps['description']
|
|
25
36
|
/**
|
|
26
37
|
* The Privacy Policy disclaimer.
|
|
27
38
|
*/
|
|
28
|
-
privacyPolicy?:
|
|
39
|
+
privacyPolicy?: UINewsletterAddendumProps['addendum']
|
|
29
40
|
/**
|
|
30
41
|
* The email input label.
|
|
31
42
|
*/
|
|
@@ -34,6 +45,13 @@ export interface NewsletterProps
|
|
|
34
45
|
* The name input visibility.
|
|
35
46
|
*/
|
|
36
47
|
displayNameInput?: boolean
|
|
48
|
+
/**
|
|
49
|
+
* Icon for the section.
|
|
50
|
+
*/
|
|
51
|
+
icon?: {
|
|
52
|
+
alt: string
|
|
53
|
+
icon: string
|
|
54
|
+
}
|
|
37
55
|
/**
|
|
38
56
|
* The name input label.
|
|
39
57
|
*/
|
|
@@ -43,13 +61,17 @@ export interface NewsletterProps
|
|
|
43
61
|
*/
|
|
44
62
|
subscribeButtonLabel?: string
|
|
45
63
|
/**
|
|
46
|
-
* The
|
|
64
|
+
* The subscribe button loading label.
|
|
47
65
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
subscribeButtonLoadingLabel?: string
|
|
67
|
+
/**
|
|
68
|
+
* Toast attributes for successful subscriptions.
|
|
69
|
+
*/
|
|
70
|
+
toastSubscribe?: SubscribeMessage
|
|
71
|
+
/**
|
|
72
|
+
* Toast attributes for unsuccessful subscriptions.
|
|
73
|
+
*/
|
|
74
|
+
toastSubscribeError?: SubscribeMessage
|
|
53
75
|
}
|
|
54
76
|
|
|
55
77
|
const Newsletter = function Newsletter({
|
|
@@ -61,13 +83,15 @@ const Newsletter = function Newsletter({
|
|
|
61
83
|
displayNameInput,
|
|
62
84
|
nameInputLabel,
|
|
63
85
|
subscribeButtonLabel,
|
|
86
|
+
subscribeButtonLoadingLabel,
|
|
64
87
|
card,
|
|
65
88
|
toastSubscribe,
|
|
66
89
|
toastSubscribeError,
|
|
90
|
+
colorVariant,
|
|
67
91
|
...otherProps
|
|
68
92
|
}: NewsletterProps) {
|
|
69
93
|
return (
|
|
70
|
-
<Section className={`${styles.section} section-newsletter`}>
|
|
94
|
+
<Section className={`${styles.section} section-newsletter layout__section`}>
|
|
71
95
|
<UINewsletter
|
|
72
96
|
icon={icon}
|
|
73
97
|
title={title}
|
|
@@ -77,9 +101,11 @@ const Newsletter = function Newsletter({
|
|
|
77
101
|
displayNameInput={displayNameInput}
|
|
78
102
|
nameInputLabel={nameInputLabel}
|
|
79
103
|
subscribeButtonLabel={subscribeButtonLabel}
|
|
104
|
+
subscribeButtonLoadingLabel={subscribeButtonLoadingLabel}
|
|
80
105
|
toastSubscribe={toastSubscribe}
|
|
81
106
|
toastSubscribeError={toastSubscribeError}
|
|
82
107
|
card={card}
|
|
108
|
+
colorVariant={colorVariant}
|
|
83
109
|
{...otherProps}
|
|
84
110
|
/>
|
|
85
111
|
</Section>
|
|
@@ -2,40 +2,57 @@ import {
|
|
|
2
2
|
Button as UIButton,
|
|
3
3
|
InputField as UIInputField,
|
|
4
4
|
Icon as UIIcon,
|
|
5
|
+
Newsletter as UINewsletter,
|
|
6
|
+
NewsletterContent as UINewsletterContent,
|
|
7
|
+
NewsletterForm as UINewsletterForm,
|
|
8
|
+
NewsletterHeader as UINewsletterHeader,
|
|
5
9
|
} from '@faststore/ui'
|
|
6
|
-
|
|
10
|
+
|
|
11
|
+
import { NewsletterAddendum as UINewsletterAddendum } from 'src/components/ui/Newsletter/NewsletterAddendum'
|
|
7
12
|
|
|
8
13
|
import { getSectionOverrides } from 'src/sdk/overrides/overrides'
|
|
9
14
|
import { override } from 'src/customizations/src/components/overrides/Newsletter'
|
|
10
15
|
import type { SectionOverrideDefinition } from 'src/typings/overridesDefinition'
|
|
11
16
|
|
|
12
17
|
const {
|
|
18
|
+
Newsletter,
|
|
19
|
+
NewsletterAddendum,
|
|
20
|
+
NewsletterContent,
|
|
21
|
+
NewsletterForm,
|
|
22
|
+
NewsletterHeader,
|
|
13
23
|
ToastIconSuccess,
|
|
14
24
|
ToastIconError,
|
|
15
25
|
HeaderIcon,
|
|
16
26
|
InputFieldName,
|
|
17
27
|
InputFieldEmail,
|
|
18
28
|
Button,
|
|
19
|
-
__experimentalNewsletterAddendum,
|
|
20
29
|
} = getSectionOverrides(
|
|
21
30
|
{
|
|
31
|
+
Newsletter: UINewsletter,
|
|
32
|
+
NewsletterAddendum: UINewsletterAddendum,
|
|
33
|
+
NewsletterContent: UINewsletterContent,
|
|
34
|
+
NewsletterForm: UINewsletterForm,
|
|
35
|
+
NewsletterHeader: UINewsletterHeader,
|
|
22
36
|
ToastIconSuccess: UIIcon,
|
|
23
37
|
ToastIconError: UIIcon,
|
|
24
38
|
HeaderIcon: UIIcon,
|
|
25
39
|
InputFieldName: UIInputField,
|
|
26
40
|
InputFieldEmail: UIInputField,
|
|
27
41
|
Button: UIButton,
|
|
28
|
-
__experimentalNewsletterAddendum: NewsletterAddendum,
|
|
29
42
|
},
|
|
30
43
|
override as SectionOverrideDefinition<'Newsletter'>
|
|
31
44
|
)
|
|
32
45
|
|
|
33
46
|
export {
|
|
47
|
+
Newsletter,
|
|
48
|
+
NewsletterAddendum,
|
|
49
|
+
NewsletterContent,
|
|
50
|
+
NewsletterForm,
|
|
51
|
+
NewsletterHeader,
|
|
34
52
|
ToastIconSuccess,
|
|
35
53
|
ToastIconError,
|
|
36
54
|
HeaderIcon,
|
|
37
55
|
InputFieldName,
|
|
38
56
|
InputFieldEmail,
|
|
39
57
|
Button,
|
|
40
|
-
__experimentalNewsletterAddendum,
|
|
41
58
|
}
|