@designcrowd/library.brand-page 5.12.1 → 5.12.2
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-BOWrGsC1.js → CreatedOnBrandCrowd-de-de-CmST5whT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CScjF2cC.js → CreatedOnBrandCrowd-en-us-BX09sc8Q.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DXayzndc.js → CreatedOnBrandCrowd-es-es-BcafFU5N.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DU8erR0a.js → CreatedOnBrandCrowd-fr-fr-B-15L2eX.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Cc6TMn5h.js → CreatedOnBrandCrowd-pt-pt-DftEYyOi.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BYBSbTLa.js → CreatedOnDcom-de-de-B_5yYE6J.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-AIdKNyYm.js → CreatedOnDcom-en-us-CpwBBhQE.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-D2L3Ytt0.js → CreatedOnDcom-es-es-BJ4NlYLD.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-JI1M96fI.js → CreatedOnDcom-fr-fr-C9E4vPia.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B_C9tcSY.js → CreatedOnDcom-pt-pt-_hbC1Ygc.js} +1 -1
- package/lib/src/brand-page-maker/utils/route.util.js +5 -2
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-D-tH_nzp.js → lib-VqxnnfuP.js} +9 -3
- package/package.json +1 -1
- package/src/brand-page-maker/utils/route.util.ts +8 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export const interpolateUrl = (template, replacements) => {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
let result = template;
|
|
3
|
+
Object.entries(replacements).forEach(([key, value]) => {
|
|
4
|
+
const tokenPattern = new RegExp(`\\{${key}\\}`, 'gi');
|
|
5
|
+
result = result.replace(tokenPattern, value);
|
|
4
6
|
});
|
|
7
|
+
return result;
|
|
5
8
|
};
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bw as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, c3 as e, c2 as O, c1 as G, bX as C, aZ as D, aY as P, bH as R, bI as t, bP as L, bE as M, bG as o, bF as b, bJ as r, bK as F, bW as n, bU as B, am as g, bV as l, a6 as i, aU as Y, aW as U, aV as d, e as c, f as H, B as u, Y as y, d as p, Z as K, j as k, aj as V, X, bn as m, bD as v, at as h, aR as W, aN as x, bS as f, bR as Z, C as w, b0 as z, D as Q, b as j, a as q, bN as J, a$ as $, aS as aa, aO as _a, b$ as Ea, c0 as Ta, bQ as Ia, bA as Na, ab as Sa, bT as sa, bY as Aa, b5 as ea, aF as Oa, bb as Ga, F as Ca, a5 as Da, a4 as Pa, h as Ra, $ as ta, b2 as La, aQ as Ma, aM as oa, a1 as ba, G as ra, I as Fa, H as na, a7 as Ba, bx as ga, b6 as la, b7 as ia, bv as Ya, bd as Ua, bf as da, b1 as ca, L as Ha, aE as ua, bk as ya, aK as pa, bj as Ka, ao as ka, a9 as Va, bO as Xa, bZ as ma, b_ as va, aT as ha, N as Wa, aw as xa, av as fa, ax as Za, ar as wa, as as za, au as Qa, b9 as ja, bg as qa, b3 as Ja, n as $a, ah as a_, ai as __, ae as E_, af as T_, ac as I_, a2 as N_, l as S_, bl as s_, al as A_, bB as e_, bC as O_, bM as G_, aa as C_, bz as D_, bm as P_, m as R_, S as t_, P as L_, aD as M_, by as o_, ba as b_, br as r_, bp as F_, bt as n_, bu as B_, bq as g_, bs as l_, ay as i_, az as Y_, bi as U_, bh as d_, bc as c_, aB as H_, aC as u_, aH as y_, aX as p_, aG as K_, aI as k_, U as V_, a8 as X_, aL as m_, k as v_, b8 as h_, ak as W_, b4 as x_, be as f_, a_ as Z_, M as w_, a0 as z_, g as Q_, bL as j_, q as q_, J as J_, W as $_, aA as aE, aJ as _E, ap as EE, o as TE, T as IE, r as NE, u as SE, i as sE, aq as AE, c as eE, p as OE, t as GE, R as CE, K as DE, s as PE, V as RE, y as tE, v as LE, w as ME, Q as oE, z as bE, O as rE, A as FE, E as nE, x as BE } from "./lib-
|
|
1
|
+
import { bw as E, an as T, aP as I, a3 as N, ag as S, ad as s, bo as A, c3 as e, c2 as O, c1 as G, bX as C, aZ as D, aY as P, bH as R, bI as t, bP as L, bE as M, bG as o, bF as b, bJ as r, bK as F, bW as n, bU as B, am as g, bV as l, a6 as i, aU as Y, aW as U, aV as d, e as c, f as H, B as u, Y as y, d as p, Z as K, j as k, aj as V, X, bn as m, bD as v, at as h, aR as W, aN as x, bS as f, bR as Z, C as w, b0 as z, D as Q, b as j, a as q, bN as J, a$ as $, aS as aa, aO as _a, b$ as Ea, c0 as Ta, bQ as Ia, bA as Na, ab as Sa, bT as sa, bY as Aa, b5 as ea, aF as Oa, bb as Ga, F as Ca, a5 as Da, a4 as Pa, h as Ra, $ as ta, b2 as La, aQ as Ma, aM as oa, a1 as ba, G as ra, I as Fa, H as na, a7 as Ba, bx as ga, b6 as la, b7 as ia, bv as Ya, bd as Ua, bf as da, b1 as ca, L as Ha, aE as ua, bk as ya, aK as pa, bj as Ka, ao as ka, a9 as Va, bO as Xa, bZ as ma, b_ as va, aT as ha, N as Wa, aw as xa, av as fa, ax as Za, ar as wa, as as za, au as Qa, b9 as ja, bg as qa, b3 as Ja, n as $a, ah as a_, ai as __, ae as E_, af as T_, ac as I_, a2 as N_, l as S_, bl as s_, al as A_, bB as e_, bC as O_, bM as G_, aa as C_, bz as D_, bm as P_, m as R_, S as t_, P as L_, aD as M_, by as o_, ba as b_, br as r_, bp as F_, bt as n_, bu as B_, bq as g_, bs as l_, ay as i_, az as Y_, bi as U_, bh as d_, bc as c_, aB as H_, aC as u_, aH as y_, aX as p_, aG as K_, aI as k_, U as V_, a8 as X_, aL as m_, k as v_, b8 as h_, ak as W_, b4 as x_, be as f_, a_ as Z_, M as w_, a0 as z_, g as Q_, bL as j_, q as q_, J as J_, W as $_, aA as aE, aJ as _E, ap as EE, o as TE, T as IE, r as NE, u as SE, i as sE, aq as AE, c as eE, p as OE, t as GE, R as CE, K as DE, s as PE, V as RE, y as tE, v as LE, w as ME, Q as oE, z as bE, O as rE, A as FE, E as nE, x as BE } from "./lib-VqxnnfuP.js";
|
|
2
2
|
import { createPinia as lE, setActivePinia as iE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|
|
@@ -56907,10 +56907,10 @@ const U0 = /* @__PURE__ */ B6(OM1), BM1 = (e, t, n) => {
|
|
|
56907
56907
|
Yt(() => n.context.isDesignCom, async () => {
|
|
56908
56908
|
const S = hn().toLowerCase(), _ = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
56909
56909
|
try {
|
|
56910
|
-
const { default: T } = await g_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
56910
|
+
const { default: T } = await g_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-CmST5whT.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BX09sc8Q.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-BcafFU5N.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-B-15L2eX.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-DftEYyOi.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-B_5yYE6J.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CpwBBhQE.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-BJ4NlYLD.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-C9E4vPia.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-_hbC1Ygc.js") }), `./watermark/CreatedOn${_}-${S}.vue`, 3);
|
|
56911
56911
|
i.value = T;
|
|
56912
56912
|
} catch {
|
|
56913
|
-
const { default: I } = await g_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
56913
|
+
const { default: I } = await g_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BX09sc8Q.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CpwBBhQE.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
|
|
56914
56914
|
i.value = I;
|
|
56915
56915
|
}
|
|
56916
56916
|
}, {
|
|
@@ -69046,7 +69046,13 @@ const P_ = /* @__PURE__ */ B6(aD1), Yu = Object.freeze({
|
|
|
69046
69046
|
isPublished: (e) => e.brandPageStatus === "Published",
|
|
69047
69047
|
isUserDraft: (e) => !!e.designDraftToken
|
|
69048
69048
|
}
|
|
69049
|
-
}), lD1 = (e, t) =>
|
|
69049
|
+
}), lD1 = (e, t) => {
|
|
69050
|
+
let n = e;
|
|
69051
|
+
return Object.entries(t).forEach(([i, r]) => {
|
|
69052
|
+
const s = new RegExp(`\\{${i}\\}`, "gi");
|
|
69053
|
+
n = n.replace(s, r);
|
|
69054
|
+
}), n;
|
|
69055
|
+
}, Xu = (e, t) => {
|
|
69050
69056
|
var i;
|
|
69051
69057
|
return ((i = {
|
|
69052
69058
|
"/website-builder": {
|
package/package.json
CHANGED
|
@@ -2,7 +2,13 @@ export const interpolateUrl = (
|
|
|
2
2
|
template: string,
|
|
3
3
|
replacements: Record<string, string>,
|
|
4
4
|
): string => {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
let result = template;
|
|
6
|
+
|
|
7
|
+
Object.entries(replacements).forEach(([key, value]) => {
|
|
8
|
+
const tokenPattern = new RegExp(`\\{${key}\\}`, 'gi');
|
|
9
|
+
|
|
10
|
+
result = result.replace(tokenPattern, value);
|
|
7
11
|
});
|
|
12
|
+
|
|
13
|
+
return result;
|
|
8
14
|
};
|