@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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ContentType } from '../../brand-page/models';
|
|
8
8
|
/** Content types not supported by the AI builder. */
|
|
9
|
-
type UnsupportedContentType = 'logo' | 'video' | 'map' | 'request-payment' | 'support-me' | 'shop-section';
|
|
9
|
+
type UnsupportedContentType = 'logo' | 'video' | 'map' | 'request-payment' | 'support-me' | 'shop-section' | 'faq-section';
|
|
10
10
|
export type SectionType = Exclude<ContentType, UnsupportedContentType>;
|
|
11
11
|
export interface TiptapMark {
|
|
12
12
|
type: 'bold' | 'italic' | 'underline' | 'strike' | 'link' | 'textStyle' | 'highlight';
|
|
@@ -221,6 +221,10 @@ export const FIELD_SLOT_MAP = {
|
|
|
221
221
|
nameStyle: 'onSurface',
|
|
222
222
|
positionStyle: 'onSurface',
|
|
223
223
|
testimonialStyle: 'onSurface',
|
|
224
|
+
// Per-item styles of each FAQ item (RTE_ITEM_FIELD_PAIRS). The rows sit on the
|
|
225
|
+
// section band — there is no raised card.
|
|
226
|
+
questionStyle: 'onSurface',
|
|
227
|
+
answerStyle: 'onSurface',
|
|
224
228
|
};
|
|
225
229
|
/**
|
|
226
230
|
* Resolve a field's slot: its default placement, promoted to the raised layer when this
|
|
@@ -11,6 +11,18 @@ export interface RTEFieldPair {
|
|
|
11
11
|
styleField: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const RTE_SECTION_FIELD_PAIRS: Record<string, RTEFieldPair[]>;
|
|
14
|
+
/**
|
|
15
|
+
* RTE fields that live on each entry of an item list, each driven by a style field
|
|
16
|
+
* on the SAME item — every question is its own title-like field. The rewrap walks and
|
|
17
|
+
* the colour strategies visit every item for these.
|
|
18
|
+
*
|
|
19
|
+
* The Text block's `textItems` is not listed: its walk has its own legacy fallbacks
|
|
20
|
+
* (single-text mode, section-level `textStyle`) in `transformToRTE`.
|
|
21
|
+
*/
|
|
22
|
+
export interface RTEItemFieldPair extends RTEFieldPair {
|
|
23
|
+
itemsField: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const RTE_ITEM_FIELD_PAIRS: Record<string, RTEItemFieldPair[]>;
|
|
14
26
|
/**
|
|
15
27
|
* The RTE text field a given style field drives, or `undefined` when that field
|
|
16
28
|
* drives no RTE content.
|
|
@@ -15,6 +15,10 @@ export const RTE_SECTION_FIELD_PAIRS = {
|
|
|
15
15
|
{ textField: 'title', styleField: 'titleStyle' },
|
|
16
16
|
{ textField: 'description', styleField: 'descriptionStyle' },
|
|
17
17
|
],
|
|
18
|
+
'faq-section': [
|
|
19
|
+
{ textField: 'title', styleField: 'titleStyle' },
|
|
20
|
+
{ textField: 'description', styleField: 'descriptionStyle' },
|
|
21
|
+
],
|
|
18
22
|
'images-section': [
|
|
19
23
|
{ textField: 'title', styleField: 'titleStyle' },
|
|
20
24
|
{ textField: 'description', styleField: 'descriptionStyle' },
|
|
@@ -53,6 +57,12 @@ export const RTE_SECTION_FIELD_PAIRS = {
|
|
|
53
57
|
{ textField: 'description', styleField: 'descriptionStyle' },
|
|
54
58
|
],
|
|
55
59
|
};
|
|
60
|
+
export const RTE_ITEM_FIELD_PAIRS = {
|
|
61
|
+
'faq-section': [
|
|
62
|
+
{ itemsField: 'items', textField: 'question', styleField: 'questionStyle' },
|
|
63
|
+
{ itemsField: 'items', textField: 'answer', styleField: 'answerStyle' },
|
|
64
|
+
],
|
|
65
|
+
};
|
|
56
66
|
/**
|
|
57
67
|
* The `text` section is absent from the map above: on brandSite its RTE lives
|
|
58
68
|
* per-item in `textItems[]`, which the editor walks separately. On
|
package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
64
64
|
selectedItemValue: string | null;
|
|
65
65
|
selectedItemIndex: number | null;
|
|
66
66
|
activeCategoryTab: ItemCategory;
|
|
67
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
67
68
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => Content | undefined;
|
|
68
69
|
getFieldSettings(state: {
|
|
69
70
|
addContentOptions: {
|
|
@@ -115,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
115
116
|
selectedItemValue: string | null;
|
|
116
117
|
selectedItemIndex: number | null;
|
|
117
118
|
activeCategoryTab: ItemCategory;
|
|
119
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
118
120
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("../../models").ContentItemFieldSettings | undefined;
|
|
119
121
|
getItem(state: {
|
|
120
122
|
addContentOptions: {
|
|
@@ -166,6 +168,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
166
168
|
selectedItemValue: string | null;
|
|
167
169
|
selectedItemIndex: number | null;
|
|
168
170
|
activeCategoryTab: ItemCategory;
|
|
171
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
169
172
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
170
173
|
getValue(state: {
|
|
171
174
|
addContentOptions: {
|
|
@@ -217,6 +220,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
217
220
|
selectedItemValue: string | null;
|
|
218
221
|
selectedItemIndex: number | null;
|
|
219
222
|
activeCategoryTab: ItemCategory;
|
|
223
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
220
224
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
|
|
221
225
|
getItemState(state: {
|
|
222
226
|
addContentOptions: {
|
|
@@ -268,6 +272,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
268
272
|
selectedItemValue: string | null;
|
|
269
273
|
selectedItemIndex: number | null;
|
|
270
274
|
activeCategoryTab: ItemCategory;
|
|
275
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
271
276
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentSettingsItemState;
|
|
272
277
|
getItemGroupState(state: {
|
|
273
278
|
addContentOptions: {
|
|
@@ -319,11 +324,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
319
324
|
selectedItemValue: string | null;
|
|
320
325
|
selectedItemIndex: number | null;
|
|
321
326
|
activeCategoryTab: ItemCategory;
|
|
327
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
322
328
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState;
|
|
323
329
|
mode(): import("../../store").ContentSettingsMode;
|
|
324
330
|
selectedItem(): ContentItem<any> | undefined;
|
|
325
331
|
selectedItemTemplate(): import("@brand-page-maker/models").ContentSettingsConfig<any> | undefined;
|
|
326
332
|
}, {
|
|
333
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
327
334
|
onContentChanged(): void;
|
|
328
335
|
_addItem({ item, index, }: {
|
|
329
336
|
item: ContentItem<any>;
|
|
@@ -387,6 +394,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
387
394
|
}): void;
|
|
388
395
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
389
396
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
397
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
398
|
+
target: import("../../models").RteItemStyleTarget;
|
|
399
|
+
}): void;
|
|
390
400
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
391
401
|
activeCategoryTab: ItemCategory;
|
|
392
402
|
}): void;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
33
33
|
selectedItemEventSource: import("vue").ComputedRef<"preview" | "contentSettings" | "pageSettings" | null>;
|
|
34
34
|
selectedItemIndex: import("vue").ComputedRef<number | null>;
|
|
35
35
|
selectedItemValue: import("vue").ComputedRef<string | null>;
|
|
36
|
-
contentType: import("vue").ComputedRef<"website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section" | undefined>;
|
|
36
|
+
contentType: import("vue").ComputedRef<"website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section" | "faq-section" | undefined>;
|
|
37
37
|
mode: import("vue").ComputedRef<"images" | "add" | "edit" | "focusedContentItem">;
|
|
38
38
|
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
39
39
|
contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
|
|
@@ -88,6 +88,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
88
88
|
selectedItemValue: string | null;
|
|
89
89
|
selectedItemIndex: number | null;
|
|
90
90
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
91
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
91
92
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("@brand-page").Content | undefined;
|
|
92
93
|
getFieldSettings(state: {
|
|
93
94
|
addContentOptions: {
|
|
@@ -139,6 +140,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
139
140
|
selectedItemValue: string | null;
|
|
140
141
|
selectedItemIndex: number | null;
|
|
141
142
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
143
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
142
144
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => ContentItemFieldSettings | undefined;
|
|
143
145
|
getItem(state: {
|
|
144
146
|
addContentOptions: {
|
|
@@ -190,6 +192,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
190
192
|
selectedItemValue: string | null;
|
|
191
193
|
selectedItemIndex: number | null;
|
|
192
194
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
195
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
193
196
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
194
197
|
getValue(state: {
|
|
195
198
|
addContentOptions: {
|
|
@@ -241,6 +244,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
241
244
|
selectedItemValue: string | null;
|
|
242
245
|
selectedItemIndex: number | null;
|
|
243
246
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
247
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
244
248
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("@brand-page").Content | string | undefined;
|
|
245
249
|
getItemState(state: {
|
|
246
250
|
addContentOptions: {
|
|
@@ -292,6 +296,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
292
296
|
selectedItemValue: string | null;
|
|
293
297
|
selectedItemIndex: number | null;
|
|
294
298
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
299
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
295
300
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentSettingsItemState;
|
|
296
301
|
getItemGroupState(state: {
|
|
297
302
|
addContentOptions: {
|
|
@@ -343,11 +348,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
343
348
|
selectedItemValue: string | null;
|
|
344
349
|
selectedItemIndex: number | null;
|
|
345
350
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
351
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
346
352
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState;
|
|
347
353
|
mode(): import("../../store").ContentSettingsMode;
|
|
348
354
|
selectedItem(): ContentItem<any> | undefined;
|
|
349
355
|
selectedItemTemplate(): import("../../../../brand-page-maker/models").ContentSettingsConfig<any> | undefined;
|
|
350
356
|
}, {
|
|
357
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
351
358
|
onContentChanged(): void;
|
|
352
359
|
_addItem({ item, index, }: {
|
|
353
360
|
item: ContentItem<any>;
|
|
@@ -411,6 +418,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
411
418
|
}): void;
|
|
412
419
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
413
420
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
421
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
422
|
+
target: import("../../models").RteItemStyleTarget;
|
|
423
|
+
}): void;
|
|
414
424
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
415
425
|
activeCategoryTab: import("../../../../brand-page-maker/models").ItemCategory;
|
|
416
426
|
}): void;
|
|
@@ -76,6 +76,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
76
|
selectedItemValue: string | null;
|
|
77
77
|
selectedItemIndex: number | null;
|
|
78
78
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
79
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
79
80
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("@brand-page").Content | undefined;
|
|
80
81
|
getFieldSettings(state: {
|
|
81
82
|
addContentOptions: {
|
|
@@ -127,6 +128,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
128
|
selectedItemValue: string | null;
|
|
128
129
|
selectedItemIndex: number | null;
|
|
129
130
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
131
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
130
132
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("../../models").ContentItemFieldSettings | undefined;
|
|
131
133
|
getItem(state: {
|
|
132
134
|
addContentOptions: {
|
|
@@ -178,6 +180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
178
180
|
selectedItemValue: string | null;
|
|
179
181
|
selectedItemIndex: number | null;
|
|
180
182
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
183
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
181
184
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentItem<any> | undefined;
|
|
182
185
|
getValue(state: {
|
|
183
186
|
addContentOptions: {
|
|
@@ -229,6 +232,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
229
232
|
selectedItemValue: string | null;
|
|
230
233
|
selectedItemIndex: number | null;
|
|
231
234
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
235
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
232
236
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("@brand-page").Content | string | undefined;
|
|
233
237
|
getItemState(state: {
|
|
234
238
|
addContentOptions: {
|
|
@@ -280,6 +284,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
280
284
|
selectedItemValue: string | null;
|
|
281
285
|
selectedItemIndex: number | null;
|
|
282
286
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
287
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
283
288
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentSettingsItemState;
|
|
284
289
|
getItemGroupState(state: {
|
|
285
290
|
addContentOptions: {
|
|
@@ -331,11 +336,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
331
336
|
selectedItemValue: string | null;
|
|
332
337
|
selectedItemIndex: number | null;
|
|
333
338
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
339
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
334
340
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState;
|
|
335
341
|
mode(): import("../../store").ContentSettingsMode;
|
|
336
342
|
selectedItem(): import("../../models").ContentItem<any> | undefined;
|
|
337
343
|
selectedItemTemplate(): ContentSettingsConfig<any> | undefined;
|
|
338
344
|
}, {
|
|
345
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
339
346
|
onContentChanged(): void;
|
|
340
347
|
_addItem({ item, index, }: {
|
|
341
348
|
item: import("../../models").ContentItem<any>;
|
|
@@ -399,6 +406,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
399
406
|
}): void;
|
|
400
407
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
401
408
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
409
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
410
|
+
target: import("../../models").RteItemStyleTarget;
|
|
411
|
+
}): void;
|
|
402
412
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
403
413
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
404
414
|
}): void;
|
|
@@ -116,6 +116,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
116
116
|
selectedItemValue: string | null;
|
|
117
117
|
selectedItemIndex: number | null;
|
|
118
118
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
119
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
119
120
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => Content | undefined;
|
|
120
121
|
getFieldSettings(state: {
|
|
121
122
|
addContentOptions: {
|
|
@@ -167,6 +168,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
167
168
|
selectedItemValue: string | null;
|
|
168
169
|
selectedItemIndex: number | null;
|
|
169
170
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
171
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
170
172
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("../../models").ContentItemFieldSettings | undefined;
|
|
171
173
|
getItem(state: {
|
|
172
174
|
addContentOptions: {
|
|
@@ -218,6 +220,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
218
220
|
selectedItemValue: string | null;
|
|
219
221
|
selectedItemIndex: number | null;
|
|
220
222
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
223
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
221
224
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
222
225
|
getValue(state: {
|
|
223
226
|
addContentOptions: {
|
|
@@ -269,6 +272,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
269
272
|
selectedItemValue: string | null;
|
|
270
273
|
selectedItemIndex: number | null;
|
|
271
274
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
275
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
272
276
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => Content | string | undefined;
|
|
273
277
|
getItemState(state: {
|
|
274
278
|
addContentOptions: {
|
|
@@ -320,6 +324,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
320
324
|
selectedItemValue: string | null;
|
|
321
325
|
selectedItemIndex: number | null;
|
|
322
326
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
327
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
323
328
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentSettingsItemState;
|
|
324
329
|
getItemGroupState(state: {
|
|
325
330
|
addContentOptions: {
|
|
@@ -371,11 +376,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
371
376
|
selectedItemValue: string | null;
|
|
372
377
|
selectedItemIndex: number | null;
|
|
373
378
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
379
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
374
380
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState;
|
|
375
381
|
mode(): import("../../store").ContentSettingsMode;
|
|
376
382
|
selectedItem(): ContentItem<any> | undefined;
|
|
377
383
|
selectedItemTemplate(): import("@brand-page-maker/models").ContentSettingsConfig<any> | undefined;
|
|
378
384
|
}, {
|
|
385
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
379
386
|
onContentChanged(): void;
|
|
380
387
|
_addItem({ item, index, }: {
|
|
381
388
|
item: ContentItem<any>;
|
|
@@ -439,6 +446,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
439
446
|
}): void;
|
|
440
447
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
441
448
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
449
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
450
|
+
target: import("../../models").RteItemStyleTarget;
|
|
451
|
+
}): void;
|
|
442
452
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
443
453
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
444
454
|
}): void;
|
|
@@ -69,6 +69,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
69
69
|
selectedItemValue: string | null;
|
|
70
70
|
selectedItemIndex: number | null;
|
|
71
71
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
72
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
72
73
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("@brand-page").Content | undefined;
|
|
73
74
|
getFieldSettings(state: {
|
|
74
75
|
addContentOptions: {
|
|
@@ -120,6 +121,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
120
121
|
selectedItemValue: string | null;
|
|
121
122
|
selectedItemIndex: number | null;
|
|
122
123
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
124
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
123
125
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("../../models").ContentItemFieldSettings | undefined;
|
|
124
126
|
getItem(state: {
|
|
125
127
|
addContentOptions: {
|
|
@@ -171,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
171
173
|
selectedItemValue: string | null;
|
|
172
174
|
selectedItemIndex: number | null;
|
|
173
175
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
176
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
174
177
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => ContentItem<any> | undefined;
|
|
175
178
|
getValue(state: {
|
|
176
179
|
addContentOptions: {
|
|
@@ -222,6 +225,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
222
225
|
selectedItemValue: string | null;
|
|
223
226
|
selectedItemIndex: number | null;
|
|
224
227
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
228
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
225
229
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, fieldName: string) => import("@brand-page").Content | string | undefined;
|
|
226
230
|
getItemState(state: {
|
|
227
231
|
addContentOptions: {
|
|
@@ -273,6 +277,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
273
277
|
selectedItemValue: string | null;
|
|
274
278
|
selectedItemIndex: number | null;
|
|
275
279
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
280
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
276
281
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string) => import("../../models").ContentSettingsItemState;
|
|
277
282
|
getItemGroupState(state: {
|
|
278
283
|
addContentOptions: {
|
|
@@ -324,11 +329,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
324
329
|
selectedItemValue: string | null;
|
|
325
330
|
selectedItemIndex: number | null;
|
|
326
331
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
332
|
+
activeItemIdByContentId: Record<string, string | undefined>;
|
|
327
333
|
} & import("pinia").PiniaCustomStateProperties<import("../../store").ContentSettingsState>): (id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState;
|
|
328
334
|
mode(): import("../../store").ContentSettingsMode;
|
|
329
335
|
selectedItem(): ContentItem<any> | undefined;
|
|
330
336
|
selectedItemTemplate(): ContentSettingsConfig<any> | undefined;
|
|
331
337
|
}, {
|
|
338
|
+
setActiveItem(contentId: string, itemId: string | undefined): void;
|
|
332
339
|
onContentChanged(): void;
|
|
333
340
|
_addItem({ item, index, }: {
|
|
334
341
|
item: ContentItem<any>;
|
|
@@ -392,6 +399,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
392
399
|
}): void;
|
|
393
400
|
updateTextItemTextStyleType({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
394
401
|
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, isHydrationWrite, }: import("../../models").UpdateMultipleItemValuesPayload<any>): void;
|
|
402
|
+
updateListItemTextStyles({ id, name, value, target, isHydrationWrite, }: Omit<import("../../models").UpdateMultipleItemValuesPayload<any>, "index"> & {
|
|
403
|
+
target: import("../../models").RteItemStyleTarget;
|
|
404
|
+
}): void;
|
|
395
405
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
396
406
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
397
407
|
}): void;
|
|
@@ -34,6 +34,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
34
|
required: false;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
deleteLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
37
42
|
}>, {}, {
|
|
38
43
|
itemStates: Record<number, ItemFieldState>;
|
|
39
44
|
}, {
|
|
@@ -43,9 +48,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
48
|
};
|
|
44
49
|
}, {
|
|
45
50
|
toggleCollapsed(index: number): void;
|
|
51
|
+
expand(index: number): void;
|
|
46
52
|
onDelete(index: number): void;
|
|
47
53
|
onEdit(index: number): void;
|
|
48
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("items-change" | "items-delete" | "itemsEdit")[], "items-change" | "items-delete" | "itemsEdit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("items-change" | "items-delete" | "itemsEdit" | "item-toggle")[], "items-change" | "items-delete" | "itemsEdit" | "item-toggle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
55
|
items: {
|
|
50
56
|
type: PropType<ItemFieldItem[]>;
|
|
51
57
|
required: true;
|
|
@@ -70,12 +76,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
70
76
|
required: false;
|
|
71
77
|
default: boolean;
|
|
72
78
|
};
|
|
79
|
+
deleteLabel: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
73
84
|
}>> & Readonly<{
|
|
74
85
|
"onItems-change"?: ((...args: any[]) => any) | undefined;
|
|
75
86
|
"onItems-delete"?: ((...args: any[]) => any) | undefined;
|
|
76
87
|
onItemsEdit?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onItem-toggle"?: ((...args: any[]) => any) | undefined;
|
|
77
89
|
}>, {
|
|
78
90
|
collapsedByDefault: boolean;
|
|
79
91
|
isDraggable: boolean;
|
|
92
|
+
deleteLabel: string;
|
|
80
93
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
94
|
export default _default;
|
|
@@ -25,8 +25,13 @@ export default defineComponent({
|
|
|
25
25
|
required: false,
|
|
26
26
|
default: true,
|
|
27
27
|
},
|
|
28
|
+
deleteLabel: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
default: 'Delete payment option',
|
|
32
|
+
},
|
|
28
33
|
},
|
|
29
|
-
emits: ['items-change', 'items-delete', 'itemsEdit'],
|
|
34
|
+
emits: ['items-change', 'items-delete', 'itemsEdit', 'item-toggle'],
|
|
30
35
|
data: () => ({
|
|
31
36
|
itemStates: {},
|
|
32
37
|
}),
|
|
@@ -67,6 +72,11 @@ export default defineComponent({
|
|
|
67
72
|
methods: {
|
|
68
73
|
toggleCollapsed(index) {
|
|
69
74
|
this.itemStates[index].isCollapsed = !this.itemStates[index].isCollapsed;
|
|
75
|
+
this.$emit('item-toggle', index, this.itemStates[index].isCollapsed);
|
|
76
|
+
},
|
|
77
|
+
expand(index) {
|
|
78
|
+
this.itemStates[index] = { index, isCollapsed: false };
|
|
79
|
+
this.$emit('item-toggle', index, false);
|
|
70
80
|
},
|
|
71
81
|
onDelete(index) {
|
|
72
82
|
this.$emit('items-delete', index);
|
|
@@ -91,20 +91,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
91
91
|
isVariation: boolean;
|
|
92
92
|
isExcluded: boolean;
|
|
93
93
|
} | undefined;
|
|
94
|
-
bp_5873_live_preview_prepurchase?: {
|
|
95
|
-
key: string;
|
|
96
|
-
value: string;
|
|
97
|
-
isControl: boolean;
|
|
98
|
-
isVariation: boolean;
|
|
99
|
-
isExcluded: boolean;
|
|
100
|
-
} | undefined;
|
|
101
|
-
bp_5873_live_preview_postpurchase?: {
|
|
102
|
-
key: string;
|
|
103
|
-
value: string;
|
|
104
|
-
isControl: boolean;
|
|
105
|
-
isVariation: boolean;
|
|
106
|
-
isExcluded: boolean;
|
|
107
|
-
} | undefined;
|
|
108
94
|
};
|
|
109
95
|
isSubsequentPublish: boolean;
|
|
110
96
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -180,20 +166,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
166
|
isVariation: boolean;
|
|
181
167
|
isExcluded: boolean;
|
|
182
168
|
} | undefined;
|
|
183
|
-
bp_5873_live_preview_prepurchase?: {
|
|
184
|
-
key: string;
|
|
185
|
-
value: string;
|
|
186
|
-
isControl: boolean;
|
|
187
|
-
isVariation: boolean;
|
|
188
|
-
isExcluded: boolean;
|
|
189
|
-
} | undefined;
|
|
190
|
-
bp_5873_live_preview_postpurchase?: {
|
|
191
|
-
key: string;
|
|
192
|
-
value: string;
|
|
193
|
-
isControl: boolean;
|
|
194
|
-
isVariation: boolean;
|
|
195
|
-
isExcluded: boolean;
|
|
196
|
-
} | undefined;
|
|
197
169
|
};
|
|
198
170
|
isSubsequentPublish: boolean;
|
|
199
171
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -269,20 +241,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
269
241
|
isVariation: boolean;
|
|
270
242
|
isExcluded: boolean;
|
|
271
243
|
} | undefined;
|
|
272
|
-
bp_5873_live_preview_prepurchase?: {
|
|
273
|
-
key: string;
|
|
274
|
-
value: string;
|
|
275
|
-
isControl: boolean;
|
|
276
|
-
isVariation: boolean;
|
|
277
|
-
isExcluded: boolean;
|
|
278
|
-
} | undefined;
|
|
279
|
-
bp_5873_live_preview_postpurchase?: {
|
|
280
|
-
key: string;
|
|
281
|
-
value: string;
|
|
282
|
-
isControl: boolean;
|
|
283
|
-
isVariation: boolean;
|
|
284
|
-
isExcluded: boolean;
|
|
285
|
-
} | undefined;
|
|
286
244
|
};
|
|
287
245
|
isSubsequentPublish: boolean;
|
|
288
246
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { TextItem } from '@brand-page';
|
|
3
|
+
import type { RteItemStyleTarget } from '../../models';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
enableMaxLengthError: {
|
|
5
6
|
type: BooleanConstructor;
|
|
@@ -10,6 +11,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
11
|
type: PropType<TextItem>;
|
|
11
12
|
required: true;
|
|
12
13
|
};
|
|
14
|
+
itemStyleTarget: {
|
|
15
|
+
type: PropType<RteItemStyleTarget>;
|
|
16
|
+
required: false;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
13
19
|
}>, {}, {}, {}, {
|
|
14
20
|
onForceUpdate(): void;
|
|
15
21
|
}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -221,7 +227,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
221
227
|
type: PropType<TextItem>;
|
|
222
228
|
required: true;
|
|
223
229
|
};
|
|
230
|
+
itemStyleTarget: {
|
|
231
|
+
type: PropType<RteItemStyleTarget>;
|
|
232
|
+
required: false;
|
|
233
|
+
default: undefined;
|
|
234
|
+
};
|
|
224
235
|
}>> & Readonly<{}>, {
|
|
225
236
|
enableMaxLengthError: boolean;
|
|
237
|
+
itemStyleTarget: RteItemStyleTarget;
|
|
226
238
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
227
239
|
export default _default;
|
|
@@ -106,6 +106,12 @@ export interface UpdateMultipleItemValuesPayload<T extends object> {
|
|
|
106
106
|
/** See UpdateItemValuePayload.isHydrationWrite. */
|
|
107
107
|
isHydrationWrite?: boolean;
|
|
108
108
|
}
|
|
109
|
+
/** The list item whose style an item-level RTE writes (e.g. `items[2].questionStyle`). */
|
|
110
|
+
export interface RteItemStyleTarget {
|
|
111
|
+
itemsField: string;
|
|
112
|
+
index: number;
|
|
113
|
+
styleField: string;
|
|
114
|
+
}
|
|
109
115
|
export interface ValidateItemPayload {
|
|
110
116
|
id: string;
|
|
111
117
|
name: string;
|