@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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-7P2gNr-R.js → CreatedOnBrandCrowd-de-de-BRisMzFY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Dl7BymW6.js → CreatedOnBrandCrowd-en-us-CDDsL9GX.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CO4FvWVw.js → CreatedOnBrandCrowd-es-es-BkZrEo4j.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DHNqakQu.js → CreatedOnBrandCrowd-fr-ca-sx_ury7R.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DHNqakQu.js → CreatedOnBrandCrowd-fr-fr-sx_ury7R.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-br-DCWiAfkU.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CGUC-ZbP.js → CreatedOnBrandCrowd-pt-pt-DCWiAfkU.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-Dvds-Vmy.js → CreatedOnDcom-de-de-C1S7f22L.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-fd3C-8Tp.js → CreatedOnDcom-en-us-DgTlWaXE.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DTXZW35-.js → CreatedOnDcom-es-es-CxSQJe_V.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DRCYOKPs.js → CreatedOnDcom-fr-ca-Bbam2tt6.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DpIB8x2x.js → CreatedOnDcom-fr-fr-Cb0XDRPL.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Esnxy8wX.js → CreatedOnDcom-pt-br-BjdX3-E3.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CaiVHFXR.js → CreatedOnDcom-pt-pt-BXpbfopB.js} +1 -1
- package/lib/src/brand-page/constants/misc.constants.d.ts +8 -0
- package/lib/src/brand-page/constants/misc.constants.js +7 -0
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
- package/lib/src/brand-page/constants/styles.constants.js +2 -0
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
- package/lib/src/brand-page/models/brand-page-context.model.js +0 -12
- package/lib/src/brand-page/models/content.model.d.ts +1 -0
- package/lib/src/brand-page/models/content.model.js +1 -0
- package/lib/src/brand-page/models/index.d.ts +19 -0
- package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
- package/lib/src/brand-page/utils/content-callback-util.js +3 -0
- package/lib/src/brand-page/utils/model.util.d.ts +2 -1
- package/lib/src/brand-page/utils/model.util.js +3 -0
- package/lib/src/brand-page/utils/view-model.util.d.ts +2 -0
- package/lib/src/brand-page/utils/view-model.util.js +24 -0
- package/lib/src/brand-page/view-models.d.ts +9 -2
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +0 -9
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +10 -42
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +10 -42
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -14
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -42
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +13 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +64 -30
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +101 -2
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +47 -0
- package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +22 -1
- package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
- package/lib/src/brand-page-maker/models/content-settings.d.ts +4 -1
- package/lib/src/brand-page-maker/models/content-settings.js +45 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -42
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -0
- package/lib/src/brand-page-maker/utils/apply-color-strategy.js +47 -17
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +6 -0
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +24 -1
- package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
- package/lib/src/bundled-translations-DY9YvuL-.js +179 -0
- package/lib/src/bundles/bundled-translations.json +20 -2
- package/lib/src/composables/useTranslate.d.ts +1 -1
- package/lib/src/composables/useTranslate.js +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +143 -36
- package/lib/src/css/library.brand-page-brandPage.min.css +143 -36
- package/lib/src/css/library.brand-page-designCom.min.css +143 -36
- package/lib/src/css/library.brand-page-preview.min.css +143 -36
- package/lib/src/index.mjs +159 -158
- package/lib/src/{lib-V7aqfuiB.js → lib-DwpSAbLZ.js} +26889 -26178
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
- package/lib/src/shared/color-strategies/color-strategies.js +4 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +12 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.js +10 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +10 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +11 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +10 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +10 -0
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +10 -0
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +14 -1
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +11 -1
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -42
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +12 -0
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.js +5 -0
- package/lib/src/shared/content-settings/models.d.ts +6 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +14 -1
- package/lib/src/shared/content-settings/store/content-settings-store.js +24 -2
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -42
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +10 -42
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +10 -42
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -56
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -42
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -42
- package/package.json +2 -2
- package/src/brand-page/components/faq-section/FaqSection.test.ts +292 -0
- package/src/brand-page/components/faq-section/FaqSection.vue +299 -0
- package/src/brand-page/components/page/PageComponent.vue +2 -0
- package/src/brand-page/components/section-heading/SectionHeading.vue +52 -0
- package/src/brand-page/components/text-wrapper/TextWrapper.test.ts +33 -0
- package/src/brand-page/constants/misc.constants.ts +12 -0
- package/src/brand-page/constants/styles.constants.ts +2 -0
- package/src/brand-page/models/brand-page-context.model.ts +0 -23
- package/src/brand-page/models/content.model.ts +1 -0
- package/src/brand-page/models/index.ts +21 -0
- package/src/brand-page/utils/content-callback-util.ts +5 -0
- package/src/brand-page/utils/model.util.ts +7 -0
- package/src/brand-page/utils/view-model.util.test.ts +96 -0
- package/src/brand-page/utils/view-model.util.ts +49 -0
- package/src/brand-page/view-models.ts +12 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +0 -10
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.test.ts +8 -49
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -1
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.test.ts +165 -0
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +37 -49
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +87 -30
- package/src/brand-page-maker/constants/config-settings-constant.ts +108 -0
- package/src/brand-page-maker/constants/faq-section-config.test.ts +151 -0
- package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +59 -0
- package/src/brand-page-maker/convertors/i18n/converter.json +4 -1
- package/src/brand-page-maker/models/content-settings-configs.ts +24 -0
- package/src/brand-page-maker/models/content-settings.ts +57 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +2 -0
- package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +4063 -895
- package/src/brand-page-maker/utils/apply-color-strategy.test.ts +104 -2
- package/src/brand-page-maker/utils/apply-color-strategy.ts +77 -19
- package/src/brand-page-maker/utils/rich-text-editor.util.test.ts +110 -0
- package/src/brand-page-maker/utils/rich-text-editor.util.ts +66 -0
- package/src/brand-page-maker/validators/field.validator.ts +2 -0
- package/src/bundles/bundled-translations.json +20 -2
- package/src/composables/useTranslate.ts +2 -1
- package/src/metadata-builder/builders/item-id-utils.test.ts +24 -0
- package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
- package/src/metadata-builder/parsers/section-tool-map.test.ts +12 -0
- package/src/shared/color-strategies/color-strategies.ts +4 -0
- package/src/shared/color-strategies/rte-field-pairs.ts +23 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +17 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +3 -0
- package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +11 -1
- package/src/shared/content-settings/components/items-field/ItemsField.vue +8 -2
- package/src/shared/content-settings/components/list-items-field/ListItemsField.test.ts +429 -0
- package/src/shared/content-settings/components/list-items-field/ListItemsField.vue +262 -0
- package/src/shared/content-settings/components/textarea-field/TextareaField.mixin.ts +6 -0
- package/src/shared/content-settings/components/textarea-field/TextareaField.vue +1 -0
- package/src/shared/content-settings/models.ts +7 -0
- package/src/shared/content-settings/store/content-settings-store.test.ts +70 -0
- package/src/shared/content-settings/store/content-settings-store.ts +37 -3
- package/src/shared/ecommerce-settings/util/refreshDuplicatedMetadata.test.ts +19 -0
- package/src/shared/page-settings/store/page-settings-store.test.ts +0 -71
- package/src/utils/minify-brand-page-metadata.test.ts +35 -0
- package/lib/src/bundled-translations-BYUfWBT3.js +0 -179
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
90
90
|
selectedItemValue: string | null;
|
|
91
91
|
selectedItemIndex: number | null;
|
|
92
92
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
93
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
93
94
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => Content | undefined;
|
|
94
95
|
getFieldSettings(state: {
|
|
95
96
|
addContentOptions: {
|
|
@@ -141,6 +142,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
141
142
|
selectedItemValue: string | null;
|
|
142
143
|
selectedItemIndex: number | null;
|
|
143
144
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
145
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
144
146
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("@shared/content-settings/models").ContentItemFieldSettings | undefined;
|
|
145
147
|
getItem(state: {
|
|
146
148
|
addContentOptions: {
|
|
@@ -192,6 +194,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
192
194
|
selectedItemValue: string | null;
|
|
193
195
|
selectedItemIndex: number | null;
|
|
194
196
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
197
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
195
198
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
196
199
|
getValue(state: {
|
|
197
200
|
addContentOptions: {
|
|
@@ -243,6 +246,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
243
246
|
selectedItemValue: string | null;
|
|
244
247
|
selectedItemIndex: number | null;
|
|
245
248
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
249
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
246
250
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
|
|
247
251
|
getItemState(state: {
|
|
248
252
|
addContentOptions: {
|
|
@@ -294,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
294
298
|
selectedItemValue: string | null;
|
|
295
299
|
selectedItemIndex: number | null;
|
|
296
300
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
301
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
297
302
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => import("@shared/content-settings/models").ContentSettingsItemState;
|
|
298
303
|
getItemGroupState(state: {
|
|
299
304
|
addContentOptions: {
|
|
@@ -345,11 +350,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
345
350
|
selectedItemValue: string | null;
|
|
346
351
|
selectedItemIndex: number | null;
|
|
347
352
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
353
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
348
354
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("@shared/content-settings/models").ContentSettingsItemGroupState;
|
|
349
355
|
mode(): import("@shared/content-settings/store").ContentSettingsMode;
|
|
350
356
|
selectedItem(): ContentItem<any> | undefined;
|
|
351
357
|
selectedItemTemplate(): import("../../models").ContentSettingsConfig<any> | undefined;
|
|
352
358
|
}, {
|
|
359
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
353
360
|
onContentChanged(): void;
|
|
354
361
|
_addItem({ item, index, }: {
|
|
355
362
|
item: ContentItem<any>;
|
|
@@ -413,6 +420,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
413
420
|
}): void;
|
|
414
421
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
415
422
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
423
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("@shared/content-settings/models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
424
|
+
target: import("@shared/content-settings/models").RteItemStyleTarget;
|
|
425
|
+
}): void;
|
|
416
426
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
417
427
|
activeCategoryTab: import("../../models").ItemCategory;
|
|
418
428
|
}): void;
|
|
@@ -706,20 +716,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
706
716
|
isVariation: boolean;
|
|
707
717
|
isExcluded: boolean;
|
|
708
718
|
} | undefined;
|
|
709
|
-
bp_5873_live_preview_prepurchase?: {
|
|
710
|
-
key: string;
|
|
711
|
-
value: string;
|
|
712
|
-
isControl: boolean;
|
|
713
|
-
isVariation: boolean;
|
|
714
|
-
isExcluded: boolean;
|
|
715
|
-
} | undefined;
|
|
716
|
-
bp_5873_live_preview_postpurchase?: {
|
|
717
|
-
key: string;
|
|
718
|
-
value: string;
|
|
719
|
-
isControl: boolean;
|
|
720
|
-
isVariation: boolean;
|
|
721
|
-
isExcluded: boolean;
|
|
722
|
-
} | undefined;
|
|
723
719
|
};
|
|
724
720
|
isSubsequentPublish: boolean;
|
|
725
721
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -795,20 +791,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
795
791
|
isVariation: boolean;
|
|
796
792
|
isExcluded: boolean;
|
|
797
793
|
} | undefined;
|
|
798
|
-
bp_5873_live_preview_prepurchase?: {
|
|
799
|
-
key: string;
|
|
800
|
-
value: string;
|
|
801
|
-
isControl: boolean;
|
|
802
|
-
isVariation: boolean;
|
|
803
|
-
isExcluded: boolean;
|
|
804
|
-
} | undefined;
|
|
805
|
-
bp_5873_live_preview_postpurchase?: {
|
|
806
|
-
key: string;
|
|
807
|
-
value: string;
|
|
808
|
-
isControl: boolean;
|
|
809
|
-
isVariation: boolean;
|
|
810
|
-
isExcluded: boolean;
|
|
811
|
-
} | undefined;
|
|
812
794
|
};
|
|
813
795
|
isSubsequentPublish: boolean;
|
|
814
796
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -884,20 +866,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
884
866
|
isVariation: boolean;
|
|
885
867
|
isExcluded: boolean;
|
|
886
868
|
} | undefined;
|
|
887
|
-
bp_5873_live_preview_prepurchase?: {
|
|
888
|
-
key: string;
|
|
889
|
-
value: string;
|
|
890
|
-
isControl: boolean;
|
|
891
|
-
isVariation: boolean;
|
|
892
|
-
isExcluded: boolean;
|
|
893
|
-
} | undefined;
|
|
894
|
-
bp_5873_live_preview_postpurchase?: {
|
|
895
|
-
key: string;
|
|
896
|
-
value: string;
|
|
897
|
-
isControl: boolean;
|
|
898
|
-
isVariation: boolean;
|
|
899
|
-
isExcluded: boolean;
|
|
900
|
-
} | undefined;
|
|
901
869
|
};
|
|
902
870
|
isSubsequentPublish: boolean;
|
|
903
871
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -41,20 +41,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
41
|
isVariation: boolean;
|
|
42
42
|
isExcluded: boolean;
|
|
43
43
|
} | undefined;
|
|
44
|
-
bp_5873_live_preview_prepurchase?: {
|
|
45
|
-
key: string;
|
|
46
|
-
value: string;
|
|
47
|
-
isControl: boolean;
|
|
48
|
-
isVariation: boolean;
|
|
49
|
-
isExcluded: boolean;
|
|
50
|
-
} | undefined;
|
|
51
|
-
bp_5873_live_preview_postpurchase?: {
|
|
52
|
-
key: string;
|
|
53
|
-
value: string;
|
|
54
|
-
isControl: boolean;
|
|
55
|
-
isVariation: boolean;
|
|
56
|
-
isExcluded: boolean;
|
|
57
|
-
} | undefined;
|
|
58
44
|
};
|
|
59
45
|
}, {
|
|
60
46
|
containerClientHeight: number | undefined;
|
|
@@ -78,20 +78,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
78
78
|
isVariation: boolean;
|
|
79
79
|
isExcluded: boolean;
|
|
80
80
|
} | undefined;
|
|
81
|
-
bp_5873_live_preview_prepurchase?: {
|
|
82
|
-
key: string;
|
|
83
|
-
value: string;
|
|
84
|
-
isControl: boolean;
|
|
85
|
-
isVariation: boolean;
|
|
86
|
-
isExcluded: boolean;
|
|
87
|
-
} | undefined;
|
|
88
|
-
bp_5873_live_preview_postpurchase?: {
|
|
89
|
-
key: string;
|
|
90
|
-
value: string;
|
|
91
|
-
isControl: boolean;
|
|
92
|
-
isVariation: boolean;
|
|
93
|
-
isExcluded: boolean;
|
|
94
|
-
} | undefined;
|
|
95
81
|
};
|
|
96
82
|
isSubsequentPublish: boolean;
|
|
97
83
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -167,20 +153,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
167
153
|
isVariation: boolean;
|
|
168
154
|
isExcluded: boolean;
|
|
169
155
|
} | undefined;
|
|
170
|
-
bp_5873_live_preview_prepurchase?: {
|
|
171
|
-
key: string;
|
|
172
|
-
value: string;
|
|
173
|
-
isControl: boolean;
|
|
174
|
-
isVariation: boolean;
|
|
175
|
-
isExcluded: boolean;
|
|
176
|
-
} | undefined;
|
|
177
|
-
bp_5873_live_preview_postpurchase?: {
|
|
178
|
-
key: string;
|
|
179
|
-
value: string;
|
|
180
|
-
isControl: boolean;
|
|
181
|
-
isVariation: boolean;
|
|
182
|
-
isExcluded: boolean;
|
|
183
|
-
} | undefined;
|
|
184
156
|
};
|
|
185
157
|
isSubsequentPublish: boolean;
|
|
186
158
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -256,20 +228,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
228
|
isVariation: boolean;
|
|
257
229
|
isExcluded: boolean;
|
|
258
230
|
} | undefined;
|
|
259
|
-
bp_5873_live_preview_prepurchase?: {
|
|
260
|
-
key: string;
|
|
261
|
-
value: string;
|
|
262
|
-
isControl: boolean;
|
|
263
|
-
isVariation: boolean;
|
|
264
|
-
isExcluded: boolean;
|
|
265
|
-
} | undefined;
|
|
266
|
-
bp_5873_live_preview_postpurchase?: {
|
|
267
|
-
key: string;
|
|
268
|
-
value: string;
|
|
269
|
-
isControl: boolean;
|
|
270
|
-
isVariation: boolean;
|
|
271
|
-
isExcluded: boolean;
|
|
272
|
-
} | undefined;
|
|
273
231
|
};
|
|
274
232
|
isSubsequentPublish: boolean;
|
|
275
233
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -94,20 +94,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
94
94
|
isVariation: boolean;
|
|
95
95
|
isExcluded: boolean;
|
|
96
96
|
} | undefined;
|
|
97
|
-
bp_5873_live_preview_prepurchase?: {
|
|
98
|
-
key: string;
|
|
99
|
-
value: string;
|
|
100
|
-
isControl: boolean;
|
|
101
|
-
isVariation: boolean;
|
|
102
|
-
isExcluded: boolean;
|
|
103
|
-
} | undefined;
|
|
104
|
-
bp_5873_live_preview_postpurchase?: {
|
|
105
|
-
key: string;
|
|
106
|
-
value: string;
|
|
107
|
-
isControl: boolean;
|
|
108
|
-
isVariation: boolean;
|
|
109
|
-
isExcluded: boolean;
|
|
110
|
-
} | undefined;
|
|
111
97
|
};
|
|
112
98
|
isSubsequentPublish: boolean;
|
|
113
99
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -183,20 +169,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
183
169
|
isVariation: boolean;
|
|
184
170
|
isExcluded: boolean;
|
|
185
171
|
} | undefined;
|
|
186
|
-
bp_5873_live_preview_prepurchase?: {
|
|
187
|
-
key: string;
|
|
188
|
-
value: string;
|
|
189
|
-
isControl: boolean;
|
|
190
|
-
isVariation: boolean;
|
|
191
|
-
isExcluded: boolean;
|
|
192
|
-
} | undefined;
|
|
193
|
-
bp_5873_live_preview_postpurchase?: {
|
|
194
|
-
key: string;
|
|
195
|
-
value: string;
|
|
196
|
-
isControl: boolean;
|
|
197
|
-
isVariation: boolean;
|
|
198
|
-
isExcluded: boolean;
|
|
199
|
-
} | undefined;
|
|
200
172
|
};
|
|
201
173
|
isSubsequentPublish: boolean;
|
|
202
174
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -272,20 +244,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
272
244
|
isVariation: boolean;
|
|
273
245
|
isExcluded: boolean;
|
|
274
246
|
} | undefined;
|
|
275
|
-
bp_5873_live_preview_prepurchase?: {
|
|
276
|
-
key: string;
|
|
277
|
-
value: string;
|
|
278
|
-
isControl: boolean;
|
|
279
|
-
isVariation: boolean;
|
|
280
|
-
isExcluded: boolean;
|
|
281
|
-
} | undefined;
|
|
282
|
-
bp_5873_live_preview_postpurchase?: {
|
|
283
|
-
key: string;
|
|
284
|
-
value: string;
|
|
285
|
-
isControl: boolean;
|
|
286
|
-
isVariation: boolean;
|
|
287
|
-
isExcluded: boolean;
|
|
288
|
-
} | undefined;
|
|
289
247
|
};
|
|
290
248
|
isSubsequentPublish: boolean;
|
|
291
249
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -99,20 +99,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
isVariation: boolean;
|
|
100
100
|
isExcluded: boolean;
|
|
101
101
|
} | undefined;
|
|
102
|
-
bp_5873_live_preview_prepurchase?: {
|
|
103
|
-
key: string;
|
|
104
|
-
value: string;
|
|
105
|
-
isControl: boolean;
|
|
106
|
-
isVariation: boolean;
|
|
107
|
-
isExcluded: boolean;
|
|
108
|
-
} | undefined;
|
|
109
|
-
bp_5873_live_preview_postpurchase?: {
|
|
110
|
-
key: string;
|
|
111
|
-
value: string;
|
|
112
|
-
isControl: boolean;
|
|
113
|
-
isVariation: boolean;
|
|
114
|
-
isExcluded: boolean;
|
|
115
|
-
} | undefined;
|
|
116
102
|
};
|
|
117
103
|
isSubsequentPublish: boolean;
|
|
118
104
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -188,20 +174,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
188
174
|
isVariation: boolean;
|
|
189
175
|
isExcluded: boolean;
|
|
190
176
|
} | undefined;
|
|
191
|
-
bp_5873_live_preview_prepurchase?: {
|
|
192
|
-
key: string;
|
|
193
|
-
value: string;
|
|
194
|
-
isControl: boolean;
|
|
195
|
-
isVariation: boolean;
|
|
196
|
-
isExcluded: boolean;
|
|
197
|
-
} | undefined;
|
|
198
|
-
bp_5873_live_preview_postpurchase?: {
|
|
199
|
-
key: string;
|
|
200
|
-
value: string;
|
|
201
|
-
isControl: boolean;
|
|
202
|
-
isVariation: boolean;
|
|
203
|
-
isExcluded: boolean;
|
|
204
|
-
} | undefined;
|
|
205
177
|
};
|
|
206
178
|
isSubsequentPublish: boolean;
|
|
207
179
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -277,20 +249,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
277
249
|
isVariation: boolean;
|
|
278
250
|
isExcluded: boolean;
|
|
279
251
|
} | undefined;
|
|
280
|
-
bp_5873_live_preview_prepurchase?: {
|
|
281
|
-
key: string;
|
|
282
|
-
value: string;
|
|
283
|
-
isControl: boolean;
|
|
284
|
-
isVariation: boolean;
|
|
285
|
-
isExcluded: boolean;
|
|
286
|
-
} | undefined;
|
|
287
|
-
bp_5873_live_preview_postpurchase?: {
|
|
288
|
-
key: string;
|
|
289
|
-
value: string;
|
|
290
|
-
isControl: boolean;
|
|
291
|
-
isVariation: boolean;
|
|
292
|
-
isExcluded: boolean;
|
|
293
|
-
} | undefined;
|
|
294
252
|
};
|
|
295
253
|
isSubsequentPublish: boolean;
|
|
296
254
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -80,20 +80,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
isVariation: boolean;
|
|
81
81
|
isExcluded: boolean;
|
|
82
82
|
} | undefined;
|
|
83
|
-
bp_5873_live_preview_prepurchase?: {
|
|
84
|
-
key: string;
|
|
85
|
-
value: string;
|
|
86
|
-
isControl: boolean;
|
|
87
|
-
isVariation: boolean;
|
|
88
|
-
isExcluded: boolean;
|
|
89
|
-
} | undefined;
|
|
90
|
-
bp_5873_live_preview_postpurchase?: {
|
|
91
|
-
key: string;
|
|
92
|
-
value: string;
|
|
93
|
-
isControl: boolean;
|
|
94
|
-
isVariation: boolean;
|
|
95
|
-
isExcluded: boolean;
|
|
96
|
-
} | undefined;
|
|
97
83
|
};
|
|
98
84
|
isSubsequentPublish: boolean;
|
|
99
85
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -169,20 +155,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
169
155
|
isVariation: boolean;
|
|
170
156
|
isExcluded: boolean;
|
|
171
157
|
} | undefined;
|
|
172
|
-
bp_5873_live_preview_prepurchase?: {
|
|
173
|
-
key: string;
|
|
174
|
-
value: string;
|
|
175
|
-
isControl: boolean;
|
|
176
|
-
isVariation: boolean;
|
|
177
|
-
isExcluded: boolean;
|
|
178
|
-
} | undefined;
|
|
179
|
-
bp_5873_live_preview_postpurchase?: {
|
|
180
|
-
key: string;
|
|
181
|
-
value: string;
|
|
182
|
-
isControl: boolean;
|
|
183
|
-
isVariation: boolean;
|
|
184
|
-
isExcluded: boolean;
|
|
185
|
-
} | undefined;
|
|
186
158
|
};
|
|
187
159
|
isSubsequentPublish: boolean;
|
|
188
160
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -258,20 +230,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
258
230
|
isVariation: boolean;
|
|
259
231
|
isExcluded: boolean;
|
|
260
232
|
} | undefined;
|
|
261
|
-
bp_5873_live_preview_prepurchase?: {
|
|
262
|
-
key: string;
|
|
263
|
-
value: string;
|
|
264
|
-
isControl: boolean;
|
|
265
|
-
isVariation: boolean;
|
|
266
|
-
isExcluded: boolean;
|
|
267
|
-
} | undefined;
|
|
268
|
-
bp_5873_live_preview_postpurchase?: {
|
|
269
|
-
key: string;
|
|
270
|
-
value: string;
|
|
271
|
-
isControl: boolean;
|
|
272
|
-
isVariation: boolean;
|
|
273
|
-
isExcluded: boolean;
|
|
274
|
-
} | undefined;
|
|
275
233
|
};
|
|
276
234
|
isSubsequentPublish: boolean;
|
|
277
235
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -148,20 +148,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
148
148
|
isVariation: boolean;
|
|
149
149
|
isExcluded: boolean;
|
|
150
150
|
} | undefined;
|
|
151
|
-
bp_5873_live_preview_prepurchase?: {
|
|
152
|
-
key: string;
|
|
153
|
-
value: string;
|
|
154
|
-
isControl: boolean;
|
|
155
|
-
isVariation: boolean;
|
|
156
|
-
isExcluded: boolean;
|
|
157
|
-
} | undefined;
|
|
158
|
-
bp_5873_live_preview_postpurchase?: {
|
|
159
|
-
key: string;
|
|
160
|
-
value: string;
|
|
161
|
-
isControl: boolean;
|
|
162
|
-
isVariation: boolean;
|
|
163
|
-
isExcluded: boolean;
|
|
164
|
-
} | undefined;
|
|
165
151
|
};
|
|
166
152
|
isSubsequentPublish: boolean;
|
|
167
153
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -237,20 +223,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
237
223
|
isVariation: boolean;
|
|
238
224
|
isExcluded: boolean;
|
|
239
225
|
} | undefined;
|
|
240
|
-
bp_5873_live_preview_prepurchase?: {
|
|
241
|
-
key: string;
|
|
242
|
-
value: string;
|
|
243
|
-
isControl: boolean;
|
|
244
|
-
isVariation: boolean;
|
|
245
|
-
isExcluded: boolean;
|
|
246
|
-
} | undefined;
|
|
247
|
-
bp_5873_live_preview_postpurchase?: {
|
|
248
|
-
key: string;
|
|
249
|
-
value: string;
|
|
250
|
-
isControl: boolean;
|
|
251
|
-
isVariation: boolean;
|
|
252
|
-
isExcluded: boolean;
|
|
253
|
-
} | undefined;
|
|
254
226
|
};
|
|
255
227
|
isSubsequentPublish: boolean;
|
|
256
228
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -326,20 +298,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
298
|
isVariation: boolean;
|
|
327
299
|
isExcluded: boolean;
|
|
328
300
|
} | undefined;
|
|
329
|
-
bp_5873_live_preview_prepurchase?: {
|
|
330
|
-
key: string;
|
|
331
|
-
value: string;
|
|
332
|
-
isControl: boolean;
|
|
333
|
-
isVariation: boolean;
|
|
334
|
-
isExcluded: boolean;
|
|
335
|
-
} | undefined;
|
|
336
|
-
bp_5873_live_preview_postpurchase?: {
|
|
337
|
-
key: string;
|
|
338
|
-
value: string;
|
|
339
|
-
isControl: boolean;
|
|
340
|
-
isVariation: boolean;
|
|
341
|
-
isExcluded: boolean;
|
|
342
|
-
} | undefined;
|
|
343
301
|
};
|
|
344
302
|
isSubsequentPublish: boolean;
|
|
345
303
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -75,20 +75,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
75
|
isVariation: boolean;
|
|
76
76
|
isExcluded: boolean;
|
|
77
77
|
} | undefined;
|
|
78
|
-
bp_5873_live_preview_prepurchase?: {
|
|
79
|
-
key: string;
|
|
80
|
-
value: string;
|
|
81
|
-
isControl: boolean;
|
|
82
|
-
isVariation: boolean;
|
|
83
|
-
isExcluded: boolean;
|
|
84
|
-
} | undefined;
|
|
85
|
-
bp_5873_live_preview_postpurchase?: {
|
|
86
|
-
key: string;
|
|
87
|
-
value: string;
|
|
88
|
-
isControl: boolean;
|
|
89
|
-
isVariation: boolean;
|
|
90
|
-
isExcluded: boolean;
|
|
91
|
-
} | undefined;
|
|
92
78
|
};
|
|
93
79
|
isSubsequentPublish: boolean;
|
|
94
80
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -164,20 +150,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
164
150
|
isVariation: boolean;
|
|
165
151
|
isExcluded: boolean;
|
|
166
152
|
} | undefined;
|
|
167
|
-
bp_5873_live_preview_prepurchase?: {
|
|
168
|
-
key: string;
|
|
169
|
-
value: string;
|
|
170
|
-
isControl: boolean;
|
|
171
|
-
isVariation: boolean;
|
|
172
|
-
isExcluded: boolean;
|
|
173
|
-
} | undefined;
|
|
174
|
-
bp_5873_live_preview_postpurchase?: {
|
|
175
|
-
key: string;
|
|
176
|
-
value: string;
|
|
177
|
-
isControl: boolean;
|
|
178
|
-
isVariation: boolean;
|
|
179
|
-
isExcluded: boolean;
|
|
180
|
-
} | undefined;
|
|
181
153
|
};
|
|
182
154
|
isSubsequentPublish: boolean;
|
|
183
155
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -253,20 +225,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
253
225
|
isVariation: boolean;
|
|
254
226
|
isExcluded: boolean;
|
|
255
227
|
} | undefined;
|
|
256
|
-
bp_5873_live_preview_prepurchase?: {
|
|
257
|
-
key: string;
|
|
258
|
-
value: string;
|
|
259
|
-
isControl: boolean;
|
|
260
|
-
isVariation: boolean;
|
|
261
|
-
isExcluded: boolean;
|
|
262
|
-
} | undefined;
|
|
263
|
-
bp_5873_live_preview_postpurchase?: {
|
|
264
|
-
key: string;
|
|
265
|
-
value: string;
|
|
266
|
-
isControl: boolean;
|
|
267
|
-
isVariation: boolean;
|
|
268
|
-
isExcluded: boolean;
|
|
269
|
-
} | undefined;
|
|
270
228
|
};
|
|
271
229
|
isSubsequentPublish: boolean;
|
|
272
230
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -4,6 +4,8 @@ import type { StyleTextFontFamilyOption } from '@shared/style-settings/models';
|
|
|
4
4
|
import type { HyperlinkType, TextStyleOption } from '@brand-page';
|
|
5
5
|
import { type TextItem, type TextStyleDeclaration } from '@brand-page';
|
|
6
6
|
import type { ButtonGroupOption } from '@brand-page-maker/models/button-group.model';
|
|
7
|
+
import { useUiContentSettingsStore } from '@shared/content-settings/store';
|
|
8
|
+
import type { RteItemStyleTarget } from '@shared/content-settings/models';
|
|
7
9
|
interface UseRichTextEditorReturn {
|
|
8
10
|
editor: Editor;
|
|
9
11
|
onFocus: () => void;
|
|
@@ -55,6 +57,16 @@ interface EditorOptionType {
|
|
|
55
57
|
export declare const useExternalRichTextEditor: () => {
|
|
56
58
|
externalEditor: Editor;
|
|
57
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* An editor bound to a list item (`itemStyleTarget`) writes its toolbar styles to that
|
|
62
|
+
* item's own style field instead of the section-level `${name}Style`. Returns false when
|
|
63
|
+
* the editor has no item target, so the caller falls through to its section-level write.
|
|
64
|
+
*/
|
|
65
|
+
export declare const writeListItemStyles: (store: ReturnType<typeof useUiContentSettingsStore>, props: {
|
|
66
|
+
rawId: string;
|
|
67
|
+
name: string;
|
|
68
|
+
itemStyleTarget?: RteItemStyleTarget;
|
|
69
|
+
}, value: TextStyleDeclaration, isHydrationWrite?: boolean) => boolean;
|
|
58
70
|
export declare const useRichTextEditor: (model: ModelRef<any>, props: {
|
|
59
71
|
id: string;
|
|
60
72
|
name: string;
|
|
@@ -66,6 +78,7 @@ export declare const useRichTextEditor: (model: ModelRef<any>, props: {
|
|
|
66
78
|
textItemIndex: number;
|
|
67
79
|
item: TextItem;
|
|
68
80
|
contentType: string;
|
|
81
|
+
itemStyleTarget?: RteItemStyleTarget;
|
|
69
82
|
}, emit: (event: "focus" | "blur" | "update:modelValue", ...args: any[]) => void, fontSettings: {
|
|
70
83
|
selectedTextStyle: string;
|
|
71
84
|
selectedFont: string;
|