@designcrowd/library.brand-page 6.1.6-use-isadminmaker-1 → 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-Dd_GKG2N.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Dins7rod.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-D-ie39pg.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CbgslN2_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CbgslN2_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-OMePx480.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-OMePx480.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BJc1FMjI.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DoLdNglw.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BG1UvnwD.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DzZkCm3Z.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-9vEmBWv1.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-B5-fW01S.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CNCPHKgi.js → CreatedOnDcom-pt-pt-DMkIALyd.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -2
- 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 +4 -3
- 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 +4 -2
- 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 -2
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +3 -2
- 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/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -3
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +4 -2
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +5 -2
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -12
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +13 -14
- package/lib/src/brand-page-maker/stores/ui/ui-store.js +3 -5
- package/lib/src/brand-page-maker/stores/user/user-store.d.ts +0 -1
- package/lib/src/brand-page-maker/stores/user/user-store.js +3 -8
- package/lib/src/brand-page-maker/stores/video/video-store.js +3 -1
- 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-Cq0WlFYO.js → lib-BgxxXPxt.js} +8644 -8651
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -2
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +3 -2
- 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 +3 -2
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -2
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -3
- 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 +4 -4
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -2
- 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 +4 -3
- 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/payment-config-field/PaymentConfigField.mixin.d.ts +3 -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/content-settings/store/content-settings-store.js +3 -3
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -1
- package/lib/src/shared/models.d.ts +0 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.js +3 -2
- 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 +4 -3
- 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 +5 -3
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -3
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
- package/lib/src/shared/template-settings/store/template-settings-store.js +8 -9
- 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 +3 -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 +13 -13
- 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/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +4 -5
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +4 -2
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +3 -5
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +8 -17
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +5 -10
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +19 -14
- package/src/brand-page-maker/stores/ui/ui-store.ts +3 -5
- package/src/brand-page-maker/stores/user/user-store.test.ts +0 -35
- package/src/brand-page-maker/stores/user/user-store.ts +3 -8
- package/src/brand-page-maker/stores/video/video-store.ts +3 -1
- package/src/shared/background-settings/components/BackgroundSettings.vue +9 -9
- package/src/shared/background-settings/components/MultiBackgroundShapes.vue +7 -7
- package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +4 -4
- package/src/shared/background-settings/components/SingleBackgroundShape.vue +5 -5
- package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +6 -6
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +6 -2
- 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 +3 -1
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -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 +4 -4
- 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 +5 -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/logo-selection-field/LogoSelection.vue +1 -3
- package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +6 -3
- 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/content-settings/store/content-settings-store.ts +3 -2
- package/src/shared/models.ts +0 -1
- package/src/shared/my-uploads/MyUploads.mixin.ts +3 -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 +10 -12
- 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 +4 -2
- package/src/shared/template-settings/store/template-settings-store.ts +7 -9
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}>, {
|
|
12
|
-
|
|
12
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
13
13
|
backgroundStyles: import("vue").ComputedRef<{
|
|
14
14
|
style: {
|
|
15
15
|
left?: string | undefined;
|
|
@@ -207,7 +207,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
207
207
|
brandPageCommissionPercentage?: number;
|
|
208
208
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
209
209
|
}): void;
|
|
210
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
211
210
|
}>;
|
|
212
211
|
backgroundSettingsStore: import("pinia").Store<"uiBackgroundSettings", import("../../store").BackgroundSettingsState, {
|
|
213
212
|
hasMedia(): boolean;
|
|
@@ -5,7 +5,7 @@ import StyleSettingsSection from '../../../style-settings/components/StyleSettin
|
|
|
5
5
|
import ColorPicker from '@brand-page-maker/components/color-palette/BpColorPicker.vue';
|
|
6
6
|
import { hexToRGBA } from '@utils/helpers';
|
|
7
7
|
import { isColorMatched } from '@brand-page-maker/utils';
|
|
8
|
-
import { useBrandPageMakerUserStore } from '@brand-page-maker/stores';
|
|
8
|
+
import { useBrandPageMakerUserStore, useBrandPageContainerStore, } from '@brand-page-maker/stores';
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
components: {
|
|
11
11
|
ColorPicker,
|
|
@@ -25,9 +25,10 @@ export default defineComponent({
|
|
|
25
25
|
},
|
|
26
26
|
setup() {
|
|
27
27
|
const userStore = useBrandPageMakerUserStore();
|
|
28
|
+
const containerStore = useBrandPageContainerStore();
|
|
28
29
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
29
30
|
return {
|
|
30
|
-
|
|
31
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
31
32
|
backgroundStyles: computed(() => backgroundSettingsStore.backgroundStyles),
|
|
32
33
|
userStore,
|
|
33
34
|
backgroundSettingsStore,
|
package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
41
41
|
activeCategoryTab: import("vue").ComputedRef<string>;
|
|
42
42
|
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
43
43
|
contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
|
|
44
|
-
|
|
44
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
45
45
|
canUseRichTextEditor: import("vue").ComputedRef<boolean>;
|
|
46
46
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
|
|
47
47
|
contentErrorCount(): number;
|
package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js
CHANGED
|
@@ -4,7 +4,7 @@ import { UI_EVENT_SOURCES } from '../../../models';
|
|
|
4
4
|
import { PAGE_SETTINGS_SECTIONS, useUiPageSettingsStore, } from '../../../page-settings/store';
|
|
5
5
|
import { useUiContentSettingsStore } from '../../store';
|
|
6
6
|
import { CONTENT_SETTINGS_MODES } from '../../store';
|
|
7
|
-
import { useBrandPageMakerStore, useBrandPageMakerUserStore, } from '@brand-page-maker/stores';
|
|
7
|
+
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useBrandPageContainerStore, } from '@brand-page-maker/stores';
|
|
8
8
|
import { SIDE_BAR_CONTENT_ID } from '../../constants';
|
|
9
9
|
import { SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
|
|
10
10
|
import { useExternalRichTextEditor } from '@brand-page-maker/composables/rich-text-editor/useRichTextEditor';
|
|
@@ -21,6 +21,7 @@ export default defineComponent({
|
|
|
21
21
|
const pageNavigationStore = usePageNavigationStore();
|
|
22
22
|
const styleSettingsStore = useUiStyleSettingsStore();
|
|
23
23
|
const userStore = useBrandPageMakerUserStore();
|
|
24
|
+
const containerStore = useBrandPageContainerStore();
|
|
24
25
|
const eventTracker = useEventTracker();
|
|
25
26
|
const historyStore = useHistoryStore();
|
|
26
27
|
const { externalEditor } = useExternalRichTextEditor();
|
|
@@ -31,7 +32,7 @@ export default defineComponent({
|
|
|
31
32
|
activeCategoryTab: computed(() => contentSettingsStore.activeCategoryTab),
|
|
32
33
|
isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
|
|
33
34
|
contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
|
|
34
|
-
|
|
35
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
35
36
|
canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
|
|
36
37
|
brandPageMakerStore,
|
|
37
38
|
contentSettingsStore,
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
35
|
selectedItemValue: import("vue").ComputedRef<string | null>;
|
|
36
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>;
|
|
37
37
|
mode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
|
|
38
|
-
|
|
38
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
39
39
|
contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
|
|
40
40
|
contentErrorCount(): number;
|
|
41
41
|
getContent(state: {
|
|
@@ -497,7 +497,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
497
497
|
brandPageCommissionPercentage?: number;
|
|
498
498
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
499
499
|
}): void;
|
|
500
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
501
500
|
}>;
|
|
502
501
|
pageSettingsStore: import("pinia").Store<"uiPageSettings", import("../../../page-settings/store").PageSettingsState, {
|
|
503
502
|
getFirstOrDefaultPage(): import("../../../page-settings/models").ContentPage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed } from 'vue';
|
|
2
2
|
import { ReplaceImageSettingsTabIds } from '../../models';
|
|
3
3
|
import { useUiContentSettingsStore } from '../../store';
|
|
4
|
-
import { useBrandPageMakerUserStore, useBrandPageMakerStore, useVideoStore, GETTY_VIDEO_LIMIT_FOR_SITE, } from '@brand-page-maker/stores';
|
|
4
|
+
import { useBrandPageMakerUserStore, useBrandPageContainerStore, useBrandPageMakerStore, useVideoStore, GETTY_VIDEO_LIMIT_FOR_SITE, } from '@brand-page-maker/stores';
|
|
5
5
|
import { UI_EVENT_SOURCES } from '../../../models';
|
|
6
6
|
import { useUiPageSettingsStore } from '../../../page-settings/store';
|
|
7
7
|
import { MEDIA_TYPES } from '@brand-page';
|
|
@@ -12,6 +12,7 @@ export default defineComponent({
|
|
|
12
12
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
13
13
|
const contentSettingsStore = useUiContentSettingsStore();
|
|
14
14
|
const userStore = useBrandPageMakerUserStore();
|
|
15
|
+
const containerStore = useBrandPageContainerStore();
|
|
15
16
|
const pageSettingsStore = useUiPageSettingsStore();
|
|
16
17
|
const videoStore = useVideoStore();
|
|
17
18
|
const bpEventTracker = useEventTracker();
|
|
@@ -24,7 +25,7 @@ export default defineComponent({
|
|
|
24
25
|
selectedItemValue: computed(() => contentSettingsStore.selectedItemValue),
|
|
25
26
|
contentType: computed(() => contentSettingsStore.selectedItemTemplate?.type),
|
|
26
27
|
mode: computed(() => contentSettingsStore.mode),
|
|
27
|
-
|
|
28
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
28
29
|
contentSettingsStore,
|
|
29
30
|
userStore,
|
|
30
31
|
pageSettingsStore,
|
|
@@ -36,7 +37,7 @@ export default defineComponent({
|
|
|
36
37
|
},
|
|
37
38
|
computed: {
|
|
38
39
|
isDeleteEnabled() {
|
|
39
|
-
return this.
|
|
40
|
+
return this.isAdminMaker;
|
|
40
41
|
},
|
|
41
42
|
selectedField() {
|
|
42
43
|
if (!this.selectedItemFieldName) {
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
|
|
22
22
|
getValue: import("vue").ComputedRef<(id: string, fieldName: string) => import("@brand-page").Content | string | undefined>;
|
|
23
23
|
isPersonalisationEnabled: import("vue").ComputedRef<boolean>;
|
|
24
|
-
|
|
24
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
25
25
|
contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
|
|
26
26
|
contentErrorCount(): number;
|
|
27
27
|
getContent(state: {
|
|
@@ -5,7 +5,7 @@ import { getContentSettingDisplayName, getContentSettingsFields, getContentSetti
|
|
|
5
5
|
import { UI_EVENT_SOURCES } from '../../../models';
|
|
6
6
|
import { useUiContentSettingsStore, CONTENT_SETTINGS_MODES } from '../../store';
|
|
7
7
|
import { SIDE_BAR_CONTENT_ID } from '../../constants';
|
|
8
|
-
import { useBrandPageMakerStore,
|
|
8
|
+
import { useBrandPageMakerStore, useBrandPageContainerStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
|
|
9
9
|
import { BRAND_PAGE_TYPES, CONTENT_TYPES, MEDIA_SIZES, } from '@brand-page';
|
|
10
10
|
import { EVENTS, SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
|
|
11
11
|
import debounce from 'lodash.debounce';
|
|
@@ -33,7 +33,7 @@ export default defineComponent({
|
|
|
33
33
|
const sideBarStore = useUiSideBarStore();
|
|
34
34
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
35
35
|
const uiStore = useUiStore();
|
|
36
|
-
const
|
|
36
|
+
const containerStore = useBrandPageContainerStore();
|
|
37
37
|
const routeStore = useRouteStore();
|
|
38
38
|
const eventTracker = useEventTracker();
|
|
39
39
|
return {
|
|
@@ -43,7 +43,7 @@ export default defineComponent({
|
|
|
43
43
|
brandPageData: computed(() => brandPageMakerStore.brandPageData),
|
|
44
44
|
getValue: computed(() => contentSettingsStore.getValue),
|
|
45
45
|
isPersonalisationEnabled: computed(() => uiStore.isPersonalisationEnabled),
|
|
46
|
-
|
|
46
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
47
47
|
contentSettingsStore,
|
|
48
48
|
sideBarStore,
|
|
49
49
|
eventTracker,
|
|
@@ -134,7 +134,7 @@ export default defineComponent({
|
|
|
134
134
|
return this.collapsed ? ICON_CHEVRON_RIGHT : ICON_CHEVRON_UP;
|
|
135
135
|
},
|
|
136
136
|
showPersonalisationField() {
|
|
137
|
-
return this.
|
|
137
|
+
return this.isAdminMaker && this.isPersonalisationEnabled;
|
|
138
138
|
},
|
|
139
139
|
personalisationRole() {
|
|
140
140
|
return this.getValue(this.id, 'personalisationRole');
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
getContent: import("vue").ComputedRef<(id: string) => Content | undefined>;
|
|
27
27
|
getValue: import("vue").ComputedRef<(id: string, fieldName: string) => Content | string | undefined>;
|
|
28
28
|
brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
|
|
29
|
-
|
|
29
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
30
30
|
isDesignCom: import("vue").ComputedRef<boolean>;
|
|
31
31
|
canUseRichTextEditor: import("vue").ComputedRef<boolean>;
|
|
32
32
|
brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
|
|
@@ -668,7 +668,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
668
668
|
brandPageCommissionPercentage?: number;
|
|
669
669
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
670
670
|
}): void;
|
|
671
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
672
671
|
}>;
|
|
673
672
|
uiStore: import("pinia").Store<"ui", import("../../../models").UIRootState, {
|
|
674
673
|
endpoints: () => import("../../../models").Endpoints;
|
|
@@ -49,7 +49,7 @@ export default defineComponent({
|
|
|
49
49
|
getContent: computed(() => contentSettingsStore.getContent),
|
|
50
50
|
getValue: computed(() => contentSettingsStore.getValue),
|
|
51
51
|
brandPageData: computed(() => brandPageMakerStore.brandPageData),
|
|
52
|
-
|
|
52
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
53
53
|
isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
|
|
54
54
|
canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
|
|
55
55
|
brandPageType: computed(() => brandPageMakerStore.brandPageType),
|
|
@@ -165,7 +165,7 @@ export default defineComponent({
|
|
|
165
165
|
},
|
|
166
166
|
showToggle() {
|
|
167
167
|
//TODO: convert showToggle to both boolean and a function
|
|
168
|
-
if (this.field.name === 'backgroundStyle' && this.
|
|
168
|
+
if (this.field.name === 'backgroundStyle' && this.isAdminMaker) {
|
|
169
169
|
return true;
|
|
170
170
|
}
|
|
171
171
|
return this.field.showToggle;
|
|
@@ -236,7 +236,7 @@ export default defineComponent({
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
onFieldChangeLogo() {
|
|
239
|
-
if (this.
|
|
239
|
+
if (this.isAdminMaker) {
|
|
240
240
|
this.sideBarStore.setSelectedTabName({
|
|
241
241
|
tabName: SIDE_BAR_TAB_NAMES.ADMIN_LOGO_SETTINGS,
|
|
242
242
|
});
|
package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
48
|
type: PropType<LogoTheme>;
|
|
49
49
|
required: true;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
isAdminMaker: {
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
required: true;
|
|
54
54
|
};
|
|
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
130
|
type: PropType<LogoTheme>;
|
|
131
131
|
required: true;
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
isAdminMaker: {
|
|
134
134
|
type: BooleanConstructor;
|
|
135
135
|
required: true;
|
|
136
136
|
};
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
getItemGroupState: import("vue").ComputedRef<(id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState>;
|
|
13
13
|
brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
|
|
14
14
|
isPersonalisationEnabled: import("vue").ComputedRef<boolean>;
|
|
15
|
-
|
|
15
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
16
16
|
canUseRichTextEditor: import("vue").ComputedRef<boolean>;
|
|
17
17
|
externalEditor: import("@tiptap/vue-3").Editor;
|
|
18
18
|
contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
|
|
@@ -2,7 +2,7 @@ import { defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { getContentSettingsFields, getContentSettingsTemplate, } from '@shared/content-settings/utils';
|
|
3
3
|
import { UI_EVENT_SOURCES } from '../../../models';
|
|
4
4
|
import { useUiContentSettingsStore } from '../../store';
|
|
5
|
-
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
|
|
5
|
+
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useBrandPageContainerStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
|
|
6
6
|
import { BRAND_PAGE_TYPES, MEDIA_SIZES, } from '@brand-page';
|
|
7
7
|
import { buildRelativePathFromParams } from '@brand-page/utils/route.util';
|
|
8
8
|
import { isRTEManagedStyleField } from '@brand-page-maker/utils';
|
|
@@ -17,6 +17,7 @@ export default defineComponent({
|
|
|
17
17
|
const _pageSettingsStore = useUiPageSettingsStore();
|
|
18
18
|
const _styleSettingsStore = useUiStyleSettingsStore();
|
|
19
19
|
const userStore = useBrandPageMakerUserStore();
|
|
20
|
+
const containerStore = useBrandPageContainerStore();
|
|
20
21
|
const uiStore = useUiStore();
|
|
21
22
|
const routeStore = useRouteStore();
|
|
22
23
|
const { externalEditor } = useExternalRichTextEditor();
|
|
@@ -29,7 +30,7 @@ export default defineComponent({
|
|
|
29
30
|
getItemGroupState: computed(() => contentSettingsStore.getItemGroupState),
|
|
30
31
|
brandPageData: computed(() => brandPageMakerStore.brandPageData),
|
|
31
32
|
isPersonalisationEnabled: computed(() => uiStore.isPersonalisationEnabled),
|
|
32
|
-
|
|
33
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
33
34
|
canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
|
|
34
35
|
externalEditor,
|
|
35
36
|
contentSettingsStore,
|
|
@@ -153,7 +154,7 @@ export default defineComponent({
|
|
|
153
154
|
return this.template?.displayName || '';
|
|
154
155
|
},
|
|
155
156
|
showPersonalisationField() {
|
|
156
|
-
return this.
|
|
157
|
+
return this.isAdminMaker && this.isPersonalisationEnabled;
|
|
157
158
|
},
|
|
158
159
|
personalisationRole() {
|
|
159
160
|
return this.getValue(this.id, 'personalisationRole');
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
32
|
type: PropType<LogoTheme>;
|
|
33
33
|
required: true;
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
isAdminMaker: {
|
|
36
36
|
type: BooleanConstructor;
|
|
37
37
|
required: true;
|
|
38
38
|
};
|
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
type: PropType<LogoTheme>;
|
|
82
82
|
required: true;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
isAdminMaker: {
|
|
85
85
|
type: BooleanConstructor;
|
|
86
86
|
required: true;
|
|
87
87
|
};
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
29
|
type: PropType<LinksItem[]>;
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
isAdminMaker: {
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
82
|
type: PropType<LinksItem[]>;
|
|
83
83
|
required: true;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
isAdminMaker: {
|
|
86
86
|
type: BooleanConstructor;
|
|
87
87
|
required: true;
|
|
88
88
|
};
|
|
@@ -24,7 +24,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
24
|
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
25
25
|
brandPageContentTypes(): string[];
|
|
26
26
|
isAdmin(): boolean;
|
|
27
|
-
isAdminMaker(): boolean;
|
|
28
27
|
isPublished: (state: {
|
|
29
28
|
availableTaxes: any[];
|
|
30
29
|
brandPageBaseUrl: string;
|
|
@@ -61,6 +60,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
60
|
isUpgradeModalVisible: boolean;
|
|
62
61
|
isPublishing: boolean;
|
|
63
62
|
isProduction: boolean;
|
|
63
|
+
isAdminMaker: boolean;
|
|
64
64
|
isSellDomainNameEnabled: boolean;
|
|
65
65
|
isStripeOnboardingModalVisible: boolean;
|
|
66
66
|
isReactivationModal: boolean;
|
|
@@ -155,6 +155,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
155
155
|
isUpgradeModalVisible: boolean;
|
|
156
156
|
isPublishing: boolean;
|
|
157
157
|
isProduction: boolean;
|
|
158
|
+
isAdminMaker: boolean;
|
|
158
159
|
isSellDomainNameEnabled: boolean;
|
|
159
160
|
isStripeOnboardingModalVisible: boolean;
|
|
160
161
|
isReactivationModal: boolean;
|
|
@@ -249,6 +250,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
249
250
|
isUpgradeModalVisible: boolean;
|
|
250
251
|
isPublishing: boolean;
|
|
251
252
|
isProduction: boolean;
|
|
253
|
+
isAdminMaker: boolean;
|
|
252
254
|
isSellDomainNameEnabled: boolean;
|
|
253
255
|
isStripeOnboardingModalVisible: boolean;
|
|
254
256
|
isReactivationModal: boolean;
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
24
|
type: PropType<LogoTheme>;
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
isAdminMaker: {
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
required: true;
|
|
30
30
|
};
|
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
type: PropType<LogoTheme>;
|
|
66
66
|
required: true;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
isAdminMaker: {
|
|
69
69
|
type: BooleanConstructor;
|
|
70
70
|
required: true;
|
|
71
71
|
};
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
type: PropType<LogoTheme>;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
isAdminMaker: {
|
|
23
23
|
type: BooleanConstructor;
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
85
|
type: PropType<LogoTheme>;
|
|
86
86
|
required: true;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
isAdminMaker: {
|
|
89
89
|
type: BooleanConstructor;
|
|
90
90
|
required: true;
|
|
91
91
|
};
|
package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
type: PropType<TextItem[]>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
isAdminMaker: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
type: PropType<TextItem[]>;
|
|
100
100
|
required: true;
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
isAdminMaker: {
|
|
103
103
|
type: BooleanConstructor;
|
|
104
104
|
required: true;
|
|
105
105
|
};
|
package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
50
50
|
type: PropType<TextStyleDeclaration>;
|
|
51
51
|
required: true;
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
isAdminMaker: {
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
required: true;
|
|
56
56
|
};
|
|
@@ -432,7 +432,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
432
432
|
type: PropType<TextStyleDeclaration>;
|
|
433
433
|
required: true;
|
|
434
434
|
};
|
|
435
|
-
|
|
435
|
+
isAdminMaker: {
|
|
436
436
|
type: BooleanConstructor;
|
|
437
437
|
required: true;
|
|
438
438
|
};
|
|
@@ -3,7 +3,7 @@ import { CONTENT_SETTINGS_CONFIGS, SIDE_BAR_TAB_NAMES, } from '@brand-page-maker
|
|
|
3
3
|
import { RESERVED_FIELD_NAMES } from '../constants';
|
|
4
4
|
import { UI_EVENT_SOURCES } from '../../models';
|
|
5
5
|
import { CONTENT_SETTINGS_DISPLAY_MODES, ITEM_CATEGORIES, ITEM_CATEGORY_NAMES, } from '@brand-page-maker/models';
|
|
6
|
-
import { useUiStore, useBrandPageMakerUserStore, useBrandPageMakerStore, useVideoStore, } from '@brand-page-maker/stores';
|
|
6
|
+
import { useUiStore, useBrandPageMakerUserStore, useBrandPageMakerStore, useBrandPageContainerStore, useVideoStore, } from '@brand-page-maker/stores';
|
|
7
7
|
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
8
8
|
import { useUiStyleSettingsStore } from '@shared/style-settings/store';
|
|
9
9
|
import { useUiSideBarStore } from '../../side-bar/store';
|
|
@@ -530,7 +530,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
530
530
|
this.onContentChanged();
|
|
531
531
|
},
|
|
532
532
|
validateItem(payload) {
|
|
533
|
-
const
|
|
533
|
+
const containerStore = useBrandPageContainerStore();
|
|
534
534
|
const item = this.items.find((i) => i.id === payload.id);
|
|
535
535
|
if (!item) {
|
|
536
536
|
if (process.env.NODE_ENV !== 'production')
|
|
@@ -551,7 +551,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
|
|
|
551
551
|
if (!fieldConfig) {
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
let genericValidator =
|
|
554
|
+
let genericValidator = containerStore.isAdminMaker
|
|
555
555
|
? adminValidatorsDict[fieldTypeAssessor !== undefined ? fieldType : fieldConfig.type]
|
|
556
556
|
: validatorDict[fieldTypeAssessor !== undefined ? fieldType : fieldConfig.type];
|
|
557
557
|
if (!genericValidator) {
|
|
@@ -318,7 +318,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
318
318
|
containerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
319
319
|
brandPageContentTypes(): string[];
|
|
320
320
|
isAdmin(): boolean;
|
|
321
|
-
isAdminMaker(): boolean;
|
|
322
321
|
isPublished: (state: {
|
|
323
322
|
availableTaxes: any[];
|
|
324
323
|
brandPageBaseUrl: string;
|
|
@@ -355,6 +354,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
355
354
|
isUpgradeModalVisible: boolean;
|
|
356
355
|
isPublishing: boolean;
|
|
357
356
|
isProduction: boolean;
|
|
357
|
+
isAdminMaker: boolean;
|
|
358
358
|
isSellDomainNameEnabled: boolean;
|
|
359
359
|
isStripeOnboardingModalVisible: boolean;
|
|
360
360
|
isReactivationModal: boolean;
|
|
@@ -449,6 +449,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
449
449
|
isUpgradeModalVisible: boolean;
|
|
450
450
|
isPublishing: boolean;
|
|
451
451
|
isProduction: boolean;
|
|
452
|
+
isAdminMaker: boolean;
|
|
452
453
|
isSellDomainNameEnabled: boolean;
|
|
453
454
|
isStripeOnboardingModalVisible: boolean;
|
|
454
455
|
isReactivationModal: boolean;
|
|
@@ -543,6 +544,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
543
544
|
isUpgradeModalVisible: boolean;
|
|
544
545
|
isPublishing: boolean;
|
|
545
546
|
isProduction: boolean;
|
|
547
|
+
isAdminMaker: boolean;
|
|
546
548
|
isSellDomainNameEnabled: boolean;
|
|
547
549
|
isStripeOnboardingModalVisible: boolean;
|
|
548
550
|
isReactivationModal: boolean;
|
|
@@ -2,7 +2,6 @@ import type { LogoTheme, UserPersonalisationContent } from '@brand-page';
|
|
|
2
2
|
import type { UIUserFeatures } from '../constants/ui';
|
|
3
3
|
export interface UIUserState {
|
|
4
4
|
isAdmin: boolean;
|
|
5
|
-
isAdminMaker: boolean;
|
|
6
5
|
features: UIUserFeatures;
|
|
7
6
|
}
|
|
8
7
|
export interface UIRootStateThirdPartySettings {
|
|
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
85
|
isPersonalisationEnabled: boolean;
|
|
86
86
|
}): void;
|
|
87
87
|
}>;
|
|
88
|
-
|
|
88
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
89
89
|
isLoggedIn: import("vue").ComputedRef<boolean>;
|
|
90
90
|
}, {
|
|
91
91
|
imageUploaderReady: boolean;
|
|
@@ -3,7 +3,7 @@ import { computed, defineComponent } from 'vue';
|
|
|
3
3
|
import { UI_EVENTS } from '@brand-page-maker/constants';
|
|
4
4
|
import { getInstance as getUserMediaClientInstance } from '../../clients/user-media-client';
|
|
5
5
|
import { DEFAULT_UPLOAD_FILE_LIMIT } from '../../constants/ui';
|
|
6
|
-
import { useBrandPageMakerUserStore, useUiStore, } from '@brand-page-maker/stores';
|
|
6
|
+
import { useBrandPageMakerUserStore, useBrandPageContainerStore, useUiStore, } from '@brand-page-maker/stores';
|
|
7
7
|
import { formatKilobytes } from '@brand-page-maker/utils/file-size.util';
|
|
8
8
|
import { errorTr } from '@src/composables/useTranslate';
|
|
9
9
|
const DROPZONE_STATUS_CANCELED = 'canceled';
|
|
@@ -49,12 +49,13 @@ export default defineComponent({
|
|
|
49
49
|
setup() {
|
|
50
50
|
const uiStore = useUiStore();
|
|
51
51
|
const userStore = useBrandPageMakerUserStore();
|
|
52
|
+
const containerStore = useBrandPageContainerStore();
|
|
52
53
|
const dropzoneImageUploaderRef = ref(null);
|
|
53
54
|
return {
|
|
54
55
|
dropzoneImageUploaderRef,
|
|
55
56
|
endpoints: computed(() => uiStore.endpoints),
|
|
56
57
|
uiStore,
|
|
57
|
-
|
|
58
|
+
isAdminMaker: computed(() => !!containerStore.isAdminMaker),
|
|
58
59
|
isLoggedIn: computed(() => !!userStore.emailAddress),
|
|
59
60
|
};
|
|
60
61
|
},
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
type: PropType<NavigationStyleConfig[]>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
isAdminMaker: {
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
41
|
type: PropType<NavigationStyleConfig[]>;
|
|
42
42
|
required: true;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
isAdminMaker: {
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
required: true;
|
|
47
47
|
};
|