@designcrowd/library.brand-page 5.15.27-ast-bug → 5.16.0-ast-preview-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CkGQ4G_0.js → CreatedOnBrandCrowd-de-de-HPTmEVKC.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CI0R4imY.js → CreatedOnBrandCrowd-en-us-sJrp0jlw.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DfVOwAgX.js → CreatedOnBrandCrowd-es-es-DCgIkMwu.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CDzs65j6.js → CreatedOnBrandCrowd-fr-ca-Tlh31gqe.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CDzs65j6.js → CreatedOnBrandCrowd-fr-fr-Tlh31gqe.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DT5-KEqF.js → CreatedOnBrandCrowd-pt-br-Dx_KMsev.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DT5-KEqF.js → CreatedOnBrandCrowd-pt-pt-Dx_KMsev.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CrXmnwk7.js → CreatedOnDcom-de-de-BBWxN-1A.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-BxDKAimo.js → CreatedOnDcom-en-us-DeGKo6Wf.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BV-bf9GA.js → CreatedOnDcom-es-es-D4bZ0zJj.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-BM0lK2ZN.js → CreatedOnDcom-fr-ca-OevxDkD0.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DAmKbip-.js → CreatedOnDcom-fr-fr-CLRY9hW2.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-_tHW_OU7.js → CreatedOnDcom-pt-br-C04b_VpV.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CYkWyII5.js → CreatedOnDcom-pt-pt-CGwrDxSK.js} +1 -1
  15. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +1 -0
  16. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +1 -0
  17. package/lib/src/brand-page/models/brand-page-context.model.d.ts +1 -0
  18. package/lib/src/brand-page/utils/migration/migration-07.js +1 -1
  19. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +3 -0
  20. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +39 -0
  21. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +10 -1
  22. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +3 -0
  23. package/lib/src/brand-page-maker/components/device/Device.mixin.d.ts +3 -1
  24. package/lib/src/brand-page-maker/components/device/Device.mixin.js +5 -1
  25. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +1 -0
  26. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +5 -2
  27. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +22 -0
  28. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +243 -1
  29. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +62 -5
  30. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +12 -4
  31. package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +23 -0
  32. package/lib/src/brand-page-maker/stores/route/localised-route-store.js +16 -0
  33. package/lib/src/brand-page-maker/stores/user/user-store.d.ts +4 -0
  34. package/lib/src/brand-page-maker/stores/user/user-store.js +4 -0
  35. package/lib/src/brand-page-maker/stores/video/video-store.d.ts +13 -1
  36. package/lib/src/brand-page-maker/stores/video/video-store.js +11 -1
  37. package/lib/src/clients/models.d.ts +1 -0
  38. package/lib/src/css/library.brand-page-brandCrowd.min.css +58 -27
  39. package/lib/src/css/library.brand-page-brandPage.min.css +58 -27
  40. package/lib/src/css/library.brand-page-designCom.min.css +58 -27
  41. package/lib/src/css/library.brand-page-preview.min.css +58 -27
  42. package/lib/src/index.mjs +1 -1
  43. package/lib/src/{lib-CO4o8RlD.js → lib-CpU9mWgA.js} +14933 -14761
  44. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +3 -0
  45. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +3 -0
  46. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +3 -0
  47. package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.d.ts +3 -0
  48. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +3 -0
  49. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +3 -0
  50. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +3 -0
  51. package/lib/src/shared/template-settings/models.d.ts +2 -0
  52. package/lib/src/shared/template-settings/store/template-settings-store.js +33 -6
  53. package/package.json +1 -1
  54. package/src/brand-page/components/media/Shape.vue +1 -1
  55. package/src/brand-page/components/media/Video.vue +27 -4
  56. package/src/brand-page/components/page/Page.vue +2 -2
  57. package/src/brand-page/models/brand-page-context.model.ts +1 -0
  58. package/src/brand-page/utils/migration/migration-07.ts +6 -4
  59. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +13 -0
  60. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +16 -0
  61. package/src/brand-page-maker/components/device/Device.mixin.ts +5 -2
  62. package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +15 -1
  63. package/src/brand-page-maker/components/preview/Preview.mixin.ts +5 -1
  64. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +82 -6
  65. package/src/brand-page-maker/components/template-preview/TemplatePreview.vue +41 -4
  66. package/src/brand-page-maker/components/template-preview-with-state/TemplatePreviewWithState.vue +4 -6
  67. package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +31 -0
  68. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +17 -4
  69. package/src/brand-page-maker/stores/route/localised-route-store.ts +33 -0
  70. package/src/brand-page-maker/stores/user/user-store.ts +5 -0
  71. package/src/brand-page-maker/stores/video/video-store.ts +12 -1
  72. package/src/clients/models.ts +1 -0
  73. package/src/shared/template-settings/models.ts +2 -0
  74. package/src/shared/template-settings/store/template-settings-store.ts +50 -13
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-CpU9mWgA.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-CpU9mWgA.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-CpU9mWgA.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CO4o8RlD.js";
2
+ import { _ as M } from "./lib-CpU9mWgA.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CO4o8RlD.js";
2
+ import { _ as M } from "./lib-CpU9mWgA.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -23,6 +23,7 @@ export declare const context: {
23
23
  disableNavigationSideMenu?: boolean | undefined;
24
24
  mediaSizes?: "size1x" | "size2x" | "sizeThumb" | undefined;
25
25
  renderVideoAsImage?: boolean | undefined;
26
+ shouldPlayVideos?: boolean | undefined;
26
27
  } | undefined;
27
28
  abTests?: import("../../../models").AbTest | undefined;
28
29
  isCapturingPreview: boolean;
@@ -23,6 +23,7 @@ export declare const context: {
23
23
  disableNavigationSideMenu?: boolean | undefined;
24
24
  mediaSizes?: "size1x" | "size2x" | "sizeThumb" | undefined;
25
25
  renderVideoAsImage?: boolean | undefined;
26
+ shouldPlayVideos?: boolean | undefined;
26
27
  } | undefined;
27
28
  abTests?: import("../../../models").AbTest | undefined;
28
29
  isCapturingPreview: boolean;
@@ -70,6 +70,7 @@ export interface BrandPageContext {
70
70
  disableNavigationSideMenu?: boolean;
71
71
  mediaSizes?: MediaSizes;
72
72
  renderVideoAsImage?: boolean;
73
+ shouldPlayVideos?: boolean;
73
74
  };
74
75
  abTests?: AbTest;
75
76
  /** Is brand page rendered for preview */
@@ -1,4 +1,4 @@
1
- import { BRAND_PAGE_TYPES, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../..';
1
+ import { BRAND_PAGE_TYPES, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, } from '../..';
2
2
  import { FabricRenderClient } from '../../../clients/fabric-render-client';
3
3
  import { calculateLogoDimensions } from '../logo.util';
4
4
  export const migration07 = async (migrationResult, options) => {
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{}, {
11
11
  isAdmin: boolean;
12
12
  }): void;
13
13
  setBrandPageCommissionPercentage(payload: number): void;
14
+ setUserId(payload: {
15
+ userId: string;
16
+ }): void;
14
17
  }>;
15
18
  brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("../../stores").BrandPageMakerState, {
16
19
  contentErrorCount(): number;
@@ -37,6 +37,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
37
  }>;
38
38
  isChangeTemplateConfirmModalVisible: import("vue").ComputedRef<boolean>;
39
39
  viewport: import("vue").ComputedRef<ViewportsType>;
40
+ shouldPlayVideos: import("vue").ComputedRef<boolean>;
41
+ hasGettyVideos: import("vue").ComputedRef<boolean>;
40
42
  deviceMode: import("vue").ComputedRef<"desktop" | "mobile">;
41
43
  isMobileDevice: import("vue").ComputedRef<boolean>;
42
44
  isMobileScreenSize: import("vue").ComputedRef<boolean>;
@@ -195,6 +197,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
195
197
  isAdmin: boolean;
196
198
  }): void;
197
199
  setBrandPageCommissionPercentage(payload: number): void;
200
+ setUserId(payload: {
201
+ userId: string;
202
+ }): void;
198
203
  }>;
199
204
  containerStore: import("pinia").Store<"brandPageContainer", import("../../stores").BrandPageContainerState, {
200
205
  brandPageContentTypes(): string[];
@@ -1140,6 +1145,39 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1140
1145
  getProductModel(): import("../../../brand-page/models/shop.model").ProductModel;
1141
1146
  }>;
1142
1147
  router: import("vue-router").Router;
1148
+ videoStore: import("pinia").Store<"video", import("../../stores").videoStoreState, {
1149
+ getVideoUrlsForToken: (state: {
1150
+ videoUrls: {
1151
+ [x: string]: import("../../stores").VideoUrlData;
1152
+ };
1153
+ gettyImagesKeyPrefix: string;
1154
+ shouldPlayVideos: boolean;
1155
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => import("../../stores").VideoUrlData;
1156
+ getPreviewS3VideoUrlsForToken: (state: {
1157
+ videoUrls: {
1158
+ [x: string]: import("../../stores").VideoUrlData;
1159
+ };
1160
+ gettyImagesKeyPrefix: string;
1161
+ shouldPlayVideos: boolean;
1162
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => {
1163
+ videoUrl: string;
1164
+ previewImageUrl: string;
1165
+ };
1166
+ getOptimisedS3VideoUrlsForToken: (state: {
1167
+ videoUrls: {
1168
+ [x: string]: import("../../stores").VideoUrlData;
1169
+ };
1170
+ gettyImagesKeyPrefix: string;
1171
+ shouldPlayVideos: boolean;
1172
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => {
1173
+ videoUrl: string;
1174
+ previewImageUrl: string;
1175
+ };
1176
+ }, {
1177
+ setVideoUrlsWithToken(token: string, videoUrl: string, previewImageUrl: string, assetId: string): void;
1178
+ setGettyImageKeyPrefix(prefix: string): void;
1179
+ toggleShouldPlayVideo(): void;
1180
+ }>;
1143
1181
  }, {
1144
1182
  mounted: boolean;
1145
1183
  isBrandPageLoaded: boolean;
@@ -1159,6 +1197,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1159
1197
  onBackBrandPage(): void;
1160
1198
  onChangeTemplateConfirmModalCancel(): void;
1161
1199
  onChangeTemplateConfirmModalConfirm(): void;
1200
+ onVideoPlayToggle(): void;
1162
1201
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1163
1202
  viewModel: {
1164
1203
  type: PropType<BrandPageMakerViewModel>;
@@ -10,7 +10,7 @@ import { createInitialBrandPage } from '../../models';
10
10
  import { navigateToPageBySlug } from '../../routing';
11
11
  import { useBrandPageContainerStore } from '../../stores';
12
12
  import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '../../../shared/models';
13
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, } from '../../stores';
13
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, useVideoStore, } from '../../stores';
14
14
  import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
15
15
  import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
16
16
  import { useUiPageSettingsStore } from '../../../shared/page-settings/store';
@@ -42,12 +42,17 @@ export default defineComponent({
42
42
  const productSettingStore = useProductConfigStore();
43
43
  const router = useRouter();
44
44
  const localisedRouteStore = useLocalisedRouteStore();
45
+ const videoStore = useVideoStore();
45
46
  return {
46
47
  commonTr,
47
48
  currentNotificationMessage: computed(() => brandPageMakerStore.currentNotificationMessage),
48
49
  isChangeTemplateConfirmModalVisible: computed(() => brandPageMakerStore.isChangeTemplateConfirmModalVisible),
49
50
  // the state of Mobile/Desktop tab
50
51
  viewport: computed(() => brandPageMakerStore.viewport),
52
+ // the play setting for videos in maker
53
+ shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
54
+ hasGettyVideos: computed(() => brandPageMakerStore.gettyVideoIds &&
55
+ brandPageMakerStore.gettyVideoIds.length > 0),
51
56
  // the state of active Preview Device type
52
57
  deviceMode: computed(() => uiStore.deviceMode),
53
58
  isMobileDevice: computed(() => uiStore.deviceMode === UI_DEVICE_MODES.mobile),
@@ -79,6 +84,7 @@ export default defineComponent({
79
84
  shopSettingStore,
80
85
  productSettingStore,
81
86
  router,
87
+ videoStore,
82
88
  };
83
89
  },
84
90
  data() {
@@ -271,5 +277,8 @@ export default defineComponent({
271
277
  onChangeTemplateConfirmModalConfirm() {
272
278
  this.brandPageMakerStore.onChangeTemplateConfirmModalConfirm();
273
279
  },
280
+ onVideoPlayToggle() {
281
+ this.videoStore.toggleShouldPlayVideo();
282
+ },
274
283
  },
275
284
  });
@@ -143,6 +143,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
143
  isAdmin: boolean;
144
144
  }): void;
145
145
  setBrandPageCommissionPercentage(payload: number): void;
146
+ setUserId(payload: {
147
+ userId: string;
148
+ }): void;
146
149
  }>;
147
150
  }, {
148
151
  imageExtension: string[];
@@ -16,7 +16,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  }>, {}, {
17
17
  visible: boolean;
18
18
  loadedOnce: boolean;
19
- }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, {}, {
20
+ toggleShouldPlay(): void;
21
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
22
  isMobileDevice: {
21
23
  type: BooleanConstructor;
22
24
  required: true;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { debounce } from '../../../shared/functions';
3
2
  import { DEVICE_CSS_TRANSITION_DELAY } from '../../constants';
4
3
  export default defineComponent({
5
4
  props: {
@@ -40,4 +39,9 @@ export default defineComponent({
40
39
  clearTimeout(t);
41
40
  }, 100);
42
41
  },
42
+ methods: {
43
+ toggleShouldPlay() {
44
+ this.$emit('toggle-should-play');
45
+ },
46
+ },
43
47
  });
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  }>;
32
32
  isDesignCom: import("vue").ComputedRef<boolean>;
33
33
  isInitialising: import("vue").ComputedRef<boolean>;
34
+ shouldPlayVideos: import("vue").ComputedRef<boolean>;
34
35
  viewport: import("../../../brand-page").ViewportsType;
35
36
  abTests: Record<string, string>;
36
37
  }, {
@@ -2,7 +2,7 @@ import { defineComponent, computed } from 'vue';
2
2
  import debounce from 'lodash.debounce';
3
3
  import { HelloBar, Loader } from '@designcrowd/fe-shared-lib';
4
4
  import { BRAND_PAGE_TYPES, MEDIA_SIZES } from '../../../brand-page';
5
- import { useBrandPageContainerStore, useBrandPageMakerStore, useRouteStore, } from '../../../brand-page-maker/stores';
5
+ import { useBrandPageContainerStore, useBrandPageMakerStore, useRouteStore, useVideoStore, } from '../../../brand-page-maker/stores';
6
6
  import BrandPageMakerPage from '../brandpage-maker-page/BrandPageMakerPage.vue';
7
7
  const RESIZE_DEBOUNCE_WAIT_MS = 250;
8
8
  export default defineComponent({
@@ -39,10 +39,12 @@ export default defineComponent({
39
39
  const containerStore = useBrandPageContainerStore();
40
40
  const routeStore = useRouteStore();
41
41
  const brandPageMakerStore = useBrandPageMakerStore();
42
+ const videoStore = useVideoStore();
42
43
  return {
43
44
  currentRoute: computed(() => routeStore.currentRoute),
44
45
  isDesignCom: computed(() => containerStore.isDesignCom),
45
46
  isInitialising: computed(() => brandPageMakerStore.isInitialising),
47
+ shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
46
48
  viewport: brandPageMakerStore.viewport,
47
49
  abTests: containerStore.abTests,
48
50
  };
@@ -77,7 +79,8 @@ export default defineComponent({
77
79
  isServerRender: false,
78
80
  options: {
79
81
  mediaSizes: MEDIA_SIZES.size1x,
80
- renderVideoAsImage: true,
82
+ renderVideoAsImage: false,
83
+ shouldPlayVideos: this.shouldPlayVideos,
81
84
  },
82
85
  stripePublishableKey: undefined,
83
86
  runtimeEnvironment: this.runtimeEnvironment,
@@ -375,6 +375,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
375
375
  currentPublishedSlugUrl: (state: {
376
376
  baseFabricRenderDomain: string;
377
377
  baseBrandPageDomain: string;
378
+ baseTemplatePreviewDomain: string;
378
379
  upgradeSubscriptionUrlPath: string;
379
380
  reactivationUrlPath: string;
380
381
  backToWebsiteManageUrlPath: string;
@@ -393,6 +394,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
393
394
  currentBrandPageUrl: (state: {
394
395
  baseFabricRenderDomain: string;
395
396
  baseBrandPageDomain: string;
397
+ baseTemplatePreviewDomain: string;
396
398
  upgradeSubscriptionUrlPath: string;
397
399
  reactivationUrlPath: string;
398
400
  backToWebsiteManageUrlPath: string;
@@ -412,6 +414,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
412
414
  getBuilderLandingPageByTypeUrl: (state: {
413
415
  baseFabricRenderDomain: string;
414
416
  baseBrandPageDomain: string;
417
+ baseTemplatePreviewDomain: string;
415
418
  upgradeSubscriptionUrlPath: string;
416
419
  reactivationUrlPath: string;
417
420
  backToWebsiteManageUrlPath: string;
@@ -428,6 +431,25 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
428
431
  localisedBaseUrl: string;
429
432
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (isPreview: boolean, brandPageType: string, isDesignCom: boolean, locale: string) => string;
430
433
  getWebsiteBaseUrl: () => (isDesignCom: boolean) => "https://www.design.com" | "https://www.brandcrowd.com";
434
+ getTemplatePreviewUrl: (state: {
435
+ baseFabricRenderDomain: string;
436
+ baseBrandPageDomain: string;
437
+ baseTemplatePreviewDomain: string;
438
+ upgradeSubscriptionUrlPath: string;
439
+ reactivationUrlPath: string;
440
+ backToWebsiteManageUrlPath: string;
441
+ manageWebsiteDesignsUrlPath: string;
442
+ createNewDesignUrlPath: string;
443
+ termsOfUseUrlPath: string;
444
+ websiteBuilderUrlPath: string;
445
+ digitalBusinessCardBuilderUrlPath: string;
446
+ linkInBioBuilderUrlPath: string;
447
+ brandPageEditorUrlPath: string;
448
+ brandSiteEditorUrlPath: string;
449
+ brandContactEditorUrlPath: string;
450
+ logoEditUrlPath: string;
451
+ localisedBaseUrl: string;
452
+ } & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (templateId: string, logoDraftToken: string, deviceType: "desktop" | "mobile", contentKey?: string | undefined, userToken?: string | undefined, runtimeEnvironment?: string | undefined, isAiTemplate?: boolean | undefined) => string;
431
453
  }, {
432
454
  initialise(payload: any): void;
433
455
  }>;