@builder.io/sdk-vue 4.0.6 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-96xCyq9c.cjs → awaiter-OLNb_n6-.cjs} +1 -1
- package/lib/browser/{awaiter-zNn8NS8r.js → awaiter-isRx9Yhd.js} +1 -1
- package/lib/browser/{block-styles-ofpNl1bZ.cjs → block-styles-6C_KdO7n.cjs} +1 -1
- package/lib/browser/{block-styles-0o9M36rK.js → block-styles-gW8iE3NH.js} +1 -1
- package/lib/browser/{block-wrapper-nAtnXdA_.js → block-wrapper--UA6l0DJ.js} +3 -3
- package/lib/browser/{block-wrapper-CROVZaJw.cjs → block-wrapper-VXy583MG.cjs} +1 -1
- package/lib/browser/blocks/image/image.vue.d.ts +3 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/component-ref-BSoLNe8a.cjs +1 -0
- package/lib/browser/{component-ref-G3WBnT08.js → component-ref-PKi5zQLG.js} +52 -33
- 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 +11 -4
- 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-IAHDaK7X.js} +1 -1
- package/lib/browser/{get-block-properties-35RfkJv0.cjs → get-block-properties-MbA9feRS.cjs} +1 -1
- package/lib/browser/{index-LQooJIVP.js → index-3lnsErPD.js} +272 -267
- package/lib/browser/index-4YDWt2GA.cjs +169 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/repeated-block-UdGwjbN4.js +50 -0
- package/lib/browser/repeated-block-lYIzWwqT.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-84203SWg.cjs → awaiter-q73ktXnL.cjs} +1 -1
- package/lib/edge/{awaiter-BPHhe8gu.js → awaiter-yQhCDL0p.js} +1 -1
- package/lib/edge/{block-styles-FBx6Wj7n.js → block-styles-cQqc9t0g.js} +1 -1
- package/lib/edge/{block-styles-GoLS-7a-.cjs → block-styles-krtvZ4wJ.cjs} +1 -1
- package/lib/edge/{block-wrapper-GHYV0qcz.js → block-wrapper-9DbpMl_d.js} +3 -3
- package/lib/{node/block-wrapper-Aqn2S1Zk.cjs → edge/block-wrapper-P2ngZuRV.cjs} +1 -1
- package/lib/edge/blocks/image/image.vue.d.ts +3 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/component-ref-EDola72k.cjs +1 -0
- package/lib/{node/component-ref-7fop4Scs.js → edge/component-ref-FzpAjKWx.js} +52 -33
- 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 +11 -4
- 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-nUOubhiy.js → get-block-properties-UnxPA054.js} +1 -1
- package/lib/edge/{get-block-properties-ePFST2_a.cjs → get-block-properties-fD4qNRB9.cjs} +1 -1
- package/lib/edge/{index-O2Rm1-0p.js → index-Phh5QI1z.js} +253 -248
- package/lib/edge/{index-SxXHoi3G.cjs → index-W-IYWIQ9.cjs} +17 -17
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/repeated-block-19TN96p4.cjs +1 -0
- package/lib/edge/{repeated-block-730A9lRm.js → repeated-block-pUBaF3y8.js} +24 -9
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-niFBXKBm.js → awaiter--eXt1zCI.js} +1 -1
- package/lib/node/{awaiter-p7qiswFI.cjs → awaiter-rTNOaG9i.cjs} +1 -1
- package/lib/node/{block-styles-3BFRWeR_.js → block-styles-CnYwZPG8.js} +1 -1
- package/lib/node/{block-styles-dahfLzRE.cjs → block-styles-X1zBe4K-.cjs} +1 -1
- package/lib/node/{block-wrapper-ThVlymJQ.js → block-wrapper-a-O0UYvU.js} +3 -3
- package/lib/{edge/block-wrapper-uwJjRSjB.cjs → node/block-wrapper-dUYQEu6i.cjs} +1 -1
- package/lib/node/blocks/image/image.vue.d.ts +3 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/{edge/component-ref-m6_Qgjxh.js → node/component-ref-6ZTfRWNi.js} +52 -33
- package/lib/node/component-ref-J2vcSy4E.cjs +1 -0
- 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 +11 -4
- 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-ZXWvNMFQ.cjs} +1 -1
- package/lib/node/{get-block-properties-XqAwKEib.js → get-block-properties-wNo96juQ.js} +1 -1
- package/lib/node/{index-6f7aS4as.js → index-dUsR-LUC.js} +269 -264
- package/lib/node/index-yWUac5KF.cjs +169 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/repeated-block-Mn3MoYF9.cjs +1 -0
- package/lib/node/repeated-block-WusuFFLd.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/index-3yShtqk3.cjs +0 -169
- 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/index-3VhVRFNG.cjs +0 -169
- package/lib/node/repeated-block-lURNziSK.cjs +0 -1
- package/lib/node/repeated-block-zjZTsi5s.js +0 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-4YDWt2GA.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,i,c,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-
|
|
1
|
+
var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-4YDWt2GA.cjs"),x=a.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,k,C,f;const e=this.block,t=e.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((S=o==null?void 0:o.meta)==null?void 0:S.breakpoints)||{}),d=!!((k=(h=o==null?void 0:o.meta)==null?void 0:h.breakpoints)!=null&&k.xsmall),i=t==null?void 0:t.large,c=t==null?void 0:t.medium,u=t==null?void 0:t.small,y=t==null?void 0:t.xsmall,n=e.id;if(!n)return"";const b=i?s.createCssClass({className:n,styles:i}):"",g=c?s.createCssClass({className:n,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",v=u?s.createCssClass({className:n,styles:u,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"",B=y&&d?s.createCssClass({className:n,styles:y,mediaQuery:s.getMaxWidthQueryForSize("xsmall",r)}):"",l=e.animations&&e.animations.find(m=>m.trigger==="hover");let p="";if(l){const m=((f=(C=l.steps)==null?void 0:C[1])==null?void 0:f.styles)||{};p=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${l.duration}s ${s.camelToKebabCase(l.easing)}`,transitionDelay:l.delay?`${l.delay}s`:"0s"}})||""}return[b,g,v,B,p].join(" ")}}});function T(e,t,o,r,d,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 $=s._export_sfc(x,[["render",T]]);exports.default=$;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as _, resolveComponent as x, openBlock as T, createBlock as w, createCommentVNode as I } from "vue";
|
|
3
|
-
import { _ as N, T as Q, c as C, g as z, a, b as m, d as A, e as D } from "./index-
|
|
3
|
+
import { _ as N, T as Q, c as C, g as z, a, b as m, d as A, e as D } from "./index-3lnsErPD.js";
|
|
4
4
|
const E = _({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: N },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
4
|
-
import { e as m } from "./index-
|
|
5
|
-
const d = () => import("./index-
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-IAHDaK7X.js";
|
|
4
|
+
import { e as m } from "./index-3lnsErPD.js";
|
|
5
|
+
const d = () => import("./index-3lnsErPD.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-MbA9feRS.cjs"),n=require("./index-4YDWt2GA.cjs"),c=()=>Promise.resolve().then(()=>require("./index-4YDWt2GA.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;
|
|
@@ -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
|
+
var B=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-4YDWt2GA.cjs"),l=require("./get-block-properties-MbA9feRS.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-OLNb_n6-.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),k=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0}},watch:{onUpdateHook0:{handler(){},immediate:!0}},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}:{}}},onUpdateHook0(){var e,o;return{0:this.wrapperProps,1:(o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options}}}});function h(e,o,a,c,r,i){const n=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(n,{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(k,[["render",h]]),f=({componentOptions:e,builderBlock:o,context:a,componentRef:c,includeBlockProps:r,isInteractive:i,contextValue:n})=>{const p={...e,...r?{attributes:l.getBlockProperties({block:o,context:n})}:{}};return i?{Wrapper:c,block:o,context:a,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,o,a,c,r,i){const n=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,d)=>(t.openBlock(),t.createBlock(n,{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 P=s._export_sfc(b,[["render",C]]);exports.default=P;
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as u, defineAsyncComponent as
|
|
3
|
-
import { e as
|
|
4
|
-
import { a as
|
|
5
|
-
const R = () => import("./awaiter-
|
|
2
|
+
import { defineComponent as u, defineAsyncComponent as g, resolveComponent as k, openBlock as n, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as h, normalizeProps as f, mergeProps as b, createElementBlock as B, Fragment as W, renderList as $, createCommentVNode as v } from "vue";
|
|
3
|
+
import { e as C, B as y, w as S } from "./index-3lnsErPD.js";
|
|
4
|
+
import { a as w, g as A } from "./get-block-properties-IAHDaK7X.js";
|
|
5
|
+
const R = () => import("./awaiter-isRx9Yhd.js").then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
e
|
|
9
9
|
), e;
|
|
10
10
|
}), E = u({
|
|
11
11
|
name: "interactive-element",
|
|
12
|
-
components: { Awaiter:
|
|
13
|
-
props: ["
|
|
12
|
+
components: { Awaiter: g(R) },
|
|
13
|
+
props: ["wrapperProps", "block", "includeBlockProps", "context", "Wrapper"],
|
|
14
|
+
data() {
|
|
15
|
+
return { forceRenderCount: 0 };
|
|
16
|
+
},
|
|
17
|
+
watch: {
|
|
18
|
+
onUpdateHook0: { handler() {
|
|
19
|
+
}, immediate: !0 }
|
|
20
|
+
},
|
|
14
21
|
computed: {
|
|
15
22
|
attributes() {
|
|
16
23
|
return this.includeBlockProps ? {
|
|
17
|
-
...
|
|
24
|
+
...w({
|
|
18
25
|
block: this.block,
|
|
19
26
|
context: this.context
|
|
20
27
|
}),
|
|
@@ -26,12 +33,27 @@ const R = () => import("./awaiter-zNn8NS8r.js").then((e) => e.default).catch((e)
|
|
|
26
33
|
context: this.context.context
|
|
27
34
|
})
|
|
28
35
|
} : {};
|
|
36
|
+
},
|
|
37
|
+
targetWrapperProps() {
|
|
38
|
+
return {
|
|
39
|
+
...this.wrapperProps,
|
|
40
|
+
...Object.keys(this.attributes).length > 0 ? {
|
|
41
|
+
attributes: this.attributes
|
|
42
|
+
} : {}
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
onUpdateHook0() {
|
|
46
|
+
var e, t;
|
|
47
|
+
return {
|
|
48
|
+
0: this.wrapperProps,
|
|
49
|
+
1: (t = (e = this.block) == null ? void 0 : e.component) == null ? void 0 : t.options
|
|
50
|
+
};
|
|
29
51
|
}
|
|
30
52
|
}
|
|
31
53
|
});
|
|
32
|
-
function I(e,
|
|
33
|
-
const
|
|
34
|
-
return e.Wrapper.load ? (
|
|
54
|
+
function I(e, t, s, i, r, c) {
|
|
55
|
+
const o = k("Awaiter");
|
|
56
|
+
return e.Wrapper.load ? (n(), a(o, {
|
|
35
57
|
key: 0,
|
|
36
58
|
load: e.Wrapper.load,
|
|
37
59
|
fallback: e.Wrapper.fallback,
|
|
@@ -42,24 +64,21 @@ function I(e, n, s, i, r, c) {
|
|
|
42
64
|
m(e.$slots, "default")
|
|
43
65
|
]),
|
|
44
66
|
_: 3
|
|
45
|
-
}, 8, ["load", "fallback", "props", "attributes"])) : (
|
|
46
|
-
key: 1,
|
|
47
|
-
attributes: e.attributes
|
|
48
|
-
}, e.wrapperProps), {
|
|
67
|
+
}, 8, ["load", "fallback", "props", "attributes"])) : (n(), a(h(e.Wrapper), f(b({ key: 1 }, e.targetWrapperProps)), {
|
|
49
68
|
default: l(() => [
|
|
50
69
|
m(e.$slots, "default")
|
|
51
70
|
]),
|
|
52
71
|
_: 3
|
|
53
|
-
}, 16
|
|
72
|
+
}, 16));
|
|
54
73
|
}
|
|
55
|
-
const d = /* @__PURE__ */
|
|
74
|
+
const d = /* @__PURE__ */ C(E, [["render", I]]), U = ({
|
|
56
75
|
componentOptions: e,
|
|
57
|
-
builderBlock:
|
|
76
|
+
builderBlock: t,
|
|
58
77
|
context: s,
|
|
59
78
|
componentRef: i,
|
|
60
79
|
includeBlockProps: r,
|
|
61
80
|
isInteractive: c,
|
|
62
|
-
contextValue:
|
|
81
|
+
contextValue: o
|
|
63
82
|
}) => {
|
|
64
83
|
const p = {
|
|
65
84
|
...e,
|
|
@@ -68,22 +87,22 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
68
87
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
69
88
|
*/
|
|
70
89
|
...r ? {
|
|
71
|
-
attributes:
|
|
72
|
-
block:
|
|
73
|
-
context:
|
|
90
|
+
attributes: w({
|
|
91
|
+
block: t,
|
|
92
|
+
context: o
|
|
74
93
|
})
|
|
75
94
|
} : {}
|
|
76
95
|
};
|
|
77
96
|
return c ? {
|
|
78
97
|
Wrapper: i,
|
|
79
|
-
block:
|
|
98
|
+
block: t,
|
|
80
99
|
context: s,
|
|
81
100
|
wrapperProps: e,
|
|
82
101
|
includeBlockProps: r
|
|
83
102
|
} : p;
|
|
84
|
-
},
|
|
103
|
+
}, H = u({
|
|
85
104
|
name: "component-ref",
|
|
86
|
-
components: { Block:
|
|
105
|
+
components: { Block: y, InteractiveElement: d },
|
|
87
106
|
props: [
|
|
88
107
|
"componentOptions",
|
|
89
108
|
"blockChildren",
|
|
@@ -98,8 +117,8 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
98
117
|
data() {
|
|
99
118
|
return {
|
|
100
119
|
shouldUpdate: !1,
|
|
101
|
-
Wrapper: this.isInteractive ?
|
|
102
|
-
getWrapperProps:
|
|
120
|
+
Wrapper: this.isInteractive ? S(d) : this.componentRef,
|
|
121
|
+
getWrapperProps: U
|
|
103
122
|
};
|
|
104
123
|
},
|
|
105
124
|
watch: {
|
|
@@ -115,9 +134,9 @@ const d = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
|
115
134
|
}
|
|
116
135
|
}
|
|
117
136
|
});
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
return e.componentRef ? (
|
|
137
|
+
function O(e, t, s, i, r, c) {
|
|
138
|
+
const o = k("Block");
|
|
139
|
+
return e.componentRef ? (n(), a(h(e.Wrapper), f(b(
|
|
121
140
|
{ key: 0 },
|
|
122
141
|
e.getWrapperProps({
|
|
123
142
|
componentOptions: e.componentOptions,
|
|
@@ -131,7 +150,7 @@ function H(e, n, s, i, r, c) {
|
|
|
131
150
|
})
|
|
132
151
|
)), {
|
|
133
152
|
default: l(() => [
|
|
134
|
-
(
|
|
153
|
+
(n(!0), B(W, null, $(e.blockChildren, (p, P) => (n(), a(o, {
|
|
135
154
|
key: p.id,
|
|
136
155
|
block: p,
|
|
137
156
|
context: e.context,
|
|
@@ -140,9 +159,9 @@ function H(e, n, s, i, r, c) {
|
|
|
140
159
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
141
160
|
]),
|
|
142
161
|
_: 1
|
|
143
|
-
}, 16)) :
|
|
162
|
+
}, 16)) : v("", !0);
|
|
144
163
|
}
|
|
145
|
-
const
|
|
164
|
+
const F = /* @__PURE__ */ C(H, [["render", O]]);
|
|
146
165
|
export {
|
|
147
|
-
|
|
166
|
+
F as default
|
|
148
167
|
};
|
|
@@ -12,22 +12,29 @@ export type InteractiveElementProps = {
|
|
|
12
12
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
13
13
|
context?: any;
|
|
14
14
|
block?: any;
|
|
15
|
+
wrapperProps?: any;
|
|
15
16
|
includeBlockProps?: any;
|
|
16
17
|
Wrapper?: any;
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
}>, unknown, {
|
|
19
|
+
forceRenderCount: number;
|
|
20
|
+
}, {
|
|
19
21
|
attributes(): {};
|
|
22
|
+
targetWrapperProps(): any;
|
|
23
|
+
onUpdateHook0(): {
|
|
24
|
+
0: any;
|
|
25
|
+
1: any;
|
|
26
|
+
};
|
|
20
27
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
21
28
|
context?: any;
|
|
22
29
|
block?: any;
|
|
30
|
+
wrapperProps?: any;
|
|
23
31
|
includeBlockProps?: any;
|
|
24
32
|
Wrapper?: any;
|
|
25
|
-
wrapperProps?: any;
|
|
26
33
|
}>>>, {
|
|
27
34
|
readonly context?: any;
|
|
28
35
|
readonly block?: any;
|
|
36
|
+
readonly wrapperProps?: any;
|
|
29
37
|
readonly includeBlockProps?: any;
|
|
30
38
|
readonly Wrapper?: any;
|
|
31
|
-
readonly wrapperProps?: any;
|
|
32
39
|
}, {}>;
|
|
33
40
|
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.8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const s=require("./index-
|
|
1
|
+
var d=require("./style.css");const s=require("./index-4YDWt2GA.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(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 u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;
|