@designcrowd/library.brand-page 6.1.6-use-isadminmaker-2 → 6.1.6-use-isadminmaker-3
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-CPLDYp5f.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Br3HqLLr.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DwkIQVgN.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-bvgq_CN8.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-nT3MnRXy.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-D2TYrEzJ.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Q-5tnP12.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-txkwqCzm.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CUnJXLgr.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-7XAwvP9H.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DjhLiioZ.js → CreatedOnDcom-pt-pt-DMkIALyd.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +6 -6
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +3 -3
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
- package/lib/src/css/library.brand-page-brandCrowd.min.css +57 -57
- package/lib/src/css/library.brand-page-brandPage.min.css +57 -57
- package/lib/src/css/library.brand-page-designCom.min.css +57 -57
- package/lib/src/css/library.brand-page-preview.min.css +57 -57
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-dewphkuW.js → lib-BgxxXPxt.js} +191 -191
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.js +1 -1
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -2
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
- package/package.json +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
- package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +7 -7
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
- package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
- package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +1 -1
- package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +11 -11
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
- package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
- package/src/shared/background-settings/components/BackgroundSettings.vue +7 -7
- package/src/shared/background-settings/components/MultiBackgroundShapes.vue +5 -5
- package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +2 -2
- package/src/shared/background-settings/components/SingleBackgroundShape.vue +3 -3
- package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -4
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +1 -1
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
- package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
- package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
- package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +1 -1
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +2 -2
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +2 -2
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +2 -2
- package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
- package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
- package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
- package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
- package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
- package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
- package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
- package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
- package/src/shared/my-uploads/MyUploads.mixin.ts +1 -1
- package/src/shared/my-uploads/MyUploads.vue +1 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
- package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
- package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
- package/src/shared/shape-library/ShapeLibrary.vue +9 -9
- package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
- package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
- package/src/shared/style-settings/components/StyleSettings.vue +29 -23
- package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
|
|
2
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
3
3
|
isLivePreviewEnabled: import("vue").ComputedRef<boolean>;
|
|
4
4
|
isSaving: import("vue").ComputedRef<boolean>;
|
|
5
5
|
isPublished: import("vue").ComputedRef<boolean>;
|
|
@@ -10,7 +10,7 @@ export default defineComponent({
|
|
|
10
10
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
11
11
|
const containerStore = useBrandPageContainerStore();
|
|
12
12
|
return {
|
|
13
|
-
|
|
13
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
14
14
|
// BP-5873: the Preview button is behind an AB test, and pre/post purchase are
|
|
15
15
|
// two separate experiments. Pick the one for the current purchase state — a
|
|
16
16
|
// user's value on the other side is independent and must not leak across.
|
|
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
57
|
backButtonLabel: import("vue").ComputedRef<string>;
|
|
58
58
|
isDesignCom: import("vue").ComputedRef<boolean>;
|
|
59
59
|
selectedTabName: import("vue").ComputedRef<string>;
|
|
60
|
-
|
|
60
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
61
61
|
contentErrorCount: import("vue").ComputedRef<number>;
|
|
62
62
|
mode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
|
|
63
63
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
|
|
@@ -84,7 +84,7 @@ export default defineComponent({
|
|
|
84
84
|
backButtonLabel: computed(() => containerStore.backButtonLabel),
|
|
85
85
|
isDesignCom: computed(() => containerStore.isDesignCom),
|
|
86
86
|
selectedTabName: computed(() => sideBarStore.selectedTabName),
|
|
87
|
-
|
|
87
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
88
88
|
contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
|
|
89
89
|
mode: computed(() => contentSettingsStore.mode),
|
|
90
90
|
brandPageMakerStore,
|
|
@@ -182,11 +182,11 @@ const InitialiseMakerStores = (options) => {
|
|
|
182
182
|
aiTemplateKeywords: undefined,
|
|
183
183
|
});
|
|
184
184
|
userStore.setUserState({
|
|
185
|
-
isAdmin: options.
|
|
185
|
+
isAdmin: options.isAdminMaker,
|
|
186
186
|
hasPremiumSubscription: false,
|
|
187
187
|
brandPageCommissionPercentage: 0.1,
|
|
188
188
|
});
|
|
189
|
-
brandPageContainerStore.isAdminMaker = options.
|
|
189
|
+
brandPageContainerStore.isAdminMaker = options.isAdminMaker ?? false;
|
|
190
190
|
};
|
|
191
191
|
const FABRIC_RENDER_BASE_URL = 'https://localhost:6006/';
|
|
192
192
|
const SAMPLE_BRAND_PAGE_URL = 'https://brand.page';
|
|
@@ -367,7 +367,7 @@ SampleBanner.story = {
|
|
|
367
367
|
name: 'Sample (Banner)',
|
|
368
368
|
};
|
|
369
369
|
export const SamplePersonalised = () => {
|
|
370
|
-
InitialiseMakerStores({
|
|
370
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
371
371
|
return defineComponent({
|
|
372
372
|
components: {
|
|
373
373
|
BrandPageMaker,
|
|
@@ -392,7 +392,7 @@ export const SamplePersonalised = () => {
|
|
|
392
392
|
template: `
|
|
393
393
|
<BrandPageMaker :view-model="viewModel"/>
|
|
394
394
|
`,
|
|
395
|
-
pinia: setupStoryPinia({
|
|
395
|
+
pinia: setupStoryPinia({ isAdminMaker: true }),
|
|
396
396
|
});
|
|
397
397
|
};
|
|
398
398
|
export const SamplePublished = {
|
|
@@ -1160,7 +1160,7 @@ export const SampleNoUserMedia = () => {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
};
|
|
1162
1162
|
export const SampleAdminMode = () => {
|
|
1163
|
-
InitialiseMakerStores({
|
|
1163
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
1164
1164
|
const pinia = setupStoryPinia();
|
|
1165
1165
|
return {
|
|
1166
1166
|
components: {
|
|
@@ -1202,7 +1202,7 @@ export const SampleAdminModeBrandSite = {
|
|
|
1202
1202
|
name: 'Sample (admin mode brandsite1)',
|
|
1203
1203
|
render: () => ({
|
|
1204
1204
|
setup() {
|
|
1205
|
-
InitialiseMakerStores({
|
|
1205
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
1206
1206
|
},
|
|
1207
1207
|
components: {
|
|
1208
1208
|
BrandPageMaker,
|
package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const setupStoryPinia: (options?: {
|
|
|
5
5
|
customDomain?: CustomDomainModel;
|
|
6
6
|
designDraftToken?: string;
|
|
7
7
|
endpoints?: Endpoints;
|
|
8
|
-
|
|
8
|
+
isAdminMaker?: boolean;
|
|
9
9
|
noUserMedia?: boolean;
|
|
10
10
|
noPaymentConfig?: boolean;
|
|
11
11
|
disableMock?: boolean;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
37
37
|
getValue: import("vue").ComputedRef<(id: string, fieldName: string) => Content | string | undefined>;
|
|
38
38
|
selectedTemplateId: import("vue").ComputedRef<string | false>;
|
|
39
39
|
canUseRichTextEditor: import("vue").ComputedRef<boolean>;
|
|
40
|
-
|
|
40
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
41
41
|
logoTheme: import("vue").ComputedRef<{
|
|
42
42
|
logoTextColor: {
|
|
43
43
|
rgb: string;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js
CHANGED
|
@@ -42,7 +42,7 @@ export default defineComponent({
|
|
|
42
42
|
getValue: computed(() => contentSettingsStore.getValue),
|
|
43
43
|
selectedTemplateId: computed(() => brandPageMakerStore.selectedTemplateId),
|
|
44
44
|
canUseRichTextEditor: computed(() => brandPageMakerUserStore.features.canUseRichTextEditor),
|
|
45
|
-
|
|
45
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
46
46
|
logoTheme: computed(() => uiStore.logoTheme),
|
|
47
47
|
contentSettingsStore,
|
|
48
48
|
brandPageMakerStore,
|
|
@@ -211,7 +211,7 @@ export default defineComponent({
|
|
|
211
211
|
if (RTE_ALLOWED_SECTION_TYPES.includes(item.type) &&
|
|
212
212
|
this.canUseRichTextEditor) {
|
|
213
213
|
let selectedItem = item;
|
|
214
|
-
if (this.
|
|
214
|
+
if (this.isAdminMaker) {
|
|
215
215
|
const currentItem = this.items.find((i) => i.id === item.id);
|
|
216
216
|
if (currentItem) {
|
|
217
217
|
selectedItem = currentItem.settings.content;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
};
|
|
9
9
|
}>, {
|
|
10
10
|
mode: import("vue").ComputedRef<"images" | "shapes" | "edit">;
|
|
11
|
-
|
|
11
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
12
12
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
|
|
13
13
|
contentErrorCount(): number;
|
|
14
14
|
brandPageBaseUrl(): string;
|
|
@@ -16,7 +16,7 @@ export default defineComponent({
|
|
|
16
16
|
const containerStore = useBrandPageContainerStore();
|
|
17
17
|
return {
|
|
18
18
|
mode: computed(() => brandPageMakerStore.mode),
|
|
19
|
-
|
|
19
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
20
20
|
brandPageMakerStore,
|
|
21
21
|
userStore,
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
|
|
2
|
+
isAdminMaker: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
required: false;
|
|
5
5
|
default: boolean;
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
43
|
cta_location: string;
|
|
44
44
|
}): void;
|
|
45
45
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "create-team-cards"[], "create-team-cards", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
-
|
|
46
|
+
isAdminMaker: {
|
|
47
47
|
type: BooleanConstructor;
|
|
48
48
|
required: false;
|
|
49
49
|
default: boolean;
|
|
@@ -81,8 +81,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
}>> & Readonly<{
|
|
82
82
|
"onCreate-team-cards"?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
}>, {
|
|
84
|
-
isAdmin: boolean;
|
|
85
84
|
isPublished: boolean;
|
|
85
|
+
isAdminMaker: boolean;
|
|
86
86
|
isSaving: boolean;
|
|
87
87
|
backButtonLabel: string;
|
|
88
88
|
isDesignCom: boolean;
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
selectedTemplateId: import("vue").ComputedRef<string | false>;
|
|
65
65
|
isPrePurchase: import("vue").ComputedRef<boolean>;
|
|
66
66
|
runtimeEnvironment: import("vue").ComputedRef<string>;
|
|
67
|
-
|
|
67
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
68
68
|
userToken: import("vue").ComputedRef<string | undefined>;
|
|
69
69
|
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
70
70
|
renderAsImage: import("vue").ComputedRef<boolean>;
|
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
selectedTemplateId: computed(() => brandPageMakerStore.selectedTemplateId),
|
|
35
35
|
isPrePurchase: computed(() => brandPageContainerStore.isPrePurchase),
|
|
36
36
|
runtimeEnvironment: computed(() => brandPageContainerStore.runtimeEnvironment),
|
|
37
|
-
|
|
37
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
38
38
|
userToken: computed(() => brandPageMakerUserStore.userToken),
|
|
39
39
|
isBrandSite: computed(() => brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite),
|
|
40
40
|
renderAsImage: computed(() => templateSettingsStore.renderAsImage),
|
|
@@ -231,7 +231,7 @@ export default defineComponent({
|
|
|
231
231
|
},
|
|
232
232
|
watch: {
|
|
233
233
|
template() {
|
|
234
|
-
if (this.
|
|
234
|
+
if (this.isAdminMaker) {
|
|
235
235
|
this.updateViewModel();
|
|
236
236
|
}
|
|
237
237
|
else {
|
|
@@ -242,20 +242,20 @@ export default defineComponent({
|
|
|
242
242
|
},
|
|
243
243
|
logoTheme: {
|
|
244
244
|
handler() {
|
|
245
|
-
if (this.
|
|
245
|
+
if (this.isAdminMaker) {
|
|
246
246
|
this.updateViewModel();
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
deep: true,
|
|
250
250
|
},
|
|
251
251
|
logoImageBase64Url() {
|
|
252
|
-
if (this.
|
|
252
|
+
if (this.isAdminMaker) {
|
|
253
253
|
this.updateViewModel();
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
previewImageUrl() {
|
|
257
257
|
// Reset loading state whenever the preview URL changes
|
|
258
|
-
if (!this.
|
|
258
|
+
if (!this.isAdminMaker) {
|
|
259
259
|
this.imageLoading = true;
|
|
260
260
|
this.imageLoadError = false;
|
|
261
261
|
}
|
|
@@ -314,7 +314,7 @@ export default defineComponent({
|
|
|
314
314
|
},
|
|
315
315
|
async updateViewModel(forceUpdate = true) {
|
|
316
316
|
// Only update view model for admin or pre-purchase mode
|
|
317
|
-
if (!this.
|
|
317
|
+
if (!this.isAdminMaker) {
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
const videoStore = useVideoStore();
|