@builder.io/sdk-vue 0.12.2 → 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.a1440ad7.js → browser/block-styles.53c7f508.js} +5 -5
- package/lib/browser/block-wrapper.9fa9b402.cjs +1 -0
- package/lib/{edge/block-wrapper.efc7d98a.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.a9dd871c.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.b532efb7.js → index.125c730f.js} +786 -638
- 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.eada5366.js → edge/block-styles.fee0d2aa.js} +11 -13
- package/lib/{browser/block-wrapper.9b2bed3c.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.bcafb710.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.ffc9a7bc.js → index.0e671c32.js} +1545 -1397
- 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.090029ef.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.136d6f08.js → block-styles.bb5f14b0.js} +11 -12
- package/lib/node/block-styles.c9083d49.cjs +1 -0
- package/lib/node/{block-wrapper.18e00652.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.c1216d72.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.36c2b72c.js → index.0d7a2ca2.js} +333 -184
- 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.76e01443.cjs +0 -1
- package/lib/browser/block-wrapper.24b79ff8.cjs +0 -1
- package/lib/browser/component-ref.00682bcb.cjs +0 -1
- package/lib/browser/css.58041866.js +0 -22
- package/lib/browser/css.93429f3b.cjs +0 -6
- package/lib/browser/dynamic-renderer.587b2b22.cjs +0 -1
- package/lib/browser/dynamic-renderer.807ec99c.js +0 -29
- package/lib/browser/get-block-actions.3853c568.cjs +0 -1
- package/lib/browser/get-block-actions.7be7f916.js +0 -76
- package/lib/browser/index.8583dad3.cjs +0 -156
- package/lib/browser/repeated-block.569f57e3.cjs +0 -1
- package/lib/browser/repeated-block.b3746f1a.js +0 -34
- package/lib/edge/block-styles.f491edc2.cjs +0 -1
- package/lib/edge/block-wrapper.555f21dd.cjs +0 -1
- package/lib/edge/component-ref.100a10a4.cjs +0 -1
- package/lib/edge/css.0b928f4c.js +0 -21
- package/lib/edge/css.d6d697ec.cjs +0 -6
- package/lib/edge/dynamic-renderer.1a8c0430.js +0 -28
- package/lib/edge/dynamic-renderer.b95a1057.cjs +0 -1
- package/lib/edge/get-block-actions.34ceb0fb.cjs +0 -1
- package/lib/edge/get-block-actions.6f8ccd3c.js +0 -75
- package/lib/edge/index.332c4c68.cjs +0 -176
- package/lib/edge/repeated-block.cefa0bf6.cjs +0 -1
- package/lib/node/block-styles.589566b1.cjs +0 -1
- package/lib/node/block-wrapper.831b0d92.cjs +0 -1
- package/lib/node/component-ref.c4fd0511.cjs +0 -1
- package/lib/node/css.1037a3f7.cjs +0 -6
- package/lib/node/css.dd54b8f6.js +0 -21
- package/lib/node/dynamic-renderer.92a2f84d.cjs +0 -1
- package/lib/node/dynamic-renderer.d189611e.js +0 -29
- package/lib/node/get-block-actions.64593134.js +0 -75
- package/lib/node/get-block-actions.a79e1825.cjs +0 -1
- package/lib/node/index.c18f2b9a.cjs +0 -196
- package/lib/node/repeated-block.4e2006fc.cjs +0 -1
- package/lib/node/repeated-block.98cf3e1d.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,31 +11,86 @@ 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
|
-
|
|
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"]);
|
|
36
92
|
}
|
|
37
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$i], ["
|
|
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 = {
|
|
38
94
|
Builder: {
|
|
39
95
|
content: null,
|
|
40
96
|
context: {},
|
|
@@ -62,7 +118,7 @@ function getBlockComponentOptions(e) {
|
|
|
62
118
|
builderBlock: e
|
|
63
119
|
};
|
|
64
120
|
}
|
|
65
|
-
const
|
|
121
|
+
const MSG_PREFIX = "[Builder.io]: ", logger = {
|
|
66
122
|
log: (...e) => console.log(MSG_PREFIX, ...e),
|
|
67
123
|
error: (...e) => console.error(MSG_PREFIX, ...e),
|
|
68
124
|
warn: (...e) => console.warn(MSG_PREFIX, ...e),
|
|
@@ -142,7 +198,7 @@ const getLocation = () => {
|
|
|
142
198
|
event: o,
|
|
143
199
|
state: flattenState(s, r, i)
|
|
144
200
|
});
|
|
145
|
-
return new Function(...a.map(([
|
|
201
|
+
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
146
202
|
};
|
|
147
203
|
function flattenState(e, t, n) {
|
|
148
204
|
if (e === t)
|
|
@@ -232,17 +288,17 @@ output;
|
|
|
232
288
|
const a = fastClone({
|
|
233
289
|
...s,
|
|
234
290
|
...r
|
|
235
|
-
}),
|
|
291
|
+
}), l = getFunctionArguments({
|
|
236
292
|
builder: t,
|
|
237
293
|
context: n,
|
|
238
294
|
event: o,
|
|
239
295
|
state: a
|
|
240
|
-
}),
|
|
296
|
+
}), c = getIsolateContext(), d = c.global;
|
|
241
297
|
d.setSync("global", d.derefInto()), d.setSync("log", function(...m) {
|
|
242
298
|
console.log(...m);
|
|
243
299
|
}), d.setSync(BUILDER_SET_STATE_NAME, function(m, f) {
|
|
244
300
|
set(s, m, f), i == null || i(s);
|
|
245
|
-
}),
|
|
301
|
+
}), l.forEach(([m, f]) => {
|
|
246
302
|
const b = typeof f == "object" ? new ivm.Reference(
|
|
247
303
|
m === "builder" ? {
|
|
248
304
|
...f,
|
|
@@ -251,14 +307,14 @@ output;
|
|
|
251
307
|
) : null;
|
|
252
308
|
d.setSync(getSyncValName(m), b);
|
|
253
309
|
}), d.setSync(INJECTED_IVM_GLOBAL, ivm);
|
|
254
|
-
const
|
|
310
|
+
const p = processCode({
|
|
255
311
|
code: e,
|
|
256
|
-
args:
|
|
257
|
-
}),
|
|
312
|
+
args: l
|
|
313
|
+
}), u = c.evalSync(p);
|
|
258
314
|
try {
|
|
259
|
-
return JSON.parse(
|
|
315
|
+
return JSON.parse(u);
|
|
260
316
|
} catch {
|
|
261
|
-
return
|
|
317
|
+
return u;
|
|
262
318
|
}
|
|
263
319
|
}, chooseBrowserOrServerEval = (e) => isBrowser() ? runInBrowser(e) : runInNode(e);
|
|
264
320
|
function evaluate({
|
|
@@ -287,8 +343,8 @@ function evaluate({
|
|
|
287
343
|
};
|
|
288
344
|
try {
|
|
289
345
|
return chooseBrowserOrServerEval(a);
|
|
290
|
-
} catch (
|
|
291
|
-
logger.error("Failed code evaluation: " +
|
|
346
|
+
} catch (l) {
|
|
347
|
+
logger.error("Failed code evaluation: " + l.message, {
|
|
292
348
|
code: e
|
|
293
349
|
});
|
|
294
350
|
return;
|
|
@@ -316,14 +372,14 @@ const evaluateBindings = ({
|
|
|
316
372
|
}
|
|
317
373
|
};
|
|
318
374
|
for (const a in e.bindings) {
|
|
319
|
-
const
|
|
320
|
-
code:
|
|
375
|
+
const l = e.bindings[a], c = evaluate({
|
|
376
|
+
code: l,
|
|
321
377
|
localState: n,
|
|
322
378
|
rootState: o,
|
|
323
379
|
rootSetState: r,
|
|
324
380
|
context: t
|
|
325
381
|
});
|
|
326
|
-
set(s, a,
|
|
382
|
+
set(s, a, c);
|
|
327
383
|
}
|
|
328
384
|
return s;
|
|
329
385
|
};
|
|
@@ -344,6 +400,48 @@ function getProcessedBlock({
|
|
|
344
400
|
context: t
|
|
345
401
|
}) : s;
|
|
346
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
|
+
}
|
|
347
445
|
const getComponent = ({
|
|
348
446
|
block: e,
|
|
349
447
|
context: t,
|
|
@@ -386,35 +484,35 @@ const getComponent = ({
|
|
|
386
484
|
if (!Array.isArray(r))
|
|
387
485
|
return;
|
|
388
486
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
389
|
-
return r.map((
|
|
487
|
+
return r.map((l, c) => ({
|
|
390
488
|
context: {
|
|
391
489
|
...t,
|
|
392
490
|
localState: {
|
|
393
491
|
...t.localState,
|
|
394
|
-
$index:
|
|
395
|
-
$item:
|
|
396
|
-
[s]:
|
|
397
|
-
[`$${s}Index`]:
|
|
492
|
+
$index: c,
|
|
493
|
+
$item: l,
|
|
494
|
+
[s]: l,
|
|
495
|
+
[`$${s}Index`]: c
|
|
398
496
|
}
|
|
399
497
|
},
|
|
400
498
|
block: o
|
|
401
499
|
}));
|
|
402
|
-
}, BlockStyles = () => import("./block-styles.
|
|
500
|
+
}, BlockStyles = () => import("./block-styles.bb5f14b0.js").then((e) => e.default).catch((e) => {
|
|
403
501
|
throw console.error(
|
|
404
502
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
405
503
|
e
|
|
406
504
|
), e;
|
|
407
|
-
}), BlockWrapper = () => import("./block-wrapper.
|
|
505
|
+
}), BlockWrapper = () => import("./block-wrapper.7aa2ef9c.js").then((e) => e.default).catch((e) => {
|
|
408
506
|
throw console.error(
|
|
409
507
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
410
508
|
e
|
|
411
509
|
), e;
|
|
412
|
-
}), ComponentRef = () => import("./component-ref.
|
|
510
|
+
}), ComponentRef = () => import("./component-ref.32bc874a.js").then((e) => e.default).catch((e) => {
|
|
413
511
|
throw console.error(
|
|
414
512
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
415
513
|
e
|
|
416
514
|
), e;
|
|
417
|
-
}), RepeatedBlock = () => import("./repeated-block.
|
|
515
|
+
}), RepeatedBlock = () => import("./repeated-block.05cbf677.js").then((e) => e.default).catch((e) => {
|
|
418
516
|
throw console.error(
|
|
419
517
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
420
518
|
e
|
|
@@ -427,7 +525,7 @@ const getComponent = ({
|
|
|
427
525
|
RepeatedBlock: defineAsyncComponent(RepeatedBlock),
|
|
428
526
|
BlockWrapper: defineAsyncComponent(BlockWrapper)
|
|
429
527
|
},
|
|
430
|
-
props: ["block", "context", "registeredComponents"],
|
|
528
|
+
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
431
529
|
data() {
|
|
432
530
|
return { childrenContext: this.context };
|
|
433
531
|
},
|
|
@@ -457,7 +555,8 @@ const getComponent = ({
|
|
|
457
555
|
});
|
|
458
556
|
},
|
|
459
557
|
Tag() {
|
|
460
|
-
|
|
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";
|
|
461
560
|
},
|
|
462
561
|
canShowBlock() {
|
|
463
562
|
var n, o;
|
|
@@ -471,55 +570,62 @@ const getComponent = ({
|
|
|
471
570
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
472
571
|
},
|
|
473
572
|
componentRefProps() {
|
|
474
|
-
var e, t, n, o, r, i;
|
|
573
|
+
var e, t, n, o, r, i, s, a, l;
|
|
475
574
|
return {
|
|
476
575
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
477
576
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
478
577
|
componentOptions: {
|
|
479
578
|
...getBlockComponentOptions(this.processedBlock),
|
|
480
579
|
builderContext: this.context,
|
|
481
|
-
...((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" ? {
|
|
482
584
|
builderComponents: this.registeredComponents
|
|
483
585
|
} : {}
|
|
484
586
|
},
|
|
485
587
|
context: this.childrenContext,
|
|
588
|
+
linkComponent: this.linkComponent,
|
|
486
589
|
registeredComponents: this.registeredComponents,
|
|
487
590
|
builderBlock: this.processedBlock,
|
|
488
|
-
includeBlockProps: ((
|
|
489
|
-
isInteractive: !((
|
|
591
|
+
includeBlockProps: ((a = this.blockComponent) == null ? void 0 : a.noWrap) === !0,
|
|
592
|
+
isInteractive: !((l = this.blockComponent) != null && l.isRSC)
|
|
490
593
|
};
|
|
491
594
|
}
|
|
492
595
|
}
|
|
493
596
|
});
|
|
494
597
|
function _sfc_render$h(e, t, n, o, r, i) {
|
|
495
|
-
var
|
|
496
|
-
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");
|
|
497
600
|
return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
498
601
|
createVNode(s, {
|
|
499
602
|
block: e.block,
|
|
500
603
|
context: e.context
|
|
501
604
|
}, null, 8, ["block", "context"]),
|
|
502
|
-
(
|
|
605
|
+
(p = e.blockComponent) != null && p.noWrap ? (openBlock(), createBlock(a, {
|
|
503
606
|
key: 1,
|
|
504
607
|
componentRef: e.componentRefProps.componentRef,
|
|
505
608
|
componentOptions: e.componentRefProps.componentOptions,
|
|
506
609
|
blockChildren: e.componentRefProps.blockChildren,
|
|
507
610
|
context: e.componentRefProps.context,
|
|
508
611
|
registeredComponents: e.componentRefProps.registeredComponents,
|
|
612
|
+
linkComponent: e.componentRefProps.linkComponent,
|
|
509
613
|
builderBlock: e.componentRefProps.builderBlock,
|
|
510
614
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
511
615
|
isInteractive: e.componentRefProps.isInteractive
|
|
512
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
513
|
-
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, {
|
|
514
618
|
key: m,
|
|
515
|
-
repeatContext:
|
|
516
|
-
block:
|
|
517
|
-
registeredComponents: e.registeredComponents
|
|
518
|
-
|
|
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, {
|
|
519
624
|
key: 0,
|
|
520
625
|
Wrapper: e.Tag,
|
|
521
626
|
block: e.processedBlock,
|
|
522
|
-
context: e.context
|
|
627
|
+
context: e.context,
|
|
628
|
+
linkComponent: e.linkComponent
|
|
523
629
|
}, {
|
|
524
630
|
default: withCtx(() => [
|
|
525
631
|
createVNode(a, {
|
|
@@ -528,19 +634,21 @@ function _sfc_render$h(e, t, n, o, r, i) {
|
|
|
528
634
|
blockChildren: e.componentRefProps.blockChildren,
|
|
529
635
|
context: e.componentRefProps.context,
|
|
530
636
|
registeredComponents: e.componentRefProps.registeredComponents,
|
|
637
|
+
linkComponent: e.componentRefProps.linkComponent,
|
|
531
638
|
builderBlock: e.componentRefProps.builderBlock,
|
|
532
639
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
533
640
|
isInteractive: e.componentRefProps.isInteractive
|
|
534
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
535
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (
|
|
536
|
-
key:
|
|
537
|
-
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,
|
|
538
645
|
context: e.childrenContext,
|
|
539
|
-
registeredComponents: e.registeredComponents
|
|
540
|
-
|
|
646
|
+
registeredComponents: e.registeredComponents,
|
|
647
|
+
linkComponent: e.linkComponent
|
|
648
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
541
649
|
]),
|
|
542
650
|
_: 1
|
|
543
|
-
}, 8, ["Wrapper", "block", "context"]))
|
|
651
|
+
}, 8, ["Wrapper", "block", "context", "linkComponent"]))
|
|
544
652
|
], 64))
|
|
545
653
|
], 64)) : createCommentVNode("v-if", !0);
|
|
546
654
|
}
|
|
@@ -617,6 +725,7 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_
|
|
|
617
725
|
"path",
|
|
618
726
|
"styleProp",
|
|
619
727
|
"context",
|
|
728
|
+
"linkComponent",
|
|
620
729
|
"registeredComponents"
|
|
621
730
|
],
|
|
622
731
|
inject: {
|
|
@@ -625,23 +734,24 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_
|
|
|
625
734
|
}
|
|
626
735
|
});
|
|
627
736
|
function _sfc_render$f(e, t, n, o, r, i) {
|
|
628
|
-
var
|
|
737
|
+
var l, c;
|
|
629
738
|
const s = resolveComponent("block"), a = resolveComponent("blocks-wrapper");
|
|
630
739
|
return openBlock(), createBlock(a, {
|
|
631
740
|
blocks: e.blocks,
|
|
632
741
|
parent: e.parent,
|
|
633
742
|
path: e.path,
|
|
634
743
|
styleProp: e.styleProp,
|
|
635
|
-
BlocksWrapper: (
|
|
636
|
-
BlocksWrapperProps: (
|
|
744
|
+
BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
|
|
745
|
+
BlocksWrapperProps: (c = e.context) == null ? void 0 : c.BlocksWrapperProps
|
|
637
746
|
}, {
|
|
638
747
|
default: withCtx(() => [
|
|
639
|
-
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, {
|
|
640
749
|
key: d.id,
|
|
641
750
|
block: d,
|
|
751
|
+
linkComponent: e.linkComponent,
|
|
642
752
|
context: e.context || e.builderContext,
|
|
643
753
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
644
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0)
|
|
754
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : createCommentVNode("v-if", !0)
|
|
645
755
|
]),
|
|
646
756
|
_: 1
|
|
647
757
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
@@ -695,7 +805,11 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
695
805
|
}, n;
|
|
696
806
|
}, _sfc_main$f = defineComponent({
|
|
697
807
|
name: "builder-columns",
|
|
698
|
-
components: {
|
|
808
|
+
components: {
|
|
809
|
+
InlinedStyles,
|
|
810
|
+
DynamicRenderer,
|
|
811
|
+
Blocks
|
|
812
|
+
},
|
|
699
813
|
props: [
|
|
700
814
|
"js",
|
|
701
815
|
"space",
|
|
@@ -704,6 +818,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
704
818
|
"reverseColumnsWhenStacked",
|
|
705
819
|
"builderContext",
|
|
706
820
|
"builderBlock",
|
|
821
|
+
"builderLinkComponent",
|
|
707
822
|
"builderComponents"
|
|
708
823
|
],
|
|
709
824
|
data() {
|
|
@@ -712,7 +827,9 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
712
827
|
cols: this.columns || [],
|
|
713
828
|
stackAt: this.stackColumnsAt || "tablet",
|
|
714
829
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
715
|
-
TARGET
|
|
830
|
+
TARGET,
|
|
831
|
+
getClassPropName,
|
|
832
|
+
mapStyleObjToStrIfNeeded
|
|
716
833
|
};
|
|
717
834
|
},
|
|
718
835
|
computed: {
|
|
@@ -777,6 +894,11 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
777
894
|
columnCssVars(e) {
|
|
778
895
|
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
|
|
779
896
|
return {
|
|
897
|
+
...{
|
|
898
|
+
display: "flex",
|
|
899
|
+
flexDirection: "column",
|
|
900
|
+
alignItems: "stretch"
|
|
901
|
+
},
|
|
780
902
|
width: n,
|
|
781
903
|
["margin-left"]: o,
|
|
782
904
|
"--column-width-mobile": this.getMobileStyle({
|
|
@@ -806,7 +928,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$
|
|
|
806
928
|
}
|
|
807
929
|
}), columns_vue_vue_type_style_index_0_scoped_7be099dc_lang = "";
|
|
808
930
|
function _sfc_render$e(e, t, n, o, r, i) {
|
|
809
|
-
const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks");
|
|
931
|
+
const s = resolveComponent("inlined-styles"), a = resolveComponent("blocks"), l = resolveComponent("dynamic-renderer");
|
|
810
932
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
811
933
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
812
934
|
style: e.columnsCssVars
|
|
@@ -815,22 +937,33 @@ function _sfc_render$e(e, t, n, o, r, i) {
|
|
|
815
937
|
key: 0,
|
|
816
938
|
styles: e.columnsStyles
|
|
817
939
|
}, null, 8, ["styles"])) : createCommentVNode("v-if", !0),
|
|
818
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (c,
|
|
819
|
-
key:
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
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))
|
|
834
967
|
], 16);
|
|
835
968
|
}
|
|
836
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({
|
|
@@ -922,7 +1055,7 @@ const _sfc_main$d = defineComponent({
|
|
|
922
1055
|
class: "div-1be3j8m9ewb-2"
|
|
923
1056
|
};
|
|
924
1057
|
function _sfc_render$c(e, t, n, o, r, i) {
|
|
925
|
-
var s, a,
|
|
1058
|
+
var s, a, l, c;
|
|
926
1059
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
927
1060
|
createElementVNode("picture", null, [
|
|
928
1061
|
e.webpSrcSet ? (openBlock(), createElementBlock("source", {
|
|
@@ -954,7 +1087,7 @@ function _sfc_render$c(e, t, n, o, r, i) {
|
|
|
954
1087
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
955
1088
|
})
|
|
956
1089
|
}, null, 4)) : createCommentVNode("v-if", !0),
|
|
957
|
-
((
|
|
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),
|
|
958
1091
|
!e.fitContent && e.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
959
1092
|
renderSlot(e.$slots, "default", {}, void 0, !0)
|
|
960
1093
|
])) : createCommentVNode("v-if", !0)
|
|
@@ -1329,7 +1462,7 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render
|
|
|
1329
1462
|
});
|
|
1330
1463
|
}
|
|
1331
1464
|
const n = e.get("columns");
|
|
1332
|
-
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();
|
|
1333
1466
|
}
|
|
1334
1467
|
}, {
|
|
1335
1468
|
name: "space",
|
|
@@ -1517,15 +1650,15 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9
|
|
|
1517
1650
|
onChange: (e) => {
|
|
1518
1651
|
e.delete("srcset"), e.delete("noWebp");
|
|
1519
1652
|
function n(s, a = 6e4) {
|
|
1520
|
-
return new Promise((
|
|
1653
|
+
return new Promise((l, c) => {
|
|
1521
1654
|
const d = document.createElement("img");
|
|
1522
|
-
let
|
|
1655
|
+
let p = !1;
|
|
1523
1656
|
d.onload = () => {
|
|
1524
|
-
|
|
1525
|
-
}, d.addEventListener("error", (
|
|
1526
|
-
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);
|
|
1527
1660
|
}), d.src = s, setTimeout(() => {
|
|
1528
|
-
|
|
1661
|
+
p || c(new Error("Image load timed out"));
|
|
1529
1662
|
}, a);
|
|
1530
1663
|
});
|
|
1531
1664
|
}
|
|
@@ -1691,7 +1824,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8],
|
|
|
1691
1824
|
props: ["builderContext", "name"]
|
|
1692
1825
|
});
|
|
1693
1826
|
function _sfc_render$7(e, t, n, o, r, i) {
|
|
1694
|
-
var a,
|
|
1827
|
+
var a, l, c;
|
|
1695
1828
|
const s = resolveComponent("blocks");
|
|
1696
1829
|
return openBlock(), createElementBlock("div", mergeProps(
|
|
1697
1830
|
{ style: {
|
|
@@ -1702,10 +1835,10 @@ function _sfc_render$7(e, t, n, o, r, i) {
|
|
|
1702
1835
|
}
|
|
1703
1836
|
), [
|
|
1704
1837
|
createVNode(s, {
|
|
1705
|
-
parent: (
|
|
1838
|
+
parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
|
|
1706
1839
|
path: `symbol.data.${e.name}`,
|
|
1707
1840
|
context: e.builderContext,
|
|
1708
|
-
blocks: (
|
|
1841
|
+
blocks: (c = e.builderContext.rootState) == null ? void 0 : c[e.name]
|
|
1709
1842
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1710
1843
|
], 16);
|
|
1711
1844
|
}
|
|
@@ -1924,7 +2057,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]
|
|
|
1924
2057
|
}
|
|
1925
2058
|
};
|
|
1926
2059
|
function _sfc_render$5(e, t, n, o, r, i) {
|
|
1927
|
-
var s, a,
|
|
2060
|
+
var s, a, l, c, d, p, u;
|
|
1928
2061
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1929
2062
|
createElementVNode("video", mergeProps({
|
|
1930
2063
|
class: "builder-video",
|
|
@@ -1950,7 +2083,7 @@ function _sfc_render$5(e, t, n, o, r, i) {
|
|
|
1950
2083
|
src: e.video
|
|
1951
2084
|
}, null, 8, _hoisted_3))
|
|
1952
2085
|
], 16, _hoisted_2),
|
|
1953
|
-
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", {
|
|
1954
2087
|
key: 0,
|
|
1955
2088
|
style: normalizeStyle({
|
|
1956
2089
|
width: "100%",
|
|
@@ -1959,10 +2092,10 @@ function _sfc_render$5(e, t, n, o, r, i) {
|
|
|
1959
2092
|
fontSize: "0px"
|
|
1960
2093
|
})
|
|
1961
2094
|
}, null, 4)) : createCommentVNode("v-if", !0),
|
|
1962
|
-
((d = (
|
|
2095
|
+
((d = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : d.length) && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
1963
2096
|
renderSlot(e.$slots, "default")
|
|
1964
2097
|
])) : createCommentVNode("v-if", !0),
|
|
1965
|
-
((
|
|
2098
|
+
((u = (p = e.builderBlock) == null ? void 0 : p.children) == null ? void 0 : u.length) && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1966
2099
|
renderSlot(e.$slots, "default")
|
|
1967
2100
|
])) : createCommentVNode("v-if", !0)
|
|
1968
2101
|
]);
|
|
@@ -2187,29 +2320,29 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2187
2320
|
model: i,
|
|
2188
2321
|
apiKey: s,
|
|
2189
2322
|
includeRefs: a = !0,
|
|
2190
|
-
enrich:
|
|
2191
|
-
locale:
|
|
2323
|
+
enrich: l,
|
|
2324
|
+
locale: c,
|
|
2192
2325
|
apiVersion: d = DEFAULT_API_VERSION,
|
|
2193
|
-
fields:
|
|
2194
|
-
omit:
|
|
2326
|
+
fields: p,
|
|
2327
|
+
omit: u,
|
|
2195
2328
|
offset: m,
|
|
2196
2329
|
cacheSeconds: f,
|
|
2197
2330
|
staleCacheSeconds: b,
|
|
2198
2331
|
sort: y,
|
|
2199
|
-
includeUnpublished:
|
|
2332
|
+
includeUnpublished: S
|
|
2200
2333
|
} = e;
|
|
2201
2334
|
if (!s)
|
|
2202
2335
|
throw new Error("Missing API key");
|
|
2203
2336
|
if (!["v2", "v3"].includes(d))
|
|
2204
2337
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
|
|
2205
2338
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2206
|
-
const g = new URL(`https://cdn.builder.io/api/${d}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${a}${
|
|
2207
|
-
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) {
|
|
2208
2341
|
const k = flatten({
|
|
2209
2342
|
sort: y
|
|
2210
2343
|
});
|
|
2211
|
-
for (const
|
|
2212
|
-
g.searchParams.set(
|
|
2344
|
+
for (const C in k)
|
|
2345
|
+
g.searchParams.set(C, JSON.stringify(k[C]));
|
|
2213
2346
|
}
|
|
2214
2347
|
const I = {
|
|
2215
2348
|
...getBuilderSearchParamsFromWindow(),
|
|
@@ -2221,8 +2354,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
2221
2354
|
const k = flatten({
|
|
2222
2355
|
query: r
|
|
2223
2356
|
});
|
|
2224
|
-
for (const
|
|
2225
|
-
g.searchParams.set(
|
|
2357
|
+
for (const C in k)
|
|
2358
|
+
g.searchParams.set(C, JSON.stringify(k[C]));
|
|
2226
2359
|
}
|
|
2227
2360
|
return g;
|
|
2228
2361
|
}, checkContentHasResults = (e) => "results" in e;
|
|
@@ -2457,7 +2590,7 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2457
2590
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2458
2591
|
}
|
|
2459
2592
|
};
|
|
2460
|
-
}, SDK_VERSION = "0.12.
|
|
2593
|
+
}, SDK_VERSION = "0.12.4", registry = {};
|
|
2461
2594
|
function register(e, t) {
|
|
2462
2595
|
let n = registry[e];
|
|
2463
2596
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -2525,33 +2658,33 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2525
2658
|
if (!!(r != null && r.type))
|
|
2526
2659
|
switch (r.type) {
|
|
2527
2660
|
case "builder.evaluate": {
|
|
2528
|
-
const a = r.data.text,
|
|
2529
|
-
let
|
|
2661
|
+
const a = r.data.text, l = r.data.arguments || [], c = r.data.id, d = new Function(a);
|
|
2662
|
+
let p, u = null;
|
|
2530
2663
|
try {
|
|
2531
|
-
|
|
2664
|
+
p = d.apply(null, l);
|
|
2532
2665
|
} catch (m) {
|
|
2533
|
-
|
|
2666
|
+
u = m;
|
|
2534
2667
|
}
|
|
2535
|
-
|
|
2668
|
+
u ? (i = window.parent) == null || i.postMessage({
|
|
2536
2669
|
type: "builder.evaluateError",
|
|
2537
2670
|
data: {
|
|
2538
|
-
id:
|
|
2539
|
-
error:
|
|
2671
|
+
id: c,
|
|
2672
|
+
error: u.message
|
|
2540
2673
|
}
|
|
2541
|
-
}, "*") :
|
|
2674
|
+
}, "*") : p && typeof p.then == "function" ? p.then((m) => {
|
|
2542
2675
|
var f;
|
|
2543
2676
|
(f = window.parent) == null || f.postMessage({
|
|
2544
2677
|
type: "builder.evaluateResult",
|
|
2545
2678
|
data: {
|
|
2546
|
-
id:
|
|
2679
|
+
id: c,
|
|
2547
2680
|
result: m
|
|
2548
2681
|
}
|
|
2549
2682
|
}, "*");
|
|
2550
2683
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
2551
2684
|
type: "builder.evaluateResult",
|
|
2552
2685
|
data: {
|
|
2553
|
-
result:
|
|
2554
|
-
id:
|
|
2686
|
+
result: p,
|
|
2687
|
+
id: c
|
|
2555
2688
|
}
|
|
2556
2689
|
}, "*");
|
|
2557
2690
|
break;
|
|
@@ -2878,16 +3011,16 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
2878
3011
|
}
|
|
2879
3012
|
});
|
|
2880
3013
|
function _sfc_render$4(e, t, n, o, r, i) {
|
|
2881
|
-
var s, a,
|
|
3014
|
+
var s, a, l;
|
|
2882
3015
|
return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
|
|
2883
3016
|
key: e.forceReRenderCount,
|
|
2884
3017
|
ref: "elementRef",
|
|
2885
|
-
onClick: (
|
|
3018
|
+
onClick: (c) => e.onClick(c),
|
|
2886
3019
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
2887
3020
|
"builder-model": e.model,
|
|
2888
|
-
class: `variant-${((a = e.content) == null ? void 0 : a.testVariationId) || ((
|
|
2889
|
-
onIniteditingbldr: (
|
|
2890
|
-
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)
|
|
2891
3024
|
}, {
|
|
2892
3025
|
...e.showContent ? {} : {
|
|
2893
3026
|
hidden: !0,
|
|
@@ -2916,11 +3049,11 @@ font-weight: 400;
|
|
|
2916
3049
|
for (const a in e.files) {
|
|
2917
3050
|
if (!(String(Number(a)) === a))
|
|
2918
3051
|
continue;
|
|
2919
|
-
const
|
|
2920
|
-
|
|
3052
|
+
const c = e.files[a];
|
|
3053
|
+
c && c !== o && (r += `
|
|
2921
3054
|
@font-face {
|
|
2922
3055
|
font-family: "${t}";
|
|
2923
|
-
src: url('${
|
|
3056
|
+
src: url('${c}') format('woff2');
|
|
2924
3057
|
font-display: fallback;
|
|
2925
3058
|
font-weight: ${a};
|
|
2926
3059
|
}
|
|
@@ -2950,6 +3083,10 @@ ${getFontCss({
|
|
|
2950
3083
|
customFonts: this.customFonts
|
|
2951
3084
|
})}
|
|
2952
3085
|
|
|
3086
|
+
.builder-button {
|
|
3087
|
+
all: unset;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
2953
3090
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2954
3091
|
margin: 0;
|
|
2955
3092
|
}
|
|
@@ -2977,8 +3114,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
2977
3114
|
}) => {
|
|
2978
3115
|
var i, s, a;
|
|
2979
3116
|
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
2980
|
-
return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((
|
|
2981
|
-
|
|
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);
|
|
2982
3119
|
}), {
|
|
2983
3120
|
...o,
|
|
2984
3121
|
...r,
|
|
@@ -3022,6 +3159,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
3022
3159
|
"showContent",
|
|
3023
3160
|
"contentWrapper",
|
|
3024
3161
|
"contentWrapperProps",
|
|
3162
|
+
"linkComponent",
|
|
3025
3163
|
"trustedHosts",
|
|
3026
3164
|
"isSsrAbTest"
|
|
3027
3165
|
],
|
|
@@ -3094,8 +3232,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
|
|
|
3094
3232
|
}
|
|
3095
3233
|
});
|
|
3096
3234
|
function _sfc_render$2(e, t, n, o, r, i) {
|
|
3097
|
-
const s = resolveComponent("inlined-script"), a = resolveComponent("content-styles"),
|
|
3098
|
-
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({
|
|
3099
3237
|
content: e.content,
|
|
3100
3238
|
data: e.data,
|
|
3101
3239
|
model: e.model,
|
|
@@ -3109,10 +3247,11 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3109
3247
|
builderContextSignal: e.builderContextSignal,
|
|
3110
3248
|
contentWrapper: e.contentWrapper,
|
|
3111
3249
|
contentWrapperProps: e.contentWrapperProps,
|
|
3250
|
+
linkComponent: e.linkComponent,
|
|
3112
3251
|
trustedHosts: e.trustedHosts
|
|
3113
3252
|
}, {}), {
|
|
3114
3253
|
default: withCtx(() => {
|
|
3115
|
-
var d,
|
|
3254
|
+
var d, p, u, m, f, b, y;
|
|
3116
3255
|
return [
|
|
3117
3256
|
e.isSsrAbTest ? (openBlock(), createBlock(s, {
|
|
3118
3257
|
key: 0,
|
|
@@ -3121,18 +3260,19 @@ function _sfc_render$2(e, t, n, o, r, i) {
|
|
|
3121
3260
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
|
|
3122
3261
|
key: 1,
|
|
3123
3262
|
contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
|
|
3124
|
-
cssCode: (
|
|
3263
|
+
cssCode: (u = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : u.cssCode,
|
|
3125
3264
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
3126
3265
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : createCommentVNode("v-if", !0),
|
|
3127
|
-
createVNode(
|
|
3266
|
+
createVNode(l, {
|
|
3128
3267
|
blocks: (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.blocks,
|
|
3129
3268
|
context: e.builderContextSignal,
|
|
3130
|
-
registeredComponents: e.registeredComponents
|
|
3131
|
-
|
|
3269
|
+
registeredComponents: e.registeredComponents,
|
|
3270
|
+
linkComponent: e.linkComponent
|
|
3271
|
+
}, null, 8, ["blocks", "context", "registeredComponents", "linkComponent"])
|
|
3132
3272
|
];
|
|
3133
3273
|
}),
|
|
3134
3274
|
_: 1
|
|
3135
|
-
}, 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"]);
|
|
3136
3276
|
}
|
|
3137
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({
|
|
3138
3278
|
name: "content-variants",
|
|
@@ -3151,6 +3291,7 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
3151
3291
|
"apiKey",
|
|
3152
3292
|
"apiVersion",
|
|
3153
3293
|
"customComponents",
|
|
3294
|
+
"linkComponent",
|
|
3154
3295
|
"locale",
|
|
3155
3296
|
"includeRefs",
|
|
3156
3297
|
"enrich",
|
|
@@ -3201,8 +3342,8 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
3201
3342
|
}
|
|
3202
3343
|
});
|
|
3203
3344
|
function _sfc_render$1(e, t, n, o, r, i) {
|
|
3204
|
-
var
|
|
3205
|
-
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");
|
|
3206
3347
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
3207
3348
|
!e.__isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
|
|
3208
3349
|
key: 0,
|
|
@@ -3210,11 +3351,11 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3210
3351
|
}, null, 8, ["scriptStr"])) : createCommentVNode("v-if", !0),
|
|
3211
3352
|
e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
3212
3353
|
createVNode(a, {
|
|
3213
|
-
id: `variants-styles-${(
|
|
3354
|
+
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3214
3355
|
styles: e.hideVariantsStyleString
|
|
3215
3356
|
}, null, 8, ["id", "styles"]),
|
|
3216
3357
|
createVNode(s, { scriptStr: e.updateCookieAndStylesScriptStr }, null, 8, ["scriptStr"]),
|
|
3217
|
-
(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, {
|
|
3218
3359
|
key: d.testVariationId,
|
|
3219
3360
|
content: d,
|
|
3220
3361
|
showContent: !1,
|
|
@@ -3224,6 +3365,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3224
3365
|
apiKey: e.apiKey,
|
|
3225
3366
|
apiVersion: e.apiVersion,
|
|
3226
3367
|
customComponents: e.customComponents,
|
|
3368
|
+
linkComponent: e.linkComponent,
|
|
3227
3369
|
canTrack: e.canTrack,
|
|
3228
3370
|
locale: e.locale,
|
|
3229
3371
|
includeRefs: e.includeRefs,
|
|
@@ -3234,9 +3376,9 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3234
3376
|
contentWrapper: e.contentWrapper,
|
|
3235
3377
|
contentWrapperProps: e.contentWrapperProps,
|
|
3236
3378
|
trustedHosts: e.trustedHosts
|
|
3237
|
-
}, 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))
|
|
3238
3380
|
], 64)) : createCommentVNode("v-if", !0),
|
|
3239
|
-
createVNode(
|
|
3381
|
+
createVNode(l, mergeProps({
|
|
3240
3382
|
content: e.defaultContent,
|
|
3241
3383
|
showContent: !0,
|
|
3242
3384
|
model: e.model,
|
|
@@ -3245,6 +3387,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3245
3387
|
apiKey: e.apiKey,
|
|
3246
3388
|
apiVersion: e.apiVersion,
|
|
3247
3389
|
customComponents: e.customComponents,
|
|
3390
|
+
linkComponent: e.linkComponent,
|
|
3248
3391
|
canTrack: e.canTrack,
|
|
3249
3392
|
locale: e.locale,
|
|
3250
3393
|
includeRefs: e.includeRefs,
|
|
@@ -3257,7 +3400,7 @@ function _sfc_render$1(e, t, n, o, r, i) {
|
|
|
3257
3400
|
trustedHosts: e.trustedHosts
|
|
3258
3401
|
}, {
|
|
3259
3402
|
key: e.shouldRenderVariants.toString()
|
|
3260
|
-
}), 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"])
|
|
3261
3404
|
], 64);
|
|
3262
3405
|
}
|
|
3263
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 ({
|
|
@@ -3287,7 +3430,8 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3287
3430
|
"dynamic",
|
|
3288
3431
|
"builderContext",
|
|
3289
3432
|
"builderBlock",
|
|
3290
|
-
"builderComponents"
|
|
3433
|
+
"builderComponents",
|
|
3434
|
+
"builderLinkComponent"
|
|
3291
3435
|
],
|
|
3292
3436
|
data() {
|
|
3293
3437
|
var e;
|
|
@@ -3308,7 +3452,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3308
3452
|
className() {
|
|
3309
3453
|
var e, t;
|
|
3310
3454
|
return [
|
|
3311
|
-
this.attributes
|
|
3455
|
+
this.attributes[getClassPropName()],
|
|
3312
3456
|
"builder-symbol",
|
|
3313
3457
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
3314
3458
|
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3332,7 +3476,7 @@ const Content = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
|
3332
3476
|
}
|
|
3333
3477
|
});
|
|
3334
3478
|
function _sfc_render(e, t, n, o, r, i) {
|
|
3335
|
-
var a,
|
|
3479
|
+
var a, l, c, d, p;
|
|
3336
3480
|
const s = resolveComponent("content-variants");
|
|
3337
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)), [
|
|
3338
3482
|
createVNode(s, {
|
|
@@ -3345,13 +3489,14 @@ function _sfc_render(e, t, n, o, r, i) {
|
|
|
3345
3489
|
},
|
|
3346
3490
|
customComponents: Object.values(e.builderComponents),
|
|
3347
3491
|
data: {
|
|
3348
|
-
...(
|
|
3492
|
+
...(l = e.symbol) == null ? void 0 : l.data,
|
|
3349
3493
|
...e.builderContext.localState,
|
|
3350
|
-
...(d = (
|
|
3494
|
+
...(d = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : d.state
|
|
3351
3495
|
},
|
|
3352
|
-
model: (
|
|
3353
|
-
content: e.contentToUse
|
|
3354
|
-
|
|
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"])
|
|
3355
3500
|
], 16);
|
|
3356
3501
|
}
|
|
3357
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 = {};
|
|
@@ -3386,41 +3531,45 @@ const fetchBuilderProps = async (e) => {
|
|
|
3386
3531
|
};
|
|
3387
3532
|
};
|
|
3388
3533
|
export {
|
|
3389
|
-
|
|
3534
|
+
getContent as A,
|
|
3390
3535
|
Block as B,
|
|
3391
3536
|
Content as C,
|
|
3392
|
-
|
|
3537
|
+
getBuilderSearchParams as D,
|
|
3538
|
+
track as E,
|
|
3393
3539
|
Fragment as F,
|
|
3540
|
+
fetchBuilderProps as G,
|
|
3541
|
+
dynamicRenderer as H,
|
|
3394
3542
|
InlinedStyles as I,
|
|
3543
|
+
block as J,
|
|
3395
3544
|
RenderBlocks as R,
|
|
3396
3545
|
Section as S,
|
|
3397
3546
|
TARGET as T,
|
|
3398
3547
|
Video as V,
|
|
3399
3548
|
_export_sfc as _,
|
|
3400
3549
|
getSizesForBreakpoints as a,
|
|
3401
|
-
|
|
3550
|
+
createCssClass as b,
|
|
3402
3551
|
checkIsDefined as c,
|
|
3403
|
-
|
|
3552
|
+
getMaxWidthQueryForSize as d,
|
|
3404
3553
|
evaluate as e,
|
|
3405
|
-
|
|
3554
|
+
getStyle as f,
|
|
3406
3555
|
getProcessedBlock as g,
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
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,
|
|
3422
3571
|
wrapComponentRef as w,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3572
|
+
fetchEntries as x,
|
|
3573
|
+
fetchOneEntry as y,
|
|
3574
|
+
getAllContent as z
|
|
3426
3575
|
};
|