@designcrowd/library.brand-page 5.15.14-gettyfinal-3 → 5.15.14-gettytracking-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-fRjHDupM.js → CreatedOnBrandCrowd-de-de-BhmoKJMM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Yjrim3zZ.js → CreatedOnBrandCrowd-en-us-DlBYNwHA.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DKI2MQff.js → CreatedOnBrandCrowd-es-es-_weNzlHN.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Dowqy5jC.js → CreatedOnBrandCrowd-fr-ca-C11WQOBT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Dowqy5jC.js → CreatedOnBrandCrowd-fr-fr-C11WQOBT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Dz1N_nEi.js → CreatedOnBrandCrowd-pt-br-Cc6cWy8-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-Dz1N_nEi.js → CreatedOnBrandCrowd-pt-pt-Cc6cWy8-.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BbvPcH4u.js → CreatedOnDcom-de-de-CPR3hXp7.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DiuM3BXy.js → CreatedOnDcom-en-us-DRlaVs47.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CTM2fDaL.js → CreatedOnDcom-es-es-CHu3zZqp.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DP1uJ7fe.js → CreatedOnDcom-fr-ca-PaYexUVn.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BggYBUVQ.js → CreatedOnDcom-fr-fr-sPqqiixF.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-DkEeGeDF.js → CreatedOnDcom-pt-br-C_14Sfjc.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DK1ssNLK.js → CreatedOnDcom-pt-pt-4daj3knR.js} +1 -1
- package/lib/src/brand-page/utils/view-model.util.d.ts +0 -4
- package/lib/src/brand-page/utils/view-model.util.js +1 -2
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +8 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +4 -3
- package/lib/src/clients/brand-page-client.js +2 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-TeVw0Nkm.js → lib-CmVh9Kwd.js} +944 -938
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -0
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -0
- package/package.json +1 -1
- package/src/brand-page/utils/view-model.util.ts +4 -9
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +10 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +4 -3
- package/src/clients/brand-page-client.ts +2 -1
|
@@ -17,10 +17,6 @@ interface ViewModelMappingOptions {
|
|
|
17
17
|
videoUrl: string;
|
|
18
18
|
previewImageUrl: string;
|
|
19
19
|
};
|
|
20
|
-
getS3VideoUrls?: (token: string) => {
|
|
21
|
-
videoUrl: string;
|
|
22
|
-
previewImageUrl: string;
|
|
23
|
-
};
|
|
24
20
|
}
|
|
25
21
|
export declare const getBrandPageViewModelFromBrandPageModel: (model: BrandPageModel, brandPageToken: string | undefined, showBrandCrowdLogo: boolean | undefined, options: ViewModelMappingOptions) => BrandPageViewModel;
|
|
26
22
|
export declare const isLogoViewModel: (viewModel: ContentViewModel) => viewModel is LogoViewModel;
|
|
@@ -392,8 +392,7 @@ const mapToContactFormViewModel = (content, styles, brandPageType) => {
|
|
|
392
392
|
}, styles);
|
|
393
393
|
};
|
|
394
394
|
const mapGettyVideoToGettyVideoViewModel = (media, options) => {
|
|
395
|
-
const videoUrls = options.getVideoUrls?.(media.gettyToken) ||
|
|
396
|
-
options.getS3VideoUrls?.(media.gettyToken) || {
|
|
395
|
+
const videoUrls = options.getVideoUrls?.(media.gettyToken) || {
|
|
397
396
|
videoUrl: undefined,
|
|
398
397
|
previewImageUrl: undefined,
|
|
399
398
|
};
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
23
23
|
brandPageTemplate(): any;
|
|
24
24
|
brandPageTitle(): string;
|
|
25
25
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
26
|
+
gettyVideoIds(): string[];
|
|
26
27
|
isInteractivePreviewEnabled(): boolean;
|
|
27
28
|
isProduction(): boolean;
|
|
28
29
|
isPublishButtonEnabled(): boolean;
|
|
@@ -65,6 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
brandPageTemplate(): any;
|
|
66
66
|
brandPageTitle(): string;
|
|
67
67
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
68
|
+
gettyVideoIds(): string[];
|
|
68
69
|
isInteractivePreviewEnabled(): boolean;
|
|
69
70
|
isProduction(): boolean;
|
|
70
71
|
isPublishButtonEnabled(): boolean;
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
13
13
|
brandPageTemplate(): any;
|
|
14
14
|
brandPageTitle(): string;
|
|
15
15
|
brandPageViewModel(): import("../../../lib").BrandPageViewModel;
|
|
16
|
+
gettyVideoIds(): string[];
|
|
16
17
|
isInteractivePreviewEnabled(): boolean;
|
|
17
18
|
isProduction(): boolean;
|
|
18
19
|
isPublishButtonEnabled(): boolean;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -520,6 +520,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
520
520
|
brandPageTemplate(): any;
|
|
521
521
|
brandPageTitle(): string;
|
|
522
522
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
523
|
+
gettyVideoIds(): string[];
|
|
523
524
|
isInteractivePreviewEnabled(): boolean;
|
|
524
525
|
isProduction(): boolean;
|
|
525
526
|
isPublishButtonEnabled(): boolean;
|
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
20
|
brandPageTemplate(): any;
|
|
21
21
|
brandPageTitle(): string;
|
|
22
22
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
23
|
+
gettyVideoIds(): string[];
|
|
23
24
|
isInteractivePreviewEnabled(): boolean;
|
|
24
25
|
isProduction(): boolean;
|
|
25
26
|
isPublishButtonEnabled(): boolean;
|
|
@@ -257,6 +257,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
257
257
|
brandPageTemplate(): any;
|
|
258
258
|
brandPageTitle(): string;
|
|
259
259
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
260
|
+
gettyVideoIds(): string[];
|
|
260
261
|
isInteractivePreviewEnabled(): boolean;
|
|
261
262
|
isProduction(): boolean;
|
|
262
263
|
isPublishButtonEnabled(): boolean;
|
|
@@ -256,6 +256,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
256
|
brandPageTemplate(): any;
|
|
257
257
|
brandPageTitle(): string;
|
|
258
258
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
259
|
+
gettyVideoIds(): string[];
|
|
259
260
|
isInteractivePreviewEnabled(): boolean;
|
|
260
261
|
isProduction(): boolean;
|
|
261
262
|
isPublishButtonEnabled(): boolean;
|
|
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
30
30
|
brandPageTemplate(): any;
|
|
31
31
|
brandPageTitle(): string;
|
|
32
32
|
brandPageViewModel(): import("../../../brand-page").BrandPageViewModel;
|
|
33
|
+
gettyVideoIds(): string[];
|
|
33
34
|
isInteractivePreviewEnabled(): boolean;
|
|
34
35
|
isProduction(): boolean;
|
|
35
36
|
isPublishButtonEnabled(): boolean;
|
|
@@ -72,6 +72,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
72
|
brandPageTemplate(): any;
|
|
73
73
|
brandPageTitle(): string;
|
|
74
74
|
brandPageViewModel(): BrandPageViewModel;
|
|
75
|
+
gettyVideoIds(): string[];
|
|
75
76
|
isInteractivePreviewEnabled(): boolean;
|
|
76
77
|
isProduction(): boolean;
|
|
77
78
|
isPublishButtonEnabled(): boolean;
|
|
@@ -244,11 +244,15 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
244
244
|
return false;
|
|
245
245
|
}
|
|
246
246
|
this.setIsPublishing({ isPublishing: true });
|
|
247
|
+
const gettyVideoIds = shouldPublish
|
|
248
|
+
? brandPageMakerStore.gettyVideoIds
|
|
249
|
+
: [];
|
|
247
250
|
try {
|
|
248
251
|
const response = await brandPageClient.setBrandPageSlugAsync(brandPageMakerStore.brandPageType, this.designDraftToken, {
|
|
249
252
|
slug,
|
|
250
253
|
shouldPublish,
|
|
251
254
|
brandPageContentTypes: this.brandPageContentTypes,
|
|
255
|
+
gettyVideoIds,
|
|
252
256
|
});
|
|
253
257
|
if (!response) {
|
|
254
258
|
throw new Error('Failed to set brand page slug');
|
|
@@ -344,11 +348,15 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
344
348
|
return;
|
|
345
349
|
}
|
|
346
350
|
this.setBrandPageCustomDomain({ customDomain: customDomainResponse });
|
|
351
|
+
const gettyVideoIds = shouldPublish
|
|
352
|
+
? brandPageMakerStore.gettyVideoIds
|
|
353
|
+
: [];
|
|
347
354
|
if (customDomainResponse) {
|
|
348
355
|
const response = await brandPageClient.setBrandPageSlugAsync(brandPageMakerStore.brandPageType, this.designDraftToken, {
|
|
349
356
|
slug: bpSlug,
|
|
350
357
|
shouldPublish,
|
|
351
358
|
brandPageContentTypes: this.brandPageContentTypes,
|
|
359
|
+
gettyVideoIds,
|
|
352
360
|
});
|
|
353
361
|
if (!response) {
|
|
354
362
|
throw new Error('Failed to set brand page slug');
|
|
@@ -93,6 +93,7 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
|
|
|
93
93
|
brandPageTemplate(): BrandPageData;
|
|
94
94
|
brandPageTitle(): string;
|
|
95
95
|
brandPageViewModel(): BrandPageViewModel;
|
|
96
|
+
gettyVideoIds(): string[];
|
|
96
97
|
isInteractivePreviewEnabled(): boolean;
|
|
97
98
|
isProduction(): boolean;
|
|
98
99
|
isPublishButtonEnabled(): boolean;
|
|
@@ -32,6 +32,7 @@ import { useConsent } from '../../../brand-page/composables/consent.composable';
|
|
|
32
32
|
import { commonTr, errorTr } from '../../../composables/useTranslate';
|
|
33
33
|
import { UPGRADE_CTA_LOCATIONS } from '../../composables/useEventTracker';
|
|
34
34
|
import { useVideoStore } from '../video';
|
|
35
|
+
import { findValuesByKey } from '../../../helpers/ts.helper';
|
|
35
36
|
const brandPageTypeTemplateTypeMap = {
|
|
36
37
|
[BRAND_PAGE_TYPES.default]: 'Brand Page',
|
|
37
38
|
[BRAND_PAGE_TYPES.brandSite]: 'Brand Site',
|
|
@@ -886,7 +887,6 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
886
887
|
return getBrandPageViewModelFromBrandPageModel(themedBrandPage, this.brandPageToken, undefined, {
|
|
887
888
|
useOldLogoRenderSize: false,
|
|
888
889
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
889
|
-
getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
const showBrandCrowdLogo = userStore.features.showBrandCrowdLogo;
|
|
@@ -898,15 +898,16 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
898
898
|
return getBrandPageViewModelFromBrandPageModel(model, this.brandPageToken, showBrandCrowdLogo, {
|
|
899
899
|
useOldLogoRenderSize: false,
|
|
900
900
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
901
|
-
getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
|
|
902
901
|
});
|
|
903
902
|
}
|
|
904
903
|
return getBrandPageViewModelFromBrandPageModel(this.brandPageData, this.brandPageToken, showBrandCrowdLogo, {
|
|
905
904
|
useOldLogoRenderSize: false,
|
|
906
905
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
907
|
-
getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
|
|
908
906
|
});
|
|
909
907
|
},
|
|
908
|
+
gettyVideoIds() {
|
|
909
|
+
return findValuesByKey(this.brandPageData, 'gettyAssetId');
|
|
910
|
+
},
|
|
910
911
|
isInteractivePreviewEnabled() {
|
|
911
912
|
const uiStore = useUiStore();
|
|
912
913
|
return uiStore.screenSizeMode !== UI_SCREENSIZE_MODES.mobile;
|
|
@@ -33,12 +33,13 @@ const saveBrandPageAsync = async (brandPageType, request, designDraftToken) => {
|
|
|
33
33
|
return null;
|
|
34
34
|
};
|
|
35
35
|
const setBrandPageSlugAsync = async (brandPageType, designDraftToken, options) => {
|
|
36
|
-
const { slug, shouldPublish, brandPageContentTypes } = options;
|
|
36
|
+
const { slug, shouldPublish, brandPageContentTypes, gettyVideoIds } = options;
|
|
37
37
|
const url = `${getApiUrlPrefix(brandPageType)}/${designDraftToken}/publish`;
|
|
38
38
|
const response = await getAxiosInstance().post(url, {
|
|
39
39
|
slug,
|
|
40
40
|
shouldPublish,
|
|
41
41
|
brandPageContentTypes: brandPageContentTypes || [],
|
|
42
|
+
gettyVideoIds: gettyVideoIds || [],
|
|
42
43
|
});
|
|
43
44
|
if (response.status !== 200) {
|
|
44
45
|
return null;
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bD as E, ar as T, aU as I, a5 as s, aj as N, ai as S, af as A, bt as e, bK as O, cb as G, ca as C, c9 as D, c3 as P, b2 as t, b1 as R, bP as L, bQ as M, bX as o, bM as b, bO as r, bN as F, bR as n, bS as B, c2 as i, c0 as l, aq as g, c1 as Y, a8 as U, aZ as c, a$ as d, a_ as u, e as H, f as y, B as p, $ as K, d as V, a0 as k, j as X, an as m, Z as v, bs as h, bL as W, ay as x, aW as f, aS as z, b_ as Z, bZ as w, C as Q, b5 as j, D as q, b as J, a as $, bV as aa, b4 as _a, aX as Ea, aT as Ta, c7 as Ia, c8 as sa, bY as Na, bH as Sa, ad as Aa, b$ as ea, c4 as Oa, ba as Ga, aK as Ca, bg as Da, F as Pa, a7 as ta, a6 as Ra, h as La, a1 as Ma, b7 as oa, aV as ba, aR as ra, a3 as Fa, ak as na, l as Ba, K as ia, H as la, a9 as ga, bE as Ya, bb as Ua, bc as ca, bC as da, bi as ua, bk as Ha, b6 as ya, L as pa, aJ as Ka, bp as Va, aP as ka, bo as Xa, as as ma, ab as va, bW as ha, c5 as Wa, c6 as xa, aY as fa, N as za, aB as Za, aA as wa, aC as Qa, aw as ja, ax as qa, az as Ja, be as $a, bl as a_, b8 as __, o as E_, al as T_, am as I_, ag as s_, ah as N_, ae as S_, a4 as A_, m as e_, bq as O_, ap as G_, bI as C_, bJ as D_, bU as P_, ac as t_, bG as R_, br as L_, n as M_, S as o_, P as b_, aI as r_, bF as F_, bf as n_, bx as B_, bw as i_, bz as l_, bu as g_, bA as Y_, bB as U_, bv as c_, by as d_, aD as u_, aE as H_, bn as y_, bm as p_, aG as K_, aH as V_, aM as k_, b0 as X_, aL as m_, aN as v_, U as h_, aa as W_, aQ as x_, k as f_, bd as z_, ao as Z_, b9 as w_, bh as Q_, bj as j_, b3 as q_, Q as J_, a2 as $_, g as aE, bT as _E, r as EE, u as TE, M as IE, Y as sE, aF as NE, aO as SE, au as AE, p as eE, W as OE, t as GE, w as CE, at as DE, i as PE, av as tE, c as RE, q as LE, v as ME, V as oE, O as bE, s as rE, X as FE, A as nE, x as BE, y as iE, T as lE, E as gE, R as YE, G as UE, J as cE, z as dE, I as uE } from "./lib-
|
|
1
|
+
import { bD as E, ar as T, aU as I, a5 as s, aj as N, ai as S, af as A, bt as e, bK as O, cb as G, ca as C, c9 as D, c3 as P, b2 as t, b1 as R, bP as L, bQ as M, bX as o, bM as b, bO as r, bN as F, bR as n, bS as B, c2 as i, c0 as l, aq as g, c1 as Y, a8 as U, aZ as c, a$ as d, a_ as u, e as H, f as y, B as p, $ as K, d as V, a0 as k, j as X, an as m, Z as v, bs as h, bL as W, ay as x, aW as f, aS as z, b_ as Z, bZ as w, C as Q, b5 as j, D as q, b as J, a as $, bV as aa, b4 as _a, aX as Ea, aT as Ta, c7 as Ia, c8 as sa, bY as Na, bH as Sa, ad as Aa, b$ as ea, c4 as Oa, ba as Ga, aK as Ca, bg as Da, F as Pa, a7 as ta, a6 as Ra, h as La, a1 as Ma, b7 as oa, aV as ba, aR as ra, a3 as Fa, ak as na, l as Ba, K as ia, H as la, a9 as ga, bE as Ya, bb as Ua, bc as ca, bC as da, bi as ua, bk as Ha, b6 as ya, L as pa, aJ as Ka, bp as Va, aP as ka, bo as Xa, as as ma, ab as va, bW as ha, c5 as Wa, c6 as xa, aY as fa, N as za, aB as Za, aA as wa, aC as Qa, aw as ja, ax as qa, az as Ja, be as $a, bl as a_, b8 as __, o as E_, al as T_, am as I_, ag as s_, ah as N_, ae as S_, a4 as A_, m as e_, bq as O_, ap as G_, bI as C_, bJ as D_, bU as P_, ac as t_, bG as R_, br as L_, n as M_, S as o_, P as b_, aI as r_, bF as F_, bf as n_, bx as B_, bw as i_, bz as l_, bu as g_, bA as Y_, bB as U_, bv as c_, by as d_, aD as u_, aE as H_, bn as y_, bm as p_, aG as K_, aH as V_, aM as k_, b0 as X_, aL as m_, aN as v_, U as h_, aa as W_, aQ as x_, k as f_, bd as z_, ao as Z_, b9 as w_, bh as Q_, bj as j_, b3 as q_, Q as J_, a2 as $_, g as aE, bT as _E, r as EE, u as TE, M as IE, Y as sE, aF as NE, aO as SE, au as AE, p as eE, W as OE, t as GE, w as CE, at as DE, i as PE, av as tE, c as RE, q as LE, v as ME, V as oE, O as bE, s as rE, X as FE, A as nE, x as BE, y as iE, T as lE, E as gE, R as YE, G as UE, J as cE, z as dE, I as uE } from "./lib-CmVh9Kwd.js";
|
|
2
2
|
import { createPinia as yE, setActivePinia as pE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|