@builder.io/sdk-vue 2.0.3 → 2.0.8
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/browser/{block-styles-mooo-nyz.js → block-styles-UWiLqSPk.js} +1 -1
- package/lib/browser/{block-styles-GNMuV-dL.cjs → block-styles-mtiWQW_J.cjs} +1 -1
- package/lib/browser/{block-wrapper-3cYhLXDa.js → block-wrapper-H_K5XgNp.js} +3 -3
- package/lib/browser/{block-wrapper-3lUpHc_o.cjs → block-wrapper-vI9rE_qz.cjs} +1 -1
- package/lib/browser/blocks/image/image.types.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -0
- package/lib/browser/blocks/text/text.vue.d.ts +6 -1
- package/lib/browser/{component-ref-A7Jq3Gj-.js → component-ref-ULmI7Z-4.js} +2 -2
- package/lib/browser/{component-ref-VU3zC7u4.cjs → component-ref-k4s0KRD5.cjs} +1 -1
- package/lib/browser/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/browser/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/extra-context-types.d.ts +6 -0
- package/lib/browser/context/types.d.ts +2 -1
- package/lib/browser/{get-block-properties-zWa4TdEe.js → get-block-properties-IjhCV9z_.js} +1 -1
- package/lib/browser/{get-block-properties-Eyms9W8F.cjs → get-block-properties-JqBN5X7_.cjs} +1 -1
- package/lib/browser/index-TIoYRvmr.cjs +166 -0
- package/lib/browser/{index-ToBML8l-.js → index-wQ1FWMHJ.js} +97 -73
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-AKO0QANq.js → repeated-block-Aa1yIQkp.js} +2 -2
- package/lib/browser/{repeated-block-EF0Lb_nG.cjs → repeated-block-UKWYkgKG.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles-dvlkOfyP.cjs → block-styles-4MJqQlwZ.cjs} +1 -1
- package/lib/{node/block-styles-AzjY9HjK.js → edge/block-styles-P44kj2Ws.js} +1 -1
- package/lib/edge/{block-wrapper-I5fwbjlI.js → block-wrapper-M3goYBkP.js} +3 -3
- package/lib/{node/block-wrapper-fKNvisIf.cjs → edge/block-wrapper-P5w2jQ_u.cjs} +1 -1
- package/lib/edge/blocks/image/image.types.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -0
- package/lib/edge/blocks/text/text.vue.d.ts +6 -1
- package/lib/{node/component-ref-xMPuQvi5.cjs → edge/component-ref-EPsyn_2c.cjs} +1 -1
- package/lib/{node/component-ref-Vf2FhwSC.js → edge/component-ref-ZtKc8UMX.js} +2 -2
- package/lib/edge/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/edge/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/extra-context-types.d.ts +6 -0
- package/lib/edge/context/types.d.ts +2 -1
- package/lib/edge/{get-block-properties-Kv6zU6Qq.cjs → get-block-properties-N40WxPwN.cjs} +1 -1
- package/lib/edge/{get-block-properties-gUzPvYeh.js → get-block-properties-zzQ9xBK7.js} +1 -1
- package/lib/edge/{index-bWkTiFYf.cjs → index-hw9mu6mD.cjs} +13 -13
- package/lib/edge/{index-R7KJFxff.js → index-yARC0VI1.js} +191 -167
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-kklYPBl5.js → repeated-block-IdOOvFG5.js} +2 -2
- package/lib/edge/{repeated-block-ixPgqHgZ.cjs → repeated-block-q6gyu9cH.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles-zxsWOqgo.cjs → block-styles-HZaZpVMf.cjs} +1 -1
- package/lib/{edge/block-styles-uNDwUd0D.js → node/block-styles-brJAybxf.js} +1 -1
- package/lib/node/{block-wrapper-cHo1DCUj.js → block-wrapper-4h3CaVrk.js} +3 -3
- package/lib/{edge/block-wrapper-BGvBDPqY.cjs → node/block-wrapper-QqrLFWp0.cjs} +1 -1
- package/lib/node/blocks/image/image.types.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +1 -0
- package/lib/node/blocks/text/text.vue.d.ts +6 -1
- package/lib/{edge/component-ref-xFqV17uV.cjs → node/component-ref-NW-UB2pJ.cjs} +1 -1
- package/lib/{edge/component-ref-eBvirZir.js → node/component-ref-hI62zIZA.js} +2 -2
- package/lib/node/components/content-variants/content-variants.types.d.ts +2 -1
- package/lib/node/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/extra-context-types.d.ts +6 -0
- package/lib/node/context/types.d.ts +2 -1
- package/lib/node/{get-block-properties-dCFsQQmt.cjs → get-block-properties-W3cxXL5S.cjs} +1 -1
- package/lib/node/{get-block-properties-l5K2eFkb.js → get-block-properties-ctA1IgxF.js} +1 -1
- package/lib/node/index-HPinODNY.cjs +213 -0
- package/lib/node/{index-bsHToMxW.js → index-xdY2kzl8.js} +39 -15
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-DcYWHCj0.cjs → repeated-block-T2ld1sa9.cjs} +1 -1
- package/lib/node/{repeated-block-7np7Gpgm.js → repeated-block-ndxvinZD.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-hqlNfni4.cjs +0 -166
- package/lib/node/index-xYSllAJG.cjs +0 -213
|
@@ -4,7 +4,7 @@ var ne = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
|
4
4
|
import "./style.css";
|
|
5
5
|
import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ht, toDisplayString as te, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ft } from "vue";
|
|
6
6
|
const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
|
|
7
|
-
function
|
|
7
|
+
function A(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
9
9
|
for (const r in e) {
|
|
10
10
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -44,8 +44,8 @@ function kt(e, t, n, o, r, i) {
|
|
|
44
44
|
const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
46
|
default: pe
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
48
|
-
switch (
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), x = "vue", ee = () => {
|
|
48
|
+
switch (x) {
|
|
49
49
|
case "react":
|
|
50
50
|
case "reactNative":
|
|
51
51
|
case "rsc":
|
|
@@ -68,13 +68,13 @@ const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.
|
|
|
68
68
|
"text"
|
|
69
69
|
],
|
|
70
70
|
data() {
|
|
71
|
-
return { filterAttrs:
|
|
71
|
+
return { filterAttrs: A };
|
|
72
72
|
},
|
|
73
73
|
methods: {
|
|
74
74
|
attrs() {
|
|
75
75
|
return {
|
|
76
|
-
...
|
|
77
|
-
[
|
|
76
|
+
...A(this.attributes, "v-on:", !1),
|
|
77
|
+
[ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
|
|
78
78
|
...this.link ? {
|
|
79
79
|
href: this.link,
|
|
80
80
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -127,11 +127,11 @@ function It(e) {
|
|
|
127
127
|
...e.options
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
log: (...e) => console.log(
|
|
132
|
-
error: (...e) => console.error(
|
|
133
|
-
warn: (...e) => console.warn(
|
|
134
|
-
debug: (...e) => console.debug(
|
|
130
|
+
const Z = "[Builder.io]: ", B = {
|
|
131
|
+
log: (...e) => console.log(Z, ...e),
|
|
132
|
+
error: (...e) => console.error(Z, ...e),
|
|
133
|
+
warn: (...e) => console.warn(Z, ...e),
|
|
134
|
+
debug: (...e) => console.debug(Z, ...e)
|
|
135
135
|
};
|
|
136
136
|
function T() {
|
|
137
137
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -173,7 +173,7 @@ const Bt = () => {
|
|
|
173
173
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
174
174
|
},
|
|
175
175
|
any() {
|
|
176
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
176
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || x === "reactNative";
|
|
177
177
|
}
|
|
178
178
|
}, n = e.match(/Tablet|iPad/i), o = Bt();
|
|
179
179
|
return {
|
|
@@ -277,7 +277,7 @@ const Wt = () => {
|
|
|
277
277
|
};
|
|
278
278
|
ne(V, "cacheLimit", 20), ne(V, "cache", /* @__PURE__ */ new Map());
|
|
279
279
|
let U = V;
|
|
280
|
-
function
|
|
280
|
+
function G({
|
|
281
281
|
code: e,
|
|
282
282
|
context: t,
|
|
283
283
|
localState: n,
|
|
@@ -344,7 +344,7 @@ const Ft = ({
|
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
for (const l in e.bindings) {
|
|
347
|
-
const a = e.bindings[l], u =
|
|
347
|
+
const a = e.bindings[l], u = G({
|
|
348
348
|
code: a,
|
|
349
349
|
localState: n,
|
|
350
350
|
rootState: o,
|
|
@@ -502,7 +502,7 @@ const Ei = ({
|
|
|
502
502
|
block: e
|
|
503
503
|
}));
|
|
504
504
|
function He(e) {
|
|
505
|
-
switch (
|
|
505
|
+
switch (x) {
|
|
506
506
|
case "svelte":
|
|
507
507
|
case "vue":
|
|
508
508
|
case "solid":
|
|
@@ -547,7 +547,7 @@ const Ht = ({
|
|
|
547
547
|
} = e;
|
|
548
548
|
if (!(n != null && n.collection))
|
|
549
549
|
return;
|
|
550
|
-
const r =
|
|
550
|
+
const r = G({
|
|
551
551
|
code: n.collection,
|
|
552
552
|
localState: t.localState,
|
|
553
553
|
rootState: t.rootState,
|
|
@@ -596,22 +596,22 @@ const Ht = ({
|
|
|
596
596
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
597
597
|
e
|
|
598
598
|
), e;
|
|
599
|
-
}), Qt = () => import("./block-styles-
|
|
599
|
+
}), Qt = () => import("./block-styles-UWiLqSPk.js").then((e) => e.default).catch((e) => {
|
|
600
600
|
throw console.error(
|
|
601
601
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
602
602
|
e
|
|
603
603
|
), e;
|
|
604
|
-
}), Xt = () => import("./block-wrapper-
|
|
604
|
+
}), Xt = () => import("./block-wrapper-H_K5XgNp.js").then((e) => e.default).catch((e) => {
|
|
605
605
|
throw console.error(
|
|
606
606
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
607
607
|
e
|
|
608
608
|
), e;
|
|
609
|
-
}), Zt = () => import("./component-ref-
|
|
609
|
+
}), Zt = () => import("./component-ref-ULmI7Z-4.js").then((e) => e.default).catch((e) => {
|
|
610
610
|
throw console.error(
|
|
611
611
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
612
612
|
e
|
|
613
613
|
), e;
|
|
614
|
-
}), _t = () => import("./repeated-block-
|
|
614
|
+
}), _t = () => import("./repeated-block-Aa1yIQkp.js").then((e) => e.default).catch((e) => {
|
|
615
615
|
throw console.error(
|
|
616
616
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
617
617
|
e
|
|
@@ -695,7 +695,7 @@ const Ht = ({
|
|
|
695
695
|
registeredComponents: this.registeredComponents,
|
|
696
696
|
builderBlock: this.processedBlock,
|
|
697
697
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
698
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC)
|
|
698
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && x === "rsc")
|
|
699
699
|
};
|
|
700
700
|
}
|
|
701
701
|
}
|
|
@@ -870,9 +870,9 @@ function cn(e, t, n, o, r, i) {
|
|
|
870
870
|
E(e.$slots, "default")
|
|
871
871
|
]);
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
874
874
|
__proto__: null,
|
|
875
|
-
default:
|
|
875
|
+
default: Q
|
|
876
876
|
}, Symbol.toStringTag, { value: "Module" })), be = f({
|
|
877
877
|
render() {
|
|
878
878
|
return xe("style", {
|
|
@@ -931,7 +931,7 @@ const Y = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
931
931
|
InlinedStyles: be,
|
|
932
932
|
DynamicRenderer: pe,
|
|
933
933
|
Blocks: M,
|
|
934
|
-
DynamicDiv:
|
|
934
|
+
DynamicDiv: Q
|
|
935
935
|
},
|
|
936
936
|
props: [
|
|
937
937
|
"space",
|
|
@@ -949,7 +949,7 @@ const Y = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
949
949
|
cols: this.columns || [],
|
|
950
950
|
stackAt: this.stackColumnsAt || "tablet",
|
|
951
951
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
952
|
-
TARGET:
|
|
952
|
+
TARGET: x,
|
|
953
953
|
getColumnsClass: pn
|
|
954
954
|
};
|
|
955
955
|
},
|
|
@@ -1053,7 +1053,7 @@ const Y = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
1053
1053
|
...e.link ? {
|
|
1054
1054
|
href: e.link
|
|
1055
1055
|
} : {},
|
|
1056
|
-
[
|
|
1056
|
+
[ee()]: "builder-column",
|
|
1057
1057
|
style: He(this.columnCssVars(t))
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
@@ -1063,7 +1063,7 @@ function hn(e, t, n, o, r, i) {
|
|
|
1063
1063
|
var u;
|
|
1064
1064
|
const s = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
|
|
1065
1065
|
return d(), p("div", C({
|
|
1066
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1066
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
|
|
1067
1067
|
style: e.columnsCssVars()
|
|
1068
1068
|
}, {}), [
|
|
1069
1069
|
e.TARGET !== "reactNative" ? (d(), k(s, {
|
|
@@ -1095,7 +1095,7 @@ function hn(e, t, n, o, r, i) {
|
|
|
1095
1095
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1096
1096
|
], 16);
|
|
1097
1097
|
}
|
|
1098
|
-
const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-
|
|
1098
|
+
const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-52366f16"]]), bn = f({
|
|
1099
1099
|
name: "builder-fragment-component",
|
|
1100
1100
|
props: []
|
|
1101
1101
|
});
|
|
@@ -1152,6 +1152,8 @@ const Sn = f({
|
|
|
1152
1152
|
"builderBlock",
|
|
1153
1153
|
"fitContent"
|
|
1154
1154
|
],
|
|
1155
|
+
mounted() {
|
|
1156
|
+
},
|
|
1155
1157
|
computed: {
|
|
1156
1158
|
srcSetToUse() {
|
|
1157
1159
|
var n;
|
|
@@ -1228,11 +1230,11 @@ function In(e, t, n, o, r, i) {
|
|
|
1228
1230
|
])) : v("", !0)
|
|
1229
1231
|
], 64);
|
|
1230
1232
|
}
|
|
1231
|
-
const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-
|
|
1233
|
+
const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-b1147753"]]), Rn = f({
|
|
1232
1234
|
name: "builder-section-component",
|
|
1233
1235
|
props: ["attributes", "maxWidth"],
|
|
1234
1236
|
data() {
|
|
1235
|
-
return { filterAttrs:
|
|
1237
|
+
return { filterAttrs: A };
|
|
1236
1238
|
}
|
|
1237
1239
|
});
|
|
1238
1240
|
function Bn(e, t, n, o, r, i) {
|
|
@@ -1388,7 +1390,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
|
|
|
1388
1390
|
...e,
|
|
1389
1391
|
...r
|
|
1390
1392
|
};
|
|
1391
|
-
},
|
|
1393
|
+
}, Y = (e) => L(e) ? e : !0, re = {
|
|
1392
1394
|
"@type": "@builder.io/sdk:Element",
|
|
1393
1395
|
layerName: "Accordion item title",
|
|
1394
1396
|
responsiveStyles: {
|
|
@@ -2337,7 +2339,8 @@ function ao(e, t, n, o, r, i) {
|
|
|
2337
2339
|
}
|
|
2338
2340
|
const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
2339
2341
|
shouldReceiveBuilderProps: {
|
|
2340
|
-
builderBlock: !1
|
|
2342
|
+
builderBlock: !1,
|
|
2343
|
+
builderContext: !0
|
|
2341
2344
|
},
|
|
2342
2345
|
name: "Text",
|
|
2343
2346
|
static: !0,
|
|
@@ -2358,13 +2361,34 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2358
2361
|
}
|
|
2359
2362
|
}, uo = f({
|
|
2360
2363
|
name: "builder-text",
|
|
2361
|
-
props: ["text"]
|
|
2364
|
+
props: ["builderContext", "text"],
|
|
2365
|
+
computed: {
|
|
2366
|
+
processedText() {
|
|
2367
|
+
var i;
|
|
2368
|
+
const e = this.builderContext, {
|
|
2369
|
+
context: t,
|
|
2370
|
+
localState: n,
|
|
2371
|
+
rootState: o,
|
|
2372
|
+
rootSetState: r
|
|
2373
|
+
} = e;
|
|
2374
|
+
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
2375
|
+
/{{([^}]+)}}/g,
|
|
2376
|
+
(s, l) => G({
|
|
2377
|
+
code: l,
|
|
2378
|
+
context: t,
|
|
2379
|
+
localState: n,
|
|
2380
|
+
rootState: o,
|
|
2381
|
+
rootSetState: r,
|
|
2382
|
+
enableCache: !1
|
|
2383
|
+
})
|
|
2384
|
+
);
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2362
2387
|
}), po = ["innerHTML"];
|
|
2363
2388
|
function mo(e, t, n, o, r, i) {
|
|
2364
|
-
var s;
|
|
2365
2389
|
return d(), p("div", {
|
|
2366
2390
|
class: "builder-text",
|
|
2367
|
-
innerHTML:
|
|
2391
|
+
innerHTML: e.processedText,
|
|
2368
2392
|
style: {
|
|
2369
2393
|
outline: "none"
|
|
2370
2394
|
}
|
|
@@ -2773,7 +2797,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2773
2797
|
formState: "unsubmitted",
|
|
2774
2798
|
responseData: null,
|
|
2775
2799
|
formErrorMessage: "",
|
|
2776
|
-
filterAttrs:
|
|
2800
|
+
filterAttrs: A
|
|
2777
2801
|
};
|
|
2778
2802
|
},
|
|
2779
2803
|
methods: {
|
|
@@ -3007,7 +3031,7 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7
|
|
|
3007
3031
|
"required"
|
|
3008
3032
|
],
|
|
3009
3033
|
data() {
|
|
3010
|
-
return { isEditing: R, filterAttrs:
|
|
3034
|
+
return { isEditing: R, filterAttrs: A };
|
|
3011
3035
|
}
|
|
3012
3036
|
}), Do = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3013
3037
|
function Lo(e, t, n, o, r, i) {
|
|
@@ -3067,7 +3091,7 @@ const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
|
|
|
3067
3091
|
name: "builder-select-component",
|
|
3068
3092
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3069
3093
|
data() {
|
|
3070
|
-
return { isEditing: R, filterAttrs:
|
|
3094
|
+
return { isEditing: R, filterAttrs: A };
|
|
3071
3095
|
}
|
|
3072
3096
|
}), Ho = ["value", "defaultValue", "name", "required"], Ko = ["value"];
|
|
3073
3097
|
function qo(e, t, n, o, r, i) {
|
|
@@ -3113,7 +3137,7 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
|
|
|
3113
3137
|
name: "builder-submit-button",
|
|
3114
3138
|
props: ["attributes", "text"],
|
|
3115
3139
|
data() {
|
|
3116
|
-
return { filterAttrs:
|
|
3140
|
+
return { filterAttrs: A };
|
|
3117
3141
|
}
|
|
3118
3142
|
});
|
|
3119
3143
|
function Yo(e, t, n, o, r, i) {
|
|
@@ -3166,7 +3190,7 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
|
3166
3190
|
"required"
|
|
3167
3191
|
],
|
|
3168
3192
|
data() {
|
|
3169
|
-
return { filterAttrs:
|
|
3193
|
+
return { filterAttrs: A };
|
|
3170
3194
|
}
|
|
3171
3195
|
}), _o = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3172
3196
|
function er(e, t, n, o, r, i) {
|
|
@@ -3203,7 +3227,7 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3203
3227
|
"attributes"
|
|
3204
3228
|
],
|
|
3205
3229
|
data() {
|
|
3206
|
-
return { isEditing: R, filterAttrs:
|
|
3230
|
+
return { isEditing: R, filterAttrs: A };
|
|
3207
3231
|
}
|
|
3208
3232
|
}), rr = ["alt", "src"];
|
|
3209
3233
|
function ir(e, t, n, o, r, i) {
|
|
@@ -3572,14 +3596,14 @@ const kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarg
|
|
|
3572
3596
|
thisScriptEl?.remove();
|
|
3573
3597
|
}
|
|
3574
3598
|
return;
|
|
3575
|
-
}`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent",
|
|
3599
|
+
}`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3576
3600
|
...t,
|
|
3577
3601
|
testVariationId: t.id,
|
|
3578
3602
|
id: e == null ? void 0 : e.id
|
|
3579
3603
|
})), Sr = ({
|
|
3580
3604
|
canTrack: e,
|
|
3581
3605
|
content: t
|
|
3582
|
-
}) => !(!(
|
|
3606
|
+
}) => !(!(_(t).length > 0) || !e), Cr = (e) => e === "react" || e === "reactNative", _e = Cr(x), wr = () => `
|
|
3583
3607
|
window.${Xe} = ${kr}
|
|
3584
3608
|
window.${Ze} = ${vr}
|
|
3585
3609
|
`, Tr = (e, t) => `
|
|
@@ -3668,8 +3692,8 @@ const Br = "v3", Te = "builder.", Pr = "options.", ot = (e) => {
|
|
|
3668
3692
|
throw new Error("Missing API key");
|
|
3669
3693
|
if (!["v3"].includes(a))
|
|
3670
3694
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
3671
|
-
const
|
|
3672
|
-
if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(
|
|
3695
|
+
const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
3696
|
+
if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), S && Ie(S) && w.searchParams.set("staleCacheSeconds", String(S)), y) {
|
|
3673
3697
|
const O = de({
|
|
3674
3698
|
sort: y
|
|
3675
3699
|
});
|
|
@@ -3702,8 +3726,8 @@ const Ar = async (e) => {
|
|
|
3702
3726
|
const t = ye(e);
|
|
3703
3727
|
return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
|
|
3704
3728
|
}, Vr = async (e, t, n = ye(e)) => {
|
|
3705
|
-
const o =
|
|
3706
|
-
if (n.search.includes("preview="), !o || !(T() ||
|
|
3729
|
+
const o = Y(e.canTrack);
|
|
3730
|
+
if (n.search.includes("preview="), !o || !(T() || x === "reactNative"))
|
|
3707
3731
|
return t.results;
|
|
3708
3732
|
try {
|
|
3709
3733
|
const r = [];
|
|
@@ -3858,7 +3882,7 @@ async function ue(e) {
|
|
|
3858
3882
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
3859
3883
|
return;
|
|
3860
3884
|
}
|
|
3861
|
-
if (e.canTrack && !R() && (T() ||
|
|
3885
|
+
if (e.canTrack && !R() && (T() || x === "reactNative"))
|
|
3862
3886
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
3863
3887
|
method: "POST",
|
|
3864
3888
|
body: JSON.stringify({
|
|
@@ -3925,7 +3949,7 @@ function lt(e, t) {
|
|
|
3925
3949
|
const n = new URL(t.origin), o = n.hostname;
|
|
3926
3950
|
return (e || Qr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3927
3951
|
}
|
|
3928
|
-
const Xr = "2.0.
|
|
3952
|
+
const Xr = "2.0.8", Be = {};
|
|
3929
3953
|
function Zr(e, t) {
|
|
3930
3954
|
let n = Be[e];
|
|
3931
3955
|
if (n || (n = Be[e] = []), n.push(t), T()) {
|
|
@@ -3972,7 +3996,7 @@ const ct = (e = {}) => {
|
|
|
3972
3996
|
Pe || (Pe = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
3973
3997
|
type: "builder.sdkInfo",
|
|
3974
3998
|
data: {
|
|
3975
|
-
target:
|
|
3999
|
+
target: x,
|
|
3976
4000
|
version: Xr,
|
|
3977
4001
|
supportsPatchUpdates: !1,
|
|
3978
4002
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4126,7 +4150,7 @@ font-weight: ${s};
|
|
|
4126
4150
|
}
|
|
4127
4151
|
`, ri = (e) => e ? "" : oi, ii = (e) => `variant-${e}`, si = f({
|
|
4128
4152
|
name: "enable-editor",
|
|
4129
|
-
components: { DynamicDiv:
|
|
4153
|
+
components: { DynamicDiv: Q },
|
|
4130
4154
|
props: [
|
|
4131
4155
|
"builderContextSignal",
|
|
4132
4156
|
"canTrack",
|
|
@@ -4164,7 +4188,7 @@ font-weight: ${s};
|
|
|
4164
4188
|
if (T()) {
|
|
4165
4189
|
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4166
4190
|
new CustomEvent("initeditingbldr")
|
|
4167
|
-
), this.builderContextSignal.content &&
|
|
4191
|
+
), this.builderContextSignal.content && Y(this.canTrack)) {
|
|
4168
4192
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
|
|
4169
4193
|
ue({
|
|
4170
4194
|
type: "impression",
|
|
@@ -4322,7 +4346,7 @@ font-weight: ${s};
|
|
|
4322
4346
|
evaluateJsCode() {
|
|
4323
4347
|
var t, n;
|
|
4324
4348
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4325
|
-
e &&
|
|
4349
|
+
e && G({
|
|
4326
4350
|
code: e,
|
|
4327
4351
|
context: this.context || {},
|
|
4328
4352
|
localState: void 0,
|
|
@@ -4340,7 +4364,7 @@ font-weight: ${s};
|
|
|
4340
4364
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4341
4365
|
ue({
|
|
4342
4366
|
type: "click",
|
|
4343
|
-
canTrack:
|
|
4367
|
+
canTrack: Y(this.canTrack),
|
|
4344
4368
|
contentId: r,
|
|
4345
4369
|
apiKey: this.apiKey,
|
|
4346
4370
|
variationId: o !== r ? o : void 0,
|
|
@@ -4360,7 +4384,7 @@ font-weight: ${s};
|
|
|
4360
4384
|
const i = r.replace(
|
|
4361
4385
|
/{{([^}]+)}}/g,
|
|
4362
4386
|
(s, l) => String(
|
|
4363
|
-
|
|
4387
|
+
G({
|
|
4364
4388
|
code: l,
|
|
4365
4389
|
context: this.context || {},
|
|
4366
4390
|
localState: void 0,
|
|
@@ -4511,7 +4535,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4511
4535
|
InlinedScript: et,
|
|
4512
4536
|
ContentStyles: ui,
|
|
4513
4537
|
Blocks: M,
|
|
4514
|
-
DynamicDiv:
|
|
4538
|
+
DynamicDiv: Q
|
|
4515
4539
|
},
|
|
4516
4540
|
props: [
|
|
4517
4541
|
"content",
|
|
@@ -4588,7 +4612,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4588
4612
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4589
4613
|
nonce: this.nonce || ""
|
|
4590
4614
|
},
|
|
4591
|
-
TARGET:
|
|
4615
|
+
TARGET: x
|
|
4592
4616
|
};
|
|
4593
4617
|
},
|
|
4594
4618
|
provide() {
|
|
@@ -4624,7 +4648,7 @@ function bi(e, t, n, o, r, i) {
|
|
|
4624
4648
|
trustedHosts: e.trustedHosts
|
|
4625
4649
|
}, {}), {
|
|
4626
4650
|
default: W(() => {
|
|
4627
|
-
var h, c, m, S, y, F,
|
|
4651
|
+
var h, c, m, S, y, F, X;
|
|
4628
4652
|
return [
|
|
4629
4653
|
e.isSsrAbTest ? (d(), k(s, {
|
|
4630
4654
|
key: 0,
|
|
@@ -4641,7 +4665,7 @@ function bi(e, t, n, o, r, i) {
|
|
|
4641
4665
|
customFonts: (y = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : y.customFonts
|
|
4642
4666
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4643
4667
|
$(a, {
|
|
4644
|
-
blocks: (
|
|
4668
|
+
blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
|
|
4645
4669
|
context: e.builderContextSignal,
|
|
4646
4670
|
registeredComponents: e.registeredComponents,
|
|
4647
4671
|
linkComponent: e.linkComponent
|
|
@@ -4681,12 +4705,12 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4681
4705
|
data() {
|
|
4682
4706
|
return {
|
|
4683
4707
|
shouldRenderVariants: Sr({
|
|
4684
|
-
canTrack:
|
|
4708
|
+
canTrack: Y(this.canTrack),
|
|
4685
4709
|
content: this.content
|
|
4686
4710
|
}),
|
|
4687
|
-
TARGET:
|
|
4711
|
+
TARGET: x,
|
|
4688
4712
|
getInitVariantsFnsScriptString: wr,
|
|
4689
|
-
getVariants:
|
|
4713
|
+
getVariants: _
|
|
4690
4714
|
};
|
|
4691
4715
|
},
|
|
4692
4716
|
mounted() {
|
|
@@ -4695,7 +4719,7 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4695
4719
|
updateCookieAndStylesScriptStr() {
|
|
4696
4720
|
var e;
|
|
4697
4721
|
return Tr(
|
|
4698
|
-
|
|
4722
|
+
_(this.content).map((t) => ({
|
|
4699
4723
|
id: t.testVariationId,
|
|
4700
4724
|
testRatio: t.testRatio
|
|
4701
4725
|
})),
|
|
@@ -4703,7 +4727,7 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4703
4727
|
);
|
|
4704
4728
|
},
|
|
4705
4729
|
hideVariantsStyleString() {
|
|
4706
|
-
return
|
|
4730
|
+
return _(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
4707
4731
|
},
|
|
4708
4732
|
defaultContent() {
|
|
4709
4733
|
var e;
|
|
@@ -4712,7 +4736,7 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4712
4736
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4713
4737
|
} : Ln({
|
|
4714
4738
|
item: this.content,
|
|
4715
|
-
canTrack:
|
|
4739
|
+
canTrack: Y(this.canTrack)
|
|
4716
4740
|
});
|
|
4717
4741
|
}
|
|
4718
4742
|
}
|
|
@@ -4737,7 +4761,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4737
4761
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4738
4762
|
nonce: e.nonce || ""
|
|
4739
4763
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4740
|
-
(d(!0), p(I, null, N(e.getVariants(e.content), (u, h) => (d(), k(a, {
|
|
4764
|
+
(d(!0), p(I, null, N(e.getVariants(e.content), (u, h) => (d(), k(a, C({
|
|
4741
4765
|
key: u.testVariationId,
|
|
4742
4766
|
isNestedRender: e.isNestedRender,
|
|
4743
4767
|
nonce: e.nonce,
|
|
@@ -4759,7 +4783,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4759
4783
|
contentWrapper: e.contentWrapper,
|
|
4760
4784
|
contentWrapperProps: e.contentWrapperProps,
|
|
4761
4785
|
trustedHosts: e.trustedHosts
|
|
4762
|
-
}, null,
|
|
4786
|
+
}, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4763
4787
|
], 64)) : v("", !0),
|
|
4764
4788
|
$(a, C({
|
|
4765
4789
|
nonce: e.nonce,
|
|
@@ -4807,7 +4831,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4807
4831
|
});
|
|
4808
4832
|
}, Ci = f({
|
|
4809
4833
|
name: "builder-symbol",
|
|
4810
|
-
components: { ContentVariants: vi, DynamicDiv:
|
|
4834
|
+
components: { ContentVariants: vi, DynamicDiv: Q },
|
|
4811
4835
|
props: [
|
|
4812
4836
|
"symbol",
|
|
4813
4837
|
"attributes",
|
|
@@ -4819,7 +4843,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4819
4843
|
],
|
|
4820
4844
|
data() {
|
|
4821
4845
|
var e;
|
|
4822
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4846
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
|
|
4823
4847
|
},
|
|
4824
4848
|
mounted() {
|
|
4825
4849
|
this.setContent();
|
|
@@ -4842,7 +4866,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4842
4866
|
className() {
|
|
4843
4867
|
var e, t;
|
|
4844
4868
|
return [
|
|
4845
|
-
this.attributes[
|
|
4869
|
+
this.attributes[ee()],
|
|
4846
4870
|
"builder-symbol",
|
|
4847
4871
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
4848
4872
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4935,7 +4959,7 @@ export {
|
|
|
4935
4959
|
xi as H,
|
|
4936
4960
|
$n as I,
|
|
4937
4961
|
Pn as S,
|
|
4938
|
-
|
|
4962
|
+
x as T,
|
|
4939
4963
|
fr as V,
|
|
4940
4964
|
be as _,
|
|
4941
4965
|
un as a,
|
|
@@ -4945,9 +4969,9 @@ export {
|
|
|
4945
4969
|
he as e,
|
|
4946
4970
|
b as f,
|
|
4947
4971
|
De as g,
|
|
4948
|
-
|
|
4972
|
+
G as h,
|
|
4949
4973
|
Ei as i,
|
|
4950
|
-
|
|
4974
|
+
ee as j,
|
|
4951
4975
|
le as k,
|
|
4952
4976
|
Ct as l,
|
|
4953
4977
|
Ti as m,
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-TIoYRvmr.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { o as a, k as r, l as o, C as i, p as n, F as c, I as g, S as m, m as l, n as u, V as d, A as p, s as C, z as E, D as B, E as S, v as f, q as h, r as x, t as b, u as k, y, x as P } from "./index-
|
|
2
|
+
import { o as a, k as r, l as o, C as i, p as n, F as c, I as g, S as m, m as l, n as u, V as d, A as p, s as C, z as E, D as B, E as S, v as f, q as h, r as x, t as b, u as k, y, x as P } from "./index-wQ1FWMHJ.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Blocks,
|
|
5
5
|
r as BuilderContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as c } from "vue";
|
|
3
|
-
import { k as s, f as l } from "./index-
|
|
4
|
-
const i = () => import("./index-
|
|
3
|
+
import { k as s, f as l } from "./index-wQ1FWMHJ.js";
|
|
4
|
+
const i = () => import("./index-wQ1FWMHJ.js").then((o) => o.H).then((o) => o.default).catch((o) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
7
7
|
o
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-TIoYRvmr.cjs"),r=()=>Promise.resolve().then(()=>require("./index-TIoYRvmr.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,m,a,d){const n=o.resolveComponent("Block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
package/lib/browser/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-178o76acnws[data-v-a5b13ef9]{display:flex;flex-direction:column;align-items:stretch}.div-
|
|
1
|
+
.component-178o76acnws[data-v-a5b13ef9]{display:flex;flex-direction:column;align-items:stretch}.div-2brhoa1k8gd[data-v-52366f16]{display:flex;line-height:normal}.img-1pl23ac79ld[data-v-b1147753]{opacity:1;transition:opacity .2s ease-in-out}.div-1pl23ac79ld[data-v-b1147753]{width:100%;pointer-events:none;font-size:0}.div-1pl23ac79ld-2[data-v-b1147753]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-3i4ezorcfhi[data-v-489330f7]{padding:10px;color:red;text-align:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./index-hw9mu6mD.cjs"),f=c.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var m,h,y;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=e.responsiveStyles,a=this.context.content,r=t.getSizesForBreakpoints(((m=a==null?void 0:a.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const k=i?t.createCssClass({className:n,styles:i}):"",p=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",C=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"",o=e.animations&&e.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=t.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,p,C,S].join(" ")}}});function g(e,s,a,r,i,d){const l=c.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(c.openBlock(),c.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):c.createCommentVNode("",!0)}const x=t._export_sfc(f,[["render",g]]);exports.default=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as $ } from "vue";
|
|
2
|
-
import { _, T, g as p, c as y, a as w, b as c, d as k, e as E, f as I } from "./index-
|
|
2
|
+
import { _, T, g as p, c as y, a as w, b as c, d as k, e as E, f as I } from "./index-yARC0VI1.js";
|
|
3
3
|
const N = g({
|
|
4
4
|
name: "block-styles",
|
|
5
5
|
components: { InlinedStyles: _ },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { f as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-zzQ9xBK7.js";
|
|
3
|
+
import { f as m } from "./index-yARC0VI1.js";
|
|
4
|
+
const d = () => import("./index-yARC0VI1.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-N40WxPwN.cjs"),n=require("./index-hw9mu6mD.cjs"),c=()=>Promise.resolve().then(()=>require("./index-hw9mu6mD.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|