@designcrowd/library.brand-page 6.2.3 → 6.2.4-ast-faq-1
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-Cn0M-eZ1.js → CreatedOnBrandCrowd-de-de-DZKdhDPm.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DRLMSDZr.js → CreatedOnBrandCrowd-en-us-BwRkzbWs.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BglTu73U.js → CreatedOnBrandCrowd-es-es-D5c5FXPv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Bj6YZ_el.js → CreatedOnBrandCrowd-fr-ca-CbeeC4am.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Bj6YZ_el.js → CreatedOnBrandCrowd-fr-fr-CbeeC4am.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DEoOmQ1F.js → CreatedOnBrandCrowd-pt-br-Ar-FCaji.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DEoOmQ1F.js → CreatedOnBrandCrowd-pt-pt-Ar-FCaji.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BZ7gTt4Z.js → CreatedOnDcom-de-de-CASR2x4B.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CD6Km5sH.js → CreatedOnDcom-en-us-CzbgCbGq.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CNpZHvEl.js → CreatedOnDcom-es-es-Bo-jkBIJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-URS-ydJ1.js → CreatedOnDcom-fr-ca-DjLS3NVf.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-D2AVeA3H.js → CreatedOnDcom-fr-fr-EuVNSQHo.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C32frnFs.js → CreatedOnDcom-pt-br-DoaEvDmC.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-TDYGjRXS.js → CreatedOnDcom-pt-pt-D-nbucbq.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 +5 -0
- package/lib/src/brand-page/models/brand-page-context.model.js +8 -1
- 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 +22 -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/view-model.util.d.ts +2 -0
- package/lib/src/brand-page/utils/view-model.util.js +23 -0
- package/lib/src/brand-page/view-models.d.ts +9 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +31 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +31 -0
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +7 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +22 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.d.ts +10 -0
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.js +11 -0
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +14 -4
- 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 +78 -50
- 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 +100 -3
- 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 +1 -0
- 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 +47 -1
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +9 -2
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +20 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +21 -0
- 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 +45 -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-BlnNpIYu.js +179 -0
- package/lib/src/bundles/bundled-translations.json +20 -2
- package/lib/src/clients/ai-assistant-client.d.ts +1 -0
- package/lib/src/clients/ai-assistant-client.js +1 -0
- 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 +154 -47
- package/lib/src/css/library.brand-page-brandPage.min.css +154 -47
- package/lib/src/css/library.brand-page-designCom.min.css +154 -47
- package/lib/src/css/library.brand-page-preview.min.css +154 -47
- package/lib/src/index.mjs +224 -222
- package/lib/src/{lib-Dm9AuOJL.js → lib-BS9Le912.js} +30727 -29779
- package/lib/src/metadata-builder/builders/global-font-propagation.d.ts +41 -0
- package/lib/src/metadata-builder/builders/global-font-propagation.js +146 -0
- package/lib/src/metadata-builder/builders/global-styles-builder.js +29 -1
- package/lib/src/metadata-builder/builders/header-builder.js +8 -0
- package/lib/src/metadata-builder/builders/section-builders/index.d.ts +1 -0
- package/lib/src/metadata-builder/builders/section-builders/index.js +1 -0
- package/lib/src/metadata-builder/builders/section-builders/support-me-builder.d.ts +8 -0
- package/lib/src/metadata-builder/builders/section-builders/support-me-builder.js +25 -0
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +5 -2
- package/lib/src/metadata-builder/builders/section-field-maps.js +15 -0
- package/lib/src/metadata-builder/builders/section-field-utils.d.ts +6 -1
- package/lib/src/metadata-builder/builders/section-field-utils.js +48 -12
- package/lib/src/metadata-builder/builders/section-rules/support-me.rules.d.ts +2 -0
- package/lib/src/metadata-builder/builders/section-rules/support-me.rules.js +17 -0
- package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +9 -0
- package/lib/src/metadata-builder/helpers/rte.helpers.js +60 -1
- package/lib/src/metadata-builder/metadata-executor.js +3 -1
- package/lib/src/metadata-builder/models.d.ts +2 -0
- package/lib/src/metadata-builder/models.js +2 -0
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +1 -0
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +4 -0
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +14 -2
- 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/GenericTextInput.mixin.d.ts +1 -1
- 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/email-field/EmailField.mixin.d.ts +1 -1
- 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 +21 -0
- package/lib/src/shared/content-settings/components/tel-field/TelField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/text-field/TextField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +13 -1
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.js +5 -0
- package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.d.ts +1 -1
- 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 +21 -0
- package/lib/src/shared/page-settings/components/delete-page-modal/DeletePageModal.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +31 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +31 -0
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +28 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +21 -0
- package/lib/src/shared/style-settings/button-style-preset.d.ts +12 -0
- package/lib/src/shared/style-settings/button-style-preset.js +39 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +21 -0
- package/lib/src/shared/style-settings/store/style-settings-store.js +6 -32
- package/lib/src/utils/minify-brand-page-metadata.d.ts +9 -0
- package/lib/src/utils/minify-brand-page-metadata.js +23 -1
- package/package.json +2 -13
- package/src/brand-page/components/faq-section/FaqSection.test.ts +354 -0
- package/src/brand-page/components/faq-section/FaqSection.vue +335 -0
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +1 -0
- package/src/brand-page/components/page/PageComponent.vue +2 -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 +14 -1
- package/src/brand-page/models/content.model.ts +1 -0
- package/src/brand-page/models/index.ts +24 -0
- package/src/brand-page/utils/content-callback-util.ts +5 -0
- package/src/brand-page/utils/view-model.util.test.ts +112 -0
- package/src/brand-page/utils/view-model.util.ts +48 -0
- package/src/brand-page/view-models.ts +12 -1
- package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.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 +17 -49
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.test.ts +82 -0
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.ts +19 -0
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +18 -4
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +103 -49
- package/src/brand-page-maker/constants/config-settings-constant.ts +104 -1
- package/src/brand-page-maker/constants/faq-section-config.test.ts +59 -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 +1 -0
- package/src/brand-page-maker/models/content-settings.ts +59 -0
- package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +30 -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 +3820 -300
- package/src/brand-page-maker/utils/apply-color-strategy.test.ts +123 -2
- package/src/brand-page-maker/utils/apply-color-strategy.ts +73 -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/clients/ai-assistant-client.ts +1 -0
- package/src/composables/useTranslate.ts +2 -1
- package/src/metadata-builder/builders/global-font-propagation.test.ts +401 -0
- package/src/metadata-builder/builders/global-font-propagation.ts +238 -0
- package/src/metadata-builder/builders/global-styles-builder.test.ts +107 -0
- package/src/metadata-builder/builders/global-styles-builder.ts +38 -1
- package/src/metadata-builder/builders/header-builder.test.ts +45 -0
- package/src/metadata-builder/builders/header-builder.ts +20 -0
- package/src/metadata-builder/builders/item-id-utils.test.ts +24 -0
- package/src/metadata-builder/builders/section-builders/index.ts +1 -0
- package/src/metadata-builder/builders/section-builders/support-me-builder.test.ts +177 -0
- package/src/metadata-builder/builders/section-builders/support-me-builder.ts +43 -0
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +5 -2
- package/src/metadata-builder/builders/section-field-maps.ts +18 -0
- package/src/metadata-builder/builders/section-field-utils.test.ts +83 -0
- package/src/metadata-builder/builders/section-field-utils.ts +69 -18
- package/src/metadata-builder/builders/section-rules/support-me.rules.ts +39 -0
- package/src/metadata-builder/helpers/rte.helpers.ts +82 -1
- package/src/metadata-builder/metadata-executor.ts +3 -0
- package/src/metadata-builder/models.ts +2 -0
- package/src/metadata-builder/parsers/ai-toolcall-parser.ts +4 -0
- package/src/metadata-builder/parsers/section-tool-arguments.ts +16 -2
- 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/color-field/ColorField.test.ts +29 -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 +2 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.test.ts +272 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.vue +282 -0
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -0
- package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +11 -1
- package/src/shared/content-settings/components/items-field/ItemsField.test.ts +92 -0
- package/src/shared/content-settings/components/items-field/ItemsField.vue +8 -2
- 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 +49 -0
- package/src/shared/content-settings/store/content-settings-store.ts +37 -3
- package/src/shared/style-settings/button-style-preset.test.ts +67 -0
- package/src/shared/style-settings/button-style-preset.ts +56 -0
- package/src/shared/style-settings/store/style-settings-store.ts +9 -38
- package/src/utils/minify-brand-page-metadata.test.ts +201 -1
- package/src/utils/minify-brand-page-metadata.ts +31 -1
- package/lib/src/bundled-translations-BYUfWBT3.js +0 -179
|
@@ -77,6 +77,14 @@ export declare const IMAGE_RESOLUTION_PRESETS: {
|
|
|
77
77
|
readonly ULTRA_HD: "q=80&w=2160";
|
|
78
78
|
};
|
|
79
79
|
export type ImagesSectionContentDisplayStyle = (typeof IMAGES_SECTION_CONTENT_DISPLAY_STYLES)[number];
|
|
80
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
81
|
+
export declare const FAQ_DISPLAY_STYLES: Readonly<{
|
|
82
|
+
readonly centered: "faq-centered";
|
|
83
|
+
readonly split: "faq-split";
|
|
84
|
+
readonly grid: "faq-grid";
|
|
85
|
+
}>;
|
|
86
|
+
export type FaqDisplayStyle = (typeof FAQ_DISPLAY_STYLES)[keyof typeof FAQ_DISPLAY_STYLES];
|
|
87
|
+
export declare const FAQ_MAX_ITEMS = 6;
|
|
80
88
|
export declare const HEADER_CSRF_TOKEN = "csrf-token";
|
|
81
89
|
export declare const STYLE_THEME_KEYS: Readonly<{
|
|
82
90
|
LogoTextColor: "logo-text-color";
|
|
@@ -103,6 +103,13 @@ export const IMAGE_RESOLUTION_PRESETS = {
|
|
|
103
103
|
FULL_HD: 'q=80&w=1080',
|
|
104
104
|
ULTRA_HD: 'q=80&w=2160',
|
|
105
105
|
};
|
|
106
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
107
|
+
export const FAQ_DISPLAY_STYLES = Object.freeze({
|
|
108
|
+
centered: 'faq-centered',
|
|
109
|
+
split: 'faq-split',
|
|
110
|
+
grid: 'faq-grid',
|
|
111
|
+
});
|
|
112
|
+
export const FAQ_MAX_ITEMS = 6;
|
|
106
113
|
export const HEADER_CSRF_TOKEN = 'csrf-token';
|
|
107
114
|
export const STYLE_THEME_KEYS = Object.freeze({
|
|
108
115
|
LogoTextColor: 'logo-text-color',
|
|
@@ -33,5 +33,7 @@ export declare const CONTENT_TEXT_STYLE_PROPERTY_KEYS: {
|
|
|
33
33
|
readonly buttonTextStyle: "buttonTextStyle";
|
|
34
34
|
readonly copyrightStyle: "copyrightStyle";
|
|
35
35
|
readonly successMessageStyle: "successMessageStyle";
|
|
36
|
+
readonly questionStyle: "questionStyle";
|
|
37
|
+
readonly answerStyle: "answerStyle";
|
|
36
38
|
};
|
|
37
39
|
export type ContentTextStylePropertyKey = keyof typeof CONTENT_TEXT_STYLE_PROPERTY_KEYS;
|
|
@@ -34,8 +34,13 @@ export interface AbTestResult {
|
|
|
34
34
|
isVariation: boolean;
|
|
35
35
|
isExcluded: boolean;
|
|
36
36
|
}
|
|
37
|
+
export declare const AB_TEST_KEYS: {
|
|
38
|
+
BP_3926_FREEMIUM_WATERMARK: string;
|
|
39
|
+
BP_6136_V2_AI_BUILDER: string;
|
|
40
|
+
};
|
|
37
41
|
export interface AbTest {
|
|
38
42
|
bp_3926_freemium_watermark?: AbTestResult;
|
|
43
|
+
bp_6136_v2_ai_builder?: AbTestResult;
|
|
39
44
|
}
|
|
40
45
|
export declare const MEDIA_SIZES: {
|
|
41
46
|
readonly size1x: "size1x";
|
|
@@ -22,8 +22,11 @@ export const AB_TEST_FLAG = {
|
|
|
22
22
|
DCOM_WATERMARK_FLAG: 'dcom-bp-3476-new-watermark', // Replace this with preview flag key
|
|
23
23
|
BC_WATERMARK_FLAG: 'bc-bp-3476-new-watermark', // Replace this with preview flag key
|
|
24
24
|
};
|
|
25
|
-
const AB_TEST_KEYS = {
|
|
25
|
+
export const AB_TEST_KEYS = {
|
|
26
26
|
BP_3926_FREEMIUM_WATERMARK: 'bc-bp-3926-freemium-cta-in-website-editor',
|
|
27
|
+
// V1 (control) vs V2 (variation-1) AI website builder, sent by bc-net in the editor
|
|
28
|
+
// payload at load. Key must match `Bp6136V2AiBuilderStrategy.CampaignKey`.
|
|
29
|
+
BP_6136_V2_AI_BUILDER: 'bc-bp-6136-v2-ai-builder',
|
|
27
30
|
};
|
|
28
31
|
export const MEDIA_SIZES = {
|
|
29
32
|
size1x: 'size1x',
|
|
@@ -45,5 +48,9 @@ export const getAbTestResults = (abtestKeyValues) => {
|
|
|
45
48
|
if (abtestKeyValues[AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK]) {
|
|
46
49
|
abTests.bp_3926_freemium_watermark = getValueType(AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK, abtestKeyValues[AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK]);
|
|
47
50
|
}
|
|
51
|
+
// AB Test - V1 vs V2 AI website builder
|
|
52
|
+
if (abtestKeyValues[AB_TEST_KEYS.BP_6136_V2_AI_BUILDER]) {
|
|
53
|
+
abTests.bp_6136_v2_ai_builder = getValueType(AB_TEST_KEYS.BP_6136_V2_AI_BUILDER, abtestKeyValues[AB_TEST_KEYS.BP_6136_V2_AI_BUILDER]);
|
|
54
|
+
}
|
|
48
55
|
return abTests;
|
|
49
56
|
};
|
|
@@ -31,6 +31,7 @@ export declare const CONTENT_TYPES: {
|
|
|
31
31
|
readonly 'shapes-section': "shapes-section";
|
|
32
32
|
readonly 'shop-section': "shop-section";
|
|
33
33
|
readonly 'booking-section': "booking-section";
|
|
34
|
+
readonly 'faq-section': "faq-section";
|
|
34
35
|
};
|
|
35
36
|
export type ContentType = keyof typeof CONTENT_TYPES;
|
|
36
37
|
export declare const PERSONALISATION_ROLES: {
|
|
@@ -478,6 +478,28 @@ export interface BookingSectionContent extends Content {
|
|
|
478
478
|
buttonLinkType: ButtonLinkType;
|
|
479
479
|
buttonTextStyle: TextStyleDeclaration;
|
|
480
480
|
}
|
|
481
|
+
export interface FaqItem {
|
|
482
|
+
/** Stable per-item identifier. See ImageItem.id. */
|
|
483
|
+
id: string;
|
|
484
|
+
question: RichTextValue;
|
|
485
|
+
questionStyle: TextStyleDeclaration;
|
|
486
|
+
answer: RichTextValue;
|
|
487
|
+
answerStyle: TextStyleDeclaration;
|
|
488
|
+
}
|
|
489
|
+
export interface FaqSectionContent extends Content {
|
|
490
|
+
type: 'faq-section';
|
|
491
|
+
title: RichTextValue;
|
|
492
|
+
description: RichTextValue;
|
|
493
|
+
displayStyle: string;
|
|
494
|
+
items: FaqItem[];
|
|
495
|
+
titleStyle: TextStyleDeclaration;
|
|
496
|
+
descriptionStyle: TextStyleDeclaration;
|
|
497
|
+
backgroundStyle: BrandPageCssStyle;
|
|
498
|
+
/** `{ color }` for the +/- toggle. */
|
|
499
|
+
iconColor: BrandPageCssStyle;
|
|
500
|
+
/** `{ backgroundColor }`, the Divider section's shape. `'transparent'` hides the line. */
|
|
501
|
+
dividerColor: BrandPageCssStyle;
|
|
502
|
+
}
|
|
481
503
|
export declare class PageModel {
|
|
482
504
|
title: string;
|
|
483
505
|
contents: Content[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProfileContent, TextContent, ContactFormContent, ImageContent, BannerSectionContent, SocialLinksContent, ImageGalleryContent, TestimonialSectionContent, AboutSectionContent, ImagesSectionContent, MailingListContent, SupportMeContent, RequestPaymentContent, ShapesSectionContent, ShopContent, ButtonContent, PageModel, BookingSectionContent } from '../models';
|
|
1
|
+
import type { ProfileContent, TextContent, ContactFormContent, ImageContent, BannerSectionContent, SocialLinksContent, ImageGalleryContent, TestimonialSectionContent, AboutSectionContent, ImagesSectionContent, MailingListContent, SupportMeContent, RequestPaymentContent, ShapesSectionContent, ShopContent, ButtonContent, PageModel, BookingSectionContent, FaqSectionContent } from '../models';
|
|
2
2
|
export type ContentCallback = {
|
|
3
3
|
profileContentCallback: (content: ProfileContent) => void;
|
|
4
4
|
textContentCallback: (content: TextContent) => void;
|
|
@@ -17,5 +17,6 @@ export type ContentCallback = {
|
|
|
17
17
|
shopSectionContentCallback: (content: ShopContent) => void;
|
|
18
18
|
buttonContentCallback: (content: ButtonContent) => void;
|
|
19
19
|
bookingSectionContentCallback: (content: BookingSectionContent) => void;
|
|
20
|
+
faqSectionContentCallback: (content: FaqSectionContent) => void;
|
|
20
21
|
};
|
|
21
22
|
export declare const forEachPageCallContentCallback: (page: PageModel, callbacks: ContentCallback) => void;
|
|
@@ -49,6 +49,9 @@ export const forEachPageCallContentCallback = (page, callbacks) => {
|
|
|
49
49
|
case 'booking-section':
|
|
50
50
|
callbacks.bookingSectionContentCallback(content);
|
|
51
51
|
break;
|
|
52
|
+
case 'faq-section':
|
|
53
|
+
callbacks.faqSectionContentCallback(content);
|
|
54
|
+
break;
|
|
52
55
|
case 'general-link':
|
|
53
56
|
case 'website':
|
|
54
57
|
case 'email':
|
|
@@ -29,6 +29,8 @@ interface ViewModelMappingOptions {
|
|
|
29
29
|
previewImageUrl: string;
|
|
30
30
|
};
|
|
31
31
|
setVideoUrlsWithToken?: (token: string, videoUrl: string, previewImageUrl: string, assetId: string) => void;
|
|
32
|
+
/** Maker-only UI state: content id → the item its settings panel has open. Never persisted. */
|
|
33
|
+
activeItemIdByContentId?: Record<string, string | undefined>;
|
|
32
34
|
}
|
|
33
35
|
export declare const getBrandPageViewModelFromBrandPageModel: (model: BrandPageModel, brandPageToken: string | undefined, showBrandCrowdLogo: boolean | undefined, options: ViewModelMappingOptions) => BrandPageViewModel;
|
|
34
36
|
export declare const resolvePageIdsInRteJson: (doc: unknown, nav: NavViewModel, options: ViewModelMappingOptions) => unknown;
|
|
@@ -611,6 +611,27 @@ const mapToTestimonialSectionViewModel = (content, styles) => {
|
|
|
611
611
|
isFullWidth: true,
|
|
612
612
|
}, styles);
|
|
613
613
|
};
|
|
614
|
+
// An item's question/answer styles are CONTENT_TEXT_STYLE_PROPERTY_KEYS, so the section
|
|
615
|
+
// resolver handles them when handed the item.
|
|
616
|
+
const mapFaqItem = (item, styles) => applyViewModelTextStyles({
|
|
617
|
+
...item,
|
|
618
|
+
questionStyle: { ...item.questionStyle },
|
|
619
|
+
answerStyle: { ...item.answerStyle },
|
|
620
|
+
}, styles);
|
|
621
|
+
const mapToFaqSectionViewModel = (content, styles, brandPageType, options) => {
|
|
622
|
+
return applyViewModelTextStyles({
|
|
623
|
+
...content,
|
|
624
|
+
role: content.type,
|
|
625
|
+
type: 'faq-section',
|
|
626
|
+
// No `color` pre-seed, as in the testimonial mapper: it would read as an override.
|
|
627
|
+
titleStyle: { ...content.titleStyle },
|
|
628
|
+
descriptionStyle: { ...content.descriptionStyle },
|
|
629
|
+
items: (content.items ?? []).map((item) => mapFaqItem(item, styles)),
|
|
630
|
+
isFullWidth: true,
|
|
631
|
+
isStacked: brandPageType !== BRAND_PAGE_TYPES.brandSite,
|
|
632
|
+
activeItemId: options.activeItemIdByContentId?.[content.id],
|
|
633
|
+
}, styles);
|
|
634
|
+
};
|
|
614
635
|
const mapToSocialLinksViewModel = (content, styles, brandPageType) => {
|
|
615
636
|
return applyViewModelTextStyles({
|
|
616
637
|
...content,
|
|
@@ -872,6 +893,8 @@ export const mapToViewModel = (styles, brandPageType, options) => (content) => {
|
|
|
872
893
|
return mapToBannerSectionViewModel(content, styles, options);
|
|
873
894
|
case 'booking-section':
|
|
874
895
|
return mapToBookingSectionViewModel(content, styles);
|
|
896
|
+
case 'faq-section':
|
|
897
|
+
return mapToFaqSectionViewModel(content, styles, brandPageType, options);
|
|
875
898
|
case 'about-section':
|
|
876
899
|
return mapToAboutSectionViewModel(content, styles);
|
|
877
900
|
case 'images-section':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole, SaveContactOptions, ColorItem, RichTextValue } from './models';
|
|
1
|
+
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, FaqSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole, SaveContactOptions, ColorItem, RichTextValue } from './models';
|
|
2
2
|
import type { ImagesSectionContentDisplayStyle } from './constants';
|
|
3
|
-
export type ViewModelType = 'button' | 'image' | 'image-gallery' | 'logo' | 'map' | 'mailing-list' | 'profile' | 'support-me' | 'request-payment' | 'text' | 'video' | 'contact-form' | 'banner-section' | 'images-section' | 'about-section' | 'divider-section' | 'testimonial-section' | 'social-links' | 'shapes-section' | 'shop-section' | 'booking-section';
|
|
3
|
+
export type ViewModelType = 'button' | 'image' | 'image-gallery' | 'logo' | 'map' | 'mailing-list' | 'profile' | 'support-me' | 'request-payment' | 'text' | 'video' | 'contact-form' | 'banner-section' | 'images-section' | 'about-section' | 'divider-section' | 'testimonial-section' | 'social-links' | 'shapes-section' | 'shop-section' | 'booking-section' | 'faq-section';
|
|
4
4
|
export interface ContentViewModel {
|
|
5
5
|
id: string;
|
|
6
6
|
type: ViewModelType;
|
|
@@ -132,6 +132,13 @@ export interface BookingSectionViewModel extends ContentViewModel, Omit<BookingS
|
|
|
132
132
|
buttonViewModel: ButtonViewModel;
|
|
133
133
|
isFullWidth: boolean;
|
|
134
134
|
}
|
|
135
|
+
export interface FaqSectionViewModel extends ContentViewModel, Omit<FaqSectionContent, 'type'> {
|
|
136
|
+
isFullWidth: boolean;
|
|
137
|
+
/** brand.page / brand.contact: split and grid always use their stacked layout. */
|
|
138
|
+
isStacked: boolean;
|
|
139
|
+
/** Maker-only: the item the settings panel has open, so the canvas shows it. */
|
|
140
|
+
activeItemId?: string;
|
|
141
|
+
}
|
|
135
142
|
export interface PageHeaderViewModel extends Omit<PageHeaderDesktop | PageHeaderMobile, 'logoImage' | 'logoImageStyle' | 'isLogoOptional' | 'viewport' | 'isLogoVisible' | 'logoTemplateImage' | 'logoImageHeight' | 'logoImageWidth' | 'headerButton' | 'backgroundStyle'> {
|
|
136
143
|
logo: LogoViewModel;
|
|
137
144
|
pages: PageViewModel[];
|
|
@@ -292,6 +292,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
292
292
|
isVariation: boolean;
|
|
293
293
|
isExcluded: boolean;
|
|
294
294
|
} | undefined;
|
|
295
|
+
bp_6136_v2_ai_builder?: {
|
|
296
|
+
key: string;
|
|
297
|
+
value: string;
|
|
298
|
+
isControl: boolean;
|
|
299
|
+
isVariation: boolean;
|
|
300
|
+
isExcluded: boolean;
|
|
301
|
+
} | undefined;
|
|
295
302
|
};
|
|
296
303
|
isSubsequentPublish: boolean;
|
|
297
304
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -367,6 +374,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
367
374
|
isVariation: boolean;
|
|
368
375
|
isExcluded: boolean;
|
|
369
376
|
} | undefined;
|
|
377
|
+
bp_6136_v2_ai_builder?: {
|
|
378
|
+
key: string;
|
|
379
|
+
value: string;
|
|
380
|
+
isControl: boolean;
|
|
381
|
+
isVariation: boolean;
|
|
382
|
+
isExcluded: boolean;
|
|
383
|
+
} | undefined;
|
|
370
384
|
};
|
|
371
385
|
isSubsequentPublish: boolean;
|
|
372
386
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -442,6 +456,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
442
456
|
isVariation: boolean;
|
|
443
457
|
isExcluded: boolean;
|
|
444
458
|
} | undefined;
|
|
459
|
+
bp_6136_v2_ai_builder?: {
|
|
460
|
+
key: string;
|
|
461
|
+
value: string;
|
|
462
|
+
isControl: boolean;
|
|
463
|
+
isVariation: boolean;
|
|
464
|
+
isExcluded: boolean;
|
|
465
|
+
} | undefined;
|
|
445
466
|
};
|
|
446
467
|
isSubsequentPublish: boolean;
|
|
447
468
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -606,6 +627,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
606
627
|
selectedItemValue: string | null;
|
|
607
628
|
selectedItemIndex: number | null;
|
|
608
629
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
630
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
609
631
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => import("@brand-page").Content | undefined;
|
|
610
632
|
getFieldSettings(state: {
|
|
611
633
|
addContentOptions: {
|
|
@@ -657,6 +679,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
657
679
|
selectedItemValue: string | null;
|
|
658
680
|
selectedItemIndex: number | null;
|
|
659
681
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
682
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
660
683
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("../../../shared/content-settings/models").ContentItemFieldSettings | undefined;
|
|
661
684
|
getItem(state: {
|
|
662
685
|
addContentOptions: {
|
|
@@ -708,6 +731,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
708
731
|
selectedItemValue: string | null;
|
|
709
732
|
selectedItemIndex: number | null;
|
|
710
733
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
734
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
711
735
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => import("../../../shared/content-settings/models").ContentItem<any> | undefined;
|
|
712
736
|
getValue(state: {
|
|
713
737
|
addContentOptions: {
|
|
@@ -759,6 +783,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
759
783
|
selectedItemValue: string | null;
|
|
760
784
|
selectedItemIndex: number | null;
|
|
761
785
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
786
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
762
787
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, fieldName: string) => import("@brand-page").Content | string | undefined;
|
|
763
788
|
getItemState(state: {
|
|
764
789
|
addContentOptions: {
|
|
@@ -810,6 +835,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
810
835
|
selectedItemValue: string | null;
|
|
811
836
|
selectedItemIndex: number | null;
|
|
812
837
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
838
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
813
839
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string) => import("../../../shared/content-settings/models").ContentSettingsItemState;
|
|
814
840
|
getItemGroupState(state: {
|
|
815
841
|
addContentOptions: {
|
|
@@ -861,11 +887,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
861
887
|
selectedItemValue: string | null;
|
|
862
888
|
selectedItemIndex: number | null;
|
|
863
889
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
890
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
864
891
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/content-settings/store").ContentSettingsState>): (id: string, groupId: string) => import("../../../shared/content-settings/models").ContentSettingsItemGroupState;
|
|
865
892
|
mode(): import("@shared/content-settings/store").ContentSettingsMode;
|
|
866
893
|
selectedItem(): import("../../../shared/content-settings/models").ContentItem<any> | undefined;
|
|
867
894
|
selectedItemTemplate(): import("@brand-page-maker/models").ContentSettingsConfig<any> | undefined;
|
|
868
895
|
}, {
|
|
896
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
869
897
|
onContentChanged(): void;
|
|
870
898
|
_addItem({ item, index, }: {
|
|
871
899
|
item: import("../../../shared/content-settings/models").ContentItem<any>;
|
|
@@ -929,6 +957,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
929
957
|
}): void;
|
|
930
958
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
931
959
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
960
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
961
|
+
target: import("../../../shared/content-settings/models").RteItemStyleTarget;
|
|
962
|
+
}): void;
|
|
932
963
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
933
964
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
934
965
|
}): void;
|
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,6 +716,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
706
716
|
isVariation: boolean;
|
|
707
717
|
isExcluded: boolean;
|
|
708
718
|
} | undefined;
|
|
719
|
+
bp_6136_v2_ai_builder?: {
|
|
720
|
+
key: string;
|
|
721
|
+
value: string;
|
|
722
|
+
isControl: boolean;
|
|
723
|
+
isVariation: boolean;
|
|
724
|
+
isExcluded: boolean;
|
|
725
|
+
} | undefined;
|
|
709
726
|
};
|
|
710
727
|
isSubsequentPublish: boolean;
|
|
711
728
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -781,6 +798,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
781
798
|
isVariation: boolean;
|
|
782
799
|
isExcluded: boolean;
|
|
783
800
|
} | undefined;
|
|
801
|
+
bp_6136_v2_ai_builder?: {
|
|
802
|
+
key: string;
|
|
803
|
+
value: string;
|
|
804
|
+
isControl: boolean;
|
|
805
|
+
isVariation: boolean;
|
|
806
|
+
isExcluded: boolean;
|
|
807
|
+
} | undefined;
|
|
784
808
|
};
|
|
785
809
|
isSubsequentPublish: boolean;
|
|
786
810
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -856,6 +880,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
856
880
|
isVariation: boolean;
|
|
857
881
|
isExcluded: boolean;
|
|
858
882
|
} | undefined;
|
|
883
|
+
bp_6136_v2_ai_builder?: {
|
|
884
|
+
key: string;
|
|
885
|
+
value: string;
|
|
886
|
+
isControl: boolean;
|
|
887
|
+
isVariation: boolean;
|
|
888
|
+
isExcluded: boolean;
|
|
889
|
+
} | undefined;
|
|
859
890
|
};
|
|
860
891
|
isSubsequentPublish: boolean;
|
|
861
892
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -41,6 +41,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
41
|
isVariation: boolean;
|
|
42
42
|
isExcluded: boolean;
|
|
43
43
|
} | undefined;
|
|
44
|
+
bp_6136_v2_ai_builder?: {
|
|
45
|
+
key: string;
|
|
46
|
+
value: string;
|
|
47
|
+
isControl: boolean;
|
|
48
|
+
isVariation: boolean;
|
|
49
|
+
isExcluded: boolean;
|
|
50
|
+
} | undefined;
|
|
44
51
|
};
|
|
45
52
|
}, {
|
|
46
53
|
containerClientHeight: number | undefined;
|
|
@@ -78,6 +78,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
78
78
|
isVariation: boolean;
|
|
79
79
|
isExcluded: boolean;
|
|
80
80
|
} | undefined;
|
|
81
|
+
bp_6136_v2_ai_builder?: {
|
|
82
|
+
key: string;
|
|
83
|
+
value: string;
|
|
84
|
+
isControl: boolean;
|
|
85
|
+
isVariation: boolean;
|
|
86
|
+
isExcluded: boolean;
|
|
87
|
+
} | undefined;
|
|
81
88
|
};
|
|
82
89
|
isSubsequentPublish: boolean;
|
|
83
90
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -153,6 +160,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
160
|
isVariation: boolean;
|
|
154
161
|
isExcluded: boolean;
|
|
155
162
|
} | undefined;
|
|
163
|
+
bp_6136_v2_ai_builder?: {
|
|
164
|
+
key: string;
|
|
165
|
+
value: string;
|
|
166
|
+
isControl: boolean;
|
|
167
|
+
isVariation: boolean;
|
|
168
|
+
isExcluded: boolean;
|
|
169
|
+
} | undefined;
|
|
156
170
|
};
|
|
157
171
|
isSubsequentPublish: boolean;
|
|
158
172
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -228,6 +242,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
228
242
|
isVariation: boolean;
|
|
229
243
|
isExcluded: boolean;
|
|
230
244
|
} | undefined;
|
|
245
|
+
bp_6136_v2_ai_builder?: {
|
|
246
|
+
key: string;
|
|
247
|
+
value: string;
|
|
248
|
+
isControl: boolean;
|
|
249
|
+
isVariation: boolean;
|
|
250
|
+
isExcluded: boolean;
|
|
251
|
+
} | undefined;
|
|
231
252
|
};
|
|
232
253
|
isSubsequentPublish: boolean;
|
|
233
254
|
isContextualUpgradeModalVisible: boolean;
|