@designcrowd/library.brand-page 5.13.6 → 5.13.7

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 (19) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BkWIskLx.js → CreatedOnBrandCrowd-de-de-CrRrXJrT.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Di3Bscjn.js → CreatedOnBrandCrowd-en-us-CpDUGnHw.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BouDPfN1.js → CreatedOnBrandCrowd-es-es-C_k7lMHF.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-ex-VCVjf.js → CreatedOnBrandCrowd-fr-fr-CMVohNeY.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-BnxPrMQQ.js → CreatedOnBrandCrowd-pt-pt-BISL94AM.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-Bwxloguf.js → CreatedOnDcom-de-de-B3E1NohR.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-CbiXSOCF.js → CreatedOnDcom-en-us-DVIEg9W9.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-CbkeqCK4.js → CreatedOnDcom-es-es-CHmxVOKZ.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-BrkRGyPq.js → CreatedOnDcom-fr-fr-Jokywtfj.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-Q-46uDXU.js → CreatedOnDcom-pt-pt-BbteAUiV.js} +1 -1
  11. package/lib/src/brand-page/utils/migration/migration-052.d.ts +4 -0
  12. package/lib/src/brand-page/utils/migration/migration-052.js +14 -0
  13. package/lib/src/brand-page/utils/migration.util.js +5 -0
  14. package/lib/src/index.mjs +1 -1
  15. package/lib/src/{lib-DQfmtI-m.js → lib-jPGba9e4.js} +11156 -11145
  16. package/package.json +1 -1
  17. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -3
  18. package/src/brand-page/utils/migration/migration-052.ts +20 -0
  19. package/src/brand-page/utils/migration.util.ts +5 -0
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DQfmtI-m.js";
2
+ import { _ as t } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as t } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as t } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as t } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as t } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as e } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as e } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as e } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as e } from "./lib-jPGba9e4.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-DQfmtI-m.js";
2
+ import { _ as M } from "./lib-jPGba9e4.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -0,0 +1,4 @@
1
+ import { type BrandPageModel } from '../..';
2
+ export declare const migration052: (brandPageModel: BrandPageModel, options: {
3
+ isUserDraft: boolean;
4
+ }) => BrandPageModel;
@@ -0,0 +1,14 @@
1
+ import {} from '../..';
2
+ export const migration052 = (brandPageModel, options) => {
3
+ brandPageModel.pages.forEach((page) => {
4
+ page.contents.forEach((content) => {
5
+ // Casting content type to string to avoid adding placeholder types in CONTENT_SETTINGS_CONFIGS
6
+ if (content.type === 'twitter') {
7
+ const buttonContent = content;
8
+ buttonContent.iconUrl = 'x';
9
+ buttonContent.type = 'x';
10
+ }
11
+ });
12
+ });
13
+ return brandPageModel;
14
+ };
@@ -5,6 +5,7 @@ import { migration03 } from './migration/migration-03';
5
5
  import { migration04 } from './migration/migration-04';
6
6
  import { migration05 } from './migration/migration-05';
7
7
  import { migration051 } from './migration/migration-051';
8
+ import { migration052 } from './migration/migration-052';
8
9
  const MIGRATION_TABLE = [
9
10
  {
10
11
  version: 1,
@@ -30,6 +31,10 @@ const MIGRATION_TABLE = [
30
31
  version: 5.1,
31
32
  migrateFn: migration051,
32
33
  },
34
+ {
35
+ version: 5.2,
36
+ migrateFn: migration052,
37
+ },
33
38
  ];
34
39
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
35
40
  export const migrateBrandPageModel = (brandPageModel, options) => {
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-DQfmtI-m.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-jPGba9e4.js";
2
2
  import { createPinia as UE, setActivePinia as cE } from "pinia";
3
3
  export {
4
4
  E as ABOUT_SECTION_SETTINGS_CONFIG,