@designcrowd/library.brand-page 5.17.21 → 5.17.23-ast-subnav

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.
Files changed (121) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Brtp2yWB.js → CreatedOnBrandCrowd-de-de-Ct9Aewoo.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BIJ5VoX4.js → CreatedOnBrandCrowd-en-us-BsEzGp5K.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-JrKK9K0u.js → CreatedOnBrandCrowd-es-es-UiIPmY0h.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-D_HvOZe-.js → CreatedOnBrandCrowd-fr-ca-CQmEXbU7.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-D_HvOZe-.js → CreatedOnBrandCrowd-fr-fr-CQmEXbU7.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-SSLb0vlp.js → CreatedOnBrandCrowd-pt-br-DoMI5QSQ.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-SSLb0vlp.js → CreatedOnBrandCrowd-pt-pt-DoMI5QSQ.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BG39ozFo.js → CreatedOnDcom-de-de-gexV_wWX.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-D2NzqECZ.js → CreatedOnDcom-en-us-C2sLHLjJ.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-C55r2Lb4.js → CreatedOnDcom-es-es-CZFd666H.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-Bj-sAaJI.js → CreatedOnDcom-fr-ca-CPaRB_io.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-D8l0r-Tc.js → CreatedOnDcom-fr-fr-BQo5D5gE.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CXHC6E1h.js → CreatedOnDcom-pt-br-CRr3CqOj.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-2dMvgnyi.js → CreatedOnDcom-pt-pt-DR6Vi-eZ.js} +1 -1
  15. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +1 -1
  16. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +1 -0
  17. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +20 -2
  18. package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.d.ts +8 -1
  19. package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.js +97 -3
  20. package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +6 -2
  21. package/lib/src/brand-page/models/index.d.ts +1 -1
  22. package/lib/src/brand-page/models/navigation-styles.model.d.ts +2 -0
  23. package/lib/src/brand-page/models/navigation-styles.model.js +20 -1
  24. package/lib/src/brand-page/utils/migration/migration-14.d.ts +2 -0
  25. package/lib/src/brand-page/utils/migration/migration-14.js +16 -0
  26. package/lib/src/brand-page/utils/migration/migration-15.d.ts +2 -0
  27. package/lib/src/brand-page/utils/migration/migration-15.js +37 -0
  28. package/lib/src/brand-page/utils/migration.util.js +12 -0
  29. package/lib/src/brand-page/utils/style.util.js +16 -2
  30. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +1 -1
  31. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +1 -1
  32. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.js +1 -1
  33. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +7 -1
  34. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +1 -1
  35. package/lib/src/brand-page-maker/constants/config-settings-constant.js +1 -10
  36. package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +5 -0
  37. package/lib/src/brand-page-maker/models/content-settings.js +3 -0
  38. package/lib/src/brand-page-maker/models/navigation-style-configs.d.ts +1 -0
  39. package/lib/src/brand-page-maker/models/navigation-style-configs.js +5 -0
  40. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +170 -388
  41. package/lib/src/{bundled-translations-Bu_5FO26.js → bundled-translations-Cy6nun02.js} +1 -1
  42. package/lib/src/{bundled-translations.de-DE-CZTzknyj.js → bundled-translations.de-DE-BUZncCAM.js} +1 -1
  43. package/lib/src/{bundled-translations.es-ES-p86F-gOD.js → bundled-translations.es-ES-D4IPwZD-.js} +9 -9
  44. package/lib/src/{bundled-translations.fr-CA-CM5ZA8dQ.js → bundled-translations.fr-CA-BMgRrrwA.js} +9 -9
  45. package/lib/src/{bundled-translations.fr-FR-DV7sOgtb.js → bundled-translations.fr-FR-Ck7kYrK4.js} +1 -1
  46. package/lib/src/{bundled-translations.pt-BR-DkWWGrsz.js → bundled-translations.pt-BR--5_9viJ9.js} +1 -1
  47. package/lib/src/{bundled-translations.pt-PT-C5Td5lLs.js → bundled-translations.pt-PT-DAGUOQ7m.js} +13 -13
  48. package/lib/src/bundles/bundled-translations.de-DE.json +1 -0
  49. package/lib/src/bundles/bundled-translations.es-ES.json +1 -0
  50. package/lib/src/bundles/bundled-translations.fr-CA.json +1 -0
  51. package/lib/src/bundles/bundled-translations.fr-FR.json +1 -0
  52. package/lib/src/bundles/bundled-translations.json +1 -0
  53. package/lib/src/bundles/bundled-translations.pt-BR.json +1 -0
  54. package/lib/src/bundles/bundled-translations.pt-PT.json +1 -0
  55. package/lib/src/css/library.brand-page-brandCrowd.min.css +110 -103
  56. package/lib/src/css/library.brand-page-brandPage.min.css +110 -103
  57. package/lib/src/css/library.brand-page-designCom.min.css +110 -103
  58. package/lib/src/css/library.brand-page-preview.min.css +110 -103
  59. package/lib/src/index.mjs +1 -1
  60. package/lib/src/{lib-CrBvj1a5.js → lib-wvy4koSU.js} +22606 -22689
  61. package/lib/src/metadata-builder/builders/section-field-maps.js +1 -0
  62. package/lib/src/metadata-builder/builders/section-field-utils.js +5 -0
  63. package/lib/src/metadata-builder/helpers/rte.helpers.js +3 -0
  64. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +2 -1
  65. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +4 -1
  66. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +55 -2
  67. package/lib/src/shared/navigation-style-settings/store/index.d.ts +6 -0
  68. package/lib/src/shared/navigation-style-settings/store/index.js +15 -0
  69. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +27 -1
  70. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +25 -2
  71. package/package.json +1 -1
  72. package/src/brand-page/components/about-section/AboutSection.vue +63 -6
  73. package/src/brand-page/components/collapsible/Collapsible.vue +8 -2
  74. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +21 -2
  75. package/src/brand-page/components/contact-form/ContactForm.vue +15 -15
  76. package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +114 -5
  77. package/src/brand-page/components/image-gallery/ImageGalleryModal.vue +25 -8
  78. package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +19 -8
  79. package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +6 -2
  80. package/src/brand-page/components/text-wrapper/TextWrapper.vue +5 -1
  81. package/src/brand-page/models/index.ts +1 -1
  82. package/src/brand-page/models/navigation-styles.model.ts +31 -0
  83. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +15 -3
  84. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -0
  85. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -0
  86. package/src/brand-page/utils/migration/migration-14.ts +23 -0
  87. package/src/brand-page/utils/migration/migration-15.ts +62 -0
  88. package/src/brand-page/utils/migration.util.ts +14 -0
  89. package/src/brand-page/utils/style.util.ts +16 -2
  90. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +1 -1
  91. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.ts +1 -1
  92. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +8 -1
  93. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +1 -1
  94. package/src/brand-page-maker/constants/config-settings-constant.ts +1 -10
  95. package/src/brand-page-maker/models/content-settings-configs.ts +6 -0
  96. package/src/brand-page-maker/models/content-settings.ts +3 -0
  97. package/src/brand-page-maker/models/i18n/models.de-DE.json +1 -0
  98. package/src/brand-page-maker/models/i18n/models.es-ES.json +1 -0
  99. package/src/brand-page-maker/models/i18n/models.fr-CA.json +1 -0
  100. package/src/brand-page-maker/models/i18n/models.fr-FR.json +1 -0
  101. package/src/brand-page-maker/models/i18n/models.json +1 -0
  102. package/src/brand-page-maker/models/i18n/models.pt-BR.json +1 -0
  103. package/src/brand-page-maker/models/i18n/models.pt-PT.json +1 -0
  104. package/src/brand-page-maker/models/navigation-style-configs.ts +5 -0
  105. package/src/brand-page-maker/utils/rich-text-editor.util.ts +274 -684
  106. package/src/bundles/bundled-translations.de-DE.json +1 -0
  107. package/src/bundles/bundled-translations.es-ES.json +1 -0
  108. package/src/bundles/bundled-translations.fr-CA.json +1 -0
  109. package/src/bundles/bundled-translations.fr-FR.json +1 -0
  110. package/src/bundles/bundled-translations.json +1 -0
  111. package/src/bundles/bundled-translations.pt-BR.json +1 -0
  112. package/src/bundles/bundled-translations.pt-PT.json +1 -0
  113. package/src/metadata-builder/builders/section-field-maps.ts +1 -0
  114. package/src/metadata-builder/builders/section-field-utils.ts +5 -0
  115. package/src/metadata-builder/helpers/rte.helpers.ts +4 -0
  116. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +2 -1
  117. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +82 -4
  118. package/src/shared/navigation-style-settings/store/index.ts +30 -0
  119. package/lib/src/brand-page/components/about-section/AboutSection.mixin.d.ts +0 -83
  120. package/lib/src/brand-page/components/about-section/AboutSection.mixin.js +0 -65
  121. package/src/brand-page/components/about-section/AboutSection.mixin.ts +0 -78
@@ -182,6 +182,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
182
182
  "backgroundColor": undefined,
183
183
  "color": undefined,
184
184
  },
185
+ "subNavBackgroundColor": "#ffffff",
185
186
  },
186
187
  "iconStyle": {},
187
188
  "isLogoVisible": true,
@@ -196,6 +197,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
196
197
  "borderTopWidth": "0px",
197
198
  "color": undefined,
198
199
  },
200
+ "subNavBackgroundColor": "#ffffff",
199
201
  "viewport": "desktop",
200
202
  },
201
203
  "navigationStyles": undefined,
@@ -254,6 +256,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
254
256
  "backgroundColor": undefined,
255
257
  "color": undefined,
256
258
  },
259
+ "subNavBackgroundColor": "#ffffff",
257
260
  },
258
261
  "iconStyle": {},
259
262
  "isLogoVisible": true,
@@ -268,6 +271,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
268
271
  "borderTopWidth": "0px",
269
272
  "color": undefined,
270
273
  },
274
+ "subNavBackgroundColor": "#ffffff",
271
275
  "viewport": "desktop",
272
276
  },
273
277
  "navigationStyles": undefined,
@@ -181,6 +181,7 @@ BrandPageModel {
181
181
  "backgroundColor": undefined,
182
182
  "color": undefined,
183
183
  },
184
+ "subNavBackgroundColor": "#ffffff",
184
185
  },
185
186
  "iconStyle": {},
186
187
  "isLogoVisible": true,
@@ -195,6 +196,7 @@ BrandPageModel {
195
196
  "borderTopWidth": "0px",
196
197
  "color": undefined,
197
198
  },
199
+ "subNavBackgroundColor": "#ffffff",
198
200
  "viewport": "desktop",
199
201
  },
200
202
  "navigationStyles": undefined,
@@ -253,6 +255,7 @@ BrandPageModel {
253
255
  "backgroundColor": undefined,
254
256
  "color": undefined,
255
257
  },
258
+ "subNavBackgroundColor": "#ffffff",
256
259
  },
257
260
  "iconStyle": {},
258
261
  "isLogoVisible": true,
@@ -267,6 +270,7 @@ BrandPageModel {
267
270
  "borderTopWidth": "0px",
268
271
  "color": undefined,
269
272
  },
273
+ "subNavBackgroundColor": "#ffffff",
270
274
  "viewport": "desktop",
271
275
  },
272
276
  "navigationStyles": undefined,
@@ -626,6 +630,7 @@ BrandPageModel {
626
630
  "backgroundColor": undefined,
627
631
  "color": undefined,
628
632
  },
633
+ "subNavBackgroundColor": "#ffffff",
629
634
  },
630
635
  "iconStyle": {},
631
636
  "isLogoVisible": true,
@@ -640,6 +645,7 @@ BrandPageModel {
640
645
  "borderTopWidth": "0px",
641
646
  "color": undefined,
642
647
  },
648
+ "subNavBackgroundColor": "#ffffff",
643
649
  "viewport": "desktop",
644
650
  },
645
651
  "navigationStyles": undefined,
@@ -698,6 +704,7 @@ BrandPageModel {
698
704
  "backgroundColor": undefined,
699
705
  "color": undefined,
700
706
  },
707
+ "subNavBackgroundColor": "#ffffff",
701
708
  },
702
709
  "iconStyle": {},
703
710
  "isLogoVisible": true,
@@ -712,6 +719,7 @@ BrandPageModel {
712
719
  "borderTopWidth": "0px",
713
720
  "color": undefined,
714
721
  },
722
+ "subNavBackgroundColor": "#ffffff",
715
723
  "viewport": "desktop",
716
724
  },
717
725
  "navigationStyles": undefined,
@@ -0,0 +1,23 @@
1
+ import type { MigrationData } from '../migration.util';
2
+ import { isContact } from '../model.util';
3
+
4
+ export const migration14 = async (
5
+ migrationResult: MigrationData,
6
+ ): Promise<MigrationData> => {
7
+ const { brandPageModel } = migrationResult;
8
+
9
+ brandPageModel.pages.forEach((page) => {
10
+ page.contents.forEach((content) => {
11
+ if (isContact(content)) {
12
+ const contactForm = content as any;
13
+
14
+ if ('messageTextColor' in contactForm) {
15
+ contactForm.successMessageStyle = contactForm.messageTextColor;
16
+ delete contactForm.messageTextColor;
17
+ }
18
+ }
19
+ });
20
+ });
21
+
22
+ return migrationResult;
23
+ };
@@ -0,0 +1,62 @@
1
+ import { STYLE_THEME_KEYS } from '../../constants';
2
+ import type { MigrationData } from '../migration.util';
3
+
4
+ const DEFAULT_SUB_NAV_BG_COLOR = '#ffffff';
5
+
6
+ const getSubNavBgColorFromTextColor = (
7
+ textColor: string | undefined,
8
+ ): string => {
9
+ if (
10
+ textColor === STYLE_THEME_KEYS.LogoTextColor ||
11
+ textColor === STYLE_THEME_KEYS.LogoTextMultiColor
12
+ ) {
13
+ return STYLE_THEME_KEYS.LogoBackgroundColor;
14
+ }
15
+
16
+ if (
17
+ textColor === STYLE_THEME_KEYS.LogoBackgroundColor ||
18
+ textColor === STYLE_THEME_KEYS.LogoBackgroundMultiColor
19
+ ) {
20
+ return STYLE_THEME_KEYS.LogoTextColor;
21
+ }
22
+
23
+ return DEFAULT_SUB_NAV_BG_COLOR;
24
+ };
25
+
26
+ export const migration15 = async (
27
+ migrationResult: MigrationData,
28
+ ): Promise<MigrationData> => {
29
+ const { brandPageModel } = migrationResult;
30
+
31
+ const navigations = [
32
+ brandPageModel.pageHeaderDesktop?.navigation,
33
+ brandPageModel.pageHeaderMobile?.navigation,
34
+ (brandPageModel as any).headerStyles?.navigation,
35
+ ];
36
+
37
+ for (const nav of navigations) {
38
+ if (!nav) continue;
39
+
40
+ if (
41
+ !nav.subNavBackgroundColor ||
42
+ nav.subNavBackgroundColor === DEFAULT_SUB_NAV_BG_COLOR
43
+ ) {
44
+ nav.subNavBackgroundColor = getSubNavBgColorFromTextColor(
45
+ nav.defaultButtonStyle?.color,
46
+ );
47
+ }
48
+
49
+ if (nav.hamburgerMenuStyle) {
50
+ const hamburgerBg = nav.hamburgerMenuStyle.subNavBackgroundColor;
51
+
52
+ if (!hamburgerBg || hamburgerBg === DEFAULT_SUB_NAV_BG_COLOR) {
53
+ nav.hamburgerMenuStyle.subNavBackgroundColor =
54
+ getSubNavBgColorFromTextColor(
55
+ nav.hamburgerMenuStyle.defaultButtonStyle?.color,
56
+ );
57
+ }
58
+ }
59
+ }
60
+
61
+ return migrationResult;
62
+ };
@@ -16,6 +16,8 @@ import { migration11 } from './migration/migration-11';
16
16
  import { migration12 } from './migration/migration-12';
17
17
  import { migration12_1 } from './migration/migration-12_1';
18
18
  import { migration13 } from './migration/migration-13';
19
+ import { migration14 } from './migration/migration-14';
20
+ import { migration15 } from './migration/migration-15';
19
21
 
20
22
  export interface MigrationData {
21
23
  brandPageModel: BrandPageModel;
@@ -128,6 +130,18 @@ const MIGRATION_TABLE = [
128
130
  migrateFn: migration13,
129
131
  description: 'Migrating old page navigation refererences to use page ids',
130
132
  },
133
+ {
134
+ version: 14,
135
+ migrateFn: migration14,
136
+ description:
137
+ 'Renaming messageTextColor to successMessageStyle on contact form content',
138
+ },
139
+ {
140
+ version: 15,
141
+ migrateFn: migration15,
142
+ description:
143
+ 'Set sub nav background color based on default text style color',
144
+ },
131
145
  ] as MigrationTableItem[];
132
146
 
133
147
  export const GetLatestModelVersion = () =>
@@ -297,7 +297,14 @@ export const applyLogoThemeToBrandPageNavigationStyles = (
297
297
 
298
298
  for (const [key, value] of Object.entries(navigation)) {
299
299
  if (typeof value === 'string' || typeof value === 'boolean') {
300
- newNavigation[key] = value;
300
+ if (typeof value === 'string') {
301
+ const output = colorMatchCssKeyValue(key, value, logoTheme);
302
+
303
+ newNavigation[key] = output.cssValue;
304
+ isModified = isModified || output.isModified;
305
+ } else {
306
+ newNavigation[key] = value;
307
+ }
301
308
  } else {
302
309
  const output = applyLogoThemeToBrandPageStyleRecursive(
303
310
  logoTheme,
@@ -405,7 +412,14 @@ const CONTENT_STYLE_PROP_NAME_SUFFIX = [
405
412
  'Replacements',
406
413
  ];
407
414
 
408
- const RTE_ALLOWED_FIELDS = ['title', 'description', 'text', 'textItems'];
415
+ const RTE_ALLOWED_FIELDS = [
416
+ 'title',
417
+ 'description',
418
+ 'text',
419
+ 'textItems',
420
+ 'paragraph',
421
+ 'successMessage',
422
+ ];
409
423
 
410
424
  export const applyLogoThemeToContents = (
411
425
  logoTheme: LogoTheme,
@@ -1543,7 +1543,7 @@ export const BRAND_SITE_SAMPLE_WITH_LOGO = {
1543
1543
  textStyleType: 'paragraphs',
1544
1544
  applyAutoScale: true,
1545
1545
  },
1546
- messageTextColor: {},
1546
+ successMessageStyle: {},
1547
1547
  },
1548
1548
  ],
1549
1549
  },
@@ -820,7 +820,7 @@ export const BRAND_SITE_TEMPLATE_SAMPLE_2: any[] = [
820
820
  overflowWrap: 'anywhere',
821
821
  wordBreak: 'normal',
822
822
  },
823
- messageTextColor: {},
823
+ successMessageStyle: {},
824
824
  role: 'contact-form',
825
825
  buttonStyles: {
826
826
  style: {
@@ -381,7 +381,7 @@
381
381
  </div>
382
382
  </div>
383
383
  </div>
384
- <div class="tw-relative">
384
+ <div class="tw-relative" :class="{ 'editor-compact': isCompact }">
385
385
  <BubbleMenu
386
386
  :editor="editor"
387
387
  :tippy-options="tippyOptions"
@@ -965,6 +965,9 @@ const {
965
965
  selectedLinkType,
966
966
  );
967
967
 
968
+ const COMPACT_FIELD_NAMES = ['title', 'name'];
969
+ const isCompact = computed(() => COMPACT_FIELD_NAMES.includes(props.name));
970
+
968
971
  const isExternalLink = computed(() => {
969
972
  const href = editor.getAttributes('link').href;
970
973
  return href && (href.startsWith('http://') || href.startsWith('https://'));
@@ -1091,6 +1094,10 @@ const getSlugFromPageIdHref = (href: string): string => {
1091
1094
  @apply tw-max-h-56 tw-overflow-auto;
1092
1095
  }
1093
1096
 
1097
+ .editor-compact ::v-deep .ProseMirror {
1098
+ @apply tw-min-h-24;
1099
+ }
1100
+
1094
1101
  ::v-deep .ProseMirror:focus {
1095
1102
  outline: none;
1096
1103
  }
@@ -656,7 +656,7 @@ export const useRichTextEditor = (
656
656
  selectedTextStyle ?? selectedGlobalTextStyles.value?.style;
657
657
 
658
658
  if (globalStyles) {
659
- globalStyles.fontWeight && toggleBoldAll();
659
+ globalStyles.fontWeight === 'bold' && toggleBoldAll();
660
660
  globalStyles.fontStyle && toggleItalicAll();
661
661
  globalStyles.textDecoration?.includes('underline') &&
662
662
  toggleUnderlineAll();
@@ -2153,6 +2153,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG =
2153
2153
  placeholder: contentSettingsTr(`successMessagePlaceholder`),
2154
2154
  title: contentSettingsTr(`successMessageTitle`),
2155
2155
  groupId: CONTACT_FORM_GROUPS.settings,
2156
+ maxLength: 1000,
2156
2157
  },
2157
2158
  responseEmail: {
2158
2159
  type: 'email',
@@ -2192,16 +2193,6 @@ export const CONTACT_FORM_SETTINGS_CONFIG =
2192
2193
  title: contentSettingsTr(`backgroundColorTitle`),
2193
2194
  valueConvertor: backgroundColorConvertor,
2194
2195
  },
2195
- messageTextColor: {
2196
- type: 'color',
2197
- groupId: CONTACT_FORM_GROUPS.style,
2198
- defaultValue: {},
2199
- isInline: true,
2200
- showToggle: false,
2201
- disableTransparent: true,
2202
- title: contentSettingsTr(`successMessageTextColorTitle`),
2203
- valueConvertor: colorConvertor,
2204
- },
2205
2196
  },
2206
2197
  isEnabled: true,
2207
2198
  isLocked: (features) => !features.canAddContactFormContents,
@@ -148,6 +148,12 @@ export interface ContentSettingsField<TContent> {
148
148
  fieldTypeAssessor?: FieldTypeAssessor<TContent>;
149
149
  defaultGetter?: DefaultGetter<any>;
150
150
  validator?: ContentValidator<TContent>;
151
+
152
+ /**
153
+ * Override the style field name used by the RTE editor.
154
+ * Defaults to `${fieldName}Style` when not specified.
155
+ */
156
+ styleName?: string;
151
157
  }
152
158
 
153
159
  export interface ContentSettingsMultiField<TContent, TField>
@@ -537,6 +537,9 @@ export const createInitialContactFormContent: CreateInitialContentFunction<
537
537
  textStyleType: TEXT_STYLE_TYPES.paragraphs,
538
538
  textAlign: 'center',
539
539
  },
540
+ successMessageStyle: {
541
+ textStyleType: TEXT_STYLE_TYPES.paragraphs,
542
+ },
540
543
  buttonTextStyle: {
541
544
  applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
542
545
  textStyleType: TEXT_STYLE_TYPES.buttons,
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Ausgewählte Textfarbe",
9
9
  "iconColor" : "Symbolfarbe",
10
10
  "iconBackgroundColor" : "Symbolhintergrundfarbe",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "Alle",
12
13
  "generalDisplayName" : "Allgemein",
13
14
  "socialLinksDisplayName" : "Social Media",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Color de texto seleccionado",
9
9
  "iconColor" : "Color del icono",
10
10
  "iconBackgroundColor" : "Color de fondo del icono",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "Todo",
12
13
  "generalDisplayName" : "General",
13
14
  "socialLinksDisplayName" : "Redes sociales",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Couleur de texte sélectionnée",
9
9
  "iconColor" : "Couleur de l'icône",
10
10
  "iconBackgroundColor" : "Couleur d’arrière-plan de l’icône",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "Tous",
12
13
  "generalDisplayName" : "Général",
13
14
  "socialLinksDisplayName" : "Réseaux sociaux",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Couleur de texte sélectionnée",
9
9
  "iconColor" : "Couleur de l'icône",
10
10
  "iconBackgroundColor" : "Couleur d’arrière-plan de l’icône",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "Tous",
12
13
  "generalDisplayName" : "Général",
13
14
  "socialLinksDisplayName" : "Réseaux sociaux",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor": "Selected text color",
9
9
  "iconColor": "Icon color",
10
10
  "iconBackgroundColor": "Icon background color",
11
+ "subNavBackgroundColor": "Sub nav background color",
11
12
 
12
13
  "allDisplayName": "all",
13
14
  "generalDisplayName": "General",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Cor do texto selecionado",
9
9
  "iconColor" : "Cor do ícone",
10
10
  "iconBackgroundColor" : "Cor de fundo do ícone",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "tudo",
12
13
  "generalDisplayName" : "Geral",
13
14
  "socialLinksDisplayName" : "Redes sociais",
@@ -8,6 +8,7 @@
8
8
  "selectedTextColor" : "Cor do texto selecionado",
9
9
  "iconColor" : "Cor do ícone",
10
10
  "iconBackgroundColor" : "Cor de fundo do ícone",
11
+ "subNavBackgroundColor" : "Sub nav background color",
11
12
  "allDisplayName" : "Tudo",
12
13
  "generalDisplayName" : "Geral",
13
14
  "socialLinksDisplayName" : "Redes sociais",
@@ -25,6 +25,7 @@ export const NavigationStyleConfigOptions = {
25
25
  selectedBackgroundColor: 'selectedBackgroundColor',
26
26
  iconColor: 'iconColor',
27
27
  iconBackgroundColor: 'iconBackgroundColor',
28
+ subNavBackgroundColor: 'subNavBackgroundColor',
28
29
  } as const;
29
30
 
30
31
  export type NavigationStyleConfigOption =
@@ -42,6 +43,7 @@ export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = (): Record<
42
43
  selectedBackgroundColor: modelsTr('selectedBackgroundColor'),
43
44
  iconColor: commonTr('iconColor'),
44
45
  iconBackgroundColor: modelsTr('iconBackgroundColor'),
46
+ subNavBackgroundColor: modelsTr('subNavBackgroundColor'),
45
47
  });
46
48
 
47
49
  export interface NavigationStyleConfig
@@ -61,6 +63,7 @@ const hamburgerNavigationConfig: NavigationStyleConfig = {
61
63
  'selectedBackgroundColor',
62
64
  'iconColor',
63
65
  'iconBackgroundColor',
66
+ 'subNavBackgroundColor',
64
67
  ],
65
68
  selectedButtonStyle: {},
66
69
  iconStyle: {},
@@ -101,6 +104,7 @@ export const availableNavigationStyleConfigs: NavigationStyleConfig[] = [
101
104
  'selectedBackgroundColor',
102
105
  'selectedBorderColor',
103
106
  'selectedTextColor',
107
+ 'subNavBackgroundColor',
104
108
  ],
105
109
  buttonGroupOption: {
106
110
  value: NAVIGATION_DISPLAY.TAB_1,
@@ -137,6 +141,7 @@ export const availableNavigationStyleConfigs: NavigationStyleConfig[] = [
137
141
  'defaultBorderColor',
138
142
  'selectedBackgroundColor',
139
143
  'selectedTextColor',
144
+ 'subNavBackgroundColor',
140
145
  ],
141
146
  buttonGroupOption: {
142
147
  value: NAVIGATION_DISPLAY.TAB_2,