@designcrowd/library.brand-page 5.16.21 → 5.16.22
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-DgwCYxpo.js → CreatedOnBrandCrowd-de-de-YThQBD-l.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Ce4dtJzF.js → CreatedOnBrandCrowd-en-us-kFcZdEBB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DDdbZpFk.js → CreatedOnBrandCrowd-es-es-cKwAIBgT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-PqYlFJIq.js → CreatedOnBrandCrowd-fr-ca-_BKLPTq0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-PqYlFJIq.js → CreatedOnBrandCrowd-fr-fr-_BKLPTq0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-J-uo_wBq.js → CreatedOnBrandCrowd-pt-br-BNz5Tkgw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-J-uo_wBq.js → CreatedOnBrandCrowd-pt-pt-BNz5Tkgw.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DqXE51XT.js → CreatedOnDcom-de-de-BnY0hTSp.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BxrSQ6H4.js → CreatedOnDcom-en-us-GgxQkuyj.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-tJ59EfOu.js → CreatedOnDcom-es-es-NooYJ0jd.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CDtK8MUu.js → CreatedOnDcom-fr-ca-CGn4nF7g.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DbotQbN2.js → CreatedOnDcom-fr-fr-BgL6GNTZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-ClzylsH_.js → CreatedOnDcom-pt-br-CiodT6rH.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-BF3m2X2_.js → CreatedOnDcom-pt-pt-CuJQEuls.js} +1 -1
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.js +4 -5
- package/lib/src/brand-page/models/index.d.ts +0 -1
- package/lib/src/brand-page/models/index.js +0 -5
- package/lib/src/brand-page/utils/migration/migration-11.d.ts +8 -0
- package/lib/src/brand-page/utils/migration/migration-11.js +36 -0
- package/lib/src/brand-page/utils/migration.util.js +6 -0
- package/lib/src/brand-page/utils/view-model.util.js +0 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CAvMr_zk.js → lib-ByYaiZB6.js} +4346 -4331
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +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-item/ContentSettingsItemField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -3
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -3
- package/package.json +1 -1
- package/src/brand-page/components/page-header/PageHeader.mixin.ts +4 -6
- package/src/brand-page/models/index.ts +0 -6
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +0 -2
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +0 -4
- package/src/brand-page/utils/migration/migration-11.ts +49 -0
- package/src/brand-page/utils/migration.util.ts +6 -0
- package/src/brand-page/utils/view-model.util.ts +0 -1
|
@@ -27,12 +27,11 @@ export default defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
computed: {
|
|
29
29
|
containerCss() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return Object.assign({}, backgroundStyle, this.viewModel.style, {
|
|
30
|
+
return {
|
|
31
|
+
...this.viewModel.backgroundStyle,
|
|
32
|
+
...this.viewModel.style,
|
|
34
33
|
padding: '1.5rem 0', // var(--page-padding) 0
|
|
35
|
-
}
|
|
34
|
+
};
|
|
36
35
|
},
|
|
37
36
|
showNav() {
|
|
38
37
|
return this.viewModel.pages.length > 1;
|
|
@@ -461,7 +461,6 @@ export declare abstract class AbstractPageHeaderStyles {
|
|
|
461
461
|
backgroundStyle: BrandPageCssStyle;
|
|
462
462
|
style: BrandPageCssStyle;
|
|
463
463
|
viewport: ViewportsType;
|
|
464
|
-
backgroundColorEnabled?: boolean;
|
|
465
464
|
protected constructor(options?: AbstractPageHeaderStylesType);
|
|
466
465
|
}
|
|
467
466
|
export declare class PageHeaderDesktop extends AbstractPageHeaderStyles {
|
|
@@ -199,7 +199,6 @@ export class AbstractPageHeaderStyles {
|
|
|
199
199
|
backgroundStyle;
|
|
200
200
|
style;
|
|
201
201
|
viewport;
|
|
202
|
-
backgroundColorEnabled;
|
|
203
202
|
constructor(options = {}) {
|
|
204
203
|
if (typeof options.viewport === 'undefined') {
|
|
205
204
|
throw new Error('"viewport" is required');
|
|
@@ -227,10 +226,6 @@ export class AbstractPageHeaderStyles {
|
|
|
227
226
|
this.logoVariation = options.logoVariation || 0;
|
|
228
227
|
this.style = options.style || {};
|
|
229
228
|
this.backgroundStyle = options.backgroundStyle || {};
|
|
230
|
-
this.backgroundColorEnabled =
|
|
231
|
-
typeof options.backgroundColorEnabled === 'undefined'
|
|
232
|
-
? true
|
|
233
|
-
: options.backgroundColorEnabled;
|
|
234
229
|
}
|
|
235
230
|
}
|
|
236
231
|
export class PageHeaderDesktop extends AbstractPageHeaderStyles {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MigrationData } from '../migration.util';
|
|
2
|
+
/**
|
|
3
|
+
* Migration 11: Remove backgroundColorEnabled flag from headers
|
|
4
|
+
*
|
|
5
|
+
* For headers where backgroundColorEnabled was false, set backgroundStyle.backgroundColor to transparent.
|
|
6
|
+
* Then remove the backgroundColorEnabled property from all headers.
|
|
7
|
+
*/
|
|
8
|
+
export declare const migration11: (migrationResult: MigrationData) => Promise<MigrationData>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 11: Remove backgroundColorEnabled flag from headers
|
|
3
|
+
*
|
|
4
|
+
* For headers where backgroundColorEnabled was false, set backgroundStyle.backgroundColor to transparent.
|
|
5
|
+
* Then remove the backgroundColorEnabled property from all headers.
|
|
6
|
+
*/
|
|
7
|
+
export const migration11 = async (migrationResult) => {
|
|
8
|
+
const { brandPageModel } = migrationResult;
|
|
9
|
+
// Migrate page header desktop
|
|
10
|
+
if (brandPageModel.pageHeaderDesktop) {
|
|
11
|
+
const header = brandPageModel.pageHeaderDesktop;
|
|
12
|
+
if (header.backgroundColorEnabled === false) {
|
|
13
|
+
// Set transparent background
|
|
14
|
+
if (!header.backgroundStyle) {
|
|
15
|
+
header.backgroundStyle = {};
|
|
16
|
+
}
|
|
17
|
+
header.backgroundStyle.backgroundColor = 'transparent';
|
|
18
|
+
}
|
|
19
|
+
// Remove the property
|
|
20
|
+
delete header.backgroundColorEnabled;
|
|
21
|
+
}
|
|
22
|
+
// Migrate page header mobile
|
|
23
|
+
if (brandPageModel.pageHeaderMobile) {
|
|
24
|
+
const header = brandPageModel.pageHeaderMobile;
|
|
25
|
+
if (header.backgroundColorEnabled === false) {
|
|
26
|
+
// Set transparent background
|
|
27
|
+
if (!header.backgroundStyle) {
|
|
28
|
+
header.backgroundStyle = {};
|
|
29
|
+
}
|
|
30
|
+
header.backgroundStyle.backgroundColor = 'transparent';
|
|
31
|
+
}
|
|
32
|
+
// Remove the property
|
|
33
|
+
delete header.backgroundColorEnabled;
|
|
34
|
+
}
|
|
35
|
+
return migrationResult;
|
|
36
|
+
};
|
|
@@ -13,6 +13,7 @@ import { migration07 } from './migration/migration-07';
|
|
|
13
13
|
import { migration08 } from './migration/migration-08';
|
|
14
14
|
import { migration09 } from './migration/migration-09';
|
|
15
15
|
import { migration10 } from './migration/migration-10';
|
|
16
|
+
import { migration11 } from './migration/migration-11';
|
|
16
17
|
const MIGRATION_TABLE = [
|
|
17
18
|
{
|
|
18
19
|
version: 1,
|
|
@@ -80,6 +81,11 @@ const MIGRATION_TABLE = [
|
|
|
80
81
|
migrateFn: migration10,
|
|
81
82
|
description: 'Migrating promptText to title for mailing list content',
|
|
82
83
|
},
|
|
84
|
+
{
|
|
85
|
+
version: 11,
|
|
86
|
+
migrateFn: migration11,
|
|
87
|
+
description: 'Remove backgroundColorEnabled flag from page headers',
|
|
88
|
+
},
|
|
83
89
|
];
|
|
84
90
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
85
91
|
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
@@ -659,7 +659,6 @@ export const mapToPageHeaderViewModel = (pageHeader, pageStyles, pages, useOldLo
|
|
|
659
659
|
}),
|
|
660
660
|
style: pageHeader.style,
|
|
661
661
|
backgroundStyle: pageHeader.backgroundStyle,
|
|
662
|
-
backgroundColorEnabled: pageHeader.backgroundColorEnabled,
|
|
663
662
|
};
|
|
664
663
|
};
|
|
665
664
|
export const mapToPageFooterViewModel = (pageFooter, pageStyles, useOldLogoRenderSize = false) => {
|
|
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
931
931
|
}): void;
|
|
932
932
|
setPageSettingsSectionValue({ sectionName, propName, index, value, merge, viewport, }: {
|
|
933
933
|
sectionName: "footer" | "header" | "pages";
|
|
934
|
-
propName: "copyrightStyle" | "style" | "iconStyle" | "displayStyle" | "backgroundStyle" | "logoImage" | "logoImageStyle" | "isLogoOptional" | "viewport" | "isLogoVisible" | "logoTemplateImage" | "logoImageHeight" | "logoImageWidth" | "navigationStyles" | "navigation" | "logoImageUrl" | "logoDraftToken" | "logoVariation" | "logoImageBase64Url" | "
|
|
934
|
+
propName: "copyrightStyle" | "style" | "iconStyle" | "displayStyle" | "backgroundStyle" | "logoImage" | "logoImageStyle" | "isLogoOptional" | "viewport" | "isLogoVisible" | "logoTemplateImage" | "logoImageHeight" | "logoImageWidth" | "navigationStyles" | "navigation" | "logoImageUrl" | "logoDraftToken" | "logoVariation" | "logoImageBase64Url" | "copyrightText" | "socialLinks" | "textFontFamily";
|
|
935
935
|
index?: number | undefined;
|
|
936
936
|
value: string | number | boolean | BrandPageCssStyle | import("../../../brand-page").LinksItem[] | Partial<import("../../../brand-page").ImageItem> | null | undefined;
|
|
937
937
|
merge?: boolean | undefined;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -941,7 +941,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
941
941
|
}): void;
|
|
942
942
|
setPageSettingsSectionValue({ sectionName, propName, index, value, merge, viewport, }: {
|
|
943
943
|
sectionName: "footer" | "header" | "pages";
|
|
944
|
-
propName: "copyrightStyle" | "style" | "iconStyle" | "displayStyle" | "backgroundStyle" | "logoImage" | "logoImageStyle" | "isLogoOptional" | "viewport" | "isLogoVisible" | "logoTemplateImage" | "logoImageHeight" | "logoImageWidth" | "navigationStyles" | "navigation" | "logoImageUrl" | "logoDraftToken" | "logoVariation" | "logoImageBase64Url" | "
|
|
944
|
+
propName: "copyrightStyle" | "style" | "iconStyle" | "displayStyle" | "backgroundStyle" | "logoImage" | "logoImageStyle" | "isLogoOptional" | "viewport" | "isLogoVisible" | "logoTemplateImage" | "logoImageHeight" | "logoImageWidth" | "navigationStyles" | "navigation" | "logoImageUrl" | "logoDraftToken" | "logoVariation" | "logoImageBase64Url" | "copyrightText" | "socialLinks" | "textFontFamily";
|
|
945
945
|
index?: number | undefined;
|
|
946
946
|
value: string | number | boolean | BrandPageCssStyle | import("../../../brand-page").LinksItem[] | Partial<import("../../../brand-page").ImageItem> | null | undefined;
|
|
947
947
|
merge?: boolean | undefined;
|
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-ByYaiZB6.js";
|
|
2
2
|
import { createPinia as yE, setActivePinia as pE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|