@builder.io/sdk-vue 0.12.3 → 0.12.4
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.02ba52b2.cjs +1 -0
- package/lib/{edge/block-styles.4feb92ca.js → browser/block-styles.53c7f508.js} +5 -5
- package/lib/browser/block-wrapper.9fa9b402.cjs +1 -0
- package/lib/{edge/block-wrapper.94c267ab.js → browser/block-wrapper.eee0672a.js} +4 -4
- package/lib/browser/blocks/button/button.types.d.ts +2 -1
- package/lib/browser/blocks/button/button.vue.d.ts +4 -0
- package/lib/browser/blocks/columns/columns.types.d.ts +3 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/browser/{component-ref.c3fbfacf.js → component-ref.413e00a0.js} +26 -24
- package/lib/browser/component-ref.7152f073.cjs +1 -0
- package/lib/browser/components/block/block.vue.d.ts +8 -3
- package/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/browser/components/blocks/blocks.types.d.ts +1 -0
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-block-properties.d.ts +1 -2
- package/lib/browser/functions/get-class-prop-name.d.ts +1 -0
- package/lib/browser/functions/get-style.d.ts +12 -0
- package/lib/browser/functions/transform-block-properties.d.ts +2 -2
- package/lib/browser/functions/transform-style-property.d.ts +7 -0
- package/lib/browser/get-block-properties.977a77b8.js +65 -0
- package/lib/browser/get-block-properties.af78bde3.cjs +1 -0
- package/lib/browser/helpers/omit.d.ts +1 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/browser/{index.62a4dd7e.js → index.125c730f.js} +781 -637
- package/lib/browser/index.50f38496.cjs +165 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +8 -8
- package/lib/browser/repeated-block.0c50662b.cjs +1 -0
- package/lib/browser/repeated-block.bc26d02d.js +35 -0
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-block.d.ts +1 -0
- package/lib/browser/types/builder-props.d.ts +3 -0
- package/lib/edge/block-styles.a5af3df2.cjs +1 -0
- package/lib/{browser/block-styles.8d24c282.js → edge/block-styles.fee0d2aa.js} +11 -13
- package/lib/{browser/block-wrapper.c5dfbc00.js → edge/block-wrapper.637d7df2.js} +5 -7
- package/lib/edge/block-wrapper.6bdfca76.cjs +1 -0
- package/lib/edge/blocks/button/button.types.d.ts +2 -1
- package/lib/edge/blocks/button/button.vue.d.ts +4 -0
- package/lib/edge/blocks/columns/columns.types.d.ts +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/edge/component-ref.369810a4.cjs +1 -0
- package/lib/edge/{component-ref.c15b3af0.js → component-ref.41811af5.js} +26 -24
- package/lib/edge/components/block/block.vue.d.ts +8 -3
- package/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/edge/components/blocks/blocks.types.d.ts +1 -0
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-block-properties.d.ts +1 -2
- package/lib/edge/functions/get-class-prop-name.d.ts +1 -0
- package/lib/edge/functions/get-style.d.ts +12 -0
- package/lib/edge/functions/transform-block-properties.d.ts +2 -2
- package/lib/edge/functions/transform-style-property.d.ts +7 -0
- package/lib/edge/get-block-properties.8c9ec377.cjs +1 -0
- package/lib/edge/get-block-properties.d9e1b7db.js +64 -0
- package/lib/edge/helpers/omit.d.ts +1 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/edge/{index.6b56947b.js → index.0e671c32.js} +1545 -1401
- package/lib/edge/index.202adcba.cjs +185 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +8 -8
- package/lib/edge/repeated-block.05059f8a.cjs +1 -0
- package/lib/edge/{repeated-block.76408127.js → repeated-block.f8d5be9a.js} +11 -10
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-block.d.ts +1 -0
- package/lib/edge/types/builder-props.d.ts +3 -0
- package/lib/node/{block-styles.b73795eb.js → block-styles.bb5f14b0.js} +11 -12
- package/lib/node/block-styles.c9083d49.cjs +1 -0
- package/lib/node/{block-wrapper.8dcfcfa1.js → block-wrapper.7aa2ef9c.js} +5 -6
- package/lib/node/block-wrapper.7d82a700.cjs +1 -0
- package/lib/node/blocks/button/button.types.d.ts +2 -1
- package/lib/node/blocks/button/button.vue.d.ts +4 -0
- package/lib/node/blocks/columns/columns.types.d.ts +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +9 -3
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +3 -0
- package/lib/node/{component-ref.e6e92c8d.js → component-ref.32bc874a.js} +26 -24
- package/lib/node/component-ref.3748ed2f.cjs +1 -0
- package/lib/node/components/block/block.vue.d.ts +8 -3
- package/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +4 -2
- package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -0
- package/lib/node/components/blocks/blocks.types.d.ts +1 -0
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +6 -2
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-block-properties.d.ts +1 -2
- package/lib/node/functions/get-class-prop-name.d.ts +1 -0
- package/lib/node/functions/get-style.d.ts +12 -0
- package/lib/node/functions/transform-block-properties.d.ts +2 -2
- package/lib/node/functions/transform-style-property.d.ts +7 -0
- package/lib/node/get-block-properties.4076202f.cjs +1 -0
- package/lib/node/get-block-properties.4e3171b7.js +64 -0
- package/lib/node/helpers/omit.d.ts +1 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +6 -0
- package/lib/node/{index.48b1738e.js → index.0d7a2ca2.js} +327 -183
- package/lib/node/index.a0856b34.cjs +205 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +8 -8
- package/lib/node/repeated-block.05cbf677.js +35 -0
- package/lib/node/repeated-block.d07e6280.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-block.d.ts +1 -0
- package/lib/node/types/builder-props.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/block-styles.a0585e05.cjs +0 -1
- package/lib/browser/block-wrapper.68d48f7a.cjs +0 -1
- package/lib/browser/component-ref.d00ee381.cjs +0 -1
- package/lib/browser/css.33017a13.cjs +0 -6
- package/lib/browser/css.c99b7535.js +0 -22
- package/lib/browser/dynamic-renderer.72e99722.js +0 -29
- package/lib/browser/dynamic-renderer.e95e3678.cjs +0 -1
- package/lib/browser/get-block-actions.351bce86.js +0 -76
- package/lib/browser/get-block-actions.d7726c65.cjs +0 -1
- package/lib/browser/index.8856c30a.cjs +0 -160
- package/lib/browser/repeated-block.610c249f.js +0 -34
- package/lib/browser/repeated-block.d31def44.cjs +0 -1
- package/lib/edge/block-styles.573b7b1b.cjs +0 -1
- package/lib/edge/block-wrapper.8fa7315b.cjs +0 -1
- package/lib/edge/component-ref.25ff38ac.cjs +0 -1
- package/lib/edge/css.d221cd8e.js +0 -21
- package/lib/edge/css.ec6fd2a5.cjs +0 -6
- package/lib/edge/dynamic-renderer.47f81bbb.js +0 -28
- package/lib/edge/dynamic-renderer.7abdc573.cjs +0 -1
- package/lib/edge/get-block-actions.4687c8f3.js +0 -75
- package/lib/edge/get-block-actions.ec83f582.cjs +0 -1
- package/lib/edge/index.5778aa26.cjs +0 -180
- package/lib/edge/repeated-block.29e381f4.cjs +0 -1
- package/lib/node/block-styles.35531025.cjs +0 -1
- package/lib/node/block-wrapper.047cda0b.cjs +0 -1
- package/lib/node/component-ref.4ba40051.cjs +0 -1
- package/lib/node/css.a76e2f77.cjs +0 -6
- package/lib/node/css.ed4d90da.js +0 -21
- package/lib/node/dynamic-renderer.beba4cd5.cjs +0 -1
- package/lib/node/dynamic-renderer.e6ce0b70.js +0 -29
- package/lib/node/get-block-actions.5e56d085.js +0 -75
- package/lib/node/get-block-actions.899ffab6.cjs +0 -1
- package/lib/node/index.f4ffe7ae.cjs +0 -200
- package/lib/node/repeated-block.a42031b0.cjs +0 -1
- package/lib/node/repeated-block.cc0857ed.js +0 -34
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, mergeProps, toHandlers,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment as Fragment$1, createBlock, resolveDynamicComponent, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createTextVNode, toDisplayString, defineAsyncComponent, createVNode, renderList, createCommentVNode, h, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
+
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
|
|
3
4
|
function filterAttrs(e = {}, t, n) {
|
|
4
5
|
const o = {};
|
|
5
6
|
for (const r in e) {
|
|
@@ -10,30 +11,84 @@ function filterAttrs(e = {}, t, n) {
|
|
|
10
11
|
}
|
|
11
12
|
return o;
|
|
12
13
|
}
|
|
13
|
-
const _sfc_main$
|
|
14
|
-
name: "
|
|
15
|
-
props: ["attributes", "
|
|
14
|
+
const _sfc_main$l = defineComponent({
|
|
15
|
+
name: "dynamic-renderer",
|
|
16
|
+
props: ["attributes", "actionAttributes", "TagName"],
|
|
16
17
|
data() {
|
|
17
|
-
return {
|
|
18
|
+
return { isEmptyElement };
|
|
18
19
|
}
|
|
19
20
|
}), _export_sfc = (e, t) => {
|
|
20
21
|
const n = e.__vccOpts || e;
|
|
21
22
|
for (const [o, r] of t)
|
|
22
23
|
n[o] = r;
|
|
23
24
|
return n;
|
|
24
|
-
}
|
|
25
|
+
};
|
|
26
|
+
function _sfc_render$j(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), null, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 0 }, e.attributes, toHandlers(e.actionAttributes)), {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
renderSlot(e.$slots, "default")
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 16)) : (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
renderSlot(e.$slots, "default")
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16))
|
|
39
|
+
], 64));
|
|
40
|
+
}
|
|
41
|
+
const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]), dynamicRenderer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
|
+
__proto__: null,
|
|
43
|
+
default: DynamicRenderer
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), TARGET = "vue", getClassPropName = () => {
|
|
45
|
+
switch (TARGET) {
|
|
46
|
+
case "react":
|
|
47
|
+
case "reactNative":
|
|
48
|
+
case "rsc":
|
|
49
|
+
return "className";
|
|
50
|
+
case "svelte":
|
|
51
|
+
case "vue":
|
|
52
|
+
case "solid":
|
|
53
|
+
case "qwik":
|
|
54
|
+
return "class";
|
|
55
|
+
}
|
|
56
|
+
}, _sfc_main$k = defineComponent({
|
|
57
|
+
name: "builder-button",
|
|
58
|
+
components: { DynamicRenderer },
|
|
59
|
+
props: [
|
|
60
|
+
"link",
|
|
61
|
+
"builderLinkComponent",
|
|
62
|
+
"attributes",
|
|
63
|
+
"openLinkInNewTab",
|
|
64
|
+
"text"
|
|
65
|
+
],
|
|
66
|
+
data() {
|
|
67
|
+
return { getClassPropName, filterAttrs };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
25
70
|
function _sfc_render$i(e, t, n, o, r, i) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
71
|
+
const s = resolveComponent("dynamic-renderer");
|
|
72
|
+
return openBlock(), createBlock(s, {
|
|
73
|
+
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
74
|
+
attributes: {
|
|
75
|
+
...e.filterAttrs(e.attributes, "v-on:", !1),
|
|
76
|
+
[e.getClassPropName()]: `${e.link ? "" : "builder-button"} ${e.attributes[e.getClassPropName()] || ""}`,
|
|
77
|
+
...e.link ? {
|
|
78
|
+
href: e.link,
|
|
79
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
80
|
+
role: "link"
|
|
81
|
+
} : {
|
|
82
|
+
role: "button"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createTextVNode(toDisplayString(e.text), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["TagName", "attributes", "actionAttributes"]);
|
|
37
92
|
}
|
|
38
93
|
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), key$1 = Symbol(), BuilderContext = {
|
|
39
94
|
Builder: {
|
|
@@ -63,7 +118,7 @@ function getBlockComponentOptions(e) {
|
|
|
63
118
|
builderBlock: e
|
|
64
119
|
};
|
|
65
120
|
}
|
|
66
|
-
const
|
|
121
|
+
const MSG_PREFIX = "[Builder.io]: ", logger = {
|
|
67
122
|
log: (...e) => console.log(MSG_PREFIX, ...e),
|
|
68
123
|
error: (...e) => console.error(MSG_PREFIX, ...e),
|
|
69
124
|
warn: (...e) => console.warn(MSG_PREFIX, ...e),
|
|
@@ -143,7 +198,7 @@ const getLocation = () => {
|
|
|
143
198
|
event: o,
|
|
144
199
|
state: flattenState(s, r, i)
|
|
145
200
|
});
|
|
146
|
-
return new Function(...a.map(([
|
|
201
|
+
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
147
202
|
};
|
|
148
203
|
function flattenState(e, t, n) {
|
|
149
204
|
if (e === t)
|
|
@@ -233,17 +288,17 @@ output;
|
|
|
233
288
|
const a = fastClone({
|
|
234
289
|
...s,
|
|
235
290
|
...r
|
|
236
|
-
}),
|
|
291
|
+
}), l = getFunctionArguments({
|
|
237
292
|
builder: t,
|
|
238
293
|
context: n,
|
|
239
294
|
event: o,
|
|
240
295
|
state: a
|
|
241
|
-
}),
|
|
296
|
+
}), c = getIsolateContext(), d = c.global;
|
|
242
297
|
d.setSync("global", d.derefInto()), d.setSync("log", function(...m) {
|
|
243
298
|
console.log(...m);
|
|
244
299
|
}), d.setSync(BUILDER_SET_STATE_NAME, function(m, f) {
|
|
245
300
|
set(s, m, f), i == null || i(s);
|
|
246
|
-
}),
|
|
301
|
+
}), l.forEach(([m, f]) => {
|
|
247
302
|
const b = typeof f == "object" ? new ivm.Reference(
|
|
248
303
|
m === "builder" ? {
|
|
249
304
|
...f,
|
|
@@ -252,14 +307,14 @@ output;
|
|
|
252
307
|
) : null;
|
|
253
308
|
d.setSync(getSyncValName(m), b);
|
|
254
309
|
}), d.setSync(INJECTED_IVM_GLOBAL, ivm);
|
|
255
|
-
const
|
|
310
|
+
const p = processCode({
|
|
256
311
|
code: e,
|
|
257
|
-
args:
|
|
258
|
-
}),
|
|
312
|
+
args: l
|
|
313
|
+
}), u = c.evalSync(p);
|
|
259
314
|
try {
|
|
260
|
-
return JSON.parse(
|
|
315
|
+
return JSON.parse(u);
|
|
261
316
|
} catch {
|
|
262
|
-
return
|
|
317
|
+
return u;
|
|
263
318
|
}
|
|
264
319
|
}, chooseBrowserOrServerEval = (e) => isBrowser() ? runInBrowser(e) : runInNode(e);
|
|
265
320
|
function evaluate({
|
|
@@ -288,8 +343,8 @@ function evaluate({
|
|
|
288
343
|
};
|
|
289
344
|
try {
|
|
290
345
|
return chooseBrowserOrServerEval(a);
|
|
291
|
-
} catch (
|
|
292
|
-
logger.error("Failed code evaluation: " +
|
|
346
|
+
} catch (l) {
|
|
347
|
+
logger.error("Failed code evaluation: " + l.message, {
|
|
293
348
|
code: e
|
|
294
349
|
});
|
|
295
350
|
return;
|
|
@@ -317,14 +372,14 @@ const evaluateBindings = ({
|
|
|
317
372
|
}
|
|
318
373
|
};
|
|
319
374
|
for (const a in e.bindings) {
|
|
320
|
-
const
|
|
321
|
-
code:
|
|
375
|
+
const l = e.bindings[a], c = evaluate({
|
|
376
|
+
code: l,
|
|
322
377
|
localState: n,
|
|
323
378
|
rootState: o,
|
|
324
379
|
rootSetState: r,
|
|
325
380
|
context: t
|
|
326
381
|
});
|
|
327
|
-
set(s, a,
|
|
382
|
+
set(s, a, c);
|
|
328
383
|
}
|
|
329
384
|
return s;
|
|
330
385
|
};
|
|
@@ -345,6 +400,48 @@ function getProcessedBlock({
|
|
|
345
400
|
context: t
|
|
346
401
|
}) : s;
|
|
347
402
|
}
|
|
403
|
+
const camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), checkIsDefined = (e) => e != null, convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
|
|
404
|
+
if (typeof o == "string")
|
|
405
|
+
return `${camelToKebabCase(n)}: ${o};`;
|
|
406
|
+
}).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
|
|
407
|
+
`), createCssClass = ({
|
|
408
|
+
mediaQuery: e,
|
|
409
|
+
className: t,
|
|
410
|
+
styles: n
|
|
411
|
+
}) => {
|
|
412
|
+
const o = `.${t} {
|
|
413
|
+
${convertStyleMapToCSS(n)}
|
|
414
|
+
}`;
|
|
415
|
+
return e ? `${e} {
|
|
416
|
+
${o}
|
|
417
|
+
}` : o;
|
|
418
|
+
};
|
|
419
|
+
function transformStyleProperty({
|
|
420
|
+
style: e
|
|
421
|
+
}) {
|
|
422
|
+
return e;
|
|
423
|
+
}
|
|
424
|
+
const getStyle = ({
|
|
425
|
+
block: e,
|
|
426
|
+
context: t
|
|
427
|
+
}) => mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
428
|
+
style: e.style || {},
|
|
429
|
+
context: t,
|
|
430
|
+
block: e
|
|
431
|
+
}));
|
|
432
|
+
function mapStyleObjToStrIfNeeded(e) {
|
|
433
|
+
switch (TARGET) {
|
|
434
|
+
case "svelte":
|
|
435
|
+
case "vue":
|
|
436
|
+
case "solid":
|
|
437
|
+
return convertStyleMapToCSSArray(e).join(" ");
|
|
438
|
+
case "qwik":
|
|
439
|
+
case "reactNative":
|
|
440
|
+
case "react":
|
|
441
|
+
case "rsc":
|
|
442
|
+
return e;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
348
445
|
const getComponent = ({
|
|
349
446
|
block: e,
|
|
350
447
|
context: t,
|
|
@@ -387,35 +484,35 @@ const getComponent = ({
|
|
|
387
484
|
if (!Array.isArray(r))
|
|
388
485
|
return;
|
|
389
486
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
390
|
-
return r.map((
|
|
487
|
+
return r.map((l, c) => ({
|
|
391
488
|
context: {
|
|
392
489
|
...t,
|
|
393
490
|
localState: {
|
|
394
491
|
...t.localState,
|
|
395
|
-
$index:
|
|
396
|
-
$item:
|
|
397
|
-
[s]:
|
|
398
|
-
[`$${s}Index`]:
|
|
492
|
+
$index: c,
|
|
493
|
+
$item: l,
|
|
494
|
+
[s]: l,
|
|
495
|
+
[`$${s}Index`]: c
|
|
399
496
|
}
|
|
400
497
|
},
|
|
401
498
|
block: o
|
|
402
499
|
}));
|
|
403
|
-
}, BlockStyles = () => import("./block-styles.
|
|
500
|
+
}, BlockStyles = () => import("./block-styles.bb5f14b0.js").then((e) => e.default).catch((e) => {
|
|
404
501
|
throw console.error(
|
|
405
502
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
406
503
|
e
|
|
407
504
|
), e;
|
|
408
|
-
}), BlockWrapper = () => import("./block-wrapper.
|
|
505
|
+
}), BlockWrapper = () => import("./block-wrapper.7aa2ef9c.js").then((e) => e.default).catch((e) => {
|
|
409
506
|
throw console.error(
|
|
410
507
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
411
508
|
e
|
|
412
509
|
), e;
|
|
413
|
-
}), ComponentRef = () => import("./component-ref.
|
|
510
|
+
}), ComponentRef = () => import("./component-ref.32bc874a.js").then((e) => e.default).catch((e) => {
|
|
414
511
|
throw console.error(
|
|
415
512
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
416
513
|
e
|
|
417
514
|
), e;
|
|
418
|
-
}), RepeatedBlock = () => import("./repeated-block.
|
|
515
|
+
}), RepeatedBlock = () => import("./repeated-block.05cbf677.js").then((e) => e.default).catch((e) => {
|
|
419
516
|
throw console.error(
|
|
420
517
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
421
518
|
e
|
|
@@ -428,7 +525,7 @@ const getComponent = ({
|
|
|
428
525
|
RepeatedBlock: defineAsyncComponent(RepeatedBlock),
|
|
429
526
|
BlockWrapper: defineAsyncComponent(BlockWrapper)
|
|
430
527
|
},
|
|
431
|
-
props: ["block", "context", "registeredComponents"],
|
|
528
|
+
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
432
529
|
data() {
|
|
433
530
|
return { childrenContext: this.context };
|
|
434
531
|
},
|
|
@@ -458,7 +555,8 @@ const getComponent = ({
|
|
|
458
555
|
});
|
|
459
556
|
},
|
|
460
557
|
Tag() {
|
|
461
|
-
|
|
558
|
+
var t;
|
|
559
|
+
return this.block.tagName === "a" || ((t = this.processedBlock.properties) == null ? void 0 : t.href) || this.processedBlock.href ? this.linkComponent || "a" : this.block.tagName || "div";
|
|
462
560
|
},
|
|
463
561
|
canShowBlock() {
|
|
464
562
|
var n, o;
|
|
@@ -472,55 +570,62 @@ const getComponent = ({
|
|
|
472
570
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
473
571
|
},
|
|
474
572
|
componentRefProps() {
|
|
475
|
-
var e, t, n, o, r, i;
|
|
573
|
+
var e, t, n, o, r, i, s, a, l;
|
|
476
574
|
return {
|
|
477
575
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
478
576
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
479
577
|
componentOptions: {
|
|
480
578
|
...getBlockComponentOptions(this.processedBlock),
|
|
481
579
|
builderContext: this.context,
|
|
482
|
-
...((n = this.blockComponent) == null ? void 0 : n.name) === "
|
|
580
|
+
...((n = this.blockComponent) == null ? void 0 : n.name) === "Core:Button" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" ? {
|
|
581
|
+
builderLinkComponent: this.linkComponent
|
|
582
|
+
} : {},
|
|
583
|
+
...((i = this.blockComponent) == null ? void 0 : i.name) === "Symbol" || ((s = this.blockComponent) == null ? void 0 : s.name) === "Columns" ? {
|
|
483
584
|
builderComponents: this.registeredComponents
|
|
484
585
|
} : {}
|
|
485
586
|
},
|
|
486
587
|
context: this.childrenContext,
|
|
588
|
+
linkComponent: this.linkComponent,
|
|
487
589
|
registeredComponents: this.registeredComponents,
|
|
488
590
|
builderBlock: this.processedBlock,
|
|
489
|
-
includeBlockProps: ((
|
|
490
|
-
isInteractive: !((
|
|
591
|
+
includeBlockProps: ((a = this.blockComponent) == null ? void 0 : a.noWrap) === !0,
|
|
592
|
+
isInteractive: !((l = this.blockComponent) != null && l.isRSC)
|
|
491
593
|
};
|
|
492
594
|
}
|
|
493
595
|
}
|
|
494
596
|
});
|
|
495
597
|
function _sfc_render$h(e, t, n, o, r, i) {
|
|
496
|
-
var
|
|
497
|
-
const s = resolveComponent("block-styles"), a = resolveComponent("component-ref"),
|
|
598
|
+
var p;
|
|
599
|
+
const s = resolveComponent("block-styles"), a = resolveComponent("component-ref"), l = resolveComponent("block", !0), c = resolveComponent("block-wrapper"), d = resolveComponent("repeated-block");
|
|
498
600
|
return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
499
601
|
createVNode(s, {
|
|
500
602
|
block: e.block,
|
|
501
603
|
context: e.context
|
|
502
604
|
}, null, 8, ["block", "context"]),
|
|
503
|
-
(
|
|
605
|
+
(p = e.blockComponent) != null && p.noWrap ? (openBlock(), createBlock(a, {
|
|
504
606
|
key: 1,
|
|
505
607
|
componentRef: e.componentRefProps.componentRef,
|
|
506
608
|
componentOptions: e.componentRefProps.componentOptions,
|
|
507
609
|
blockChildren: e.componentRefProps.blockChildren,
|
|
508
610
|
context: e.componentRefProps.context,
|
|
509
611
|
registeredComponents: e.componentRefProps.registeredComponents,
|
|
612
|
+
linkComponent: e.componentRefProps.linkComponent,
|
|
510
613
|
builderBlock: e.componentRefProps.builderBlock,
|
|
511
614
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
512
615
|
isInteractive: e.componentRefProps.isInteractive
|
|
513
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
514
|
-
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (
|
|
616
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
617
|
+
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (u, m) => (openBlock(), createBlock(d, {
|
|
515
618
|
key: m,
|
|
516
|
-
repeatContext:
|
|
517
|
-
block:
|
|
518
|
-
registeredComponents: e.registeredComponents
|
|
519
|
-
|
|
619
|
+
repeatContext: u.context,
|
|
620
|
+
block: u.block,
|
|
621
|
+
registeredComponents: e.registeredComponents,
|
|
622
|
+
linkComponent: e.linkComponent
|
|
623
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(c, {
|
|
520
624
|
key: 0,
|
|
521
625
|
Wrapper: e.Tag,
|
|
522
626
|
block: e.processedBlock,
|
|
523
|
-
context: e.context
|
|
627
|
+
context: e.context,
|
|
628
|
+
linkComponent: e.linkComponent
|
|
524
629
|
}, {
|
|
525
630
|
default: withCtx(() => [
|
|
526
631
|
createVNode(a, {
|
|
@@ -529,19 +634,21 @@ function _sfc_render$h(e, t, n, o, r, i) {
|
|
|
529
634
|
blockChildren: e.componentRefProps.blockChildren,
|
|
530
635
|
context: e.componentRefProps.context,
|
|
531
636
|
registeredComponents: e.componentRefProps.registeredComponents,
|
|
637
|
+
linkComponent: e.componentRefProps.linkComponent,
|
|
532
638
|
builderBlock: e.componentRefProps.builderBlock,
|
|
533
639
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
534
640
|
isInteractive: e.componentRefProps.isInteractive
|
|
535
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
536
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (
|
|
537
|
-
key:
|
|
538
|
-
block:
|
|
641
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
642
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (u, m) => (openBlock(), createBlock(l, {
|
|
643
|
+
key: u.id,
|
|
644
|
+
block: u,
|
|
539
645
|
context: e.childrenContext,
|
|
540
|
-
registeredComponents: e.registeredComponents
|
|
541
|
-
|
|
646
|
+
registeredComponents: e.registeredComponents,
|
|
647
|
+
linkComponent: e.linkComponent
|
|
648
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
542
649
|
]),
|
|
543
650
|
_: 1
|
|
544
|
-
}, 8, ["Wrapper", "block", "context"]))
|
|
651
|
+
}, 8, ["Wrapper", "block", "context", "linkComponent"]))
|
|
545
652
|
], 64))
|
|
546
653
|
], 64)) : createCommentVNode("v-if", !0);
|
|
547
654
|
}
|
|
@@ -618,6 +725,7 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_
|
|
|
618
725
|
"path",
|
|
619
726
|
"styleProp",
|
|
620
727
|
"context",
|
|
728
|
+
"linkComponent",
|
|
621
729
|
"registeredComponents"
|
|
622
730
|
],
|
|
623
731
|
inject: {
|
|
@@ -626,23 +734,24 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_
|
|
|
626
734
|
}
|
|
627
735
|
});
|
|
628
736
|
function _sfc_render$f(e, t, n, o, r, i) {
|
|
629
|
-
var
|
|
737
|
+
var l, c;
|
|
630
738
|
const s = resolveComponent("block"), a = resolveComponent("blocks-wrapper");
|
|
631
739
|
return openBlock(), createBlock(a, {
|
|
632
740
|
blocks: e.blocks,
|
|
633
741
|
parent: e.parent,
|
|
634
742
|
path: e.path,
|
|
635
743
|
styleProp: e.styleProp,
|
|
636
|
-
BlocksWrapper: (
|
|
637
|
-
BlocksWrapperProps: (
|
|
744
|
+
BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
|
|
745
|
+
BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
|
|
638
746
|
}, {
|
|
639
747
|
default: withCtx(() => [
|
|
640
|
-
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (d,
|
|
748
|
+
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (d, p) => (openBlock(), createBlock(s, {
|
|
641
749
|
key: d.id,
|
|
642
750
|
block: d,
|
|
751
|
+
linkComponent: e.linkComponent,
|
|
643
752
|
context: e.context || e.builderContext,
|
|
644
753
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
645
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0)
|
|
754
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0)
|
|
646
755
|
]),
|
|
647
756
|
_: 1
|
|
648
757
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
@@ -696,7 +805,11 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
696
805
|
}, n;
|
|
697
806
|
}, _sfc_main$f = defineComponent({
|
|
698
807
|
name: "builder-columns",
|
|
699
|
-
components: {
|
|
808
|
+
components: {
|
|
809
|
+
InlinedStyles,
|
|
810
|
+
DynamicRenderer,
|
|
811
|
+
Blocks
|
|
812
|
+
},
|
|
700
813
|
props: [
|
|
701
814
|
"js",
|
|
702
815
|
"space",
|
|
@@ -705,6 +818,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
705
818
|
"reverseColumnsWhenStacked",
|
|
706
819
|
"builderContext",
|
|
707
820
|
"builderBlock",
|
|
821
|
+
"builderLinkComponent",
|
|
708
822
|
"builderComponents"
|
|
709
823
|
],
|
|
710
824
|
data() {
|
|
@@ -713,7 +827,9 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
713
827
|
cols: this.columns || [],
|
|
714
828
|
stackAt: this.stackColumnsAt || "tablet",
|
|
715
829
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
716
|
-
TARGET
|
|
830
|
+
TARGET,
|
|
831
|
+
getClassPropName,
|
|
832
|
+
mapStyleObjToStrIfNeeded
|
|
717
833
|
};
|
|
718
834
|
},
|
|
719
835
|
computed: {
|
|
@@ -778,6 +894,11 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
778
894
|
columnCssVars(e) {
|
|
779
895
|
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
|
|
780
896
|
return {
|
|
897
|
+
...{
|
|
898
|
+
display: "flex",
|
|
899
|
+
flexDirection: "column",
|
|
900
|
+
alignItems: "stretch"
|
|
901
|
+
},
|
|
781
902
|
width: n,
|
|
782
903
|
["margin-left"]: o,
|
|
783
904
|
"--column-width-mobile": this.getMobileStyle({
|
|
@@ -807,7 +928,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
807
928
|
}
|
|
808
929
|
}), columns_vue_vue_type_style_index_0_scoped_7be099dc_lang = "";
|
|
809
930
|
function _sfc_render$e(e, t, n, o, r, i) {
|
|
810
|
-
const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks");
|
|
931
|
+
const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks"), l = resolveComponent("dynamic-renderer");
|
|
811
932
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
812
933
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
813
934
|
style: e.columnsCssVars
|
|
@@ -816,22 +937,33 @@ function _sfc_render$e(e, t, n, o, r, i) {
|
|
|
816
937
|
key: 0,
|
|
817
938
|
styles: e.columnsStyles
|
|
818
939
|
}, null, 8, ["styles"])) : createCommentVNode("v-if", !0),
|
|
819
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (c,
|
|
820
|
-
key:
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
940
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (c, d) => (openBlock(), createBlock(l, {
|
|
941
|
+
key: d,
|
|
942
|
+
TagName: c.link ? e.builderLinkComponent || "a" : "div",
|
|
943
|
+
actionAttributes: {},
|
|
944
|
+
attributes: {
|
|
945
|
+
...c.link ? {
|
|
946
|
+
href: c.link
|
|
947
|
+
} : {},
|
|
948
|
+
[e.getClassPropName()]: "builder-column",
|
|
949
|
+
style: e.mapStyleObjToStrIfNeeded(e.columnCssVars(d))
|
|
950
|
+
}
|
|
951
|
+
}, {
|
|
952
|
+
default: withCtx(() => [
|
|
953
|
+
createVNode(a, {
|
|
954
|
+
path: `component.options.columns.${d}.blocks`,
|
|
955
|
+
parent: e.builderBlock.id,
|
|
956
|
+
styleProp: {
|
|
957
|
+
flexGrow: "1"
|
|
958
|
+
},
|
|
959
|
+
context: e.builderContext,
|
|
960
|
+
registeredComponents: e.builderComponents,
|
|
961
|
+
linkComponent: e.builderLinkComponent,
|
|
962
|
+
blocks: c.blocks
|
|
963
|
+
}, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
|
|
964
|
+
]),
|
|
965
|
+
_: 2
|
|
966
|
+
}, 1032, ["TagName", "attributes"]))), 128))
|
|
835
967
|
], 16);
|
|
836
968
|
}
|
|
837
969
|
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), _sfc_main$e = defineComponent({
|
|
@@ -923,7 +1055,7 @@ const _sfc_main$d = defineComponent({
|
|
|
923
1055
|
class: "div-1be3j8m9ewb-2"
|
|
924
1056
|
};
|
|
925
1057
|
function _sfc_render$c(e, t, n, o, r, i) {
|
|
926
|
-
var s, a,
|
|
1058
|
+
var s, a, l, c;
|
|
927
1059
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
928
1060
|
createElementVNode("picture", null, [
|
|
929
1061
|
e.webpSrcSet ? (openBlock(), createElementBlock("source", {
|
|
@@ -955,7 +1087,7 @@ function _sfc_render$c(e, t, n, o, r, i) {
|
|
|
955
1087
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
956
1088
|
})
|
|
957
1089
|
}, null, 4)) : createCommentVNode("v-if", !0),
|
|
958
|
-
((
|
|
1090
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? renderSlot(e.$slots, "default", { key: 1 }, void 0, !0) : createCommentVNode("v-if", !0),
|
|
959
1091
|
!e.fitContent && e.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
960
1092
|
renderSlot(e.$slots, "default", {}, void 0, !0)
|
|
961
1093
|
])) : createCommentVNode("v-if", !0)
|
|
@@ -1330,7 +1462,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render
|
|
|
1330
1462
|
});
|
|
1331
1463
|
}
|
|
1332
1464
|
const n = e.get("columns");
|
|
1333
|
-
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((i) => !i.get("width")) || n.reduce((a,
|
|
1465
|
+
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
1334
1466
|
}
|
|
1335
1467
|
}, {
|
|
1336
1468
|
name: "space",
|
|
@@ -1518,15 +1650,15 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9
|
|
|
1518
1650
|
onChange: (e) => {
|
|
1519
1651
|
e.delete("srcset"), e.delete("noWebp");
|
|
1520
1652
|
function n(s, a = 6e4) {
|
|
1521
|
-
return new Promise((
|
|
1653
|
+
return new Promise((l, c) => {
|
|
1522
1654
|
const d = document.createElement("img");
|
|
1523
|
-
let
|
|
1655
|
+
let p = !1;
|
|
1524
1656
|
d.onload = () => {
|
|
1525
|
-
|
|
1526
|
-
}, d.addEventListener("error", (
|
|
1527
|
-
console.warn("Image load failed",
|
|
1657
|
+
p = !0, l(d);
|
|
1658
|
+
}, d.addEventListener("error", (u) => {
|
|
1659
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1528
1660
|
}), d.src = s, setTimeout(() => {
|
|
1529
|
-
|
|
1661
|
+
p || c(new Error("Image load timed out"));
|
|
1530
1662
|
}, a);
|
|
1531
1663
|
});
|
|
1532
1664
|
}
|
|
@@ -1692,7 +1824,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8],
|
|
|
1692
1824
|
props: ["builderContext", "name"]
|
|
1693
1825
|
});
|
|
1694
1826
|
function _sfc_render$7(e, t, n, o, r, i) {
|
|
1695
|
-
var a,
|
|
1827
|
+
var a, l, c;
|
|
1696
1828
|
const s = resolveComponent("blocks");
|
|
1697
1829
|
return openBlock(), createElementBlock("div", mergeProps(
|
|
1698
1830
|
{ style: {
|
|
@@ -1703,10 +1835,10 @@ function _sfc_render$7(e, t, n, o, r, i) {
|
|
|
1703
1835
|
}
|
|
1704
1836
|
), [
|
|
1705
1837
|
createVNode(s, {
|
|
1706
|
-
parent: (
|
|
1838
|
+
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
1707
1839
|
path: `symbol.data.${e.name}`,
|
|
1708
1840
|
context: e.builderContext,
|
|
1709
|
-
blocks: (
|
|
1841
|
+
blocks: (c = e.builderContext.rootState) == null ? void 0 : c[e.name]
|
|
1710
1842
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1711
1843
|
], 16);
|
|
1712
1844
|
}
|
|
@@ -1925,7 +2057,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]
|
|
|
1925
2057
|
}
|
|
1926
2058
|
};
|
|
1927
2059
|
function _sfc_render$5(e, t, n, o, r, i) {
|
|
1928
|
-
var s, a,
|
|
2060
|
+
var s, a, l, c, d, p, u;
|
|
1929
2061
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1930
2062
|
createElementVNode("video", mergeProps({
|
|
1931
2063
|
class: "builder-video",
|
|
@@ -1951,7 +2083,7 @@ function _sfc_render$5(e, t, n, o, r, i) {
|
|
|
1951
2083
|
src: e.video
|
|
1952
2084
|
}, null, 8, _hoisted_3))
|
|
1953
2085
|
], 16, _hoisted_2),
|
|
1954
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
2086
|
+
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length)) ? (openBlock(), createElementBlock("div", {
|
|
1955
2087
|
key: 0,
|
|
1956
2088
|
style: normalizeStyle({
|
|
1957
2089
|
width: "100%",
|
|
@@ -1960,10 +2092,10 @@ function _sfc_render$5(e, t, n, o, r, i) {
|
|
|
1960
2092
|
fontSize: "0px"
|
|
1961
2093
|
})
|
|
1962
2094
|
}, null, 4)) : createCommentVNode("v-if", !0),
|
|
1963
|
-
((d = (
|
|
2095
|
+
((d = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : d.length) && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
1964
2096
|
renderSlot(e.$slots, "default")
|
|
1965
2097
|
])) : createCommentVNode("v-if", !0),
|
|
1966
|
-
((
|
|
2098
|
+
((u = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : u.length) && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1967
2099
|
renderSlot(e.$slots, "default")
|
|
1968
2100
|
])) : createCommentVNode("v-if", !0)
|
|
1969
2101
|
]);
|
|
@@ -2188,29 +2320,29 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2188
2320
|
model: i,
|
|
2189
2321
|
apiKey: s,
|
|
2190
2322
|
includeRefs: a = !0,
|
|
2191
|
-
enrich:
|
|
2192
|
-
locale:
|
|
2323
|
+
enrich: l,
|
|
2324
|
+
locale: c,
|
|
2193
2325
|
apiVersion: d = DEFAULT_API_VERSION,
|
|
2194
|
-
fields:
|
|
2195
|
-
omit:
|
|
2326
|
+
fields: p,
|
|
2327
|
+
omit: u,
|
|
2196
2328
|
offset: m,
|
|
2197
2329
|
cacheSeconds: f,
|
|
2198
2330
|
staleCacheSeconds: b,
|
|
2199
2331
|
sort: y,
|
|
2200
|
-
includeUnpublished:
|
|
2332
|
+
includeUnpublished: S
|
|
2201
2333
|
} = e;
|
|
2202
2334
|
if (!s)
|
|
2203
2335
|
throw new Error("Missing API key");
|
|
2204
2336
|
if (!["v2", "v3"].includes(d))
|
|
2205
2337
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
|
|
2206
2338
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2207
|
-
const g = new URL(`https://cdn.builder.io/api/${d}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${
|
|
2208
|
-
if (g.searchParams.set("omit",
|
|
2339
|
+
const g = new URL(`https://cdn.builder.io/api/${d}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2340
|
+
if (g.searchParams.set("omit", u || "meta.componentsUsed"), p && g.searchParams.set("fields", p), Number.isFinite(m) && m > -1 && g.searchParams.set("offset", String(Math.floor(m))), typeof S == "boolean" && g.searchParams.set("includeUnpublished", String(S)), f && isPositiveNumber(f) && g.searchParams.set("cacheSeconds", String(f)), b && isPositiveNumber(b) && g.searchParams.set("staleCacheSeconds", String(b)), y) {
|
|
2209
2341
|
const k = flatten({
|
|
2210
2342
|
sort: y
|
|
2211
2343
|
});
|
|
2212
|
-
for (const
|
|
2213
|
-
g.searchParams.set(
|
|
2344
|
+
for (const C in k)
|
|
2345
|
+
g.searchParams.set(C, JSON.stringify(k[C]));
|
|
2214
2346
|
}
|
|
2215
2347
|
const I = {
|
|
2216
2348
|
...getBuilderSearchParamsFromWindow(),
|
|
@@ -2222,8 +2354,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2222
2354
|
const k = flatten({
|
|
2223
2355
|
query: r
|
|
2224
2356
|
});
|
|
2225
|
-
for (const
|
|
2226
|
-
g.searchParams.set(
|
|
2357
|
+
for (const C in k)
|
|
2358
|
+
g.searchParams.set(C, JSON.stringify(k[C]));
|
|
2227
2359
|
}
|
|
2228
2360
|
return g;
|
|
2229
2361
|
}, checkContentHasResults = (e) => "results" in e;
|
|
@@ -2458,7 +2590,7 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2458
2590
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2459
2591
|
}
|
|
2460
2592
|
};
|
|
2461
|
-
}, SDK_VERSION = "0.12.
|
|
2593
|
+
}, SDK_VERSION = "0.12.4", registry = {};
|
|
2462
2594
|
function register(e, t) {
|
|
2463
2595
|
let n = registry[e];
|
|
2464
2596
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -2526,33 +2658,33 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2526
2658
|
if (!!(r != null && r.type))
|
|
2527
2659
|
switch (r.type) {
|
|
2528
2660
|
case "builder.evaluate": {
|
|
2529
|
-
const a = r.data.text,
|
|
2530
|
-
let
|
|
2661
|
+
const a = r.data.text, l = r.data.arguments || [], c = r.data.id, d = new Function(a);
|
|
2662
|
+
let p, u = null;
|
|
2531
2663
|
try {
|
|
2532
|
-
|
|
2664
|
+
p = d.apply(null, l);
|
|
2533
2665
|
} catch (m) {
|
|
2534
|
-
|
|
2666
|
+
u = m;
|
|
2535
2667
|
}
|
|
2536
|
-
|
|
2668
|
+
u ? (i = window.parent) == null || i.postMessage({
|
|
2537
2669
|
type: "builder.evaluateError",
|
|
2538
2670
|
data: {
|
|
2539
|
-
id:
|
|
2540
|
-
error:
|
|
2671
|
+
id: c,
|
|
2672
|
+
error: u.message
|
|
2541
2673
|
}
|
|
2542
|
-
}, "*") :
|
|
2674
|
+
}, "*") : p && typeof p.then == "function" ? p.then((m) => {
|
|
2543
2675
|
var f;
|
|
2544
2676
|
(f = window.parent) == null || f.postMessage({
|
|
2545
2677
|
type: "builder.evaluateResult",
|
|
2546
2678
|
data: {
|
|
2547
|
-
id:
|
|
2679
|
+
id: c,
|
|
2548
2680
|
result: m
|
|
2549
2681
|
}
|
|
2550
2682
|
}, "*");
|
|
2551
2683
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
2552
2684
|
type: "builder.evaluateResult",
|
|
2553
2685
|
data: {
|
|
2554
|
-
result:
|
|
2555
|
-
id:
|
|
2686
|
+
result: p,
|
|
2687
|
+
id: c
|
|
2556
2688
|
}
|
|
2557
2689
|
}, "*");
|
|
2558
2690
|
break;
|
|
@@ -2879,16 +3011,16 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2879
3011
|
}
|
|
2880
3012
|
});
|
|
2881
3013
|
function _sfc_render$4(e, t, n, o, r, i) {
|
|
2882
|
-
var s, a,
|
|
3014
|
+
var s, a, l;
|
|
2883
3015
|
return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
|
|
2884
3016
|
key: e.forceReRenderCount,
|
|
2885
3017
|
ref: "elementRef",
|
|
2886
|
-
onClick: (
|
|
3018
|
+
onClick: (c) => e.onClick(c),
|
|
2887
3019
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
2888
3020
|
"builder-model": e.model,
|
|
2889
|
-
class: `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((
|
|
2890
|
-
onIniteditingbldr: (
|
|
2891
|
-
onInitpreviewingbldr: (
|
|
3021
|
+
class: `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)}`,
|
|
3022
|
+
onIniteditingbldr: (c) => e.elementRef_onIniteditingbldr(c),
|
|
3023
|
+
onInitpreviewingbldr: (c) => e.elementRef_onInitpreviewingbldr(c)
|
|
2892
3024
|
}, {
|
|
2893
3025
|
...e.showContent ? {} : {
|
|
2894
3026
|
hidden: !0,
|
|
@@ -2917,11 +3049,11 @@ font-weight: 400;
|
|
|
2917
3049
|
for (const a in e.files) {
|
|
2918
3050
|
if (!(String(Number(a)) === a))
|
|
2919
3051
|
continue;
|
|
2920
|
-
const
|
|
2921
|
-
|
|
3052
|
+
const c = e.files[a];
|
|
3053
|
+
c && c !== o && (r += `
|
|
2922
3054
|
@font-face {
|
|
2923
3055
|
font-family: "${t}";
|
|
2924
|
-
src: url('${
|
|
3056
|
+
src: url('${c}') format('woff2');
|
|
2925
3057
|
font-display: fallback;
|
|
2926
3058
|
font-weight: ${a};
|
|
2927
3059
|
}
|
|
@@ -2982,8 +3114,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
2982
3114
|
}) => {
|
|
2983
3115
|
var i, s, a;
|
|
2984
3116
|
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
2985
|
-
return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((
|
|
2986
|
-
|
|
3117
|
+
return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
|
|
3118
|
+
l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
|
|
2987
3119
|
}), {
|
|
2988
3120
|
...o,
|
|
2989
3121
|
...r,
|
|
@@ -3027,6 +3159,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
3027
3159
|
"showContent",
|
|
3028
3160
|
"contentWrapper",
|
|
3029
3161
|
"contentWrapperProps",
|
|
3162
|
+
"linkComponent",
|
|
3030
3163
|
"trustedHosts",
|
|
3031
3164
|
"isSsrAbTest"
|
|
3032
3165
|
],
|
|
@@ -3099,8 +3232,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
3099
3232
|
}
|
|
3100
3233
|
});
|
|
3101
3234
|
function _sfc_render$2(e, t, n, o, r, i) {
|
|
3102
|
-
const s = resolveComponent("inlined-script"), a = resolveComponent("content-styles"),
|
|
3103
|
-
return openBlock(), createBlock(
|
|
3235
|
+
const s = resolveComponent("inlined-script"), a = resolveComponent("content-styles"), l = resolveComponent("blocks"), c = resolveComponent("enable-editor");
|
|
3236
|
+
return openBlock(), createBlock(c, mergeProps({
|
|
3104
3237
|
content: e.content,
|
|
3105
3238
|
data: e.data,
|
|
3106
3239
|
model: e.model,
|
|
@@ -3114,10 +3247,11 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3114
3247
|
builderContextSignal: e.builderContextSignal,
|
|
3115
3248
|
contentWrapper: e.contentWrapper,
|
|
3116
3249
|
contentWrapperProps: e.contentWrapperProps,
|
|
3250
|
+
linkComponent: e.linkComponent,
|
|
3117
3251
|
trustedHosts: e.trustedHosts
|
|
3118
3252
|
}, {}), {
|
|
3119
3253
|
default: withCtx(() => {
|
|
3120
|
-
var d,
|
|
3254
|
+
var d, p, u, m, f, b, y;
|
|
3121
3255
|
return [
|
|
3122
3256
|
e.isSsrAbTest ? (openBlock(), createBlock(s, {
|
|
3123
3257
|
key: 0,
|
|
@@ -3126,18 +3260,19 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3126
3260
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
|
|
3127
3261
|
key: 1,
|
|
3128
3262
|
contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
|
|
3129
|
-
cssCode: (
|
|
3263
|
+
cssCode: (u = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : u.cssCode,
|
|
3130
3264
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
3131
3265
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : createCommentVNode("v-if", !0),
|
|
3132
|
-
createVNode(
|
|
3266
|
+
createVNode(l, {
|
|
3133
3267
|
blocks: (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.blocks,
|
|
3134
3268
|
context: e.builderContextSignal,
|
|
3135
|
-
registeredComponents: e.registeredComponents
|
|
3136
|
-
|
|
3269
|
+
registeredComponents: e.registeredComponents,
|
|
3270
|
+
linkComponent: e.linkComponent
|
|
3271
|
+
}, null, 8, ["blocks", "context", "registeredComponents", "linkComponent"])
|
|
3137
3272
|
];
|
|
3138
3273
|
}),
|
|
3139
3274
|
_: 1
|
|
3140
|
-
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
3275
|
+
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
3141
3276
|
}
|
|
3142
3277
|
const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), _sfc_main$1 = defineComponent({
|
|
3143
3278
|
name: "content-variants",
|
|
@@ -3156,6 +3291,7 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
3156
3291
|
"apiKey",
|
|
3157
3292
|
"apiVersion",
|
|
3158
3293
|
"customComponents",
|
|
3294
|
+
"linkComponent",
|
|
3159
3295
|
"locale",
|
|
3160
3296
|
"includeRefs",
|
|
3161
3297
|
"enrich",
|
|
@@ -3206,8 +3342,8 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
3206
3342
|
}
|
|
3207
3343
|
});
|
|
3208
3344
|
function _sfc_render$1(e, t, n, o, r, i) {
|
|
3209
|
-
var
|
|
3210
|
-
const s = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"),
|
|
3345
|
+
var c;
|
|
3346
|
+
const s = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), l = resolveComponent("content-component");
|
|
3211
3347
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
3212
3348
|
!e.__isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
|
|
3213
3349
|
key: 0,
|
|
@@ -3215,11 +3351,11 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3215
3351
|
}, null, 8, ["scriptStr"])) : createCommentVNode("v-if", !0),
|
|
3216
3352
|
e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
3217
3353
|
createVNode(a, {
|
|
3218
|
-
id: `variants-styles-${(
|
|
3354
|
+
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3219
3355
|
styles: e.hideVariantsStyleString
|
|
3220
3356
|
}, null, 8, ["id", "styles"]),
|
|
3221
3357
|
createVNode(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3222
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d,
|
|
3358
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, p) => (openBlock(), createBlock(l, {
|
|
3223
3359
|
key: d.testVariationId,
|
|
3224
3360
|
content: d,
|
|
3225
3361
|
showContent: !1,
|
|
@@ -3229,6 +3365,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3229
3365
|
apiKey: e.apiKey,
|
|
3230
3366
|
apiVersion: e.apiVersion,
|
|
3231
3367
|
customComponents: e.customComponents,
|
|
3368
|
+
linkComponent: e.linkComponent,
|
|
3232
3369
|
canTrack: e.canTrack,
|
|
3233
3370
|
locale: e.locale,
|
|
3234
3371
|
includeRefs: e.includeRefs,
|
|
@@ -3239,9 +3376,9 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3239
3376
|
contentWrapper: e.contentWrapper,
|
|
3240
3377
|
contentWrapperProps: e.contentWrapperProps,
|
|
3241
3378
|
trustedHosts: e.trustedHosts
|
|
3242
|
-
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
3379
|
+
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
3243
3380
|
], 64)) : createCommentVNode("v-if", !0),
|
|
3244
|
-
createVNode(
|
|
3381
|
+
createVNode(l, mergeProps({
|
|
3245
3382
|
content: e.defaultContent,
|
|
3246
3383
|
showContent: !0,
|
|
3247
3384
|
model: e.model,
|
|
@@ -3250,6 +3387,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3250
3387
|
apiKey: e.apiKey,
|
|
3251
3388
|
apiVersion: e.apiVersion,
|
|
3252
3389
|
customComponents: e.customComponents,
|
|
3390
|
+
linkComponent: e.linkComponent,
|
|
3253
3391
|
canTrack: e.canTrack,
|
|
3254
3392
|
locale: e.locale,
|
|
3255
3393
|
includeRefs: e.includeRefs,
|
|
@@ -3262,7 +3400,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3262
3400
|
trustedHosts: e.trustedHosts
|
|
3263
3401
|
}, {
|
|
3264
3402
|
key: e.shouldRenderVariants.toString()
|
|
3265
|
-
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
3403
|
+
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
3266
3404
|
], 64);
|
|
3267
3405
|
}
|
|
3268
3406
|
const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), fetchSymbolContent = async ({
|
|
@@ -3292,7 +3430,8 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3292
3430
|
"dynamic",
|
|
3293
3431
|
"builderContext",
|
|
3294
3432
|
"builderBlock",
|
|
3295
|
-
"builderComponents"
|
|
3433
|
+
"builderComponents",
|
|
3434
|
+
"builderLinkComponent"
|
|
3296
3435
|
],
|
|
3297
3436
|
data() {
|
|
3298
3437
|
var e;
|
|
@@ -3313,7 +3452,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3313
3452
|
className() {
|
|
3314
3453
|
var e, t;
|
|
3315
3454
|
return [
|
|
3316
|
-
this.attributes
|
|
3455
|
+
this.attributes[getClassPropName()],
|
|
3317
3456
|
"builder-symbol",
|
|
3318
3457
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
3319
3458
|
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3337,7 +3476,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3337
3476
|
}
|
|
3338
3477
|
});
|
|
3339
3478
|
function _sfc_render(e, t, n, o, r, i) {
|
|
3340
|
-
var a,
|
|
3479
|
+
var a, l, c, d, p;
|
|
3341
3480
|
const s = resolveComponent("content-variants");
|
|
3342
3481
|
return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3343
3482
|
createVNode(s, {
|
|
@@ -3350,13 +3489,14 @@ function _sfc_render(e, t, n, o, r, i) {
|
|
|
3350
3489
|
},
|
|
3351
3490
|
customComponents: Object.values(e.builderComponents),
|
|
3352
3491
|
data: {
|
|
3353
|
-
...(
|
|
3492
|
+
...(l = e.symbol) == null ? void 0 : l.data,
|
|
3354
3493
|
...e.builderContext.localState,
|
|
3355
|
-
...(d = (
|
|
3494
|
+
...(d = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : d.state
|
|
3356
3495
|
},
|
|
3357
|
-
model: (
|
|
3358
|
-
content: e.contentToUse
|
|
3359
|
-
|
|
3496
|
+
model: (p = e.symbol) == null ? void 0 : p.model,
|
|
3497
|
+
content: e.contentToUse,
|
|
3498
|
+
linkComponent: e.builderLinkComponent
|
|
3499
|
+
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
3360
3500
|
], 16);
|
|
3361
3501
|
}
|
|
3362
3502
|
const Symbol$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), RenderBlocks = Blocks, RenderContent = Content, settings = {};
|
|
@@ -3391,41 +3531,45 @@ const fetchBuilderProps = async (e) => {
|
|
|
3391
3531
|
};
|
|
3392
3532
|
};
|
|
3393
3533
|
export {
|
|
3394
|
-
|
|
3534
|
+
getContent as A,
|
|
3395
3535
|
Block as B,
|
|
3396
3536
|
Content as C,
|
|
3397
|
-
|
|
3537
|
+
getBuilderSearchParams as D,
|
|
3538
|
+
track as E,
|
|
3398
3539
|
Fragment as F,
|
|
3540
|
+
fetchBuilderProps as G,
|
|
3541
|
+
dynamicRenderer as H,
|
|
3399
3542
|
InlinedStyles as I,
|
|
3543
|
+
block as J,
|
|
3400
3544
|
RenderBlocks as R,
|
|
3401
3545
|
Section as S,
|
|
3402
3546
|
TARGET as T,
|
|
3403
3547
|
Video as V,
|
|
3404
3548
|
_export_sfc as _,
|
|
3405
3549
|
getSizesForBreakpoints as a,
|
|
3406
|
-
|
|
3550
|
+
createCssClass as b,
|
|
3407
3551
|
checkIsDefined as c,
|
|
3408
|
-
|
|
3552
|
+
getMaxWidthQueryForSize as d,
|
|
3409
3553
|
evaluate as e,
|
|
3410
|
-
|
|
3554
|
+
getStyle as f,
|
|
3411
3555
|
getProcessedBlock as g,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3556
|
+
getClassPropName as h,
|
|
3557
|
+
BuilderContext as i,
|
|
3558
|
+
Blocks as j,
|
|
3559
|
+
RenderContent as k,
|
|
3560
|
+
Button as l,
|
|
3561
|
+
Columns as m,
|
|
3562
|
+
Image as n,
|
|
3563
|
+
Symbol$1 as o,
|
|
3564
|
+
Text as p,
|
|
3565
|
+
isEditing as q,
|
|
3566
|
+
isPreviewing as r,
|
|
3567
|
+
createRegisterComponentMessage as s,
|
|
3568
|
+
register as t,
|
|
3569
|
+
setEditorSettings as u,
|
|
3570
|
+
_processContentResult as v,
|
|
3427
3571
|
wrapComponentRef as w,
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3572
|
+
fetchEntries as x,
|
|
3573
|
+
fetchOneEntry as y,
|
|
3574
|
+
getAllContent as z
|
|
3431
3575
|
};
|