@designcrowd/library.brand-page 5.17.23 → 5.17.24-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 (101) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BAarxb6H.js → CreatedOnBrandCrowd-de-de-CWU8xU2K.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-YOx0LzQn.js → CreatedOnBrandCrowd-en-us-BoDkcBrU.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-gFq6vRVt.js → CreatedOnBrandCrowd-es-es-BWOqRfVb.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CALN_e6Y.js → CreatedOnBrandCrowd-fr-ca-CG4z978C.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CALN_e6Y.js → CreatedOnBrandCrowd-fr-fr-CG4z978C.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-GykC2_NN.js → CreatedOnBrandCrowd-pt-br-4HmU2v2R.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-GykC2_NN.js → CreatedOnBrandCrowd-pt-pt-4HmU2v2R.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CU_L-yTx.js → CreatedOnDcom-de-de-CPFtfEgt.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CziJY0nZ.js → CreatedOnDcom-en-us-DQV9NsVn.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-rh_DWPQz.js → CreatedOnDcom-es-es-EhDGIuHJ.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-_MM7Khy3.js → CreatedOnDcom-fr-ca-C_qZjWbX.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DFYKIg6R.js → CreatedOnDcom-fr-fr-DEMhqMGc.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CFxfISCj.js → CreatedOnDcom-pt-br-B6o2lYXf.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-sn-NPNxT.js → CreatedOnDcom-pt-pt-BYRXGUUB.js} +1 -1
  15. package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +6 -2
  16. package/lib/src/brand-page/models/navigation-styles.model.d.ts +2 -0
  17. package/lib/src/brand-page/models/navigation-styles.model.js +6 -0
  18. package/lib/src/brand-page/utils/migration/migration-15.d.ts +2 -0
  19. package/lib/src/brand-page/utils/migration/migration-15.js +3 -0
  20. package/lib/src/brand-page/utils/migration.util.js +6 -0
  21. package/lib/src/brand-page/utils/style.util.js +8 -1
  22. package/lib/src/brand-page/utils/text.util.d.ts +2 -0
  23. package/lib/src/brand-page/utils/text.util.js +17 -1
  24. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +7 -1
  25. package/lib/src/brand-page-maker/models/navigation-style-configs.d.ts +1 -0
  26. package/lib/src/brand-page-maker/models/navigation-style-configs.js +5 -0
  27. package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +1 -0
  28. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +8 -0
  29. package/lib/src/{bundled-translations-Bu_5FO26.js → bundled-translations-Cy6nun02.js} +1 -1
  30. package/lib/src/{bundled-translations.de-DE-CZTzknyj.js → bundled-translations.de-DE-BUZncCAM.js} +1 -1
  31. package/lib/src/{bundled-translations.es-ES-p86F-gOD.js → bundled-translations.es-ES-D4IPwZD-.js} +9 -9
  32. package/lib/src/{bundled-translations.fr-CA-CM5ZA8dQ.js → bundled-translations.fr-CA-BMgRrrwA.js} +9 -9
  33. package/lib/src/{bundled-translations.fr-FR-DV7sOgtb.js → bundled-translations.fr-FR-Ck7kYrK4.js} +1 -1
  34. package/lib/src/{bundled-translations.pt-BR-DkWWGrsz.js → bundled-translations.pt-BR--5_9viJ9.js} +1 -1
  35. package/lib/src/{bundled-translations.pt-PT-C5Td5lLs.js → bundled-translations.pt-PT-DAGUOQ7m.js} +13 -13
  36. package/lib/src/bundles/bundled-translations.de-DE.json +1 -0
  37. package/lib/src/bundles/bundled-translations.es-ES.json +1 -0
  38. package/lib/src/bundles/bundled-translations.fr-CA.json +1 -0
  39. package/lib/src/bundles/bundled-translations.fr-FR.json +1 -0
  40. package/lib/src/bundles/bundled-translations.json +1 -0
  41. package/lib/src/bundles/bundled-translations.pt-BR.json +1 -0
  42. package/lib/src/bundles/bundled-translations.pt-PT.json +1 -0
  43. package/lib/src/css/library.brand-page-brandCrowd.min.css +48 -49
  44. package/lib/src/css/library.brand-page-brandPage.min.css +48 -49
  45. package/lib/src/css/library.brand-page-designCom.min.css +48 -49
  46. package/lib/src/css/library.brand-page-preview.min.css +48 -49
  47. package/lib/src/index.mjs +1 -1
  48. package/lib/src/{lib-BT4J66OZ.js → lib-v80Mpvhi.js} +19542 -19459
  49. package/lib/src/shared/content-settings/components/GenericTextInput.mixin.js +10 -5
  50. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +2 -9
  51. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -0
  52. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +17 -2
  53. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +1 -0
  54. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +5 -0
  55. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +3 -3
  56. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +4 -1
  57. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +55 -2
  58. package/lib/src/shared/navigation-style-settings/store/index.d.ts +6 -0
  59. package/lib/src/shared/navigation-style-settings/store/index.js +21 -0
  60. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +27 -1
  61. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +25 -2
  62. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -0
  63. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +8 -0
  64. package/package.json +1 -1
  65. package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +19 -8
  66. package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +6 -2
  67. package/src/brand-page/models/navigation-styles.model.ts +8 -0
  68. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +15 -3
  69. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -0
  70. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -0
  71. package/src/brand-page/utils/migration/migration-15.ts +7 -0
  72. package/src/brand-page/utils/migration.util.ts +7 -0
  73. package/src/brand-page/utils/style.util.ts +8 -1
  74. package/src/brand-page/utils/text.util.ts +24 -1
  75. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +1 -0
  76. package/src/brand-page-maker/models/i18n/models.de-DE.json +1 -0
  77. package/src/brand-page-maker/models/i18n/models.es-ES.json +1 -0
  78. package/src/brand-page-maker/models/i18n/models.fr-CA.json +1 -0
  79. package/src/brand-page-maker/models/i18n/models.fr-FR.json +1 -0
  80. package/src/brand-page-maker/models/i18n/models.json +1 -0
  81. package/src/brand-page-maker/models/i18n/models.pt-BR.json +1 -0
  82. package/src/brand-page-maker/models/i18n/models.pt-PT.json +1 -0
  83. package/src/brand-page-maker/models/navigation-style-configs.ts +5 -0
  84. package/src/brand-page-maker/utils/rich-text-editor.util.ts +13 -0
  85. package/src/bundles/bundled-translations.de-DE.json +1 -0
  86. package/src/bundles/bundled-translations.es-ES.json +1 -0
  87. package/src/bundles/bundled-translations.fr-CA.json +1 -0
  88. package/src/bundles/bundled-translations.fr-FR.json +1 -0
  89. package/src/bundles/bundled-translations.json +1 -0
  90. package/src/bundles/bundled-translations.pt-BR.json +1 -0
  91. package/src/bundles/bundled-translations.pt-PT.json +1 -0
  92. package/src/shared/content-settings/components/GenericTextInput.mixin.ts +16 -5
  93. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +2 -8
  94. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +29 -4
  95. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +7 -0
  96. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +1 -1
  97. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +3 -3
  98. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +82 -4
  99. package/src/shared/navigation-style-settings/store/index.ts +37 -0
  100. package/src/shared/style-settings/components/StyleSettings.mixin.ts +11 -0
  101. package/src/shared/style-settings/components/StyleSettings.vue +1 -1
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BT4J66OZ.js";
2
+ import { _ as t } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BT4J66OZ.js";
2
+ import { _ as e } from "./lib-v80Mpvhi.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BT4J66OZ.js";
2
+ import { _ as e } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BT4J66OZ.js";
2
+ import { _ as e } from "./lib-v80Mpvhi.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BT4J66OZ.js";
2
+ import { _ as e } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BT4J66OZ.js";
2
+ import { _ as e } from "./lib-v80Mpvhi.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BT4J66OZ.js";
2
+ import { _ as M } from "./lib-v80Mpvhi.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BT4J66OZ.js";
2
+ import { _ as M } from "./lib-v80Mpvhi.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -70,12 +70,16 @@ export default defineComponent({
70
70
  return navItem.relativePath === this.context.currentPageRelativePath;
71
71
  },
72
72
  getSubNavItemStyle(navItem) {
73
- const baseStyle = this.isCurrentPage(navItem)
73
+ const isActive = this.isCurrentPage(navItem);
74
+ const baseStyle = isActive
74
75
  ? this.selectedButtonStyle
75
76
  : this.defaultButtonStyle;
76
77
  return {
77
78
  ...baseStyle,
78
- paddingLeft: '32px', // 16px additional indentation (base is 16px)
79
+ paddingLeft: '32px',
80
+ backgroundColor: isActive
81
+ ? baseStyle.backgroundColor
82
+ : this.styles.hamburgerMenuStyle.subNavBackgroundColor ?? '#ffffff',
79
83
  };
80
84
  },
81
85
  closeSideMenu() {
@@ -5,6 +5,7 @@ export declare class NavigationMenuStyles {
5
5
  defaultButtonStyle: TextStyleDeclaration;
6
6
  selectedButtonStyle: BrandPageCssStyle;
7
7
  iconStyle: BrandPageCssStyle;
8
+ subNavBackgroundColor?: string;
8
9
  constructor(options: Partial<NavigationMenuStyles>, defaultOptions: Partial<NavigationMenuStyles>);
9
10
  }
10
11
  type NavigationStylesOptionType = Partial<Omit<NavigationDesktop | NavigationMobile, 'hamburgerMenuStyle'>> & {
@@ -17,6 +18,7 @@ declare abstract class NavigationStyles implements NavigationMenuStyles {
17
18
  defaultButtonStyle: TextStyleDeclaration;
18
19
  selectedButtonStyle: BrandPageCssStyle;
19
20
  iconStyle: BrandPageCssStyle;
21
+ subNavBackgroundColor?: string;
20
22
  isLogoVisible: boolean;
21
23
  hamburgerMenuStyle: NavigationMenuStyles;
22
24
  viewport: ViewportsType;
@@ -6,10 +6,13 @@ export class NavigationMenuStyles {
6
6
  defaultButtonStyle;
7
7
  selectedButtonStyle;
8
8
  iconStyle;
9
+ subNavBackgroundColor;
9
10
  constructor(options, defaultOptions) {
10
11
  this.defaultButtonStyle = Object.assign({}, defaultOptions.defaultButtonStyle, options.defaultButtonStyle || {});
11
12
  this.selectedButtonStyle = Object.assign({}, defaultOptions.selectedButtonStyle, options.selectedButtonStyle || {});
12
13
  this.iconStyle = Object.assign({}, defaultOptions.iconStyle, options.iconStyle || {});
14
+ this.subNavBackgroundColor =
15
+ options.subNavBackgroundColor ?? defaultOptions.subNavBackgroundColor;
13
16
  }
14
17
  }
15
18
  class NavigationStyles {
@@ -18,6 +21,7 @@ class NavigationStyles {
18
21
  defaultButtonStyle;
19
22
  selectedButtonStyle;
20
23
  iconStyle;
24
+ subNavBackgroundColor;
21
25
  isLogoVisible;
22
26
  hamburgerMenuStyle;
23
27
  viewport;
@@ -55,6 +59,7 @@ class NavigationStyles {
55
59
  borderColor: theme?.primaryColor,
56
60
  }, option?.selectedButtonStyle || {});
57
61
  this.iconStyle = Object.assign({}, option?.iconStyle || {});
62
+ this.subNavBackgroundColor = option?.subNavBackgroundColor;
58
63
  this.isLogoVisible = option?.isLogoVisible || true;
59
64
  this.hamburgerMenuStyle = new NavigationMenuStyles(option?.hamburgerMenuStyle || {}, {
60
65
  defaultButtonStyle: {
@@ -74,6 +79,7 @@ class NavigationStyles {
74
79
  color: theme?.secondaryColor,
75
80
  backgroundColor: theme?.primaryColor,
76
81
  },
82
+ subNavBackgroundColor: theme?.secondaryColor,
77
83
  });
78
84
  }
79
85
  }
@@ -0,0 +1,2 @@
1
+ import type { MigrationData } from '../migration.util';
2
+ export declare const migration15: (migrationResult: MigrationData) => Promise<MigrationData>;
@@ -0,0 +1,3 @@
1
+ export const migration15 = async (migrationResult) => {
2
+ return migrationResult;
3
+ };
@@ -17,6 +17,7 @@ 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
19
  import { migration14 } from './migration/migration-14';
20
+ import { migration15 } from './migration/migration-15';
20
21
  const MIGRATION_TABLE = [
21
22
  {
22
23
  version: 1,
@@ -109,6 +110,11 @@ const MIGRATION_TABLE = [
109
110
  migrateFn: migration14,
110
111
  description: 'Renaming messageTextColor to successMessageStyle on contact form content',
111
112
  },
113
+ {
114
+ version: 15,
115
+ migrateFn: migration15,
116
+ description: 'Set sub nav background color based on default text style color',
117
+ },
112
118
  ];
113
119
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
114
120
  export const migrateBrandPageModel = async (brandPageModel, options) => {
@@ -162,7 +162,14 @@ export const applyLogoThemeToBrandPageNavigationStyles = (logoTheme, navigation)
162
162
  : new NavigationDesktop();
163
163
  for (const [key, value] of Object.entries(navigation)) {
164
164
  if (typeof value === 'string' || typeof value === 'boolean') {
165
- newNavigation[key] = value;
165
+ if (typeof value === 'string') {
166
+ const output = colorMatchCssKeyValue(key, value, logoTheme);
167
+ newNavigation[key] = output.cssValue;
168
+ isModified = isModified || output.isModified;
169
+ }
170
+ else {
171
+ newNavigation[key] = value;
172
+ }
166
173
  }
167
174
  else {
168
175
  const output = applyLogoThemeToBrandPageStyleRecursive(logoTheme, key, value);
@@ -1,3 +1,5 @@
1
1
  export declare const getRenderText: (text: string) => string;
2
2
  export declare const escapeContentText: (text: string | undefined) => string | undefined;
3
+ export declare const decodeHtmlEntities: (text: string) => string;
3
4
  export declare const unescapeContentText: (text: string) => string;
5
+ export declare const encodeContentText: (text: string | undefined) => string | undefined;
@@ -10,6 +10,22 @@ export const escapeContentText = (text) => {
10
10
  .replace(/(<([^>]+)>)/gi, '')
11
11
  .replace(/(\r\n|\r|\n)/g, ESCAPED_NEWLINE_CHARACTER);
12
12
  };
13
+ export const decodeHtmlEntities = (text) => {
14
+ return text
15
+ .replace(/&lt;/g, '<')
16
+ .replace(/&gt;/g, '>')
17
+ .replace(/&amp;/g, '&');
18
+ };
13
19
  export const unescapeContentText = (text) => {
14
- return text.replace(new RegExp(`${ESCAPED_NEWLINE_CHARACTER}`, 'g'), '\n');
20
+ return decodeHtmlEntities(text.replace(new RegExp(`${ESCAPED_NEWLINE_CHARACTER}`, 'g'), '\n'));
21
+ };
22
+ export const encodeContentText = (text) => {
23
+ if (!text) {
24
+ return text;
25
+ }
26
+ return text
27
+ .replace(/&/g, '&amp;')
28
+ .replace(/</g, '&lt;')
29
+ .replace(/>/g, '&gt;')
30
+ .replace(/(\r\n|\r|\n)/g, ESCAPED_NEWLINE_CHARACTER);
15
31
  };
@@ -964,6 +964,12 @@ declare const _default: import("vue").DefineComponent<{}, {
964
964
  style: BrandPageCssStyle;
965
965
  viewport: import("@brand-page").ViewportsType;
966
966
  }): void;
967
+ _setSubNavBackgroundColor({ displayType, section, value, viewport, }: {
968
+ displayType: import("@brand-page").NavigationDisplayType;
969
+ section: "footer" | "header";
970
+ value: string | undefined;
971
+ viewport: import("@brand-page").ViewportsType;
972
+ }): void;
967
973
  _setButtonStyles({ section, defaultButtonStyle, selectedButtonStyle, iconStyle, viewport, }: {
968
974
  section: "footer" | "header";
969
975
  defaultButtonStyle: import("@brand-page").TextStyleDeclaration;
@@ -978,7 +984,7 @@ declare const _default: import("vue").DefineComponent<{}, {
978
984
  }): void;
979
985
  setNavigationStyleOptionValue({ section, option, value, viewport, }: {
980
986
  section: "footer" | "header";
981
- option: "defaultBorderColor" | "selectedBorderColor" | "defaultTextStyle" | "defaultBackgroundColor" | "selectedTextColor" | "selectedBackgroundColor" | "iconColor" | "iconBackgroundColor";
987
+ option: "defaultBorderColor" | "selectedBorderColor" | "subNavBackgroundColor" | "defaultTextStyle" | "defaultBackgroundColor" | "selectedTextColor" | "selectedBackgroundColor" | "iconColor" | "iconBackgroundColor";
982
988
  value: any;
983
989
  viewport: import("@brand-page").ViewportsType;
984
990
  }): void;
@@ -11,6 +11,7 @@ export declare const NavigationStyleConfigOptions: {
11
11
  readonly selectedBackgroundColor: "selectedBackgroundColor";
12
12
  readonly iconColor: "iconColor";
13
13
  readonly iconBackgroundColor: "iconBackgroundColor";
14
+ readonly subNavBackgroundColor: "subNavBackgroundColor";
14
15
  };
15
16
  export type NavigationStyleConfigOption = keyof typeof NavigationStyleConfigOptions;
16
17
  export declare const NAVIGATION_STYLE_CONFIG_OPTION_TITLES: () => Record<NavigationStyleConfigOption, string>;
@@ -10,6 +10,7 @@ export const NavigationStyleConfigOptions = {
10
10
  selectedBackgroundColor: 'selectedBackgroundColor',
11
11
  iconColor: 'iconColor',
12
12
  iconBackgroundColor: 'iconBackgroundColor',
13
+ subNavBackgroundColor: 'subNavBackgroundColor',
13
14
  };
14
15
  export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = () => ({
15
16
  defaultBorderColor: modelsTr('defaultBorderColor'),
@@ -20,6 +21,7 @@ export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = () => ({
20
21
  selectedBackgroundColor: modelsTr('selectedBackgroundColor'),
21
22
  iconColor: commonTr('iconColor'),
22
23
  iconBackgroundColor: modelsTr('iconBackgroundColor'),
24
+ subNavBackgroundColor: modelsTr('subNavBackgroundColor'),
23
25
  });
24
26
  const hamburgerNavigationConfig = {
25
27
  ...defaultHamburgerNavigation,
@@ -29,6 +31,7 @@ const hamburgerNavigationConfig = {
29
31
  'selectedBackgroundColor',
30
32
  'iconColor',
31
33
  'iconBackgroundColor',
34
+ 'subNavBackgroundColor',
32
35
  ],
33
36
  selectedButtonStyle: {},
34
37
  iconStyle: {},
@@ -68,6 +71,7 @@ export const availableNavigationStyleConfigs = [
68
71
  'selectedBackgroundColor',
69
72
  'selectedBorderColor',
70
73
  'selectedTextColor',
74
+ 'subNavBackgroundColor',
71
75
  ],
72
76
  buttonGroupOption: {
73
77
  value: NAVIGATION_DISPLAY.TAB_1,
@@ -104,6 +108,7 @@ export const availableNavigationStyleConfigs = [
104
108
  'defaultBorderColor',
105
109
  'selectedBackgroundColor',
106
110
  'selectedTextColor',
111
+ 'subNavBackgroundColor',
107
112
  ],
108
113
  buttonGroupOption: {
109
114
  value: NAVIGATION_DISPLAY.TAB_2,
@@ -6,6 +6,7 @@ import type { StyleSettingsState } from '@shared/style-settings/store';
6
6
  import type { Mark } from 'prosemirror-model';
7
7
  import { type DOMPurify } from 'dompurify';
8
8
  export declare const RTE_ALLOWED_SECTION_TYPES: string[];
9
+ export declare const isRTEManagedStyleField: (sectionType: string, fieldName: string) => boolean;
9
10
  export declare const isStyleChanged: (tr: Transaction) => boolean;
10
11
  export declare const skipStyleDetection: (chain: ChainedCommands, marks?: Mark[]) => ChainedCommands;
11
12
  export declare const hasRTEContent: (content: string) => boolean;
@@ -55,6 +55,14 @@ export const RTE_ALLOWED_SECTION_TYPES = [
55
55
  ...Object.keys(RTE_SECTION_FIELD_PAIRS),
56
56
  'text',
57
57
  ];
58
+ export const isRTEManagedStyleField = (sectionType, fieldName) => {
59
+ if (sectionType === 'text' && fieldName === 'textStyle')
60
+ return true;
61
+ const pairs = RTE_SECTION_FIELD_PAIRS[sectionType];
62
+ if (!pairs)
63
+ return false;
64
+ return pairs.some((pair) => pair.styleField === fieldName);
65
+ };
58
66
  // Only allow tags used by the enabled Tiptap extensions
59
67
  const allowedTags = [
60
68
  'p',