@designcrowd/library.brand-page 5.13.1 → 5.13.2-jj2

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 (31) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-_LyKBIHs.js → CreatedOnBrandCrowd-de-de-CdNoH19e.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-_kgVLJXq.js → CreatedOnBrandCrowd-en-us-C7op3GnO.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-ffkK8zoY.js → CreatedOnBrandCrowd-es-es-De83ViXC.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-wJtf5nIJ.js → CreatedOnBrandCrowd-fr-fr-QDYJWK3f.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DpT3mSsl.js → CreatedOnBrandCrowd-pt-pt-DBWAwpMJ.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-D-yViMaE.js → CreatedOnDcom-de-de-C-Rtk1z6.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-ICRy3t8I.js → CreatedOnDcom-en-us-BC_feeYZ.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-DtrYPIRQ.js → CreatedOnDcom-es-es-DFi7JXQ9.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-B84usfrI.js → CreatedOnDcom-fr-fr-B-hAzsPi.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-ChgVsO24.js → CreatedOnDcom-pt-pt-DnfjQ3Dy.js} +1 -1
  11. package/lib/src/brand-page/utils/migration/migration-01.d.ts +1 -2
  12. package/lib/src/brand-page/utils/migration/migration-01.js +0 -2
  13. package/lib/src/brand-page/utils/migration/migration-01_1.d.ts +4 -0
  14. package/lib/src/brand-page/utils/migration/migration-01_1.js +5 -0
  15. package/lib/src/brand-page/utils/migration/{migration-051.d.ts → migration-05_1.d.ts} +1 -1
  16. package/lib/src/brand-page/utils/migration/{migration-051.js → migration-05_1.js} +1 -1
  17. package/lib/src/brand-page/utils/migration.util.js +16 -3
  18. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -0
  19. package/lib/src/index.mjs +1 -1
  20. package/lib/src/{lib-ZZVZ7Oup.js → lib-D1QSP5lK.js} +9637 -9621
  21. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +5 -0
  22. package/lib/src/shared/template-settings/models.d.ts +1 -1
  23. package/lib/src/shared/template-settings/models.js +1 -1
  24. package/package.json +1 -1
  25. package/src/brand-page/utils/migration/migration-01.ts +0 -4
  26. package/src/brand-page/utils/migration/migration-01_1.ts +14 -0
  27. package/src/brand-page/utils/migration/{migration-051.ts → migration-05_1.ts} +1 -1
  28. package/src/brand-page/utils/migration.util.ts +19 -3
  29. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -0
  30. package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +6 -0
  31. package/src/shared/template-settings/models.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-ZZVZ7Oup.js";
2
+ import { _ as t } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as t } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as t } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as t } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as t } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as e } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as e } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as e } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as e } from "./lib-D1QSP5lK.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-ZZVZ7Oup.js";
2
+ import { _ as M } from "./lib-D1QSP5lK.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,4 +1,4 @@
1
- import type { BrandPageModel, LogoImageModel } from '../../';
1
+ import type { BrandPageModel } from '../../';
2
2
  export declare const applyTextContentTextToTextItemsMigration: (brandPageModel: BrandPageModel) => void;
3
3
  export declare const migrateProfileContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
4
4
  export declare const migrateMailingListContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
@@ -18,6 +18,5 @@ export declare const migrateGlobalTextStylesToHaveMissingStyles: (brandPageModel
18
18
  export declare const migrateConvertLineHeightOnNavigationStyles: (brandPageModel: BrandPageModel) => void;
19
19
  export declare const migrateConvertLineHeightOnFooterStyles: (brandPageModel: BrandPageModel) => void;
20
20
  export declare const migration01: (brandPageModel: BrandPageModel, options: {
21
- logoImage?: LogoImageModel;
22
21
  isUserDraft: boolean;
23
22
  }) => BrandPageModel;
@@ -3,7 +3,6 @@ import { DEFAULT_LETTER_SPACING, FOOTER_DISPLAY, NavigationDesktop, NavigationMo
3
3
  import { ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_BIG_IMAGE, BIG_IMAGE, BRAND_PAGE_TYPES, DEFAULT_FONT_FAMILY_KEY, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, DEFAULT_TEXT_ALIGN, FONT_FAMILY_CONFIGS, HEADER_DISPLAY, NAVIGATION_DISPLAY, LINE_HEIGHT_BODY, LINE_HEIGHT_HEADINGS, LINE_HEIGHT_TITLE, PAYMENT_OPTION_DISPLAY_TYPES, } from '../../';
4
4
  import { isAboutContent, isBannerContent, isButtonContent, isContact, isImagesContent, isLogoContent, isMailingListContent, isPayment, isProfileContent, isShapesContent, isSocialLinks, isSupportMeContent, isTestimonialContent, isTextContent, } from '../../utils';
5
5
  import { createInitialLogoContent } from '../../../brand-page-maker/models';
6
- import { migrateLogoImage } from './logo/logo.migration.util';
7
6
  export const applyTextContentTextToTextItemsMigration = (brandPageModel) => {
8
7
  const textContents = brandPageModel.pages.reduce((acc, cur) => {
9
8
  return [...acc, ...cur.contents.filter(isTextContent)];
@@ -889,6 +888,5 @@ export const migration01 = (brandPageModel, options) => {
889
888
  migrateGlobalTextStylesToHaveMissingStyles(brandPageModel);
890
889
  migrateConvertLineHeightOnNavigationStyles(brandPageModel);
891
890
  migrateConvertLineHeightOnFooterStyles(brandPageModel);
892
- migrateLogoImage(brandPageModel, options.logoImage);
893
891
  return brandPageModel;
894
892
  };
@@ -0,0 +1,4 @@
1
+ import type { BrandPageModel, LogoImageModel } from '../..';
2
+ export declare const migration01_1: (brandPageModel: BrandPageModel, options: {
3
+ logoImage?: LogoImageModel;
4
+ }) => BrandPageModel;
@@ -0,0 +1,5 @@
1
+ import { migrateLogoImage } from './logo/logo.migration.util';
2
+ export const migration01_1 = (brandPageModel, options) => {
3
+ migrateLogoImage(brandPageModel, options.logoImage);
4
+ return brandPageModel;
5
+ };
@@ -1,4 +1,4 @@
1
1
  import { type BrandPageModel } from '../..';
2
- export declare const migration051: (brandPageModel: BrandPageModel, options: {
2
+ export declare const migration05_1: (brandPageModel: BrandPageModel, options: {
3
3
  isUserDraft: boolean;
4
4
  }) => BrandPageModel;
@@ -1,5 +1,5 @@
1
1
  import {} from '../..';
2
- export const migration051 = (brandPageModel, options) => {
2
+ export const migration05_1 = (brandPageModel, options) => {
3
3
  if (!options.isUserDraft) {
4
4
  brandPageModel.pageFooterDesktop?.socialLinks?.forEach((link) => {
5
5
  if (link.imageUrl === 'twitter') {
@@ -1,34 +1,47 @@
1
1
  import {} from '../models';
2
2
  import { migration01 } from './migration/migration-01';
3
+ import { migration01_1 } from './migration/migration-01_1';
3
4
  import { migration02 } from './migration/migration-02';
4
5
  import { migration03 } from './migration/migration-03';
5
6
  import { migration04 } from './migration/migration-04';
6
7
  import { migration05 } from './migration/migration-05';
7
- import { migration051 } from './migration/migration-051';
8
+ import { migration05_1 } from './migration/migration-05_1';
8
9
  const MIGRATION_TABLE = [
9
10
  {
10
11
  version: 1,
11
12
  migrateFn: migration01,
13
+ description: 'Legacy migration',
14
+ },
15
+ {
16
+ version: 1.1,
17
+ migrateFn: migration01_1,
18
+ description: 'When loading template assign logo to the metadata',
19
+ runAlways: true,
12
20
  },
13
21
  {
14
22
  version: 2,
15
23
  migrateFn: migration02,
24
+ description: 'Migrating letterspacing unit from rem to em',
16
25
  },
17
26
  {
18
27
  version: 3,
19
28
  migrateFn: migration03,
29
+ description: 'Migrating font size unit from rem to em to support fluid text',
20
30
  },
21
31
  {
22
32
  version: 4,
23
33
  migrateFn: migration04,
34
+ description: 'Migrating user uploaded image URLs to remove extensions',
24
35
  },
25
36
  {
26
37
  version: 5,
27
38
  migrateFn: migration05,
39
+ description: 'Migrating text item text styles to apply auto scale',
28
40
  },
29
41
  {
30
42
  version: 5.1,
31
- migrateFn: migration051,
43
+ migrateFn: migration05_1,
44
+ description: 'Migrating twitter icon and url to x icon and x.com',
32
45
  },
33
46
  ];
34
47
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
@@ -38,7 +51,7 @@ export const migrateBrandPageModel = (brandPageModel, options) => {
38
51
  modelVersion = 0;
39
52
  }
40
53
  MIGRATION_TABLE.forEach((x) => {
41
- if (modelVersion < x.version) {
54
+ if (x.runAlways || modelVersion < x.version) {
42
55
  brandPageModel = x.migrateFn(brandPageModel, options);
43
56
  }
44
57
  });
@@ -815,6 +815,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
815
815
  const galleryStyles = styleSettingsStore.galleryStyles;
816
816
  const navigation = navigationStyleSettingsStore.navigation;
817
817
  return {
818
+ v: GetLatestModelVersion(),
818
819
  styles: {
819
820
  logoStyles,
820
821
  buttonStyles,
package/lib/src/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { by as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, bF as O, c6 as e, c5 as G, c4 as C, b_ as D, aZ as P, aY as R, bK as t, bL as L, bS as M, bH as o, bJ as b, bI as r, bM as F, bN as n, bZ as B, bX as g, am as l, bY as i, a6 as Y, aU as U, aW as c, aV as d, e as H, f as u, B as y, Y as K, d as p, Z as k, j as V, aj as X, X as m, bn as v, bG as h, at as W, aR as x, aN as f, bV as Z, bU as w, C as z, b0 as Q, D as j, b as q, a as J, bQ as $, a$ as aa, aS as _a, aO as Ea, c2 as Ta, c3 as Ia, bT as Na, bC as Sa, ab as sa, bW as Aa, b$ as Oa, b5 as ea, aF as Ga, bb as Ca, F as Da, a5 as Pa, a4 as Ra, h as ta, $ as La, b2 as Ma, aQ as oa, aM as ba, a1 as ra, G as Fa, I as na, H as Ba, a7 as ga, bz as la, b6 as ia, b7 as Ya, bx as Ua, bd as ca, bf as da, b1 as Ha, L as ua, aE as ya, bk as Ka, aK as pa, bj as ka, ao as Va, a9 as Xa, bR as ma, c0 as va, c1 as ha, aT as Wa, N as xa, aw as fa, av as Za, ax as wa, ar as za, as as Qa, au as ja, b9 as qa, bg as Ja, b3 as $a, n as a_, ah as __, ai as E_, ae as T_, af as I_, ac as N_, a2 as S_, l as s_, bl as A_, al as O_, bD as e_, bE as G_, bP as C_, aa as D_, bB as P_, bm as R_, m as t_, S as L_, P as M_, aD as o_, bA as b_, ba as r_, bs as F_, br as n_, bu as B_, bp as g_, bv as l_, bw as i_, bq as Y_, bt as U_, ay as c_, az as d_, bi as H_, bh as u_, aB as y_, aC as K_, aH as p_, aX as k_, aG as V_, aI as X_, U as m_, a8 as v_, aL as h_, k as W_, b8 as x_, ak as f_, b4 as Z_, bc as w_, be as z_, a_ as Q_, M as j_, a0 as q_, g as J_, bO as $_, q as aE, J as _E, W as EE, aA as TE, aJ as IE, ap as NE, o as SE, T as sE, r as AE, u as OE, i as eE, aq as GE, c as CE, p as DE, t as PE, R as RE, K as tE, s as LE, V as ME, y as oE, v as bE, w as rE, Q as FE, z as nE, O as BE, A as gE, E as lE, x as iE } from "./lib-ZZVZ7Oup.js";
1
+ import { by as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, bF as O, c6 as e, c5 as G, c4 as C, b_ as D, aZ as P, aY as R, bK as t, bL as L, bS as M, bH as o, bJ as b, bI as r, bM as F, bN as n, bZ as B, bX as g, am as l, bY as i, a6 as Y, aU as U, aW as c, aV as d, e as H, f as u, B as y, Y as K, d as p, Z as k, j as V, aj as X, X as m, bn as v, bG as h, at as W, aR as x, aN as f, bV as Z, bU as w, C as z, b0 as Q, D as j, b as q, a as J, bQ as $, a$ as aa, aS as _a, aO as Ea, c2 as Ta, c3 as Ia, bT as Na, bC as Sa, ab as sa, bW as Aa, b$ as Oa, b5 as ea, aF as Ga, bb as Ca, F as Da, a5 as Pa, a4 as Ra, h as ta, $ as La, b2 as Ma, aQ as oa, aM as ba, a1 as ra, G as Fa, I as na, H as Ba, a7 as ga, bz as la, b6 as ia, b7 as Ya, bx as Ua, bd as ca, bf as da, b1 as Ha, L as ua, aE as ya, bk as Ka, aK as pa, bj as ka, ao as Va, a9 as Xa, bR as ma, c0 as va, c1 as ha, aT as Wa, N as xa, aw as fa, av as Za, ax as wa, ar as za, as as Qa, au as ja, b9 as qa, bg as Ja, b3 as $a, n as a_, ah as __, ai as E_, ae as T_, af as I_, ac as N_, a2 as S_, l as s_, bl as A_, al as O_, bD as e_, bE as G_, bP as C_, aa as D_, bB as P_, bm as R_, m as t_, S as L_, P as M_, aD as o_, bA as b_, ba as r_, bs as F_, br as n_, bu as B_, bp as g_, bv as l_, bw as i_, bq as Y_, bt as U_, ay as c_, az as d_, bi as H_, bh as u_, aB as y_, aC as K_, aH as p_, aX as k_, aG as V_, aI as X_, U as m_, a8 as v_, aL as h_, k as W_, b8 as x_, ak as f_, b4 as Z_, bc as w_, be as z_, a_ as Q_, M as j_, a0 as q_, g as J_, bO as $_, q as aE, J as _E, W as EE, aA as TE, aJ as IE, ap as NE, o as SE, T as sE, r as AE, u as OE, i as eE, aq as GE, c as CE, p as DE, t as PE, R as RE, K as tE, s as LE, V as ME, y as oE, v as bE, w as rE, Q as FE, z as nE, O as BE, A as gE, E as lE, x as iE } from "./lib-D1QSP5lK.js";
2
2
  import { createPinia as UE, setActivePinia as cE } from "pinia";
3
3
  export {
4
4
  E as ABOUT_SECTION_SETTINGS_CONFIG,