@builder.io/sdk-vue 0.0.8-0 → 0.1.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/package.json +4 -3
- package/packages/_vue2/dist/{block-styles.c4b6f857.cjs → block-styles.b9cb70e5.cjs} +1 -1
- package/packages/_vue2/dist/{block-styles.b44c8edf.js → block-styles.e9ae5c99.js} +3 -3
- package/packages/{_vue3/dist/get-processed-block.6b21ab85.js → _vue2/dist/get-processed-block.985f56a5.js} +1 -1
- package/packages/{_vue3/dist/get-processed-block.bebeb09d.cjs → _vue2/dist/get-processed-block.ac23eb44.cjs} +1 -1
- package/packages/_vue2/dist/index.50198d49.cjs +30 -0
- package/packages/_vue2/dist/{index.64b2a483.js → index.71913926.js} +81 -71
- package/packages/_vue2/dist/render-block.2c42b2ea.cjs +3 -0
- package/packages/_vue2/dist/{render-block.19d46f0b.js → render-block.6f078e8d.js} +6 -6
- package/packages/_vue2/dist/{render-component-with-context.444169de.js → render-component-with-context.795868f2.js} +2 -2
- package/packages/_vue2/dist/{render-component-with-context.3f048773.cjs → render-component-with-context.88c14993.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.437a5e14.cjs → render-component.4e09cdef.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.27b72ee3.js → render-component.e0a952b3.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.cd5552ef.cjs → render-inlined-styles.171750b7.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.b7fdfbd1.js → render-inlined-styles.58be9e46.js} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.1af001af.cjs → render-repeated-block.2ef95a2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.04220ba2.js → render-repeated-block.58051104.js} +2 -2
- package/packages/_vue2/dist/{render-styles.7351e596.cjs → render-styles.5381508b.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.9f1c2b6a.js → render-styles.b0b466c2.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -1
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.deb87646.cjs → block-styles.4a2a7b8d.cjs} +1 -1
- package/packages/_vue3/dist/{block-styles.8b54c0ff.js → block-styles.ab09f721.js} +3 -3
- package/packages/{_vue2/dist/get-processed-block.fe285d4b.js → _vue3/dist/get-processed-block.1220ffe6.js} +1 -1
- package/packages/{_vue2/dist/get-processed-block.3e6b44b2.cjs → _vue3/dist/get-processed-block.c0ffa71e.cjs} +1 -1
- package/packages/_vue3/dist/index.ac143767.cjs +30 -0
- package/packages/_vue3/dist/{index.c2f0c6b9.js → index.e0d3400f.js} +98 -88
- package/packages/_vue3/dist/{render-block.e4759f55.cjs → render-block.489f5bb0.cjs} +2 -2
- package/packages/_vue3/dist/{render-block.ac15669c.js → render-block.f4974fcf.js} +6 -6
- package/packages/_vue3/dist/{render-component-with-context.3071ccc4.cjs → render-component-with-context.49bb17cb.cjs} +1 -1
- package/packages/_vue3/dist/{render-component-with-context.78824d9e.js → render-component-with-context.b7aac17f.js} +2 -2
- package/packages/_vue3/dist/{render-component.447b727f.js → render-component.7a972660.js} +3 -3
- package/packages/_vue3/dist/{render-component.0e528148.cjs → render-component.af4b9326.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.575fa695.js → render-inlined-styles.37596a05.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.1be8577d.cjs → render-inlined-styles.ffa23fbe.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.0600c495.cjs → render-repeated-block.704b65cb.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.e1569caf.js → render-repeated-block.7b85cf89.js} +2 -2
- package/packages/_vue3/dist/{render-styles.a2119a06.cjs → render-styles.1e95e77c.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.f5323f3c.js → render-styles.c8214c85.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -1
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/index.75b1a869.cjs +0 -30
- package/packages/_vue2/dist/render-block.1b482626.cjs +0 -3
- package/packages/_vue3/dist/index.445b7e7d.cjs +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as E, normalizeStyle as
|
|
1
|
+
import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as E, normalizeStyle as w, createBlock as I, createCommentVNode as b, Fragment as T, renderList as $, createVNode as q, createElementVNode as B, renderSlot as R, mergeProps as S, toDisplayString as W } from "vue";
|
|
2
2
|
const j = "vue3";
|
|
3
3
|
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -135,17 +135,17 @@ const de = (e = {}) => {
|
|
|
135
135
|
min: s,
|
|
136
136
|
default: s + 1
|
|
137
137
|
}, t;
|
|
138
|
-
}, me = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(),
|
|
138
|
+
}, me = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e != null, pe = (e) => Object.entries(e).map(([t, o]) => {
|
|
139
139
|
if (typeof o == "string")
|
|
140
140
|
return `${me(t)}: ${o};`;
|
|
141
|
-
}).filter(
|
|
141
|
+
}).filter(C), _ = (e) => pe(e).join(`
|
|
142
142
|
`), xn = ({
|
|
143
143
|
mediaQuery: e,
|
|
144
144
|
className: n,
|
|
145
145
|
styles: t
|
|
146
146
|
}) => {
|
|
147
147
|
const o = `.${n} {
|
|
148
|
-
${
|
|
148
|
+
${_(t)}
|
|
149
149
|
}`;
|
|
150
150
|
return e ? `${e} {
|
|
151
151
|
${o}
|
|
@@ -155,7 +155,7 @@ const de = (e = {}) => {
|
|
|
155
155
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
156
156
|
e
|
|
157
157
|
), e;
|
|
158
|
-
}), fe = () => import("./render-inlined-styles.
|
|
158
|
+
}), fe = () => import("./render-inlined-styles.37596a05.js").then((e) => e.default).catch((e) => {
|
|
159
159
|
throw console.error(
|
|
160
160
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
161
161
|
e
|
|
@@ -220,21 +220,21 @@ const de = (e = {}) => {
|
|
|
220
220
|
return `
|
|
221
221
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
222
222
|
.${this.builderBlock.id}-breakpoints {
|
|
223
|
-
${
|
|
223
|
+
${_(this.columnStyleObjects.columns.medium)}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
227
|
-
${
|
|
227
|
+
${_(this.columnStyleObjects.column.medium)}
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
232
232
|
.${this.builderBlock.id}-breakpoints {
|
|
233
|
-
${
|
|
233
|
+
${_(this.columnStyleObjects.columns.small)}
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
237
|
-
${
|
|
237
|
+
${_(this.columnStyleObjects.column.small)}
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
`;
|
|
@@ -292,22 +292,22 @@ function be(e, n, t, o, r, s) {
|
|
|
292
292
|
return l(), u("div", {
|
|
293
293
|
class: E(
|
|
294
294
|
s._classStringToObject(
|
|
295
|
-
`builder-columns ${t.builderBlock.id}-breakpoints div-
|
|
295
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-2oob28krk0a`
|
|
296
296
|
)
|
|
297
297
|
),
|
|
298
|
-
style:
|
|
298
|
+
style: w({
|
|
299
299
|
...e.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
|
|
300
300
|
...s.columnsCssVars
|
|
301
301
|
})
|
|
302
302
|
}, [
|
|
303
|
-
e.TARGET !== "reactNative" ? (l(),
|
|
303
|
+
e.TARGET !== "reactNative" ? (l(), I(i, {
|
|
304
304
|
key: 0,
|
|
305
305
|
styles: s.columnsStyles
|
|
306
306
|
}, null, 8, ["styles"])) : b("", !0),
|
|
307
307
|
(l(!0), u(T, null, $(t.columns, (a, d) => (l(), u("div", {
|
|
308
308
|
key: d,
|
|
309
|
-
class: "builder-column div-
|
|
310
|
-
style:
|
|
309
|
+
class: "builder-column div-2oob28krk0a-2",
|
|
310
|
+
style: w({
|
|
311
311
|
width: s.getColumnCssWidth(d),
|
|
312
312
|
marginLeft: `${d === 0 ? 0 : s.getGutterSize()}px`,
|
|
313
313
|
...e.TARGET === "reactNative" ? s.reactNativeColumnStyles : {},
|
|
@@ -325,7 +325,7 @@ function be(e, n, t, o, r, s) {
|
|
|
325
325
|
], 4))), 128))
|
|
326
326
|
], 6);
|
|
327
327
|
}
|
|
328
|
-
const ye = /* @__PURE__ */ g(ge, [["render", be], ["__scopeId", "data-v-
|
|
328
|
+
const ye = /* @__PURE__ */ g(ge, [["render", be], ["__scopeId", "data-v-e8ae58c5"]]);
|
|
329
329
|
function M(e) {
|
|
330
330
|
return e.replace(/http(s)?:/, "");
|
|
331
331
|
}
|
|
@@ -416,7 +416,7 @@ const ke = {
|
|
|
416
416
|
};
|
|
417
417
|
const Ce = ["srcset"], Se = ["alt", "role", "src", "srcset", "sizes"], _e = ["srcset"], we = {
|
|
418
418
|
key: 2,
|
|
419
|
-
class: "div-
|
|
419
|
+
class: "div-1n1bt6e2i9n-2"
|
|
420
420
|
};
|
|
421
421
|
function Ie(e, n, t, o, r, s) {
|
|
422
422
|
var i, c, a, d;
|
|
@@ -431,14 +431,14 @@ function Ie(e, n, t, o, r, s) {
|
|
|
431
431
|
loading: "lazy",
|
|
432
432
|
alt: t.altText,
|
|
433
433
|
role: t.altText ? "presentation" : void 0,
|
|
434
|
-
style:
|
|
434
|
+
style: w({
|
|
435
435
|
objectPosition: t.backgroundPosition || "center",
|
|
436
436
|
objectFit: t.backgroundSize || "cover",
|
|
437
437
|
...s.aspectRatioCss
|
|
438
438
|
}),
|
|
439
439
|
class: E(
|
|
440
440
|
s._classStringToObject(
|
|
441
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
441
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-1n1bt6e2i9n"
|
|
442
442
|
)
|
|
443
443
|
),
|
|
444
444
|
src: t.image,
|
|
@@ -449,8 +449,8 @@ function Ie(e, n, t, o, r, s) {
|
|
|
449
449
|
]),
|
|
450
450
|
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), u("div", {
|
|
451
451
|
key: 0,
|
|
452
|
-
class: "builder-image-sizer div-
|
|
453
|
-
style:
|
|
452
|
+
class: "builder-image-sizer div-1n1bt6e2i9n",
|
|
453
|
+
style: w({
|
|
454
454
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
455
455
|
})
|
|
456
456
|
}, null, 4)) : b("", !0),
|
|
@@ -460,7 +460,7 @@ function Ie(e, n, t, o, r, s) {
|
|
|
460
460
|
])) : b("", !0)
|
|
461
461
|
], 64);
|
|
462
462
|
}
|
|
463
|
-
const Te = /* @__PURE__ */ g(ke, [["render", Ie], ["__scopeId", "data-v-
|
|
463
|
+
const Te = /* @__PURE__ */ g(ke, [["render", Ie], ["__scopeId", "data-v-ce478e56"]]), Re = {
|
|
464
464
|
name: "builder-text",
|
|
465
465
|
props: ["text"]
|
|
466
466
|
}, Ee = ["innerHTML"];
|
|
@@ -514,7 +514,7 @@ const Fe = /* @__PURE__ */ g(Re, [["render", je]]), Be = {
|
|
|
514
514
|
}, Ae = ["src", "poster"];
|
|
515
515
|
function $e(e, n, t, o, r, s) {
|
|
516
516
|
var i;
|
|
517
|
-
return l(), u("video",
|
|
517
|
+
return l(), u("video", S({
|
|
518
518
|
style: {
|
|
519
519
|
width: "100%",
|
|
520
520
|
height: "100%",
|
|
@@ -541,6 +541,8 @@ function Ue() {
|
|
|
541
541
|
return e;
|
|
542
542
|
}
|
|
543
543
|
const J = Ue(), Ve = (e) => {
|
|
544
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
545
|
+
return e;
|
|
544
546
|
const n = e.split(".");
|
|
545
547
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
546
548
|
}, X = async ({
|
|
@@ -552,8 +554,9 @@ const J = Ue(), Ve = (e) => {
|
|
|
552
554
|
return n ? (t = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : t.split("=")[1] : void 0;
|
|
553
555
|
} catch (o) {
|
|
554
556
|
console.debug("[COOKIE] GET error: ", o);
|
|
557
|
+
return;
|
|
555
558
|
}
|
|
556
|
-
}, We = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Le = [
|
|
559
|
+
}, We = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), Le = [
|
|
557
560
|
["secure", ""],
|
|
558
561
|
["SameSite", "None"]
|
|
559
562
|
], Ne = ({
|
|
@@ -590,7 +593,7 @@ const J = Ue(), Ve = (e) => {
|
|
|
590
593
|
contentId: e,
|
|
591
594
|
canTrack: n,
|
|
592
595
|
value: t
|
|
593
|
-
}) => Y({ name: Q(e), value: t, canTrack: n }), Ke = (e) =>
|
|
596
|
+
}) => Y({ name: Q(e), value: t, canTrack: n }), Ke = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, De = ({
|
|
594
597
|
id: e,
|
|
595
598
|
variations: n
|
|
596
599
|
}) => {
|
|
@@ -777,7 +780,7 @@ const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((
|
|
|
777
780
|
function st(e, n, t, o, r, s) {
|
|
778
781
|
var c, a, d, m, p;
|
|
779
782
|
const i = k("render-content");
|
|
780
|
-
return l(), u("div",
|
|
783
|
+
return l(), u("div", S({
|
|
781
784
|
dataSet: {
|
|
782
785
|
class: s.className
|
|
783
786
|
},
|
|
@@ -803,22 +806,22 @@ const rt = /* @__PURE__ */ g(nt, [["render", st]]), it = {
|
|
|
803
806
|
};
|
|
804
807
|
const at = ["href", "target"];
|
|
805
808
|
function ct(e, n, t, o, r, s) {
|
|
806
|
-
return t.link ? (l(), u("a",
|
|
809
|
+
return t.link ? (l(), u("a", S({
|
|
807
810
|
key: 0,
|
|
808
811
|
role: "button",
|
|
809
812
|
href: t.link,
|
|
810
813
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
811
|
-
}, t.attributes), W(t.text), 17, at)) : (l(), u("button",
|
|
814
|
+
}, t.attributes), W(t.text), 17, at)) : (l(), u("button", S({
|
|
812
815
|
key: 1,
|
|
813
|
-
class: "button-
|
|
816
|
+
class: "button-1fogms4bee0"
|
|
814
817
|
}, t.attributes), W(t.text), 17));
|
|
815
818
|
}
|
|
816
|
-
const lt = /* @__PURE__ */ g(it, [["render", ct], ["__scopeId", "data-v-
|
|
819
|
+
const lt = /* @__PURE__ */ g(it, [["render", ct], ["__scopeId", "data-v-bf69ebfa"]]), dt = {
|
|
817
820
|
name: "builder-section-component",
|
|
818
821
|
props: ["attributes", "maxWidth"]
|
|
819
822
|
};
|
|
820
823
|
function ut(e, n, t, o, r, s) {
|
|
821
|
-
return l(), u("section",
|
|
824
|
+
return l(), u("section", S({
|
|
822
825
|
style: {
|
|
823
826
|
width: "100%",
|
|
824
827
|
alignSelf: "stretch",
|
|
@@ -1136,33 +1139,35 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1136
1139
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1137
1140
|
required: !0,
|
|
1138
1141
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1139
|
-
onChange: F(
|
|
1140
|
-
e
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1142
|
+
onChange: F(
|
|
1143
|
+
(e) => {
|
|
1144
|
+
e.delete("srcset"), e.delete("noWebp");
|
|
1145
|
+
function t(i, c = 6e4) {
|
|
1146
|
+
return new Promise((a, d) => {
|
|
1147
|
+
const m = document.createElement("img");
|
|
1148
|
+
let p = !1;
|
|
1149
|
+
m.onload = () => {
|
|
1150
|
+
p = !0, a(m);
|
|
1151
|
+
}, m.addEventListener("error", (h) => {
|
|
1152
|
+
console.warn("Image load failed", h.error), d(h.error);
|
|
1153
|
+
}), m.src = i, setTimeout(() => {
|
|
1154
|
+
p || d(new Error("Image load timed out"));
|
|
1155
|
+
}, c);
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
function o(i) {
|
|
1159
|
+
return Math.round(i * 1e3) / 1e3;
|
|
1160
|
+
}
|
|
1161
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
1162
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1163
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1164
|
+
}), r && (!s || s === 0.7041))
|
|
1165
|
+
return t(r).then((i) => {
|
|
1166
|
+
const c = e.get("aspectRatio");
|
|
1167
|
+
e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1168
|
+
});
|
|
1156
1169
|
}
|
|
1157
|
-
|
|
1158
|
-
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1159
|
-
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1160
|
-
}), r && (!s || s === 0.7041))
|
|
1161
|
-
return t(r).then((i) => {
|
|
1162
|
-
const c = e.get("aspectRatio");
|
|
1163
|
-
e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1164
|
-
});
|
|
1165
|
-
})
|
|
1170
|
+
)
|
|
1166
1171
|
},
|
|
1167
1172
|
{
|
|
1168
1173
|
name: "backgroundSize",
|
|
@@ -1459,21 +1464,23 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1459
1464
|
required: !0,
|
|
1460
1465
|
defaultValue: "",
|
|
1461
1466
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1462
|
-
onChange: F(
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1467
|
+
onChange: F(
|
|
1468
|
+
(e) => {
|
|
1469
|
+
const n = e.get("url");
|
|
1470
|
+
if (n)
|
|
1471
|
+
return e.set("content", "Loading..."), fetch(
|
|
1472
|
+
`https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`
|
|
1473
|
+
).then((o) => o.json()).then((o) => {
|
|
1474
|
+
e.get("url") === n && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
1475
|
+
}).catch((o) => {
|
|
1476
|
+
e.set(
|
|
1477
|
+
"content",
|
|
1478
|
+
"There was an error embedding this URL, please try again or another URL"
|
|
1479
|
+
);
|
|
1480
|
+
});
|
|
1481
|
+
e.delete("content");
|
|
1482
|
+
}
|
|
1483
|
+
)
|
|
1477
1484
|
},
|
|
1478
1485
|
{
|
|
1479
1486
|
name: "content",
|
|
@@ -1551,7 +1558,7 @@ const Bt = {
|
|
|
1551
1558
|
data: () => ({ isEditing: y })
|
|
1552
1559
|
}, At = ["alt", "src"];
|
|
1553
1560
|
function $t(e, n, t, o, r, s) {
|
|
1554
|
-
return l(), u("img",
|
|
1561
|
+
return l(), u("img", S({
|
|
1555
1562
|
style: {
|
|
1556
1563
|
objectFit: t.backgroundSize || "cover",
|
|
1557
1564
|
objectPosition: t.backgroundPosition || "center"
|
|
@@ -1750,18 +1757,20 @@ function qt() {
|
|
|
1750
1757
|
function ne() {
|
|
1751
1758
|
return qt().replace(/-/g, "");
|
|
1752
1759
|
}
|
|
1753
|
-
const oe = "builderSessionId", Gt = async ({
|
|
1760
|
+
const oe = "builderSessionId", Gt = async ({
|
|
1761
|
+
canTrack: e
|
|
1762
|
+
}) => {
|
|
1754
1763
|
if (!e)
|
|
1755
1764
|
return;
|
|
1756
1765
|
const n = await X({
|
|
1757
1766
|
name: oe,
|
|
1758
1767
|
canTrack: e
|
|
1759
1768
|
});
|
|
1760
|
-
if (
|
|
1769
|
+
if (C(n))
|
|
1761
1770
|
return n;
|
|
1762
1771
|
{
|
|
1763
1772
|
const t = Jt();
|
|
1764
|
-
Xt({ id: t, canTrack: e });
|
|
1773
|
+
return Xt({ id: t, canTrack: e }), t;
|
|
1765
1774
|
}
|
|
1766
1775
|
}, Jt = () => ne(), Xt = ({
|
|
1767
1776
|
id: e,
|
|
@@ -1775,6 +1784,7 @@ const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
|
|
|
1775
1784
|
return n ? (t = se()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1776
1785
|
} catch (o) {
|
|
1777
1786
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1787
|
+
return;
|
|
1778
1788
|
}
|
|
1779
1789
|
}, Qt = ({
|
|
1780
1790
|
key: e,
|
|
@@ -1794,11 +1804,11 @@ const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
|
|
|
1794
1804
|
key: re,
|
|
1795
1805
|
canTrack: e
|
|
1796
1806
|
});
|
|
1797
|
-
if (
|
|
1807
|
+
if (C(n))
|
|
1798
1808
|
return n;
|
|
1799
1809
|
{
|
|
1800
1810
|
const t = en();
|
|
1801
|
-
tn({ id: t, canTrack: e });
|
|
1811
|
+
return tn({ id: t, canTrack: e }), t;
|
|
1802
1812
|
}
|
|
1803
1813
|
}, en = () => ne(), tn = ({
|
|
1804
1814
|
id: e,
|
|
@@ -1858,7 +1868,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1858
1868
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1859
1869
|
e
|
|
1860
1870
|
), e;
|
|
1861
|
-
}), rn = () => import("./render-styles.
|
|
1871
|
+
}), rn = () => import("./render-styles.c8214c85.js").then((e) => e.default).catch((e) => {
|
|
1862
1872
|
throw console.error(
|
|
1863
1873
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1864
1874
|
e
|
|
@@ -1991,7 +2001,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1991
2001
|
};
|
|
1992
2002
|
},
|
|
1993
2003
|
canTrackToUse() {
|
|
1994
|
-
return this.canTrack
|
|
2004
|
+
return C(this.canTrack) ? this.canTrack : !0;
|
|
1995
2005
|
},
|
|
1996
2006
|
contentState() {
|
|
1997
2007
|
var e, n;
|
|
@@ -2148,12 +2158,12 @@ function ln(e, n, t, o, r, s) {
|
|
|
2148
2158
|
"builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
|
|
2149
2159
|
"builder-model": t.model
|
|
2150
2160
|
}, [
|
|
2151
|
-
s.shouldRenderContentStyles ? (l(),
|
|
2161
|
+
s.shouldRenderContentStyles ? (l(), I(i, {
|
|
2152
2162
|
key: 0,
|
|
2153
2163
|
cssCode: (m = (d = s.useContent) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2154
2164
|
customFonts: (h = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : h.customFonts
|
|
2155
2165
|
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
2156
|
-
(l(),
|
|
2166
|
+
(l(), I(c, {
|
|
2157
2167
|
blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
|
|
2158
2168
|
key: e.forceReRenderCount
|
|
2159
2169
|
}, null, 8, ["blocks"]))
|
|
@@ -2162,12 +2172,12 @@ function ln(e, n, t, o, r, s) {
|
|
|
2162
2172
|
const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2163
2173
|
__proto__: null,
|
|
2164
2174
|
default: dn
|
|
2165
|
-
}, Symbol.toStringTag, { value: "Module" })), mn = () => import("./block-styles.
|
|
2175
|
+
}, Symbol.toStringTag, { value: "Module" })), mn = () => import("./block-styles.ab09f721.js").then((e) => e.default).catch((e) => {
|
|
2166
2176
|
throw console.error(
|
|
2167
2177
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
2168
2178
|
e
|
|
2169
2179
|
), e;
|
|
2170
|
-
}), pn = () => import("./render-block.
|
|
2180
|
+
}), pn = () => import("./render-block.f4974fcf.js").then((e) => e.default).catch((e) => {
|
|
2171
2181
|
throw console.error(
|
|
2172
2182
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2173
2183
|
e
|
|
@@ -2230,29 +2240,29 @@ const fn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
|
2230
2240
|
function gn(e, n, t, o, r, s) {
|
|
2231
2241
|
const i = k("render-block"), c = k("block-styles");
|
|
2232
2242
|
return l(), u("div", {
|
|
2233
|
-
class: E(s._classStringToObject(s.className + " div-
|
|
2243
|
+
class: E(s._classStringToObject(s.className + " div-7fq9d0i380")),
|
|
2234
2244
|
"builder-path": t.path,
|
|
2235
2245
|
"builder-parent-id": t.parent,
|
|
2236
2246
|
dataSet: {
|
|
2237
2247
|
class: s.className
|
|
2238
2248
|
},
|
|
2239
|
-
style:
|
|
2249
|
+
style: w(t.styleProp),
|
|
2240
2250
|
onClick: n[0] || (n[0] = (a) => s.onClick()),
|
|
2241
2251
|
onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
|
|
2242
2252
|
}, [
|
|
2243
|
-
t.blocks ? (l(!0), u(T, { key: 0 }, $(t.blocks, (a, d) => (l(),
|
|
2253
|
+
t.blocks ? (l(!0), u(T, { key: 0 }, $(t.blocks, (a, d) => (l(), I(i, {
|
|
2244
2254
|
key: "render-block-" + a.id,
|
|
2245
2255
|
block: a,
|
|
2246
2256
|
context: s.builderContext
|
|
2247
2257
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2248
|
-
t.blocks ? (l(!0), u(T, { key: 1 }, $(t.blocks, (a, d) => (l(),
|
|
2258
|
+
t.blocks ? (l(!0), u(T, { key: 1 }, $(t.blocks, (a, d) => (l(), I(c, {
|
|
2249
2259
|
key: "block-style-" + a.id,
|
|
2250
2260
|
block: a,
|
|
2251
2261
|
context: s.builderContext
|
|
2252
2262
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2253
2263
|
], 46, fn);
|
|
2254
2264
|
}
|
|
2255
|
-
const bn = /* @__PURE__ */ g(hn, [["render", gn], ["__scopeId", "data-v-
|
|
2265
|
+
const bn = /* @__PURE__ */ g(hn, [["render", gn], ["__scopeId", "data-v-4f5f0a37"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2256
2266
|
__proto__: null,
|
|
2257
2267
|
default: bn
|
|
2258
2268
|
}, Symbol.toStringTag, { value: "Module" })), D = {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index.ac143767.cjs"),p=require("./get-processed-block.c0ffa71e.cjs"),h=e=>`v-on:${e.toLowerCase()}`,k=(e,n)=>r=>i.evaluate({code:e,context:n.context,state:n.state,event:r,isExpression:!1});function y(e){var c;const n={},r=(c=e.block.actions)!=null?c:{};for(const l in r){if(!r.hasOwnProperty(l))continue;const o=r[l];n[h(l)]=k(o,e)}return n}function x(e){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,builderBlock:e}}function C(e){const n={};if(typeof e!="string")return n;const r=e.trim().split(/\\s+/);for(const c of r)n[c]=!0;return n}function b(e){return e.class=C(e.class),e}function f(e){var r;const n={...e.properties,"builder-id":e.id,style:B(e.style),class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return b(n)}function B(e){if(!!e)switch(i.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return i.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":return e}}function g(e){return e.tagName||"div"}const v=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=e=>typeof e=="string"&&v.includes(e.toLowerCase()),E=()=>Promise.resolve().then(()=>require("./block-styles.4a2a7b8d.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),R=()=>Promise.resolve().then(()=>require("./render-repeated-block.704b65cb.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",e),e}),w=()=>Promise.resolve().then(()=>require("./render-component-with-context.49bb17cb.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponentWithContext at ./render-component-with-context.vue",e),e}),_=()=>Promise.resolve().then(()=>require("./render-component.af4b9326.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),T={name:"render-block",components:{RenderRepeatedBlock:t.defineAsyncComponent(R),BlockStyles:t.defineAsyncComponent(E),RenderComponentWithContext:t.defineAsyncComponent(w),RenderComponent:t.defineAsyncComponent(_)},props:["block","context"],data:()=>({isEmptyHtmlElement:P}),computed:{component(){var r;const e=(r=p.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!e)return null;const n=this.context.registeredComponents[e];if(n)return n;console.warn(`
|
|
2
2
|
Could not find a registered component named "${e}".
|
|
3
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},tag(){return
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},tag(){return g(this.useBlock)},useBlock(){return this.repeatItemData?this.block:p.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},actions(){return y({block:this.useBlock,state:this.context.state,context:this.context.context})},attributes(){return{...f(this.useBlock)}},shouldWrap(){var e;return!((e=this.component)!=null&&e.noWrap)},renderComponentProps(){var e,n,r,c;return{blockChildren:this.useChildren,componentRef:(e=this.component)==null?void 0:e.component,componentOptions:{...x(this.useBlock),...this.shouldWrap?{}:{attributes:{...this.attributes,...this.actions}},customBreakpoints:(c=(r=(n=this.childrenContext)==null?void 0:n.content)==null?void 0:r.meta)==null?void 0:c.breakpoints},context:this.childrenContext}},useChildren(){var e;return(e=this.useBlock.children)!=null?e:[]},childrenWithoutParentComponent(){var n;return!((n=this.component)!=null&&n.component)&&!this.repeatItemData?this.useChildren:[]},repeatItemData(){const{repeat:e,...n}=this.block;if(!(e!=null&&e.collection))return;const r=i.evaluate({code:e.collection,state:this.context.state,context:this.context.context});if(!Array.isArray(r))return;const c=e.collection.split(".").pop(),l=e.itemName||(c?c+"Item":"item");return r.map((a,m)=>({context:{...this.context,state:{...this.context.state,$index:m,$item:a,[l]:a,[`$${l}Index`]:m}},block:n}))},inheritedTextStyles(){return{}},childrenContext(){return{apiKey:this.context.apiKey,state:this.context.state,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:this.inheritedTextStyles}},renderComponentTag(){return"RenderComponent"}}};function A(e,n,r,c,l,o){const a=t.resolveComponent("render-repeated-block"),m=t.resolveComponent("render-block",!0),u=t.resolveComponent("block-styles");return o.shouldWrap?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isEmptyHtmlElement(o.tag)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.normalizeProps(t.mergeProps({key:0},{...o.attributes,...o.actions})),null,16)):t.createCommentVNode("",!0),!e.isEmptyHtmlElement(o.tag)&&o.repeatItemData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.repeatItemData,(s,d)=>(t.openBlock(),t.createBlock(a,{key:d,repeatContext:s.context,block:s.block},null,8,["repeatContext","block"]))),128)):t.createCommentVNode("",!0),!e.isEmptyHtmlElement(o.tag)&&!o.repeatItemData?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.normalizeProps(t.mergeProps({key:2},{...o.attributes,...o.actions})),{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.renderComponentTag),t.normalizeProps(t.guardReactiveProps(o.renderComponentProps)),null,16)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.childrenWithoutParentComponent,(s,d)=>(t.openBlock(),t.createBlock(m,{key:"render-block-"+s.id,block:s,context:o.childrenContext},null,8,["block","context"]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.childrenWithoutParentComponent,(s,d)=>(t.openBlock(),t.createBlock(u,{key:"block-style-"+s.id,block:s,context:o.childrenContext},null,8,["block","context"]))),128))]),_:1},16)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.renderComponentTag),t.normalizeProps(t.mergeProps({key:1},o.renderComponentProps)),null,16))}const S=i._export_sfc(T,[["render",A]]);exports.default=S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as d, resolveComponent as y, openBlock as c, createElementBlock as u, Fragment as p, createBlock as a, resolveDynamicComponent as h, normalizeProps as k, mergeProps as f, createCommentVNode as C, renderList as b, withCtx as E, guardReactiveProps as R } from "vue";
|
|
2
|
-
import { e as B, T as _, b as w, _ as P } from "./index.
|
|
3
|
-
import { g } from "./get-processed-block.
|
|
2
|
+
import { e as B, T as _, b as w, _ as P } from "./index.e0d3400f.js";
|
|
3
|
+
import { g } from "./get-processed-block.1220ffe6.js";
|
|
4
4
|
const T = (e) => `v-on:${e.toLowerCase()}`, S = (e, t) => (o) => B({
|
|
5
5
|
code: e,
|
|
6
6
|
context: t.context,
|
|
@@ -82,22 +82,22 @@ const j = [
|
|
|
82
82
|
"source",
|
|
83
83
|
"track",
|
|
84
84
|
"wbr"
|
|
85
|
-
], L = (e) => typeof e == "string" && j.includes(e.toLowerCase()), M = () => import("./block-styles.
|
|
85
|
+
], L = (e) => typeof e == "string" && j.includes(e.toLowerCase()), M = () => import("./block-styles.ab09f721.js").then((e) => e.default).catch((e) => {
|
|
86
86
|
throw console.error(
|
|
87
87
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
88
88
|
e
|
|
89
89
|
), e;
|
|
90
|
-
}), K = () => import("./render-repeated-block.
|
|
90
|
+
}), K = () => import("./render-repeated-block.7b85cf89.js").then((e) => e.default).catch((e) => {
|
|
91
91
|
throw console.error(
|
|
92
92
|
"Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
|
|
93
93
|
e
|
|
94
94
|
), e;
|
|
95
|
-
}), q = () => import("./render-component-with-context.
|
|
95
|
+
}), q = () => import("./render-component-with-context.b7aac17f.js").then((e) => e.default).catch((e) => {
|
|
96
96
|
throw console.error(
|
|
97
97
|
"Error while attempting to dynamically import component RenderComponentWithContext at ./render-component-with-context.vue",
|
|
98
98
|
e
|
|
99
99
|
), e;
|
|
100
|
-
}), z = () => import("./render-component.
|
|
100
|
+
}), z = () => import("./render-component.7a972660.js").then((e) => e.default).catch((e) => {
|
|
101
101
|
throw console.error(
|
|
102
102
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
103
103
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),r=require("./index.ac143767.cjs"),c=()=>Promise.resolve().then(()=>require("./render-component.af4b9326.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),i={name:"render-component-with-context",components:{RenderComponent:n.defineAsyncComponent(c)},props:["componentRef","componentOptions","blockChildren","context"],provide(){const e=this;return{BuilderContext:{get content(){return e.context.content},get state(){return e.context.state},get context(){return e.context.context},get apiKey(){return e.context.apiKey},get registeredComponents(){return e.context.registeredComponents},get inheritedStyles(){return e.context.inheritedStyles}}}}};function p(e,m,t,d,l,u){const o=n.resolveComponent("render-component");return n.openBlock(),n.createBlock(o,{componentRef:t.componentRef,componentOptions:t.componentOptions,blockChildren:t.blockChildren,context:t.context},null,8,["componentRef","componentOptions","blockChildren","context"])}const s=r._export_sfc(i,[["render",p]]);exports.default=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as o, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { _ as i } from "./index.
|
|
3
|
-
const m = () => import("./render-component.
|
|
2
|
+
import { _ as i } from "./index.e0d3400f.js";
|
|
3
|
+
const m = () => import("./render-component.7a972660.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
6
6
|
e
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as r, resolveComponent as l, openBlock as n, createBlock as c, resolveDynamicComponent as p, normalizeProps as u, mergeProps as y, withCtx as _, createElementBlock as m, Fragment as s, renderList as a, createCommentVNode as b } from "vue";
|
|
2
|
-
import { _ as f } from "./index.
|
|
3
|
-
const x = () => import("./block-styles.
|
|
2
|
+
import { _ as f } from "./index.e0d3400f.js";
|
|
3
|
+
const x = () => import("./block-styles.ab09f721.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
6
6
|
e
|
|
7
7
|
), e;
|
|
8
|
-
}), h = () => import("./render-block.
|
|
8
|
+
}), h = () => import("./render-block.f4974fcf.js").then((e) => e.default).catch((e) => {
|
|
9
9
|
throw console.error(
|
|
10
10
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
11
11
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index.ac143767.cjs"),m=()=>Promise.resolve().then(()=>require("./block-styles.4a2a7b8d.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",o),o}),i=()=>Promise.resolve().then(()=>require("./render-block.489f5bb0.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",o),o}),k={name:"render-component",components:{RenderBlock:e.defineAsyncComponent(i),BlockStyles:e.defineAsyncComponent(m)},props:["componentRef","componentOptions","blockChildren","context"]};function a(o,u,n,p,b,y){const c=e.resolveComponent("render-block"),r=e.resolveComponent("block-styles");return n.componentRef?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.componentRef),e.normalizeProps(e.mergeProps({key:0},n.componentOptions)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.blockChildren,(t,l)=>(e.openBlock(),e.createBlock(c,{key:"render-block-"+t.id,block:t,context:n.context},null,8,["block","context"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.blockChildren,(t,l)=>(e.openBlock(),e.createBlock(r,{key:"block-style-"+t.id,block:t,context:n.context},null,8,["block","context"]))),128))]),_:1},16)):e.createCommentVNode("",!0)}const d=s._export_sfc(k,[["render",a]]);exports.default=d;
|
package/packages/_vue3/dist/{render-inlined-styles.575fa695.js → render-inlined-styles.37596a05.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as s, createBlock as a, resolveDynamicComponent as c, withCtx as i, createTextVNode as l, toDisplayString as o } from "vue";
|
|
2
|
-
import { T as d, _ as p } from "./index.
|
|
2
|
+
import { T as d, _ as p } from "./index.e0d3400f.js";
|
|
3
3
|
const y = {
|
|
4
4
|
name: "render-inlined-styles",
|
|
5
5
|
props: ["styles"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.ac143767.cjs"),c={name:"render-inlined-styles",props:["styles"],data:()=>({TARGET:n.TARGET}),computed:{injectedStyleScript(){return`<${this.tag}>${this.styles}</${this.tag}>`},tag(){return"style"}}},i=["innerHTML"];function l(r,a,s,d,u,t){return r.TARGET==="svelte"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.injectedStyleScript},null,8,i)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.styles),1)]),_:1}))}const o=n._export_sfc(c,[["render",l]]);exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index.ac143767.cjs"),c=()=>Promise.resolve().then(()=>require("./render-block.489f5bb0.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),s={name:"render-repeated-block",components:{RenderBlock:t.defineAsyncComponent(c)},props:["block","repeatContext"],provide(){const e=this;return{BuilderContext:{get content(){return e.repeatContext.content},get state(){return e.repeatContext.state},get context(){return e.repeatContext.context},get apiKey(){return e.repeatContext.apiKey},get registeredComponents(){return e.repeatContext.registeredComponents},get inheritedStyles(){return e.repeatContext.inheritedStyles}}}}};function l(e,i,n,d,p,u){const r=t.resolveComponent("render-block");return t.openBlock(),t.createBlock(r,{block:n.block,context:n.repeatContext},null,8,["block","context"])}const a=o._export_sfc(s,[["render",l]]);exports.default=a;
|
package/packages/_vue3/dist/{render-repeated-block.e1569caf.js → render-repeated-block.7b85cf89.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as o, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { _ as a } from "./index.
|
|
3
|
-
const l = () => import("./render-block.
|
|
2
|
+
import { _ as a } from "./index.e0d3400f.js";
|
|
3
|
+
const l = () => import("./render-block.f4974fcf.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
6
6
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),a=require("./index.ac143767.cjs"),f=()=>Promise.resolve().then(()=>require("./render-inlined-styles.ffa23fbe.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),m={name:"render-content-styles",components:{RenderInlinedStyles:c.defineAsyncComponent(f)},props:["cssCode","customFonts"],computed:{injectedStyles(){return`
|
|
2
2
|
${this.cssCode||""}
|
|
3
3
|
${this.getFontCss({customFonts:this.customFonts})}`}},methods:{getCssFromFont(e){var i,l;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],s=(l=e.fileUrl)!=null?l:(i=e==null?void 0:e.files)==null?void 0:i.regular;let r="";if(s&&t&&n&&(r+=`
|
|
4
4
|
@font-face {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as a, resolveComponent as d, openBlock as m, createBlock as f } from "vue";
|
|
2
|
-
import { _ as p } from "./index.
|
|
3
|
-
const y = () => import("./render-inlined-styles.
|
|
2
|
+
import { _ as p } from "./index.e0d3400f.js";
|
|
3
|
+
const y = () => import("./render-inlined-styles.37596a05.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
6
6
|
e
|