@builder.io/sdk-vue 4.0.6 → 4.0.7
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-96xCyq9c.cjs → awaiter-5U0g0avg.cjs} +1 -1
- package/lib/browser/{awaiter-zNn8NS8r.js → awaiter-FZ_6AE2a.js} +1 -1
- package/lib/browser/{block-styles-ofpNl1bZ.cjs → block-styles-mQsLCCE3.cjs} +1 -1
- package/lib/browser/{block-styles-0o9M36rK.js → block-styles-pmTjlLzn.js} +1 -1
- package/lib/browser/{block-wrapper-nAtnXdA_.js → block-wrapper-N_ogs-Wp.js} +3 -3
- package/lib/browser/{block-wrapper-CROVZaJw.cjs → block-wrapper-OunrCweM.cjs} +1 -1
- package/lib/browser/blocks/image/image.vue.d.ts +3 -0
- package/lib/browser/{component-ref-G3WBnT08.js → component-ref-g19jfMvJ.js} +26 -21
- package/lib/browser/component-ref-nEt-sggm.cjs +1 -0
- package/lib/browser/components/block/block.helpers.d.ts +1 -0
- package/lib/browser/components/block/block.vue.d.ts +1 -0
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +4 -3
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +5 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-Tp3tEKPI.js → get-block-properties-5qwHyc1L.js} +1 -1
- package/lib/browser/{get-block-properties-35RfkJv0.cjs → get-block-properties-ulj77YzP.cjs} +1 -1
- package/lib/browser/{index-3yShtqk3.cjs → index-hvYVuem_.cjs} +17 -17
- package/lib/browser/{index-LQooJIVP.js → index-o8dnJsEu.js} +262 -263
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/repeated-block-Bq4A_qa5.cjs +1 -0
- package/lib/browser/repeated-block-VCgK4l-q.js +50 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-BPHhe8gu.js → awaiter-le9ulX-I.js} +1 -1
- package/lib/edge/{awaiter-84203SWg.cjs → awaiter-ogFSdhQw.cjs} +1 -1
- package/lib/edge/{block-styles-FBx6Wj7n.js → block-styles-GPUq2vVm.js} +1 -1
- package/lib/edge/{block-styles-GoLS-7a-.cjs → block-styles-GdF_xFXc.cjs} +1 -1
- package/lib/edge/{block-wrapper-GHYV0qcz.js → block-wrapper-3bIXOPdS.js} +3 -3
- package/lib/{node/block-wrapper-Aqn2S1Zk.cjs → edge/block-wrapper-TCIgsYJu.cjs} +1 -1
- package/lib/edge/blocks/image/image.vue.d.ts +3 -0
- package/lib/{node/component-ref-7fop4Scs.js → edge/component-ref-9SUP0TNT.js} +26 -21
- package/lib/edge/component-ref-UEJRPE0-.cjs +1 -0
- package/lib/edge/components/block/block.helpers.d.ts +1 -0
- package/lib/edge/components/block/block.vue.d.ts +1 -0
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +4 -3
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +5 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-ePFST2_a.cjs → get-block-properties-6JzUU6Pu.cjs} +1 -1
- package/lib/edge/{get-block-properties-nUOubhiy.js → get-block-properties-JsJm0B7n.js} +1 -1
- package/lib/edge/{index-O2Rm1-0p.js → index-ggxjQMia.js} +243 -244
- package/lib/edge/{index-SxXHoi3G.cjs → index-sylhGsj3.cjs} +17 -17
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-730A9lRm.js → repeated-block-CLZkbqwN.js} +24 -9
- package/lib/edge/repeated-block-WJrFNvJj.cjs +1 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-niFBXKBm.js → awaiter-E4fj6vmG.js} +1 -1
- package/lib/node/{awaiter-p7qiswFI.cjs → awaiter-fVVumiTQ.cjs} +1 -1
- package/lib/node/{block-styles-dahfLzRE.cjs → block-styles-HINWIuAE.cjs} +1 -1
- package/lib/node/{block-styles-3BFRWeR_.js → block-styles-IE14sZnq.js} +1 -1
- package/lib/{edge/block-wrapper-uwJjRSjB.cjs → node/block-wrapper-vQ87OSVE.cjs} +1 -1
- package/lib/node/{block-wrapper-ThVlymJQ.js → block-wrapper-xDAgWb90.js} +3 -3
- package/lib/node/blocks/image/image.vue.d.ts +3 -0
- package/lib/node/component-ref-Es2_Hx3D.cjs +1 -0
- package/lib/{edge/component-ref-m6_Qgjxh.js → node/component-ref-qogwhlK8.js} +26 -21
- package/lib/node/components/block/block.helpers.d.ts +1 -0
- package/lib/node/components/block/block.vue.d.ts +1 -0
- package/lib/node/components/block/components/interactive-element.vue.d.ts +4 -3
- package/lib/node/components/block/components/repeated-block.vue.d.ts +5 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-pu3hVstP.cjs → get-block-properties-LPXLSOTJ.cjs} +1 -1
- package/lib/node/{get-block-properties-XqAwKEib.js → get-block-properties-wD4LU0DE.js} +1 -1
- package/lib/node/{index-3VhVRFNG.cjs → index-40Ju7fZj.cjs} +17 -17
- package/lib/node/{index-6f7aS4as.js → index-NJECHTw1.js} +259 -260
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/repeated-block-JNAfmV7i.cjs +1 -0
- package/lib/node/repeated-block-R4gT6MOv.js +49 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/component-ref-dYV2xUP6.cjs +0 -1
- package/lib/browser/repeated-block-9PgmawTD.cjs +0 -1
- package/lib/browser/repeated-block-nSWYIBYY.js +0 -35
- package/lib/edge/component-ref-RVSJkiDE.cjs +0 -1
- package/lib/edge/repeated-block-CKncF9Od.cjs +0 -1
- package/lib/node/component-ref-jm5wkBt_.cjs +0 -1
- package/lib/node/repeated-block-lURNziSK.cjs +0 -1
- package/lib/node/repeated-block-zjZTsi5s.js +0 -34
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-sylhGsj3.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.setClientUserAttributes=e.setClientUserAttributes;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 t, j as a, k as r, C as i, o as n, F as o, I as c, S as g, l, m as u, V as m, A as d, r as C, z as E, D as p, E as B, v as S, p as b, q as f, t as h, s as x, u as k, y, x as P } from "./index-
|
|
1
|
+
import { n as t, j as a, k as r, C as i, o as n, F as o, I as c, S as g, l, m as u, V as m, A as d, r as C, z as E, D as p, E as B, v as S, p as b, q as f, t as h, s as x, u as k, y, x as P } from "./index-ggxjQMia.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Blocks,
|
|
4
4
|
a as BuilderContext,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as
|
|
2
|
-
import { j as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
2
|
+
import { j as c, e as i } from "./index-ggxjQMia.js";
|
|
3
|
+
const a = () => import("./index-ggxjQMia.js").then((e) => e.H).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
|
|
7
7
|
), e;
|
|
8
|
-
}),
|
|
8
|
+
}), l = t({
|
|
9
9
|
name: "repeated-block",
|
|
10
|
-
components: { Block: n(
|
|
10
|
+
components: { Block: n(a) },
|
|
11
11
|
props: ["repeatContext", "block", "registeredComponents", "linkComponent"],
|
|
12
12
|
data() {
|
|
13
13
|
return { store: this.repeatContext };
|
|
@@ -15,20 +15,35 @@ const i = () => import("./index-O2Rm1-0p.js").then((e) => e.H).then((e) => e.def
|
|
|
15
15
|
provide() {
|
|
16
16
|
const e = this;
|
|
17
17
|
return {
|
|
18
|
-
[
|
|
18
|
+
[c.key]: e.store
|
|
19
19
|
};
|
|
20
|
+
},
|
|
21
|
+
watch: {
|
|
22
|
+
onUpdateHook0: {
|
|
23
|
+
handler() {
|
|
24
|
+
this.store = this.repeatContext;
|
|
25
|
+
},
|
|
26
|
+
immediate: !0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
computed: {
|
|
30
|
+
onUpdateHook0() {
|
|
31
|
+
return {
|
|
32
|
+
0: this.repeatContext
|
|
33
|
+
};
|
|
34
|
+
}
|
|
20
35
|
}
|
|
21
36
|
});
|
|
22
|
-
function
|
|
37
|
+
function m(e, d, k, C, h, u) {
|
|
23
38
|
const o = r("Block");
|
|
24
|
-
return
|
|
39
|
+
return p(), s(o, {
|
|
25
40
|
block: e.block,
|
|
26
41
|
context: e.store,
|
|
27
42
|
registeredComponents: e.registeredComponents,
|
|
28
43
|
linkComponent: e.linkComponent
|
|
29
44
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]);
|
|
30
45
|
}
|
|
31
|
-
const _ = /* @__PURE__ */ l
|
|
46
|
+
const _ = /* @__PURE__ */ i(l, [["render", m]]);
|
|
32
47
|
export {
|
|
33
48
|
_ as default
|
|
34
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-sylhGsj3.cjs"),r=()=>Promise.resolve().then(()=>require("./index-sylhGsj3.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}},watch:{onUpdateHook0:{handler(){this.store=this.repeatContext},immediate:!0}},computed:{onUpdateHook0(){return{0:this.repeatContext}}}});function s(e,p,l,a,d,m){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 i=t._export_sfc(c,[["render",s]]);exports.default=i;
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-tqyw9m0iue[data-v-e05fb921]{display:flex;flex-direction:column;align-items:stretch}.div-4wbls88y960[data-v-459e0e34]{display:flex;line-height:normal;height:100%}.img-29wpyomtntv[data-v-
|
|
1
|
+
.component-tqyw9m0iue[data-v-e05fb921]{display:flex;flex-direction:column;align-items:stretch}.div-4wbls88y960[data-v-459e0e34]{display:flex;line-height:normal;height:100%}.img-29wpyomtntv[data-v-e6416c92]{opacity:1;transition:opacity .2s ease-in-out}.div-29wpyomtntv[data-v-e6416c92]{width:100%;pointer-events:none;font-size:0}.div-29wpyomtntv-2[data-v-e6416c92]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-1hjwvu3r5mj[data-v-4ef43cdd]{padding:10px;color:red;text-align:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-40Ju7fZj.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 a=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),t=require("./index-40Ju7fZj.cjs"),m=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),T=a.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:m.TARGET}},computed:{canShowBlock(){const e=this.block;return m.checkIsDefined(e.hide)?!e.hide:m.checkIsDefined(e.show)?e.show:!0},css(){var h,k,C,f,b;const e=this.block,s=e.responsiveStyles,o=this.context.content,r=t.getSizesForBreakpoints(((h=o==null?void 0:o.meta)==null?void 0:h.breakpoints)||{}),u=!!((C=(k=o==null?void 0:o.meta)==null?void 0:k.breakpoints)!=null&&C.xsmall),i=s==null?void 0:s.large,c=s==null?void 0:s.medium,y=s==null?void 0:s.small,p=s==null?void 0:s.xsmall,n=e.id;if(!n)return"";const g=i?t.createCssClass({className:n,styles:i}):"",B=c?t.createCssClass({className:n,styles:c,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",v=y?t.createCssClass({className:n,styles:y,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"",x=p&&u?t.createCssClass({className:n,styles:p,mediaQuery:t.getMaxWidthQueryForSize("xsmall",r)}):"",l=e.animations&&e.animations.find(d=>d.trigger==="hover");let S="";if(l){const d=((b=(f=l.steps)==null?void 0:f[1])==null?void 0:b.styles)||{};S=t.createCssClass({className:`${n}:hover`,styles:{...d,transition:`all ${l.duration}s ${t.camelToKebabCase(l.easing)}`,transitionDelay:l.delay?`${l.delay}s`:"0s"}})||""}return[g,B,v,x,S].join(" ")}}});function $(e,s,o,r,u,i){const c=a.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(a.openBlock(),a.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):a.createCommentVNode("",!0)}const _=t._export_sfc(T,[["render",$]]);exports.default=_;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, resolveComponent as x, openBlock as T, createBlock as w, createCommentVNode as I } from "vue";
|
|
2
|
-
import { _ as N, g as Q, c as a, a as m, b as z, d as A } from "./index-
|
|
2
|
+
import { _ as N, g as Q, c as a, a as m, b as z, d as A } from "./index-NJECHTw1.js";
|
|
3
3
|
import { T as D, e as C } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
4
4
|
const E = _({
|
|
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-LPXLSOTJ.cjs"),n=require("./index-40Ju7fZj.cjs"),c=()=>Promise.resolve().then(()=>require("./index-40Ju7fZj.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-wD4LU0DE.js";
|
|
3
|
+
import { d as m } from "./index-NJECHTw1.js";
|
|
4
|
+
const d = () => import("./index-NJECHTw1.js").then((e) => e.A).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
|
|
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
aspectRatio?: any;
|
|
7
7
|
backgroundPosition?: any;
|
|
8
8
|
backgroundSize?: any;
|
|
9
|
+
lazy?: any;
|
|
9
10
|
src?: any;
|
|
10
11
|
srcset?: any;
|
|
11
12
|
noWebp?: any;
|
|
@@ -31,6 +32,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
31
32
|
aspectRatio?: any;
|
|
32
33
|
backgroundPosition?: any;
|
|
33
34
|
backgroundSize?: any;
|
|
35
|
+
lazy?: any;
|
|
34
36
|
src?: any;
|
|
35
37
|
srcset?: any;
|
|
36
38
|
noWebp?: any;
|
|
@@ -46,6 +48,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
46
48
|
readonly aspectRatio?: any;
|
|
47
49
|
readonly backgroundPosition?: any;
|
|
48
50
|
readonly backgroundSize?: any;
|
|
51
|
+
readonly lazy?: any;
|
|
49
52
|
readonly src?: any;
|
|
50
53
|
readonly srcset?: any;
|
|
51
54
|
readonly noWebp?: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-40Ju7fZj.cjs"),l=require("./get-block-properties-LPXLSOTJ.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-fVVumiTQ.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","wrapperProps","Wrapper"],computed:{attributes(){return this.includeBlockProps?{...l.getBlockProperties({block:this.block,context:this.context}),...l.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}}}});function h(e,n,c,a,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.normalizeProps(t.mergeProps({key:1},e.targetWrapperProps)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16))}const m=s._export_sfc(d,[["render",h]]),f=({componentOptions:e,builderBlock:n,context:c,componentRef:a,includeBlockProps:r,isInteractive:i,contextValue:o})=>{const p={...e,...r?{attributes:l.getBlockProperties({block:n,context:o})}:{}};return i?{Wrapper:a,block:n,context:c,wrapperProps:e,includeBlockProps:r}:p},b=t.defineComponent({name:"component-ref",components:{Block:s.Block,InteractiveElement:m},props:["componentOptions","blockChildren","isInteractive","componentRef","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?s.wrapComponentRef(m):this.componentRef,getWrapperProps:f}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{onUpdateHook0(){return{0:this.componentOptions,1:this.blockChildren}}}});function C(e,n,c,a,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 B=s._export_sfc(b,[["render",C]]);exports.default=B;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as u, defineAsyncComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
const R = () => import("./awaiter-
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as g, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, normalizeProps as h, mergeProps as b, createElementBlock as B, Fragment as W, renderList as $, createCommentVNode as v } from "vue";
|
|
2
|
+
import { d as C, B as y, w as S } from "./index-NJECHTw1.js";
|
|
3
|
+
import { a as P, g as A } from "./get-block-properties-wD4LU0DE.js";
|
|
4
|
+
const R = () => import("./awaiter-E4fj6vmG.js").then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
7
7
|
e
|
|
8
8
|
), e;
|
|
9
9
|
}), E = u({
|
|
10
10
|
name: "interactive-element",
|
|
11
|
-
components: { Awaiter:
|
|
12
|
-
props: ["includeBlockProps", "block", "context", "
|
|
11
|
+
components: { Awaiter: g(R) },
|
|
12
|
+
props: ["includeBlockProps", "block", "context", "wrapperProps", "Wrapper"],
|
|
13
13
|
computed: {
|
|
14
14
|
attributes() {
|
|
15
15
|
return this.includeBlockProps ? {
|
|
16
|
-
...
|
|
16
|
+
...P({
|
|
17
17
|
block: this.block,
|
|
18
18
|
context: this.context
|
|
19
19
|
}),
|
|
@@ -25,6 +25,14 @@ const R = () => import("./awaiter-BPHhe8gu.js").then((e) => e.default).catch((e)
|
|
|
25
25
|
context: this.context.context
|
|
26
26
|
})
|
|
27
27
|
} : {};
|
|
28
|
+
},
|
|
29
|
+
targetWrapperProps() {
|
|
30
|
+
return {
|
|
31
|
+
...this.wrapperProps,
|
|
32
|
+
...Object.keys(this.attributes).length > 0 ? {
|
|
33
|
+
attributes: this.attributes
|
|
34
|
+
} : {}
|
|
35
|
+
};
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
38
|
});
|
|
@@ -41,17 +49,14 @@ function I(e, n, s, i, r, c) {
|
|
|
41
49
|
m(e.$slots, "default")
|
|
42
50
|
]),
|
|
43
51
|
_: 3
|
|
44
|
-
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), a(f(e.Wrapper), b({
|
|
45
|
-
key: 1,
|
|
46
|
-
attributes: e.attributes
|
|
47
|
-
}, e.wrapperProps), {
|
|
52
|
+
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), a(f(e.Wrapper), h(b({ key: 1 }, e.targetWrapperProps)), {
|
|
48
53
|
default: l(() => [
|
|
49
54
|
m(e.$slots, "default")
|
|
50
55
|
]),
|
|
51
56
|
_: 3
|
|
52
|
-
}, 16
|
|
57
|
+
}, 16));
|
|
53
58
|
}
|
|
54
|
-
const d = /* @__PURE__ */
|
|
59
|
+
const d = /* @__PURE__ */ C(E, [["render", I]]), O = ({
|
|
55
60
|
componentOptions: e,
|
|
56
61
|
builderBlock: n,
|
|
57
62
|
context: s,
|
|
@@ -67,7 +72,7 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
67
72
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
68
73
|
*/
|
|
69
74
|
...r ? {
|
|
70
|
-
attributes:
|
|
75
|
+
attributes: P({
|
|
71
76
|
block: n,
|
|
72
77
|
context: t
|
|
73
78
|
})
|
|
@@ -82,7 +87,7 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
82
87
|
} : p;
|
|
83
88
|
}, U = u({
|
|
84
89
|
name: "component-ref",
|
|
85
|
-
components: { Block:
|
|
90
|
+
components: { Block: y, InteractiveElement: d },
|
|
86
91
|
props: [
|
|
87
92
|
"componentOptions",
|
|
88
93
|
"blockChildren",
|
|
@@ -97,7 +102,7 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
97
102
|
data() {
|
|
98
103
|
return {
|
|
99
104
|
shouldUpdate: !1,
|
|
100
|
-
Wrapper: this.isInteractive ?
|
|
105
|
+
Wrapper: this.isInteractive ? S(d) : this.componentRef,
|
|
101
106
|
getWrapperProps: O
|
|
102
107
|
};
|
|
103
108
|
},
|
|
@@ -116,7 +121,7 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
116
121
|
});
|
|
117
122
|
function H(e, n, s, i, r, c) {
|
|
118
123
|
const t = k("Block");
|
|
119
|
-
return e.componentRef ? (o(), a(f(e.Wrapper),
|
|
124
|
+
return e.componentRef ? (o(), a(f(e.Wrapper), h(b(
|
|
120
125
|
{ key: 0 },
|
|
121
126
|
e.getWrapperProps({
|
|
122
127
|
componentOptions: e.componentOptions,
|
|
@@ -130,7 +135,7 @@ function H(e, n, s, i, r, c) {
|
|
|
130
135
|
})
|
|
131
136
|
)), {
|
|
132
137
|
default: l(() => [
|
|
133
|
-
(o(!0),
|
|
138
|
+
(o(!0), B(W, null, $(e.blockChildren, (p, w) => (o(), a(t, {
|
|
134
139
|
key: p.id,
|
|
135
140
|
block: p,
|
|
136
141
|
context: e.context,
|
|
@@ -139,9 +144,9 @@ function H(e, n, s, i, r, c) {
|
|
|
139
144
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
140
145
|
]),
|
|
141
146
|
_: 1
|
|
142
|
-
}, 16)) :
|
|
147
|
+
}, 16)) : v("", !0);
|
|
143
148
|
}
|
|
144
|
-
const
|
|
149
|
+
const D = /* @__PURE__ */ C(U, [["render", H]]);
|
|
145
150
|
export {
|
|
146
|
-
|
|
151
|
+
D as default
|
|
147
152
|
};
|
|
@@ -13,21 +13,22 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
context?: any;
|
|
14
14
|
block?: any;
|
|
15
15
|
includeBlockProps?: any;
|
|
16
|
-
Wrapper?: any;
|
|
17
16
|
wrapperProps?: any;
|
|
17
|
+
Wrapper?: any;
|
|
18
18
|
}>, unknown, unknown, {
|
|
19
19
|
attributes(): {};
|
|
20
|
+
targetWrapperProps(): any;
|
|
20
21
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
21
22
|
context?: any;
|
|
22
23
|
block?: any;
|
|
23
24
|
includeBlockProps?: any;
|
|
24
|
-
Wrapper?: any;
|
|
25
25
|
wrapperProps?: any;
|
|
26
|
+
Wrapper?: any;
|
|
26
27
|
}>>>, {
|
|
27
28
|
readonly context?: any;
|
|
28
29
|
readonly block?: any;
|
|
29
30
|
readonly includeBlockProps?: any;
|
|
30
|
-
readonly Wrapper?: any;
|
|
31
31
|
readonly wrapperProps?: any;
|
|
32
|
+
readonly Wrapper?: any;
|
|
32
33
|
}, {}>;
|
|
33
34
|
export default _default;
|
|
@@ -5,7 +5,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
5
5
|
repeatContext?: any;
|
|
6
6
|
}>, unknown, {
|
|
7
7
|
store: any;
|
|
8
|
-
}, {
|
|
8
|
+
}, {
|
|
9
|
+
onUpdateHook0(): {
|
|
10
|
+
0: any;
|
|
11
|
+
};
|
|
12
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
9
13
|
block?: any;
|
|
10
14
|
linkComponent?: any;
|
|
11
15
|
registeredComponents?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.7";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-40Ju7fZj.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});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 n } from "./should-force-browser-runtime-in-node-ikxWrCvn.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-NJECHTw1.js";
|
|
3
3
|
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|