@designcrowd/library.brand-page 6.2.2 → 6.2.3-ast-faq

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 (147) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-7P2gNr-R.js → CreatedOnBrandCrowd-de-de-BRisMzFY.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Dl7BymW6.js → CreatedOnBrandCrowd-en-us-CDDsL9GX.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CO4FvWVw.js → CreatedOnBrandCrowd-es-es-BkZrEo4j.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DHNqakQu.js → CreatedOnBrandCrowd-fr-ca-sx_ury7R.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DHNqakQu.js → CreatedOnBrandCrowd-fr-fr-sx_ury7R.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-br-DCWiAfkU.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-pt-DCWiAfkU.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-Dvds-Vmy.js → CreatedOnDcom-de-de-C1S7f22L.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-fd3C-8Tp.js → CreatedOnDcom-en-us-DgTlWaXE.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DTXZW35-.js → CreatedOnDcom-es-es-CxSQJe_V.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DRCYOKPs.js → CreatedOnDcom-fr-ca-Bbam2tt6.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DpIB8x2x.js → CreatedOnDcom-fr-fr-Cb0XDRPL.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-Esnxy8wX.js → CreatedOnDcom-pt-br-BjdX3-E3.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CaiVHFXR.js → CreatedOnDcom-pt-pt-BXpbfopB.js} +1 -1
  15. package/lib/src/brand-page/constants/misc.constants.d.ts +8 -0
  16. package/lib/src/brand-page/constants/misc.constants.js +7 -0
  17. package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
  18. package/lib/src/brand-page/constants/styles.constants.js +2 -0
  19. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  20. package/lib/src/brand-page/models/brand-page-context.model.js +0 -12
  21. package/lib/src/brand-page/models/content.model.d.ts +1 -0
  22. package/lib/src/brand-page/models/content.model.js +1 -0
  23. package/lib/src/brand-page/models/index.d.ts +19 -0
  24. package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
  25. package/lib/src/brand-page/utils/content-callback-util.js +3 -0
  26. package/lib/src/brand-page/utils/model.util.d.ts +2 -1
  27. package/lib/src/brand-page/utils/model.util.js +3 -0
  28. package/lib/src/brand-page/utils/view-model.util.d.ts +2 -0
  29. package/lib/src/brand-page/utils/view-model.util.js +24 -0
  30. package/lib/src/brand-page/view-models.d.ts +9 -2
  31. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -1
  32. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +0 -9
  33. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +10 -42
  34. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +10 -42
  35. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -14
  36. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -42
  37. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -42
  38. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -42
  39. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -42
  40. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -42
  41. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -42
  42. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +13 -0
  43. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +64 -30
  44. package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
  45. package/lib/src/brand-page-maker/constants/config-settings-constant.js +101 -2
  46. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
  47. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +47 -0
  48. package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +22 -1
  49. package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
  50. package/lib/src/brand-page-maker/models/content-settings.d.ts +4 -1
  51. package/lib/src/brand-page-maker/models/content-settings.js +45 -1
  52. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -42
  53. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -0
  54. package/lib/src/brand-page-maker/utils/apply-color-strategy.js +47 -17
  55. package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +6 -0
  56. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +24 -1
  57. package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
  58. package/lib/src/bundled-translations-DY9YvuL-.js +179 -0
  59. package/lib/src/bundles/bundled-translations.json +20 -2
  60. package/lib/src/composables/useTranslate.d.ts +1 -1
  61. package/lib/src/composables/useTranslate.js +1 -1
  62. package/lib/src/css/library.brand-page-brandCrowd.min.css +143 -36
  63. package/lib/src/css/library.brand-page-brandPage.min.css +143 -36
  64. package/lib/src/css/library.brand-page-designCom.min.css +143 -36
  65. package/lib/src/css/library.brand-page-preview.min.css +143 -36
  66. package/lib/src/index.mjs +159 -158
  67. package/lib/src/{lib-V7aqfuiB.js → lib-DwpSAbLZ.js} +26889 -26178
  68. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
  69. package/lib/src/shared/color-strategies/color-strategies.js +4 -0
  70. package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +12 -0
  71. package/lib/src/shared/color-strategies/rte-field-pairs.js +10 -0
  72. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +10 -0
  73. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +11 -1
  74. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +10 -0
  75. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +10 -0
  76. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +10 -0
  77. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +14 -1
  78. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +11 -1
  79. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -42
  80. package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +12 -0
  81. package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.js +5 -0
  82. package/lib/src/shared/content-settings/models.d.ts +6 -0
  83. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +14 -1
  84. package/lib/src/shared/content-settings/store/content-settings-store.js +24 -2
  85. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -42
  86. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +10 -42
  87. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +10 -42
  88. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -56
  89. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -42
  90. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -42
  91. package/package.json +2 -2
  92. package/src/brand-page/components/faq-section/FaqSection.test.ts +292 -0
  93. package/src/brand-page/components/faq-section/FaqSection.vue +299 -0
  94. package/src/brand-page/components/page/PageComponent.vue +2 -0
  95. package/src/brand-page/components/section-heading/SectionHeading.vue +52 -0
  96. package/src/brand-page/components/text-wrapper/TextWrapper.test.ts +33 -0
  97. package/src/brand-page/constants/misc.constants.ts +12 -0
  98. package/src/brand-page/constants/styles.constants.ts +2 -0
  99. package/src/brand-page/models/brand-page-context.model.ts +0 -23
  100. package/src/brand-page/models/content.model.ts +1 -0
  101. package/src/brand-page/models/index.ts +21 -0
  102. package/src/brand-page/utils/content-callback-util.ts +5 -0
  103. package/src/brand-page/utils/model.util.ts +7 -0
  104. package/src/brand-page/utils/view-model.util.test.ts +96 -0
  105. package/src/brand-page/utils/view-model.util.ts +49 -0
  106. package/src/brand-page/view-models.ts +12 -1
  107. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +0 -10
  108. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.test.ts +8 -49
  109. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -1
  110. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.test.ts +165 -0
  111. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +37 -49
  112. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +87 -30
  113. package/src/brand-page-maker/constants/config-settings-constant.ts +108 -0
  114. package/src/brand-page-maker/constants/faq-section-config.test.ts +151 -0
  115. package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +59 -0
  116. package/src/brand-page-maker/convertors/i18n/converter.json +4 -1
  117. package/src/brand-page-maker/models/content-settings-configs.ts +24 -0
  118. package/src/brand-page-maker/models/content-settings.ts +57 -0
  119. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +2 -0
  120. package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +4063 -895
  121. package/src/brand-page-maker/utils/apply-color-strategy.test.ts +104 -2
  122. package/src/brand-page-maker/utils/apply-color-strategy.ts +77 -19
  123. package/src/brand-page-maker/utils/rich-text-editor.util.test.ts +110 -0
  124. package/src/brand-page-maker/utils/rich-text-editor.util.ts +66 -0
  125. package/src/brand-page-maker/validators/field.validator.ts +2 -0
  126. package/src/bundles/bundled-translations.json +20 -2
  127. package/src/composables/useTranslate.ts +2 -1
  128. package/src/metadata-builder/builders/item-id-utils.test.ts +24 -0
  129. package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
  130. package/src/metadata-builder/parsers/section-tool-map.test.ts +12 -0
  131. package/src/shared/color-strategies/color-strategies.ts +4 -0
  132. package/src/shared/color-strategies/rte-field-pairs.ts +23 -0
  133. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +17 -1
  134. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +3 -0
  135. package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +11 -1
  136. package/src/shared/content-settings/components/items-field/ItemsField.vue +8 -2
  137. package/src/shared/content-settings/components/list-items-field/ListItemsField.test.ts +429 -0
  138. package/src/shared/content-settings/components/list-items-field/ListItemsField.vue +262 -0
  139. package/src/shared/content-settings/components/textarea-field/TextareaField.mixin.ts +6 -0
  140. package/src/shared/content-settings/components/textarea-field/TextareaField.vue +1 -0
  141. package/src/shared/content-settings/models.ts +7 -0
  142. package/src/shared/content-settings/store/content-settings-store.test.ts +70 -0
  143. package/src/shared/content-settings/store/content-settings-store.ts +37 -3
  144. package/src/shared/ecommerce-settings/util/refreshDuplicatedMetadata.test.ts +19 -0
  145. package/src/shared/page-settings/store/page-settings-store.test.ts +0 -71
  146. package/src/utils/minify-brand-page-metadata.test.ts +35 -0
  147. package/lib/src/bundled-translations-BYUfWBT3.js +0 -179
@@ -1,4 +1,4 @@
1
- import type { AddContentOption, ContentItem, ContentItemFieldSettings, ContentSettingsItemGroupState, ContentSettingsItemState, SetItemSettingsFieldErrorMessagePayload, UpdateItemValuePayload, UpdateMultipleItemValuesPayload, ValidateItemPayload } from '../models';
1
+ import type { AddContentOption, ContentItem, ContentItemFieldSettings, ContentSettingsItemGroupState, ContentSettingsItemState, SetItemSettingsFieldErrorMessagePayload, UpdateItemValuePayload, UpdateMultipleItemValuesPayload, RteItemStyleTarget, ValidateItemPayload } from '../models';
2
2
  import type { ColorReplacement, Content } from '@brand-page';
3
3
  import type { UIEventSource } from '../../models';
4
4
  import type { ContentSettingsConfig, ItemCategory } from '@brand-page-maker/models';
@@ -28,6 +28,8 @@ export interface ContentSettingsState {
28
28
  selectedItemValue: string | null;
29
29
  selectedItemIndex: number | null;
30
30
  activeCategoryTab: ItemCategory;
31
+ /** Content id → the list item its settings panel has open; the maker canvas opens it too. UI-only, never saved. */
32
+ activeItemIdByContentId: Record<string, string | undefined>;
31
33
  }
32
34
  export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<"uiContentSettings", ContentSettingsState, {
33
35
  contentErrorCount(): number;
@@ -81,6 +83,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
81
83
  selectedItemValue: string | null;
82
84
  selectedItemIndex: number | null;
83
85
  activeCategoryTab: ItemCategory;
86
+ activeItemIdByContentId: Record<string, string | undefined>;
84
87
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => Content | undefined;
85
88
  getFieldSettings(state: {
86
89
  addContentOptions: {
@@ -132,6 +135,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
132
135
  selectedItemValue: string | null;
133
136
  selectedItemIndex: number | null;
134
137
  activeCategoryTab: ItemCategory;
138
+ activeItemIdByContentId: Record<string, string | undefined>;
135
139
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string, fieldName: string) => ContentItemFieldSettings | undefined;
136
140
  getItem(state: {
137
141
  addContentOptions: {
@@ -183,6 +187,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
183
187
  selectedItemValue: string | null;
184
188
  selectedItemIndex: number | null;
185
189
  activeCategoryTab: ItemCategory;
190
+ activeItemIdByContentId: Record<string, string | undefined>;
186
191
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
187
192
  getValue(state: {
188
193
  addContentOptions: {
@@ -234,6 +239,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
234
239
  selectedItemValue: string | null;
235
240
  selectedItemIndex: number | null;
236
241
  activeCategoryTab: ItemCategory;
242
+ activeItemIdByContentId: Record<string, string | undefined>;
237
243
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
238
244
  getItemState(state: {
239
245
  addContentOptions: {
@@ -285,6 +291,7 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
285
291
  selectedItemValue: string | null;
286
292
  selectedItemIndex: number | null;
287
293
  activeCategoryTab: ItemCategory;
294
+ activeItemIdByContentId: Record<string, string | undefined>;
288
295
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string) => ContentSettingsItemState;
289
296
  getItemGroupState(state: {
290
297
  addContentOptions: {
@@ -336,11 +343,13 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
336
343
  selectedItemValue: string | null;
337
344
  selectedItemIndex: number | null;
338
345
  activeCategoryTab: ItemCategory;
346
+ activeItemIdByContentId: Record<string, string | undefined>;
339
347
  } & import("pinia").PiniaCustomStateProperties<ContentSettingsState>): (id: string, groupId: string) => ContentSettingsItemGroupState;
340
348
  mode(): ContentSettingsMode;
341
349
  selectedItem(): ContentItem<any> | undefined;
342
350
  selectedItemTemplate(): ContentSettingsConfig<any> | undefined;
343
351
  }, {
352
+ setActiveItem(contentId: string, itemId: string | undefined): void;
344
353
  onContentChanged(): void;
345
354
  _addItem({ item, index, }: {
346
355
  item: ContentItem<any>;
@@ -404,6 +413,10 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
404
413
  }): void;
405
414
  updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: UpdateMultipleItemValuesPayload<any>): void;
406
415
  updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: UpdateMultipleItemValuesPayload<any>): void;
416
+ /** Merge into the style of one list item, e.g. `items[2].questionStyle`. */
417
+ updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<UpdateMultipleItemValuesPayload<any>, "index"> & {
418
+ target: RteItemStyleTarget;
419
+ }): void;
407
420
  _setActiveCategoryTab({ activeCategoryTab, }: {
408
421
  activeCategoryTab: ItemCategory;
409
422
  }): void;
@@ -55,8 +55,15 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
55
55
  selectedItemIndex: null,
56
56
  selectedItemValue: null,
57
57
  activeCategoryTab: 'all',
58
+ activeItemIdByContentId: {},
58
59
  }),
59
60
  actions: {
61
+ setActiveItem(contentId, itemId) {
62
+ this.activeItemIdByContentId = {
63
+ ...this.activeItemIdByContentId,
64
+ [contentId]: itemId,
65
+ };
66
+ },
60
67
  onContentChanged() {
61
68
  const uiStore = useUiStore();
62
69
  uiStore.onContentChanged();
@@ -316,12 +323,27 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
316
323
  this.onContentChanged();
317
324
  },
318
325
  updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }) {
326
+ this.updateListItemTextStyles({
327
+ id,
328
+ name,
329
+ value,
330
+ isHydrationWrite,
331
+ target: {
332
+ itemsField: 'textItems',
333
+ index: index,
334
+ styleField: 'textStyle',
335
+ },
336
+ });
337
+ },
338
+ /** Merge into the style of one list item, e.g. `items[2].questionStyle`. */
339
+ updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }) {
319
340
  const item = this.items.find((i) => i.id === id);
320
- if (!item) {
341
+ const listItem = item?.settings.content[target.itemsField]?.[target.index];
342
+ if (!item || !listItem) {
321
343
  return;
322
344
  }
323
345
  armHistoryMergeForHydrationWrite(isHydrationWrite);
324
- item.settings.content.textItems[index].textStyle = vueDeepMerge(item.settings.content.textItems[index].textStyle, value);
346
+ listItem[target.styleField] = vueDeepMerge(listItem[target.styleField], value);
325
347
  this.validateItem({ id, name });
326
348
  this.onContentChanged();
327
349
  },
@@ -387,20 +387,6 @@ declare const _default: import("vue").DefineComponent<{}, {
387
387
  isVariation: boolean;
388
388
  isExcluded: boolean;
389
389
  } | undefined;
390
- bp_5873_live_preview_prepurchase?: {
391
- key: string;
392
- value: string;
393
- isControl: boolean;
394
- isVariation: boolean;
395
- isExcluded: boolean;
396
- } | undefined;
397
- bp_5873_live_preview_postpurchase?: {
398
- key: string;
399
- value: string;
400
- isControl: boolean;
401
- isVariation: boolean;
402
- isExcluded: boolean;
403
- } | undefined;
404
390
  };
405
391
  isSubsequentPublish: boolean;
406
392
  isContextualUpgradeModalVisible: boolean;
@@ -476,20 +462,6 @@ declare const _default: import("vue").DefineComponent<{}, {
476
462
  isVariation: boolean;
477
463
  isExcluded: boolean;
478
464
  } | undefined;
479
- bp_5873_live_preview_prepurchase?: {
480
- key: string;
481
- value: string;
482
- isControl: boolean;
483
- isVariation: boolean;
484
- isExcluded: boolean;
485
- } | undefined;
486
- bp_5873_live_preview_postpurchase?: {
487
- key: string;
488
- value: string;
489
- isControl: boolean;
490
- isVariation: boolean;
491
- isExcluded: boolean;
492
- } | undefined;
493
465
  };
494
466
  isSubsequentPublish: boolean;
495
467
  isContextualUpgradeModalVisible: boolean;
@@ -565,20 +537,6 @@ declare const _default: import("vue").DefineComponent<{}, {
565
537
  isVariation: boolean;
566
538
  isExcluded: boolean;
567
539
  } | undefined;
568
- bp_5873_live_preview_prepurchase?: {
569
- key: string;
570
- value: string;
571
- isControl: boolean;
572
- isVariation: boolean;
573
- isExcluded: boolean;
574
- } | undefined;
575
- bp_5873_live_preview_postpurchase?: {
576
- key: string;
577
- value: string;
578
- isControl: boolean;
579
- isVariation: boolean;
580
- isExcluded: boolean;
581
- } | undefined;
582
540
  };
583
541
  isSubsequentPublish: boolean;
584
542
  isContextualUpgradeModalVisible: boolean;
@@ -4296,6 +4296,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4296
4296
  selectedItemValue: string | null;
4297
4297
  selectedItemIndex: number | null;
4298
4298
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4299
+ activeItemIdByContentId: Record<string, string | undefined>;
4299
4300
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => Content | undefined;
4300
4301
  getFieldSettings(state: {
4301
4302
  addContentOptions: {
@@ -4347,6 +4348,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4347
4348
  selectedItemValue: string | null;
4348
4349
  selectedItemIndex: number | null;
4349
4350
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4351
+ activeItemIdByContentId: Record<string, string | undefined>;
4350
4352
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("../../../content-settings/models").ContentItemFieldSettings | undefined;
4351
4353
  getItem(state: {
4352
4354
  addContentOptions: {
@@ -4398,6 +4400,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4398
4400
  selectedItemValue: string | null;
4399
4401
  selectedItemIndex: number | null;
4400
4402
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4403
+ activeItemIdByContentId: Record<string, string | undefined>;
4401
4404
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
4402
4405
  getValue(state: {
4403
4406
  addContentOptions: {
@@ -4449,6 +4452,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4449
4452
  selectedItemValue: string | null;
4450
4453
  selectedItemIndex: number | null;
4451
4454
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4455
+ activeItemIdByContentId: Record<string, string | undefined>;
4452
4456
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
4453
4457
  getItemState(state: {
4454
4458
  addContentOptions: {
@@ -4500,6 +4504,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4500
4504
  selectedItemValue: string | null;
4501
4505
  selectedItemIndex: number | null;
4502
4506
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4507
+ activeItemIdByContentId: Record<string, string | undefined>;
4503
4508
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => import("../../../content-settings/models").ContentSettingsItemState;
4504
4509
  getItemGroupState(state: {
4505
4510
  addContentOptions: {
@@ -4551,11 +4556,13 @@ declare const _default: import("vue").DefineComponent<{}, {
4551
4556
  selectedItemValue: string | null;
4552
4557
  selectedItemIndex: number | null;
4553
4558
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4559
+ activeItemIdByContentId: Record<string, string | undefined>;
4554
4560
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("../../../content-settings/models").ContentSettingsItemGroupState;
4555
4561
  mode(): import("../../../content-settings/store").ContentSettingsMode;
4556
4562
  selectedItem(): ContentItem<any> | undefined;
4557
4563
  selectedItemTemplate(): import("../../../../brand-page-maker/models").ContentSettingsConfig<any> | undefined;
4558
4564
  }, {
4565
+ setActiveItem(contentId: string, itemId: string | undefined): void;
4559
4566
  onContentChanged(): void;
4560
4567
  _addItem({ item, index, }: {
4561
4568
  item: ContentItem<any>;
@@ -4619,6 +4626,9 @@ declare const _default: import("vue").DefineComponent<{}, {
4619
4626
  }): void;
4620
4627
  updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
4621
4628
  updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
4629
+ updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>, "index"> & {
4630
+ target: import("../../../content-settings/models").RteItemStyleTarget;
4631
+ }): void;
4622
4632
  _setActiveCategoryTab({ activeCategoryTab, }: {
4623
4633
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
4624
4634
  }): void;
@@ -4823,20 +4833,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4823
4833
  isVariation: boolean;
4824
4834
  isExcluded: boolean;
4825
4835
  } | undefined;
4826
- bp_5873_live_preview_prepurchase?: {
4827
- key: string;
4828
- value: string;
4829
- isControl: boolean;
4830
- isVariation: boolean;
4831
- isExcluded: boolean;
4832
- } | undefined;
4833
- bp_5873_live_preview_postpurchase?: {
4834
- key: string;
4835
- value: string;
4836
- isControl: boolean;
4837
- isVariation: boolean;
4838
- isExcluded: boolean;
4839
- } | undefined;
4840
4836
  };
4841
4837
  isSubsequentPublish: boolean;
4842
4838
  isContextualUpgradeModalVisible: boolean;
@@ -4912,20 +4908,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4912
4908
  isVariation: boolean;
4913
4909
  isExcluded: boolean;
4914
4910
  } | undefined;
4915
- bp_5873_live_preview_prepurchase?: {
4916
- key: string;
4917
- value: string;
4918
- isControl: boolean;
4919
- isVariation: boolean;
4920
- isExcluded: boolean;
4921
- } | undefined;
4922
- bp_5873_live_preview_postpurchase?: {
4923
- key: string;
4924
- value: string;
4925
- isControl: boolean;
4926
- isVariation: boolean;
4927
- isExcluded: boolean;
4928
- } | undefined;
4929
4911
  };
4930
4912
  isSubsequentPublish: boolean;
4931
4913
  isContextualUpgradeModalVisible: boolean;
@@ -5001,20 +4983,6 @@ declare const _default: import("vue").DefineComponent<{}, {
5001
4983
  isVariation: boolean;
5002
4984
  isExcluded: boolean;
5003
4985
  } | undefined;
5004
- bp_5873_live_preview_prepurchase?: {
5005
- key: string;
5006
- value: string;
5007
- isControl: boolean;
5008
- isVariation: boolean;
5009
- isExcluded: boolean;
5010
- } | undefined;
5011
- bp_5873_live_preview_postpurchase?: {
5012
- key: string;
5013
- value: string;
5014
- isControl: boolean;
5015
- isVariation: boolean;
5016
- isExcluded: boolean;
5017
- } | undefined;
5018
4986
  };
5019
4987
  isSubsequentPublish: boolean;
5020
4988
  isContextualUpgradeModalVisible: boolean;
@@ -3661,6 +3661,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3661
3661
  selectedItemValue: string | null;
3662
3662
  selectedItemIndex: number | null;
3663
3663
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3664
+ activeItemIdByContentId: Record<string, string | undefined>;
3664
3665
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => import("@brand-page").Content | undefined;
3665
3666
  getFieldSettings(state: {
3666
3667
  addContentOptions: {
@@ -3712,6 +3713,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3712
3713
  selectedItemValue: string | null;
3713
3714
  selectedItemIndex: number | null;
3714
3715
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3716
+ activeItemIdByContentId: Record<string, string | undefined>;
3715
3717
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => ContentItemFieldSettings | undefined;
3716
3718
  getItem(state: {
3717
3719
  addContentOptions: {
@@ -3763,6 +3765,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3763
3765
  selectedItemValue: string | null;
3764
3766
  selectedItemIndex: number | null;
3765
3767
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3768
+ activeItemIdByContentId: Record<string, string | undefined>;
3766
3769
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => import("../../../content-settings/models").ContentItem<any> | undefined;
3767
3770
  getValue(state: {
3768
3771
  addContentOptions: {
@@ -3814,6 +3817,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3814
3817
  selectedItemValue: string | null;
3815
3818
  selectedItemIndex: number | null;
3816
3819
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3820
+ activeItemIdByContentId: Record<string, string | undefined>;
3817
3821
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("@brand-page").Content | string | undefined;
3818
3822
  getItemState(state: {
3819
3823
  addContentOptions: {
@@ -3865,6 +3869,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3865
3869
  selectedItemValue: string | null;
3866
3870
  selectedItemIndex: number | null;
3867
3871
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3872
+ activeItemIdByContentId: Record<string, string | undefined>;
3868
3873
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string) => import("../../../content-settings/models").ContentSettingsItemState;
3869
3874
  getItemGroupState(state: {
3870
3875
  addContentOptions: {
@@ -3916,11 +3921,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3916
3921
  selectedItemValue: string | null;
3917
3922
  selectedItemIndex: number | null;
3918
3923
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3924
+ activeItemIdByContentId: Record<string, string | undefined>;
3919
3925
  } & import("pinia").PiniaCustomStateProperties<import("../../../content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("../../../content-settings/models").ContentSettingsItemGroupState;
3920
3926
  mode(): import("../../../content-settings/store").ContentSettingsMode;
3921
3927
  selectedItem(): import("../../../content-settings/models").ContentItem<any> | undefined;
3922
3928
  selectedItemTemplate(): import("../../../../brand-page-maker/models").ContentSettingsConfig<any> | undefined;
3923
3929
  }, {
3930
+ setActiveItem(contentId: string, itemId: string | undefined): void;
3924
3931
  onContentChanged(): void;
3925
3932
  _addItem({ item, index, }: {
3926
3933
  item: import("../../../content-settings/models").ContentItem<any>;
@@ -3984,6 +3991,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3984
3991
  }): void;
3985
3992
  updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
3986
3993
  updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
3994
+ updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../../content-settings/models").UpdateMultipleItemValuesPayload<any>, "index"> & {
3995
+ target: import("../../../content-settings/models").RteItemStyleTarget;
3996
+ }): void;
3987
3997
  _setActiveCategoryTab({ activeCategoryTab, }: {
3988
3998
  activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
3989
3999
  }): void;
@@ -4174,20 +4184,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4174
4184
  isVariation: boolean;
4175
4185
  isExcluded: boolean;
4176
4186
  } | undefined;
4177
- bp_5873_live_preview_prepurchase?: {
4178
- key: string;
4179
- value: string;
4180
- isControl: boolean;
4181
- isVariation: boolean;
4182
- isExcluded: boolean;
4183
- } | undefined;
4184
- bp_5873_live_preview_postpurchase?: {
4185
- key: string;
4186
- value: string;
4187
- isControl: boolean;
4188
- isVariation: boolean;
4189
- isExcluded: boolean;
4190
- } | undefined;
4191
4187
  };
4192
4188
  isSubsequentPublish: boolean;
4193
4189
  isContextualUpgradeModalVisible: boolean;
@@ -4263,20 +4259,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4263
4259
  isVariation: boolean;
4264
4260
  isExcluded: boolean;
4265
4261
  } | undefined;
4266
- bp_5873_live_preview_prepurchase?: {
4267
- key: string;
4268
- value: string;
4269
- isControl: boolean;
4270
- isVariation: boolean;
4271
- isExcluded: boolean;
4272
- } | undefined;
4273
- bp_5873_live_preview_postpurchase?: {
4274
- key: string;
4275
- value: string;
4276
- isControl: boolean;
4277
- isVariation: boolean;
4278
- isExcluded: boolean;
4279
- } | undefined;
4280
4262
  };
4281
4263
  isSubsequentPublish: boolean;
4282
4264
  isContextualUpgradeModalVisible: boolean;
@@ -4352,20 +4334,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4352
4334
  isVariation: boolean;
4353
4335
  isExcluded: boolean;
4354
4336
  } | undefined;
4355
- bp_5873_live_preview_prepurchase?: {
4356
- key: string;
4357
- value: string;
4358
- isControl: boolean;
4359
- isVariation: boolean;
4360
- isExcluded: boolean;
4361
- } | undefined;
4362
- bp_5873_live_preview_postpurchase?: {
4363
- key: string;
4364
- value: string;
4365
- isControl: boolean;
4366
- isVariation: boolean;
4367
- isExcluded: boolean;
4368
- } | undefined;
4369
4337
  };
4370
4338
  isSubsequentPublish: boolean;
4371
4339
  isContextualUpgradeModalVisible: boolean;
@@ -70,20 +70,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  isVariation: boolean;
71
71
  isExcluded: boolean;
72
72
  } | undefined;
73
- bp_5873_live_preview_prepurchase?: {
74
- key: string;
75
- value: string;
76
- isControl: boolean;
77
- isVariation: boolean;
78
- isExcluded: boolean;
79
- } | undefined;
80
- bp_5873_live_preview_postpurchase?: {
81
- key: string;
82
- value: string;
83
- isControl: boolean;
84
- isVariation: boolean;
85
- isExcluded: boolean;
86
- } | undefined;
87
73
  }>;
88
74
  brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
89
75
  isSubsequentPublish: import("vue").ComputedRef<boolean>;
@@ -301,20 +287,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
301
287
  isVariation: boolean;
302
288
  isExcluded: boolean;
303
289
  } | undefined;
304
- bp_5873_live_preview_prepurchase?: {
305
- key: string;
306
- value: string;
307
- isControl: boolean;
308
- isVariation: boolean;
309
- isExcluded: boolean;
310
- } | undefined;
311
- bp_5873_live_preview_postpurchase?: {
312
- key: string;
313
- value: string;
314
- isControl: boolean;
315
- isVariation: boolean;
316
- isExcluded: boolean;
317
- } | undefined;
318
290
  };
319
291
  isSubsequentPublish: boolean;
320
292
  isContextualUpgradeModalVisible: boolean;
@@ -390,20 +362,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
390
362
  isVariation: boolean;
391
363
  isExcluded: boolean;
392
364
  } | undefined;
393
- bp_5873_live_preview_prepurchase?: {
394
- key: string;
395
- value: string;
396
- isControl: boolean;
397
- isVariation: boolean;
398
- isExcluded: boolean;
399
- } | undefined;
400
- bp_5873_live_preview_postpurchase?: {
401
- key: string;
402
- value: string;
403
- isControl: boolean;
404
- isVariation: boolean;
405
- isExcluded: boolean;
406
- } | undefined;
407
365
  };
408
366
  isSubsequentPublish: boolean;
409
367
  isContextualUpgradeModalVisible: boolean;
@@ -479,20 +437,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
479
437
  isVariation: boolean;
480
438
  isExcluded: boolean;
481
439
  } | undefined;
482
- bp_5873_live_preview_prepurchase?: {
483
- key: string;
484
- value: string;
485
- isControl: boolean;
486
- isVariation: boolean;
487
- isExcluded: boolean;
488
- } | undefined;
489
- bp_5873_live_preview_postpurchase?: {
490
- key: string;
491
- value: string;
492
- isControl: boolean;
493
- isVariation: boolean;
494
- isExcluded: boolean;
495
- } | undefined;
496
440
  };
497
441
  isSubsequentPublish: boolean;
498
442
  isContextualUpgradeModalVisible: boolean;
@@ -84,20 +84,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
84
84
  isVariation: boolean;
85
85
  isExcluded: boolean;
86
86
  } | undefined;
87
- bp_5873_live_preview_prepurchase?: {
88
- key: string;
89
- value: string;
90
- isControl: boolean;
91
- isVariation: boolean;
92
- isExcluded: boolean;
93
- } | undefined;
94
- bp_5873_live_preview_postpurchase?: {
95
- key: string;
96
- value: string;
97
- isControl: boolean;
98
- isVariation: boolean;
99
- isExcluded: boolean;
100
- } | undefined;
101
87
  };
102
88
  isSubsequentPublish: boolean;
103
89
  isContextualUpgradeModalVisible: boolean;
@@ -173,20 +159,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
173
159
  isVariation: boolean;
174
160
  isExcluded: boolean;
175
161
  } | undefined;
176
- bp_5873_live_preview_prepurchase?: {
177
- key: string;
178
- value: string;
179
- isControl: boolean;
180
- isVariation: boolean;
181
- isExcluded: boolean;
182
- } | undefined;
183
- bp_5873_live_preview_postpurchase?: {
184
- key: string;
185
- value: string;
186
- isControl: boolean;
187
- isVariation: boolean;
188
- isExcluded: boolean;
189
- } | undefined;
190
162
  };
191
163
  isSubsequentPublish: boolean;
192
164
  isContextualUpgradeModalVisible: boolean;
@@ -262,20 +234,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
262
234
  isVariation: boolean;
263
235
  isExcluded: boolean;
264
236
  } | undefined;
265
- bp_5873_live_preview_prepurchase?: {
266
- key: string;
267
- value: string;
268
- isControl: boolean;
269
- isVariation: boolean;
270
- isExcluded: boolean;
271
- } | undefined;
272
- bp_5873_live_preview_postpurchase?: {
273
- key: string;
274
- value: string;
275
- isControl: boolean;
276
- isVariation: boolean;
277
- isExcluded: boolean;
278
- } | undefined;
279
237
  };
280
238
  isSubsequentPublish: boolean;
281
239
  isContextualUpgradeModalVisible: boolean;
@@ -592,20 +592,6 @@ declare const _default: import("vue").DefineComponent<{}, {
592
592
  isVariation: boolean;
593
593
  isExcluded: boolean;
594
594
  } | undefined;
595
- bp_5873_live_preview_prepurchase?: {
596
- key: string;
597
- value: string;
598
- isControl: boolean;
599
- isVariation: boolean;
600
- isExcluded: boolean;
601
- } | undefined;
602
- bp_5873_live_preview_postpurchase?: {
603
- key: string;
604
- value: string;
605
- isControl: boolean;
606
- isVariation: boolean;
607
- isExcluded: boolean;
608
- } | undefined;
609
595
  };
610
596
  isSubsequentPublish: boolean;
611
597
  isContextualUpgradeModalVisible: boolean;
@@ -681,20 +667,6 @@ declare const _default: import("vue").DefineComponent<{}, {
681
667
  isVariation: boolean;
682
668
  isExcluded: boolean;
683
669
  } | undefined;
684
- bp_5873_live_preview_prepurchase?: {
685
- key: string;
686
- value: string;
687
- isControl: boolean;
688
- isVariation: boolean;
689
- isExcluded: boolean;
690
- } | undefined;
691
- bp_5873_live_preview_postpurchase?: {
692
- key: string;
693
- value: string;
694
- isControl: boolean;
695
- isVariation: boolean;
696
- isExcluded: boolean;
697
- } | undefined;
698
670
  };
699
671
  isSubsequentPublish: boolean;
700
672
  isContextualUpgradeModalVisible: boolean;
@@ -770,20 +742,6 @@ declare const _default: import("vue").DefineComponent<{}, {
770
742
  isVariation: boolean;
771
743
  isExcluded: boolean;
772
744
  } | undefined;
773
- bp_5873_live_preview_prepurchase?: {
774
- key: string;
775
- value: string;
776
- isControl: boolean;
777
- isVariation: boolean;
778
- isExcluded: boolean;
779
- } | undefined;
780
- bp_5873_live_preview_postpurchase?: {
781
- key: string;
782
- value: string;
783
- isControl: boolean;
784
- isVariation: boolean;
785
- isExcluded: boolean;
786
- } | undefined;
787
745
  };
788
746
  isSubsequentPublish: boolean;
789
747
  isContextualUpgradeModalVisible: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "6.2.2",
4
+ "version": "6.2.3-ast-faq",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@ckpack/vue-color": "1.6.0",
74
- "@designcrowd/fe-shared-lib": "2.1.2",
74
+ "@designcrowd/fe-shared-lib": "2.1.2-ast-faq",
75
75
  "@pinia/nuxt": "0.11.3",
76
76
  "@storybook/react": "9.0.4",
77
77
  "@tiptap/extension-bubble-menu": "3.28.0",