@designcrowd/library.brand-page 5.15.19-ha-shape-fix-2 → 5.15.19
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-MYtK52Bs.js → CreatedOnBrandCrowd-de-de-DD3ObRWo.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BHGC5Nmb.js → CreatedOnBrandCrowd-en-us-CBplGQp6.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-D4XNuvrY.js → CreatedOnBrandCrowd-es-es-DJMz8f-I.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-mY1thoNM.js → CreatedOnBrandCrowd-fr-ca-C_MmRu4G.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-mY1thoNM.js → CreatedOnBrandCrowd-fr-fr-C_MmRu4G.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DBaS94bZ.js → CreatedOnBrandCrowd-pt-br-4T9iN569.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DBaS94bZ.js → CreatedOnBrandCrowd-pt-pt-4T9iN569.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DhyBwBYE.js → CreatedOnDcom-de-de-CbNUacST.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Df7BT6-g.js → CreatedOnDcom-en-us-CaEyyD87.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BnMEaFFL.js → CreatedOnDcom-es-es-DcV6ec9r.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DcNLgJwa.js → CreatedOnDcom-fr-ca-CtOjmVPg.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CgBj0lnM.js → CreatedOnDcom-fr-fr-RaSxMrZK.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C-Vp9NA7.js → CreatedOnDcom-pt-br-CtXTUBup.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B6dI2H57.js → CreatedOnDcom-pt-pt-BjH7kv4x.js} +1 -1
- package/lib/src/brand-page/utils/svg-shape.util.js +1 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/shape-fixture.js +0 -24
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-Wi8WDfSl.js → lib-D48JKE-R.js} +3 -5
- package/package.json +1 -1
- package/src/brand-page/utils/svg-shape.util.ts +1 -9
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/shape-fixture.ts +0 -24
|
@@ -234,13 +234,7 @@ export const handleAttributes = (svgConfig, childElement) => {
|
|
|
234
234
|
}
|
|
235
235
|
let elementAttributeString = '';
|
|
236
236
|
Object.keys(attributes).forEach((k) => {
|
|
237
|
-
|
|
238
|
-
// Remove quotes from URL references to prevent malformed HTML
|
|
239
|
-
let escapedValue = value;
|
|
240
|
-
if (typeof value === 'string' && value.includes('url(')) {
|
|
241
|
-
escapedValue = value.replace(/"/g, '').replace(/'/g, '');
|
|
242
|
-
}
|
|
243
|
-
elementAttributeString += ` ${k}="${escapedValue}"`;
|
|
237
|
+
elementAttributeString += ` ${k}="${attributes[k]}"`;
|
|
244
238
|
});
|
|
245
239
|
childElement.properties = attributes;
|
|
246
240
|
return {
|
|
@@ -12,30 +12,6 @@ export const SHAPES_RESPONSE = {
|
|
|
12
12
|
isEnabledToAdmin: true,
|
|
13
13
|
category: 'Badge',
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
token: 'c8eeb978-b998-431b-9203-5a43f2f85bdf',
|
|
17
|
-
url: 'https://bcassetcdn.com/shapes/prod/c8eeb978-b998-431b-9203-5a43f2f85bdf.svg',
|
|
18
|
-
keepColor: false,
|
|
19
|
-
isEnabled: true,
|
|
20
|
-
isEnabledToAdmin: true,
|
|
21
|
-
category: 'Gradient',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
token: '5d3f4e14-4f52-4a1a-85ec-8cd32f5ceae7',
|
|
25
|
-
url: 'https://bcassetcdn.com/shapes/prod/5d3f4e14-4f52-4a1a-85ec-8cd32f5ceae7.svg',
|
|
26
|
-
keepColor: false,
|
|
27
|
-
isEnabled: true,
|
|
28
|
-
isEnabledToAdmin: true,
|
|
29
|
-
category: 'Gradient',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
token: '0031c50d-8940-4f50-a86e-04d191d4ec76',
|
|
33
|
-
url: 'https://bcassetcdn.com/shapes/prod/0031c50d-8940-4f50-a86e-04d191d4ec76.svg',
|
|
34
|
-
keepColor: false,
|
|
35
|
-
isEnabled: true,
|
|
36
|
-
isEnabledToAdmin: true,
|
|
37
|
-
category: 'Gradient',
|
|
38
|
-
},
|
|
39
15
|
{
|
|
40
16
|
token: '005d86ec-351b-4ac5-be07-17c8300d2022',
|
|
41
17
|
url: 'https://bcassetcdn.com/shapes/prod/9ed5803f-c621-49fe-99ca-9c9b7c7b3050.svg',
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bA as E, ao as T, aR as I, a4 as N, ah as S, ae as s, bq as A, bH as O, c8 as e, c7 as G, c6 as C, c0 as D, a$ as P, a_ as R, bM as t, bN as L, bU as M, bJ as o, bL as b, bK as r, bO as F, bP as n, b$ as B, bZ as l, an as g, b_ as i, a7 as Y, aW as U, aY as c, aX as d, e as u, f as H, B as p, Z as y, d as K, $ as k, j as V, ak as X, Y as m, bp as v, bI as h, av as W, aT as x, aP as f, bX as z, bW as Z, C as w, b2 as Q, D as j, b as q, a as J, bS as $, b1 as aa, aU as _a, aQ as Ea, c4 as Ta, c5 as Ia, bV as Na, bE as Sa, ac as sa, bY as Aa, c1 as Oa, b7 as ea, aH as Ga, bd as Ca, F as Da, a6 as Pa, a5 as Ra, h as ta, a0 as La, b4 as Ma, aS as oa, aO as ba, a2 as ra, l as Fa, J as na, H as Ba, a8 as la, bB as ga, b8 as ia, b9 as Ya, bz as Ua, bf as ca, bh as da, b3 as ua, L as Ha, aG as pa, bm as ya, aM as Ka, bl as ka, ap as Va, aa as Xa, bT as ma, c2 as va, c3 as ha, aV as Wa, N as xa, ay as fa, ax as za, az as Za, at as wa, au as Qa, aw as ja, bb as qa, bi as Ja, b5 as $a, o as a_, ai as __, aj as E_, af as T_, ag as I_, ad as N_, a3 as S_, m as s_, bn as A_, am as O_, bF as e_, bG as G_, bR as C_, ab as D_, bD as P_, bo as R_, n as t_, S as L_, P as M_, aF as o_, bC as b_, bc as r_, bu as F_, bt as n_, bw as B_, br as l_, bx as g_, by as i_, bs as Y_, bv as U_, aA as c_, aB as d_, bk as u_, bj as H_, aD as p_, aE as y_, aJ as K_, aZ as k_, aI as V_, aK as X_, U as m_, a9 as v_, aN as h_, k as W_, ba as x_, al as f_, b6 as z_, be as Z_, bg as w_, b0 as Q_, O as j_, a1 as q_, g as J_, bQ as $_, r as aE, u as _E, K as EE, X as TE, aC as IE, aL as NE, ar as SE, p as sE, V as AE, t as OE, w as eE, aq as GE, i as CE, as as DE, c as PE, q as RE, v as tE, T as LE, M as ME, s as oE, W as bE, A as rE, x as FE, y as nE, R as BE, E as lE, Q as gE, G as iE, I as YE, z as UE } from "./lib-
|
|
1
|
+
import { bA as E, ao as T, aR as I, a4 as N, ah as S, ae as s, bq as A, bH as O, c8 as e, c7 as G, c6 as C, c0 as D, a$ as P, a_ as R, bM as t, bN as L, bU as M, bJ as o, bL as b, bK as r, bO as F, bP as n, b$ as B, bZ as l, an as g, b_ as i, a7 as Y, aW as U, aY as c, aX as d, e as u, f as H, B as p, Z as y, d as K, $ as k, j as V, ak as X, Y as m, bp as v, bI as h, av as W, aT as x, aP as f, bX as z, bW as Z, C as w, b2 as Q, D as j, b as q, a as J, bS as $, b1 as aa, aU as _a, aQ as Ea, c4 as Ta, c5 as Ia, bV as Na, bE as Sa, ac as sa, bY as Aa, c1 as Oa, b7 as ea, aH as Ga, bd as Ca, F as Da, a6 as Pa, a5 as Ra, h as ta, a0 as La, b4 as Ma, aS as oa, aO as ba, a2 as ra, l as Fa, J as na, H as Ba, a8 as la, bB as ga, b8 as ia, b9 as Ya, bz as Ua, bf as ca, bh as da, b3 as ua, L as Ha, aG as pa, bm as ya, aM as Ka, bl as ka, ap as Va, aa as Xa, bT as ma, c2 as va, c3 as ha, aV as Wa, N as xa, ay as fa, ax as za, az as Za, at as wa, au as Qa, aw as ja, bb as qa, bi as Ja, b5 as $a, o as a_, ai as __, aj as E_, af as T_, ag as I_, ad as N_, a3 as S_, m as s_, bn as A_, am as O_, bF as e_, bG as G_, bR as C_, ab as D_, bD as P_, bo as R_, n as t_, S as L_, P as M_, aF as o_, bC as b_, bc as r_, bu as F_, bt as n_, bw as B_, br as l_, bx as g_, by as i_, bs as Y_, bv as U_, aA as c_, aB as d_, bk as u_, bj as H_, aD as p_, aE as y_, aJ as K_, aZ as k_, aI as V_, aK as X_, U as m_, a9 as v_, aN as h_, k as W_, ba as x_, al as f_, b6 as z_, be as Z_, bg as w_, b0 as Q_, O as j_, a1 as q_, g as J_, bQ as $_, r as aE, u as _E, K as EE, X as TE, aC as IE, aL as NE, ar as SE, p as sE, V as AE, t as OE, w as eE, aq as GE, i as CE, as as DE, c as PE, q as RE, v as tE, T as LE, M as ME, s as oE, W as bE, A as rE, x as FE, y as nE, R as BE, E as lE, Q as gE, G as iE, I as YE, z as UE } from "./lib-D48JKE-R.js";
|
|
2
2
|
import { createPinia as dE, setActivePinia as uE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|
|
@@ -35449,9 +35449,7 @@ const PL = ["metadata"], OL = [
|
|
|
35449
35449
|
}
|
|
35450
35450
|
let s = "";
|
|
35451
35451
|
return Object.keys(i).forEach((o) => {
|
|
35452
|
-
|
|
35453
|
-
let a = r;
|
|
35454
|
-
typeof r == "string" && r.includes("url(") && (a = r.replace(/"/g, "").replace(/'/g, "")), s += ` ${o}="${a}"`;
|
|
35452
|
+
s += ` ${o}="${i[o]}"`;
|
|
35455
35453
|
}), t.properties = i, {
|
|
35456
35454
|
elementAttributeString: s,
|
|
35457
35455
|
updatedColor: n || Ov
|
|
@@ -57652,10 +57650,10 @@ const en = /* @__PURE__ */ j6(vk1), Sk1 = (e, t, n) => {
|
|
|
57652
57650
|
Lt(() => n.context.isDesignCom, async () => {
|
|
57653
57651
|
const S = H8().toLowerCase(), k = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
57654
57652
|
try {
|
|
57655
|
-
const { default: _ } = await P_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
57653
|
+
const { default: _ } = await P_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-DD3ObRWo.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-CBplGQp6.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-DJMz8f-I.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-C_MmRu4G.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-C_MmRu4G.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-4T9iN569.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-4T9iN569.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-CbNUacST.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CaEyyD87.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-DcV6ec9r.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-CtOjmVPg.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-RaSxMrZK.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-CtXTUBup.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-BjH7kv4x.js") }), `./watermark/CreatedOn${k}-${S}.vue`, 3);
|
|
57656
57654
|
i.value = _;
|
|
57657
57655
|
} catch {
|
|
57658
|
-
const { default: x } = await P_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
57656
|
+
const { default: x } = await P_(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-CBplGQp6.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CaEyyD87.js") }), `./watermark/CreatedOn${k}-en-us.vue`, 3);
|
|
57659
57657
|
i.value = x;
|
|
57660
57658
|
}
|
|
57661
57659
|
}, {
|
package/package.json
CHANGED
|
@@ -372,15 +372,7 @@ export const handleAttributes = (
|
|
|
372
372
|
let elementAttributeString = '';
|
|
373
373
|
|
|
374
374
|
Object.keys(attributes).forEach((k) => {
|
|
375
|
-
|
|
376
|
-
// Remove quotes from URL references to prevent malformed HTML
|
|
377
|
-
let escapedValue = value;
|
|
378
|
-
|
|
379
|
-
if (typeof value === 'string' && value.includes('url(')) {
|
|
380
|
-
escapedValue = value.replace(/"/g, '').replace(/'/g, '');
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
elementAttributeString += ` ${k}="${escapedValue}"`;
|
|
375
|
+
elementAttributeString += ` ${k}="${attributes[k]}"`;
|
|
384
376
|
});
|
|
385
377
|
|
|
386
378
|
childElement.properties = attributes;
|
|
@@ -12,30 +12,6 @@ export const SHAPES_RESPONSE = {
|
|
|
12
12
|
isEnabledToAdmin: true,
|
|
13
13
|
category: 'Badge',
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
token: 'c8eeb978-b998-431b-9203-5a43f2f85bdf',
|
|
17
|
-
url: 'https://bcassetcdn.com/shapes/prod/c8eeb978-b998-431b-9203-5a43f2f85bdf.svg',
|
|
18
|
-
keepColor: false,
|
|
19
|
-
isEnabled: true,
|
|
20
|
-
isEnabledToAdmin: true,
|
|
21
|
-
category: 'Gradient',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
token: '5d3f4e14-4f52-4a1a-85ec-8cd32f5ceae7',
|
|
25
|
-
url: 'https://bcassetcdn.com/shapes/prod/5d3f4e14-4f52-4a1a-85ec-8cd32f5ceae7.svg',
|
|
26
|
-
keepColor: false,
|
|
27
|
-
isEnabled: true,
|
|
28
|
-
isEnabledToAdmin: true,
|
|
29
|
-
category: 'Gradient',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
token: '0031c50d-8940-4f50-a86e-04d191d4ec76',
|
|
33
|
-
url: 'https://bcassetcdn.com/shapes/prod/0031c50d-8940-4f50-a86e-04d191d4ec76.svg',
|
|
34
|
-
keepColor: false,
|
|
35
|
-
isEnabled: true,
|
|
36
|
-
isEnabledToAdmin: true,
|
|
37
|
-
category: 'Gradient',
|
|
38
|
-
},
|
|
39
15
|
{
|
|
40
16
|
token: '005d86ec-351b-4ac5-be07-17c8300d2022',
|
|
41
17
|
url: 'https://bcassetcdn.com/shapes/prod/9ed5803f-c621-49fe-99ca-9c9b7c7b3050.svg',
|