@builder.io/sdk-vue 2.0.17 → 2.0.20
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/awaiter-A9QVJBD9.cjs +1 -0
- package/lib/browser/awaiter-jLgWnSTO.js +16 -0
- package/lib/browser/{block-styles-Zh_uY_9J.cjs → block-styles-FLI6qMZg.cjs} +1 -1
- package/lib/browser/{block-styles-XATffH3k.js → block-styles-McsYN1Hd.js} +1 -1
- package/lib/browser/{block-wrapper-qyvezpeU.cjs → block-wrapper-c1TRGGdm.cjs} +1 -1
- package/lib/browser/{block-wrapper-3zieXizb.js → block-wrapper-kIbAHG8K.js} +3 -3
- package/lib/browser/component-ref-VsUS3j2W.js +135 -0
- package/lib/browser/component-ref-t_X6BYoD.cjs +1 -0
- package/lib/browser/components/awaiter.vue.d.ts +2 -0
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/component-reference-types.d.ts +4 -0
- package/lib/browser/context/types.d.ts +2 -1
- package/lib/browser/{get-block-properties-fBYHk4bI.cjs → get-block-properties-Ub4OGrZU.cjs} +1 -1
- package/lib/browser/{get-block-properties-pPWign8y.js → get-block-properties-pnQ6T89t.js} +1 -1
- package/lib/browser/{index-1YjkT_sc.cjs → index-G94Y3yOE.cjs} +3 -3
- package/lib/browser/{index-BOG8Hl1M.js → index-IkCq97zU.js} +15 -15
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-zS917EGl.js → repeated-block-9kzlJZ0z.js} +2 -2
- package/lib/browser/{repeated-block-0DDJP8Gf.cjs → repeated-block-phJGhJDz.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/awaiter-EaEHpSME.js +15 -0
- package/lib/edge/awaiter-qkwHnyG4.cjs +1 -0
- package/lib/edge/{block-styles-XqNJ134U.cjs → block-styles-dBm-UB6s.cjs} +1 -1
- package/lib/edge/{block-styles-42NfQ-QZ.js → block-styles-e5rHDnez.js} +1 -1
- package/lib/edge/{block-wrapper-ir-wF7K0.js → block-wrapper-IsmLQCso.js} +3 -3
- package/lib/edge/{block-wrapper-rnfy_SCM.cjs → block-wrapper-XFAJUGmy.cjs} +1 -1
- package/lib/edge/component-ref-VkKlvDcE.cjs +1 -0
- package/lib/edge/component-ref-mDQskFmn.js +134 -0
- package/lib/edge/components/awaiter.vue.d.ts +2 -0
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/component-reference-types.d.ts +4 -0
- package/lib/edge/context/types.d.ts +2 -1
- package/lib/edge/{get-block-properties-eb2d5_4Q.cjs → get-block-properties-FTpxQBNr.cjs} +1 -1
- package/lib/edge/{get-block-properties-ALNjeTqz.js → get-block-properties-jWWYZFYS.js} +1 -1
- package/lib/edge/{index-v3LhePEX.js → index-a1uEIlXu.js} +15 -15
- package/lib/edge/{index-0XQ5XNP7.cjs → index-wbH9RC9d.cjs} +10 -10
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-npWRvHlT.cjs → edge/repeated-block--9pU5oBU.cjs} +1 -1
- package/lib/edge/{repeated-block-Uq0TRwkZ.js → repeated-block-WbUp3X7n.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/awaiter-bSGzxUtO.js +15 -0
- package/lib/node/awaiter-nnMnOtUG.cjs +1 -0
- package/lib/node/{block-styles-Su4n0sEi.cjs → block-styles-nafXA7XU.cjs} +1 -1
- package/lib/node/{block-styles-vHF5sPG1.js → block-styles-z1hRu_oN.js} +1 -1
- package/lib/node/{block-wrapper-Txf-PVII.cjs → block-wrapper-7Zyz-IHk.cjs} +1 -1
- package/lib/node/{block-wrapper-IDLu_rNS.js → block-wrapper-VbshFnwD.js} +3 -3
- package/lib/node/component-ref-0qWwbS8J.js +134 -0
- package/lib/node/component-ref-pMpl8Ppd.cjs +1 -0
- package/lib/node/components/awaiter.vue.d.ts +2 -0
- package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/component-reference-types.d.ts +4 -0
- package/lib/node/context/types.d.ts +2 -1
- package/lib/node/{get-block-properties-ddqamR0O.cjs → get-block-properties-3bo9EXiT.cjs} +1 -1
- package/lib/node/{get-block-properties-Ofwbz2xI.js → get-block-properties-7k5SVVoM.js} +1 -1
- package/lib/node/{index-3yXRUxo9.js → index-arpbCDNz.js} +15 -15
- package/lib/node/{index-DIvgU3ms.cjs → index-m2Te0zyE.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-e-lz3FXu.js → repeated-block-7xPIdLvm.js} +2 -2
- package/lib/{edge/repeated-block-n_hytrP5.cjs → node/repeated-block-opGUN59c.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/nuxt.js +1 -1
- package/package.json +1 -2
- package/lib/browser/component-ref-7Yms_kIr.cjs +0 -1
- package/lib/browser/component-ref-Y4ahpku0.js +0 -114
- package/lib/edge/component-ref-BZN6oNTF.cjs +0 -1
- package/lib/edge/component-ref-RIUPYjj6.js +0 -113
- package/lib/node/component-ref-UXGJDqnl.js +0 -113
- package/lib/node/component-ref-Wtcz1Bo2.cjs +0 -1
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-wbH9RC9d.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as a, j as t, k as r, C as o, o as i, F as n, I as c, S as g, l, m, V as u, z as d, r as C, y as p, A as B, D as E, u as S, p as f, q as h, s as x, t as b, x as k, v as y } from "./index-
|
|
1
|
+
import { n as a, j as t, k as r, C as o, o as i, F as n, I as c, S as g, l, m, V as u, z as d, r as C, y as p, A as B, D as E, u as S, p as f, q as h, s as x, t as b, x as k, v as y } from "./index-a1uEIlXu.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as BuilderContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-wbH9RC9d.cjs"),r=()=>Promise.resolve().then(()=>require("./index-wbH9RC9d.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,a,m,d){const n=o.resolveComponent("Block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { j as s, e as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { j as s, e as l } from "./index-a1uEIlXu.js";
|
|
3
|
+
const i = () => import("./index-a1uEIlXu.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
1
|
+
.component-1k2igrjdg3x[data-v-162df12b]{display:flex;flex-direction:column;align-items:stretch}.div-4wbls88y960[data-v-adc066fc]{display:flex;line-height:normal}.img-29wpyomtntv[data-v-77f8a6c4]{opacity:1;transition:opacity .2s ease-in-out}.div-29wpyomtntv[data-v-77f8a6c4]{width:100%;pointer-events:none;font-size:0}.div-29wpyomtntv-2[data-v-77f8a6c4]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-3q96myty4lk[data-v-6e18f21b]{padding:10px;color:red;text-align:center}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as t, renderSlot as o } from "vue";
|
|
2
|
+
import { d as r } from "./index-arpbCDNz.js";
|
|
3
|
+
const n = t({
|
|
4
|
+
name: "awaiter",
|
|
5
|
+
props: [],
|
|
6
|
+
mounted() {
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
function a(e, s, p, d, f, c) {
|
|
10
|
+
return o(e.$slots, "default");
|
|
11
|
+
}
|
|
12
|
+
const _ = /* @__PURE__ */ r(n, [["render", a]]);
|
|
13
|
+
export {
|
|
14
|
+
_ as default
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-m2Te0zyE.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,c,i,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),t=require("./index-m2Te0zyE.cjs"),u=require("./should-force-browser-runtime-in-node-cm1lg4FM.cjs"),b=r.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:u.TARGET}},computed:{canShowBlock(){const e=this.block;return u.checkIsDefined(e.hide)?!e.hide:u.checkIsDefined(e.show)?e.show:!0},css(){var p,h,S;const e=this.block,s=e.responsiveStyles,c=this.context.content,a=t.getSizesForBreakpoints(((p=c==null?void 0:c.meta)==null?void 0:p.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const k=i?t.createCssClass({className:n,styles:i}):"",C=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",a)}):"",f=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let y="";if(o){const m=((S=(h=o.steps)==null?void 0:h[1])==null?void 0:S.styles)||{};y=t.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[k,C,f,y].join(" ")}}});function g(e,s,c,a,i,d){const l=r.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(r.openBlock(),r.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):r.createCommentVNode("",!0)}const v=t._export_sfc(b,[["render",g]]);exports.default=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, resolveComponent as g, openBlock as $, createBlock as v, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _, g as T, c as l, a as h, b as w, d as I } from "./index-
|
|
2
|
+
import { _, g as T, c as l, a as h, b as w, d as I } from "./index-arpbCDNz.js";
|
|
3
3
|
import { T as N, d as k } from "./should-force-browser-runtime-in-node-Hy3G5eB4.js";
|
|
4
4
|
const z = C({
|
|
5
5
|
name: "block-styles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-3bo9EXiT.cjs"),n=require("./index-m2Te0zyE.cjs"),c=()=>Promise.resolve().then(()=>require("./index-m2Te0zyE.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { d as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-7k5SVVoM.js";
|
|
3
|
+
import { d as m } from "./index-arpbCDNz.js";
|
|
4
|
+
const d = () => import("./index-arpbCDNz.js").then((e) => e.z).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as P, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, mergeProps as b, normalizeProps as B, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as W } from "vue";
|
|
2
|
+
import { d as h, B as S, w as y } from "./index-arpbCDNz.js";
|
|
3
|
+
import { a as C, g as A } from "./get-block-properties-7k5SVVoM.js";
|
|
4
|
+
const R = () => import("./awaiter-bSGzxUtO.js").then((e) => e.default).catch((e) => {
|
|
5
|
+
throw console.error(
|
|
6
|
+
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
7
|
+
e
|
|
8
|
+
), e;
|
|
9
|
+
}), E = u({
|
|
10
|
+
name: "interactive-element",
|
|
11
|
+
components: { Awaiter: P(R) },
|
|
12
|
+
props: ["includeBlockProps", "block", "context", "Wrapper", "wrapperProps"],
|
|
13
|
+
computed: {
|
|
14
|
+
attributes() {
|
|
15
|
+
return this.includeBlockProps ? {
|
|
16
|
+
...C({
|
|
17
|
+
block: this.block,
|
|
18
|
+
context: this.context
|
|
19
|
+
}),
|
|
20
|
+
...A({
|
|
21
|
+
block: this.block,
|
|
22
|
+
rootState: this.context.rootState,
|
|
23
|
+
rootSetState: this.context.rootSetState,
|
|
24
|
+
localState: this.context.localState,
|
|
25
|
+
context: this.context.context
|
|
26
|
+
})
|
|
27
|
+
} : {};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function I(e, n, s, i, r, c) {
|
|
32
|
+
const t = k("Awaiter");
|
|
33
|
+
return e.Wrapper.load ? (o(), a(t, {
|
|
34
|
+
key: 0,
|
|
35
|
+
load: e.Wrapper.load,
|
|
36
|
+
fallback: e.Wrapper.fallback,
|
|
37
|
+
props: e.wrapperProps,
|
|
38
|
+
attributes: e.attributes
|
|
39
|
+
}, {
|
|
40
|
+
default: l(() => [
|
|
41
|
+
m(e.$slots, "default")
|
|
42
|
+
]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), a(f(e.Wrapper), b({
|
|
45
|
+
key: 1,
|
|
46
|
+
attributes: e.attributes
|
|
47
|
+
}, e.wrapperProps), {
|
|
48
|
+
default: l(() => [
|
|
49
|
+
m(e.$slots, "default")
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16, ["attributes"]));
|
|
53
|
+
}
|
|
54
|
+
const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
55
|
+
componentOptions: e,
|
|
56
|
+
builderBlock: n,
|
|
57
|
+
context: s,
|
|
58
|
+
componentRef: i,
|
|
59
|
+
includeBlockProps: r,
|
|
60
|
+
isInteractive: c,
|
|
61
|
+
contextValue: t
|
|
62
|
+
}) => {
|
|
63
|
+
const p = {
|
|
64
|
+
...e,
|
|
65
|
+
/**
|
|
66
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
67
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
68
|
+
*/
|
|
69
|
+
...r ? {
|
|
70
|
+
attributes: C({
|
|
71
|
+
block: n,
|
|
72
|
+
context: t
|
|
73
|
+
})
|
|
74
|
+
} : {}
|
|
75
|
+
};
|
|
76
|
+
return c ? {
|
|
77
|
+
Wrapper: i,
|
|
78
|
+
block: n,
|
|
79
|
+
context: s,
|
|
80
|
+
wrapperProps: e,
|
|
81
|
+
includeBlockProps: r
|
|
82
|
+
} : p;
|
|
83
|
+
}, V = u({
|
|
84
|
+
name: "component-ref",
|
|
85
|
+
components: { Block: S, InteractiveElement: d },
|
|
86
|
+
props: [
|
|
87
|
+
"isInteractive",
|
|
88
|
+
"componentRef",
|
|
89
|
+
"componentOptions",
|
|
90
|
+
"builderBlock",
|
|
91
|
+
"context",
|
|
92
|
+
"linkComponent",
|
|
93
|
+
"includeBlockProps",
|
|
94
|
+
"blockChildren",
|
|
95
|
+
"registeredComponents"
|
|
96
|
+
],
|
|
97
|
+
data() {
|
|
98
|
+
return {
|
|
99
|
+
Wrapper: this.isInteractive ? y(d) : this.componentRef,
|
|
100
|
+
getWrapperProps: O
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
function z(e, n, s, i, r, c) {
|
|
105
|
+
const t = k("Block");
|
|
106
|
+
return e.componentRef ? (o(), a(f(e.Wrapper), B(b(
|
|
107
|
+
{ key: 0 },
|
|
108
|
+
e.getWrapperProps({
|
|
109
|
+
componentOptions: e.componentOptions,
|
|
110
|
+
builderBlock: e.builderBlock,
|
|
111
|
+
context: e.context,
|
|
112
|
+
componentRef: e.componentRef,
|
|
113
|
+
linkComponent: e.linkComponent,
|
|
114
|
+
includeBlockProps: e.includeBlockProps,
|
|
115
|
+
isInteractive: e.isInteractive,
|
|
116
|
+
contextValue: e.context
|
|
117
|
+
})
|
|
118
|
+
)), {
|
|
119
|
+
default: l(() => [
|
|
120
|
+
(o(!0), g($, null, v(e.blockChildren, (p, w) => (o(), a(t, {
|
|
121
|
+
key: p.id,
|
|
122
|
+
block: p,
|
|
123
|
+
context: e.context,
|
|
124
|
+
registeredComponents: e.registeredComponents,
|
|
125
|
+
linkComponent: e.linkComponent
|
|
126
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 16)) : W("", !0);
|
|
130
|
+
}
|
|
131
|
+
const N = /* @__PURE__ */ h(V, [["render", z]]);
|
|
132
|
+
export {
|
|
133
|
+
N as default
|
|
134
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-m2Te0zyE.cjs"),a=require("./get-block-properties-3bo9EXiT.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-nnMnOtUG.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),d=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["includeBlockProps","block","context","Wrapper","wrapperProps"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function f(e,n,s,l,r,i){const o=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(o,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))}const m=c._export_sfc(d,[["render",f]]),b=({componentOptions:e,builderBlock:n,context:s,componentRef:l,includeBlockProps:r,isInteractive:i,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return i?{Wrapper:l,block:n,context:s,wrapperProps:e,includeBlockProps:r}:p},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function C(e,n,s,l,r,i){const o=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(p,k)=>(t.openBlock(),t.createBlock(o,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const h=c._export_sfc(B,[["render",C]]);exports.default=h;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -13,21 +13,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
context?: any;
|
|
14
14
|
block?: any;
|
|
15
15
|
includeBlockProps?: any;
|
|
16
|
-
wrapperProps?: any;
|
|
17
16
|
Wrapper?: any;
|
|
17
|
+
wrapperProps?: any;
|
|
18
18
|
}>, unknown, unknown, {
|
|
19
19
|
attributes(): {};
|
|
20
20
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
21
21
|
context?: any;
|
|
22
22
|
block?: any;
|
|
23
23
|
includeBlockProps?: any;
|
|
24
|
-
wrapperProps?: any;
|
|
25
24
|
Wrapper?: any;
|
|
25
|
+
wrapperProps?: any;
|
|
26
26
|
}>>>, {
|
|
27
27
|
readonly context?: any;
|
|
28
28
|
readonly block?: any;
|
|
29
29
|
readonly includeBlockProps?: any;
|
|
30
|
-
readonly wrapperProps?: any;
|
|
31
30
|
readonly Wrapper?: any;
|
|
31
|
+
readonly wrapperProps?: any;
|
|
32
32
|
}, {}>;
|
|
33
33
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.20";
|
|
@@ -3,9 +3,10 @@ import type { ApiVersion } from '../types/api-version';
|
|
|
3
3
|
import type { BuilderContent } from '../types/builder-content';
|
|
4
4
|
import type { ComponentInfo } from '../types/components';
|
|
5
5
|
import type { Dictionary, Nullable } from '../types/typescript';
|
|
6
|
+
import type { ComponentReference } from './component-reference-types';
|
|
6
7
|
import type { ExtraContextTypes } from './extra-context-types';
|
|
7
8
|
export type RegisteredComponent = ComponentInfo & {
|
|
8
|
-
component:
|
|
9
|
+
component: ComponentReference;
|
|
9
10
|
};
|
|
10
11
|
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
11
12
|
export type BuilderRenderState = Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./should-force-browser-runtime-in-node-cm1lg4FM.cjs"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node-cm1lg4FM.cjs"),s=require("./index-m2Te0zyE.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(a,e)}return t}function d({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as s } from "./should-force-browser-runtime-in-node-Hy3G5eB4.js";
|
|
2
|
-
import { e as c, f as i, h as l } from "./index-
|
|
2
|
+
import { e as c, f as i, h as l } from "./index-arpbCDNz.js";
|
|
3
3
|
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -570,7 +570,7 @@ function je(e, t) {
|
|
|
570
570
|
const n = new URL(t.origin), o = n.hostname;
|
|
571
571
|
return (e || rn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
572
572
|
}
|
|
573
|
-
const sn = "2.0.
|
|
573
|
+
const sn = "2.0.20", an = () => {
|
|
574
574
|
Ut("insertMenu", {
|
|
575
575
|
name: "_default",
|
|
576
576
|
default: !0,
|
|
@@ -1143,22 +1143,22 @@ const Bn = ({
|
|
|
1143
1143
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1144
1144
|
e
|
|
1145
1145
|
), e;
|
|
1146
|
-
}), Nn = () => import("./block-styles-
|
|
1146
|
+
}), Nn = () => import("./block-styles-z1hRu_oN.js").then((e) => e.default).catch((e) => {
|
|
1147
1147
|
throw console.error(
|
|
1148
1148
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1149
1149
|
e
|
|
1150
1150
|
), e;
|
|
1151
|
-
}), Fn = () => import("./block-wrapper-
|
|
1151
|
+
}), Fn = () => import("./block-wrapper-VbshFnwD.js").then((e) => e.default).catch((e) => {
|
|
1152
1152
|
throw console.error(
|
|
1153
1153
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1154
1154
|
e
|
|
1155
1155
|
), e;
|
|
1156
|
-
}), On = () => import("./component-ref-
|
|
1156
|
+
}), On = () => import("./component-ref-0qWwbS8J.js").then((e) => e.default).catch((e) => {
|
|
1157
1157
|
throw console.error(
|
|
1158
1158
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1159
1159
|
e
|
|
1160
1160
|
), e;
|
|
1161
|
-
}), Dn = () => import("./repeated-block-
|
|
1161
|
+
}), Dn = () => import("./repeated-block-7xPIdLvm.js").then((e) => e.default).catch((e) => {
|
|
1162
1162
|
throw console.error(
|
|
1163
1163
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1164
1164
|
e
|
|
@@ -1374,7 +1374,7 @@ const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.
|
|
|
1374
1374
|
function Hn(e, t, n, o, r, i) {
|
|
1375
1375
|
return c(), g(K(e.BlocksWrapper), S({
|
|
1376
1376
|
ref: "blocksWrapperRef",
|
|
1377
|
-
class: e.className + " component-
|
|
1377
|
+
class: e.className + " component-1k2igrjdg3x",
|
|
1378
1378
|
"builder-path": e.path,
|
|
1379
1379
|
"builder-parent-id": e.parent,
|
|
1380
1380
|
style: e.styleProp,
|
|
@@ -1388,7 +1388,7 @@ function Hn(e, t, n, o, r, i) {
|
|
|
1388
1388
|
_: 3
|
|
1389
1389
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1390
1390
|
}
|
|
1391
|
-
const jn = /* @__PURE__ */ b(Mn, [["render", Hn], ["__scopeId", "data-v-
|
|
1391
|
+
const jn = /* @__PURE__ */ b(Mn, [["render", Hn], ["__scopeId", "data-v-162df12b"]]), Kn = f({
|
|
1392
1392
|
name: "builder-blocks",
|
|
1393
1393
|
components: { BlocksWrapper: jn, Block: ye },
|
|
1394
1394
|
props: [
|
|
@@ -1630,7 +1630,7 @@ function Zn(e, t, n, o, r, i) {
|
|
|
1630
1630
|
var u;
|
|
1631
1631
|
const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
|
|
1632
1632
|
return c(), m("div", S({
|
|
1633
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1633
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1634
1634
|
style: e.columnsCssVars()
|
|
1635
1635
|
}, {}), [
|
|
1636
1636
|
e.TARGET !== "reactNative" ? (c(), g(s, {
|
|
@@ -1662,7 +1662,7 @@ function Zn(e, t, n, o, r, i) {
|
|
|
1662
1662
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1663
1663
|
], 16);
|
|
1664
1664
|
}
|
|
1665
|
-
const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-
|
|
1665
|
+
const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-adc066fc"]]), eo = f({
|
|
1666
1666
|
name: "builder-fragment-component",
|
|
1667
1667
|
props: []
|
|
1668
1668
|
});
|
|
@@ -1755,7 +1755,7 @@ const io = f({
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}), so = ["srcset"], ao = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], lo = {
|
|
1757
1757
|
key: 2,
|
|
1758
|
-
class: "div-
|
|
1758
|
+
class: "div-29wpyomtntv-2"
|
|
1759
1759
|
};
|
|
1760
1760
|
function co(e, t, n, o, r, i) {
|
|
1761
1761
|
var s, l, a, u, h, d;
|
|
@@ -1777,7 +1777,7 @@ function co(e, t, n, o, r, i) {
|
|
|
1777
1777
|
...e.aspectRatioCss
|
|
1778
1778
|
}),
|
|
1779
1779
|
class: J(
|
|
1780
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1780
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1781
1781
|
),
|
|
1782
1782
|
src: e.image,
|
|
1783
1783
|
srcset: e.srcSetToUse,
|
|
@@ -1786,7 +1786,7 @@ function co(e, t, n, o, r, i) {
|
|
|
1786
1786
|
]),
|
|
1787
1787
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
|
|
1788
1788
|
key: 0,
|
|
1789
|
-
class: "builder-image-sizer div-
|
|
1789
|
+
class: "builder-image-sizer div-29wpyomtntv",
|
|
1790
1790
|
style: D({
|
|
1791
1791
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1792
1792
|
})
|
|
@@ -1797,7 +1797,7 @@ function co(e, t, n, o, r, i) {
|
|
|
1797
1797
|
])) : C("", !0)
|
|
1798
1798
|
], 64);
|
|
1799
1799
|
}
|
|
1800
|
-
const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-
|
|
1800
|
+
const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-77f8a6c4"]]), po = f({
|
|
1801
1801
|
name: "builder-section-component",
|
|
1802
1802
|
props: ["attributes", "maxWidth"],
|
|
1803
1803
|
data() {
|
|
@@ -3361,7 +3361,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3361
3361
|
}
|
|
3362
3362
|
}), ir = ["validate", "action", "method", "name"], sr = {
|
|
3363
3363
|
key: 3,
|
|
3364
|
-
class: "builder-form-error-text pre-
|
|
3364
|
+
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3365
3365
|
};
|
|
3366
3366
|
function ar(e, t, n, o, r, i) {
|
|
3367
3367
|
var a;
|
|
@@ -3402,7 +3402,7 @@ function ar(e, t, n, o, r, i) {
|
|
|
3402
3402
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
3403
3403
|
], 16, ir);
|
|
3404
3404
|
}
|
|
3405
|
-
const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-
|
|
3405
|
+
const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
|
|
3406
3406
|
name: "Form:Input",
|
|
3407
3407
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3408
3408
|
inputs: [
|