@designcrowd/library.brand-page 5.14.4 → 5.14.5
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/lib/src/{CreatedOnBrandCrowd-de-de-CfdcCETj.js → CreatedOnBrandCrowd-de-de-tTFTa20I.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-B_56DZGh.js → CreatedOnBrandCrowd-en-us-CFjAtUB7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CGmiq9qm.js → CreatedOnBrandCrowd-es-es-CCbPO5EX.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DazW0rLQ.js → CreatedOnBrandCrowd-fr-fr-vj8agtZJ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BgB4Sy8I.js → CreatedOnBrandCrowd-pt-pt-BBbKXb-v.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CTCY2_wC.js → CreatedOnDcom-de-de-DSIsTnvI.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CyEVlWGN.js → CreatedOnDcom-en-us-BjGcn0TZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DPwnWgQl.js → CreatedOnDcom-es-es-VY1wFSD_.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-VZtFUE3z.js → CreatedOnDcom-fr-fr-BKc4gdFc.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B0K2eelS.js → CreatedOnDcom-pt-pt-Cxl_q80E.js} +1 -1
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +2 -3
- package/lib/src/brand-page/components/mailing-list/MailingList.stories.js +2 -2
- package/lib/src/brand-page/constants/misc.constants.d.ts +0 -1
- package/lib/src/brand-page/constants/misc.constants.js +0 -1
- package/lib/src/brand-page-maker/models/content-settings.js +1 -1
- package/lib/src/{bundled-translations-CZWbHUvK.js → bundled-translations-Cywcg_sz.js} +1 -1
- package/lib/src/{bundled-translations.de-DE-CJEfFSdX.js → bundled-translations.de-DE-BbDTbyhB.js} +1 -1
- package/lib/src/{bundled-translations.es-ES-ZPQF8MP5.js → bundled-translations.es-ES-Byj3a6gQ.js} +1 -1
- package/lib/src/{bundled-translations.fr-CA-CxW1dRgb.js → bundled-translations.fr-CA-CpMBjlzD.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-CEsuEZjm.js → bundled-translations.fr-FR-gGp2KrN5.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-CtxSb7a5.js → bundled-translations.pt-BR-CGG0pI4w.js} +9 -9
- package/lib/src/{bundled-translations.pt-PT-BBDakRsv.js → bundled-translations.pt-PT-n8EsEX5u.js} +1 -1
- package/lib/src/bundles/bundled-translations.de-DE.json +1 -0
- package/lib/src/bundles/bundled-translations.es-ES.json +1 -0
- package/lib/src/bundles/bundled-translations.fr-CA.json +1 -0
- package/lib/src/bundles/bundled-translations.fr-FR.json +1 -0
- package/lib/src/bundles/bundled-translations.json +1 -0
- package/lib/src/bundles/bundled-translations.pt-BR.json +1 -0
- package/lib/src/bundles/bundled-translations.pt-PT.json +1 -0
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-DWjLXguh.js → lib-CZoxhX8G.js} +4615 -4615
- package/package.json +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +7 -3
- package/src/brand-page/components/mailing-list/MailingList.stories.ts +2 -2
- package/src/brand-page/constants/misc.constants.ts +0 -2
- package/src/brand-page-maker/models/content-settings.ts +1 -1
- package/src/bundles/bundled-translations.de-DE.json +1 -0
- package/src/bundles/bundled-translations.es-ES.json +1 -0
- package/src/bundles/bundled-translations.fr-CA.json +1 -0
- package/src/bundles/bundled-translations.fr-FR.json +1 -0
- package/src/bundles/bundled-translations.json +1 -0
- package/src/bundles/bundled-translations.pt-BR.json +1 -0
- package/src/bundles/bundled-translations.pt-PT.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +1 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +1 -0
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
import { DEFAULT_MAILING_LIST_BUTTON_TEXT } from '../../constants';
|
|
4
3
|
import type { MailingListViewModel } from '../../view-models';
|
|
5
4
|
import brandPageClient from '../../clients/brand-page.client';
|
|
6
5
|
import { getEmailValidationError } from '../../utils';
|
|
7
6
|
import type { BrandPageContext } from '../../models';
|
|
8
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
contentSettingsTr,
|
|
9
|
+
mailingListTr,
|
|
10
|
+
} from '../../../composables/useTranslate';
|
|
9
11
|
|
|
10
12
|
const MAX_NAME_LENGTH = 200;
|
|
11
13
|
|
|
@@ -84,7 +86,9 @@ export default defineComponent({
|
|
|
84
86
|
},
|
|
85
87
|
|
|
86
88
|
buttonText(): string {
|
|
87
|
-
return
|
|
89
|
+
return (
|
|
90
|
+
this.viewModel?.buttonText || contentSettingsTr('subscribePlaceholder')
|
|
91
|
+
);
|
|
88
92
|
},
|
|
89
93
|
|
|
90
94
|
containerStyle(): BrandPageCssStyle {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { faker } from '@faker-js/faker';
|
|
3
3
|
import { mockApiCalls } from '../../../brand-page-maker/components/brand-page-maker/mock-api-calls';
|
|
4
|
-
import {
|
|
4
|
+
import { DEFAULT_TEXT_ALIGN } from '../../constants';
|
|
5
5
|
import type { MailingListContent } from '../../models';
|
|
6
6
|
import MailingList from './MailingList.vue';
|
|
7
7
|
import { context } from '../../__fixtures__/brand-page-sample-data';
|
|
@@ -15,7 +15,7 @@ const bpData: MailingListContent = {
|
|
|
15
15
|
type: 'mailing-list',
|
|
16
16
|
acceptedFields: undefined,
|
|
17
17
|
promptText: 'You want some mails?',
|
|
18
|
-
buttonText:
|
|
18
|
+
buttonText: 'Subscribe',
|
|
19
19
|
titleStyle: {
|
|
20
20
|
textAlign: DEFAULT_TEXT_ALIGN,
|
|
21
21
|
},
|
|
@@ -6,8 +6,6 @@ export const DEFAULT_CURRENCY_CODE = 'USD';
|
|
|
6
6
|
export const DEFAULT_LOGO_TEXT_COLOR_RGB = 'rgb(0,0,0)';
|
|
7
7
|
export const DEFAULT_LOGO_BACKGROUND_COLOR_RGB = 'rgb(255,255,255)';
|
|
8
8
|
|
|
9
|
-
export const DEFAULT_MAILING_LIST_BUTTON_TEXT = 'Subscribe';
|
|
10
|
-
|
|
11
9
|
export const DISPLAY_STYLE_PREVIEW = 'preview';
|
|
12
10
|
export const DISPLAY_STYLE_COLLAPSED = 'collapsed';
|
|
13
11
|
|
|
@@ -146,7 +146,7 @@ export const createInitialProfileContent = (
|
|
|
146
146
|
id: uuid.v4(),
|
|
147
147
|
description: contentSettingsTr(`defaultDescription`),
|
|
148
148
|
avatarImageUrl: '',
|
|
149
|
-
name:
|
|
149
|
+
name: contentSettingsTr(`nameTitle`),
|
|
150
150
|
title: contentSettingsTr(`titleTitle`),
|
|
151
151
|
type: 'profile',
|
|
152
152
|
backgroundColor: {},
|