@builder.io/sdk-vue 0.5.0 → 0.5.2
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/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.982735c2.js → block-styles.59ab7031.js} +5 -5
- package/packages/_vue2/dist/{block-styles.6a14fec4.cjs → block-styles.e65d44f5.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.701626ff.cjs → block-wrapper.9745ba6c.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.fbaeab1b.js → block-wrapper.cce236ce.js} +5 -5
- package/packages/_vue2/dist/{block.a18a495f.cjs → block.01a27eab.cjs} +2 -2
- package/packages/_vue2/dist/{block.e9484073.js → block.63da4044.js} +7 -7
- package/packages/_vue2/dist/{blocks-wrapper.4afaccc5.js → blocks-wrapper.2b797dc9.js} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper.e0086c60.cjs → blocks-wrapper.ba2cd603.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref.8772e5f7.cjs → component-ref.2f39178c.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref.ad8ecffe.js → component-ref.4f7cf332.js} +6 -6
- package/packages/_vue2/dist/{content.697b2fbd.js → content.6382aeb4.js} +66 -58
- package/packages/_vue2/dist/{content.fb93079e.cjs → content.7c8b076b.cjs} +1 -1
- package/packages/_vue2/dist/{css.daac46ac.cjs → css.2e7fbfd1.cjs} +1 -1
- package/packages/_vue2/dist/{css.1aff1efe.js → css.8dff19fe.js} +1 -1
- package/packages/_vue2/dist/enable-editor.23d6d28b.cjs +1 -0
- package/packages/_vue2/dist/{enable-editor.8d1c24b0.js → enable-editor.e9efcd2b.js} +9 -10
- package/packages/_vue2/dist/{evaluate.b0496c3f.js → evaluate.df5fb75e.js} +1 -1
- package/packages/_vue2/dist/{evaluate.d1bef2c5.cjs → evaluate.f450642c.cjs} +1 -1
- package/packages/_vue2/dist/{get-block-actions.a39f0f6b.js → get-block-actions.19a0ecef.js} +2 -2
- package/packages/_vue2/dist/get-block-actions.6ca6c225.cjs +1 -0
- package/packages/_vue2/dist/{get-block-properties.3ab4b67f.cjs → get-block-properties.88fdcf9e.cjs} +1 -1
- package/packages/_vue2/dist/{get-block-properties.316bbdf9.js → get-block-properties.d589f252.js} +2 -2
- package/packages/_vue2/dist/{get-processed-block.2c6787e1.js → get-processed-block.23166082.js} +2 -2
- package/packages/_vue2/dist/get-processed-block.5831b148.cjs +1 -0
- package/packages/_vue2/dist/index.d33db46c.cjs +32 -0
- package/packages/_vue2/dist/{index.8352d880.js → index.e6fc80c7.js} +234 -211
- package/packages/_vue2/dist/{inlined-script.874c7b5a.cjs → inlined-script.b449adc4.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-script.b4595308.js → inlined-script.ed4af994.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.d8b2af39.cjs → inlined-styles.73a58431.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles.dd4a079a.js → inlined-styles.e3020f6b.js} +1 -1
- package/packages/_vue2/dist/interactive-element.165bdd65.cjs +1 -0
- package/packages/_vue2/dist/{interactive-element.e2f7ca88.js → interactive-element.6bd49ec9.js} +5 -5
- package/packages/_vue2/dist/{repeated-block.c74334c2.js → repeated-block.0f2faa8d.js} +4 -5
- package/packages/_vue2/dist/repeated-block.1c865156.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +6 -6
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue2/dist/{styles.367c17da.js → styles.06e1be5f.js} +2 -2
- package/packages/_vue2/dist/{styles.716893e3.cjs → styles.ab30731d.cjs} +3 -3
- package/packages/_vue3/dist/{block-wrapper.caa27b4d.cjs → block-wrapper.8543e3fe.cjs} +1 -1
- package/packages/_vue3/dist/{block-wrapper.0590efed.js → block-wrapper.fa25d8d3.js} +2 -2
- package/packages/_vue3/dist/{component-ref.7c88b254.cjs → component-ref.448dc8fb.cjs} +1 -1
- package/packages/_vue3/dist/{component-ref.9039745a.js → component-ref.72eb813f.js} +2 -2
- package/packages/_vue3/dist/{get-block-actions.cc5999ea.js → get-block-actions.27d7ef56.js} +1 -1
- package/packages/_vue3/dist/{get-block-actions.a8cbb712.cjs → get-block-actions.f8f272df.cjs} +1 -1
- package/packages/_vue3/dist/{index.52e5e57e.js → index.4a0c8828.js} +584 -569
- package/packages/_vue3/dist/{index.a789f147.cjs → index.95dacfa2.cjs} +26 -26
- package/packages/_vue3/dist/{repeated-block.1eba0fc4.js → repeated-block.11b2de7c.js} +2 -2
- package/packages/_vue3/dist/{repeated-block.e0f9db51.cjs → repeated-block.f55959d7.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/builder.context.29ec27bd.js +0 -18
- package/packages/_vue2/dist/builder.context.e22f06a0.cjs +0 -1
- package/packages/_vue2/dist/enable-editor.12c3716b.cjs +0 -1
- package/packages/_vue2/dist/get-block-actions.88b6dbbf.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.deb6b33a.cjs +0 -1
- package/packages/_vue2/dist/index.051a3d7b.cjs +0 -32
- package/packages/_vue2/dist/interactive-element.12db10c4.cjs +0 -1
- package/packages/_vue2/dist/repeated-block.0343c63e.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as h } from "vue";
|
|
2
|
-
import { T as S, c as i, g as k, a as m, n as y } from "./index.
|
|
3
|
-
import { g as f } from "./get-processed-block.
|
|
4
|
-
import { c as n } from "./css.
|
|
5
|
-
import "./evaluate.
|
|
6
|
-
const _ = () => import("./inlined-styles.
|
|
2
|
+
import { T as S, c as i, g as k, a as m, n as y } from "./index.e6fc80c7.js";
|
|
3
|
+
import { g as f } from "./get-processed-block.23166082.js";
|
|
4
|
+
import { c as n } from "./css.8dff19fe.js";
|
|
5
|
+
import "./evaluate.df5fb75e.js";
|
|
6
|
+
const _ = () => import("./inlined-styles.e3020f6b.js").then((t) => t.default).catch((t) => {
|
|
7
7
|
throw console.error(
|
|
8
8
|
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
9
9
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),s=require("./index.d33db46c.cjs"),p=require("./get-processed-block.5831b148.cjs"),n=require("./css.2e7fbfd1.cjs");require("./evaluate.f450642c.cjs");const S=()=>Promise.resolve().then(()=>require("./inlined-styles.73a58431.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",e),e}),y=h.defineComponent({name:"block-styles",components:{"inlined-styles":S},props:["block","context"],data(){return{processedBlock:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),TARGET:s.TARGET}},computed:{canShowBlock(){return s.checkIsDefined(this.processedBlock.hide)?!this.processedBlock.hide:s.checkIsDefined(this.processedBlock.show)?this.processedBlock.show:!0},css(){var a;const e=this.processedBlock.responsiveStyles,t=this.context.content,o=s.getSizesForBreakpoints(((a=t==null?void 0:t.meta)==null?void 0:a.breakpoints)||{}),r=e==null?void 0:e.large,l=e==null?void 0:e.medium,i=e==null?void 0:e.small,c=this.processedBlock.id;if(!c)return"";const d=r?n.createCssClass({className:c,styles:r}):"",u=l?n.createCssClass({className:c,styles:l,mediaQuery:s.getMaxWidthQueryForSize("medium",o)}):"",m=i?n.createCssClass({className:c,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",o)}):"";return[d,u,m].join(" ")}}});var k=function(){var t=this,o=t._self._c;return t._self._setupProxy,t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?o("inlined-styles",{attrs:{styles:t.css}}):t._e()},f=[],_=s.normalizeComponent(y,k,f,!1,null,null,null,null);const v=_.exports;exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./get-block-actions.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./get-block-actions.6ca6c225.cjs"),r=require("./get-block-properties.88fdcf9e.cjs"),n=require("./index.d33db46c.cjs");require("./evaluate.f450642c.cjs");require("./css.2e7fbfd1.cjs");const l=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:c.getBlockActions,getBlockProperties:r.getBlockProperties}}});var a=function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasChildren?e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})),[t._t("default")],2):e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})))},s=[],i=n.normalizeComponent(l,a,s,!1,null,null,null,null);const p=i.exports;exports.default=p;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e } from "vue";
|
|
2
|
-
import { g as r } from "./get-block-actions.
|
|
3
|
-
import { g as c } from "./get-block-properties.
|
|
4
|
-
import { n } from "./index.
|
|
5
|
-
import "./evaluate.
|
|
6
|
-
import "./css.
|
|
2
|
+
import { g as r } from "./get-block-actions.19a0ecef.js";
|
|
3
|
+
import { g as c } from "./get-block-properties.d589f252.js";
|
|
4
|
+
import { n } from "./index.e6fc80c7.js";
|
|
5
|
+
import "./evaluate.df5fb75e.js";
|
|
6
|
+
import "./css.8dff19fe.js";
|
|
7
7
|
const a = e({
|
|
8
8
|
name: "block-wrapper",
|
|
9
9
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block.5831b148.cjs"),m=require("./evaluate.f450642c.cjs"),d=require("./index.d33db46c.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),b=({block:t,context:e,registeredComponents:o})=>{var r;const c=(r=a.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!c)return null;const n=o[c];if(n)return n;console.warn(`
|
|
2
2
|
Could not find a registered component named "${c}".
|
|
3
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({block:t,context:e})=>{const{repeat:o,...c}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const r=o.collection.split(".").pop(),s=o.itemName||(r?r+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:c}))},C=()=>Promise.resolve().then(()=>require("./block-styles.
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({block:t,context:e})=>{const{repeat:o,...c}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const r=o.collection.split(".").pop(),s=o.itemName||(r?r+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:c}))},C=()=>Promise.resolve().then(()=>require("./block-styles.e65d44f5.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block.1c865156.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./component-ref.2f39178c.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),y=()=>Promise.resolve().then(()=>require("./block-wrapper.9745ba6c.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=p.defineComponent({name:"block",components:{"component-ref":g,"block-wrapper":y,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return b({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return f({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:a.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},childrenWithoutParentComponent(){var e,o;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?(o=this.processedBlock.children)!=null?o:[]:[]},componentRefProps(){var t,e,o,c,n,r;return{blockChildren:(t=this.processedBlock.children)!=null?t:[],componentRef:(e=this.blockComponent)==null?void 0:e.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((o=this.blockComponent)==null?void 0:o.name)==="Symbol"||((c=this.blockComponent)==null?void 0:c.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((n=this.blockComponent)==null?void 0:n.noWrap)===!0,isInteractive:!((r=this.blockComponent)!=null&&r.isRSC)}}}});var x=function(){var c;var e=this,o=e._self._c;return e._self._setupProxy,!Boolean(!((c=e.blockComponent)!=null&&c.noWrap))&&e.canShowBlock?o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,r){return o("repeated-block",{key:r,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)),e._l(e.childrenWithoutParentComponent,function(n,r){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,r){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},v=[],w=d.normalizeComponent(B,x,v,!1,null,null,null,null);const _=w.exports;exports.default=_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as a } from "./get-processed-block.
|
|
3
|
-
import { e as m } from "./evaluate.
|
|
4
|
-
import { n as d } from "./index.
|
|
2
|
+
import { g as a } from "./get-processed-block.23166082.js";
|
|
3
|
+
import { e as m } from "./evaluate.df5fb75e.js";
|
|
4
|
+
import { n as d } from "./index.e6fc80c7.js";
|
|
5
5
|
function h(e) {
|
|
6
6
|
var t;
|
|
7
7
|
return {
|
|
@@ -65,22 +65,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
65
65
|
},
|
|
66
66
|
block: c
|
|
67
67
|
}));
|
|
68
|
-
}, C = () => import("./block-styles.
|
|
68
|
+
}, C = () => import("./block-styles.59ab7031.js").then((e) => e.default).catch((e) => {
|
|
69
69
|
throw console.error(
|
|
70
70
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
71
71
|
e
|
|
72
72
|
), e;
|
|
73
|
-
}), S = () => import("./repeated-block.
|
|
73
|
+
}), S = () => import("./repeated-block.0f2faa8d.js").then((e) => e.default).catch((e) => {
|
|
74
74
|
throw console.error(
|
|
75
75
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
76
76
|
e
|
|
77
77
|
), e;
|
|
78
|
-
}), g = () => import("./component-ref.
|
|
78
|
+
}), g = () => import("./component-ref.4f7cf332.js").then((e) => e.default).catch((e) => {
|
|
79
79
|
throw console.error(
|
|
80
80
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
81
81
|
e
|
|
82
82
|
), e;
|
|
83
|
-
}), y = () => import("./block-wrapper.
|
|
83
|
+
}), y = () => import("./block-wrapper.cce236ce.js").then((e) => e.default).catch((e) => {
|
|
84
84
|
throw console.error(
|
|
85
85
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
86
86
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index.d33db46c.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),p=require("./get-block-properties.88fdcf9e.cjs"),a=require("./index.d33db46c.cjs");require("./css.2e7fbfd1.cjs");const m=({componentOptions:t,builderBlock:e,context:n,componentRef:o,includeBlockProps:r,isInteractive:l,contextValue:s})=>l?{Wrapper:o,block:e,context:n,wrapperProps:t}:{...t,...r?{attributes:p.getBlockProperties({block:e,context:s})}:{}},u=()=>Promise.resolve().then(()=>require("./block-styles.e65d44f5.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),d=()=>Promise.resolve().then(()=>require("./block.01a27eab.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element.165bdd65.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),k=i.defineComponent({name:"component-ref",components:{block:d,"block-styles":u,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c:this.componentRef,getWrapperProps:m}}});var b=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},f=[],v=a.normalizeComponent(k,b,f,!1,null,null,null,null);const _=v.exports;exports.default=_;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as s } from "./get-block-properties.
|
|
3
|
-
import { n as a } from "./index.
|
|
4
|
-
import "./css.
|
|
2
|
+
import { g as s } from "./get-block-properties.d589f252.js";
|
|
3
|
+
import { n as a } from "./index.e6fc80c7.js";
|
|
4
|
+
import "./css.8dff19fe.js";
|
|
5
5
|
const m = ({
|
|
6
6
|
componentOptions: t,
|
|
7
7
|
builderBlock: e,
|
|
@@ -23,17 +23,17 @@ const m = ({
|
|
|
23
23
|
context: i
|
|
24
24
|
})
|
|
25
25
|
} : {}
|
|
26
|
-
}, k = () => import("./block-styles.
|
|
26
|
+
}, k = () => import("./block-styles.59ab7031.js").then((t) => t.default).catch((t) => {
|
|
27
27
|
throw console.error(
|
|
28
28
|
"Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
|
|
29
29
|
t
|
|
30
30
|
), t;
|
|
31
|
-
}), u = () => import("./block.
|
|
31
|
+
}), u = () => import("./block.63da4044.js").then((t) => t.default).catch((t) => {
|
|
32
32
|
throw console.error(
|
|
33
33
|
"Error while attempting to dynamically import component Block at ../../block.vue",
|
|
34
34
|
t
|
|
35
35
|
), t;
|
|
36
|
-
}), c = () => import("./interactive-element.
|
|
36
|
+
}), c = () => import("./interactive-element.6bd49ec9.js").then((t) => t.default).catch((t) => {
|
|
37
37
|
throw console.error(
|
|
38
38
|
"Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
|
|
39
39
|
t
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { n as u, b as y, d as x, B as v, C as S, F as
|
|
3
|
-
const
|
|
2
|
+
import { n as u, b as y, d as x, B as v, C as S, F as _, I as T, S as I, e as C, h as w, V as k, j as F, k as f, s as g, T as R, m as E } from "./index.e6fc80c7.js";
|
|
3
|
+
const V = {
|
|
4
4
|
name: "Core:Button",
|
|
5
5
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
6
6
|
defaultStyles: {
|
|
@@ -32,7 +32,7 @@ const E = {
|
|
|
32
32
|
}],
|
|
33
33
|
static: !0,
|
|
34
34
|
noWrap: !0
|
|
35
|
-
},
|
|
35
|
+
}, A = {
|
|
36
36
|
name: "Columns",
|
|
37
37
|
isRSC: !0,
|
|
38
38
|
inputs: [{
|
|
@@ -232,13 +232,13 @@ const E = {
|
|
|
232
232
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
233
233
|
advanced: !0
|
|
234
234
|
}]
|
|
235
|
-
},
|
|
235
|
+
}, $ = {
|
|
236
236
|
name: "Fragment",
|
|
237
237
|
static: !0,
|
|
238
238
|
hidden: !0,
|
|
239
239
|
canHaveChildren: !0,
|
|
240
240
|
noWrap: !0
|
|
241
|
-
},
|
|
241
|
+
}, W = {
|
|
242
242
|
name: "Image",
|
|
243
243
|
static: !0,
|
|
244
244
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -338,7 +338,7 @@ const E = {
|
|
|
338
338
|
advanced: !0,
|
|
339
339
|
defaultValue: 0.7041
|
|
340
340
|
}]
|
|
341
|
-
},
|
|
341
|
+
}, P = {
|
|
342
342
|
name: "Core:Section",
|
|
343
343
|
static: !0,
|
|
344
344
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -377,7 +377,7 @@ const E = {
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}]
|
|
380
|
-
},
|
|
380
|
+
}, U = {
|
|
381
381
|
name: "Symbol",
|
|
382
382
|
noWrap: !0,
|
|
383
383
|
static: !0,
|
|
@@ -410,7 +410,7 @@ const E = {
|
|
|
410
410
|
hideFromUI: !0,
|
|
411
411
|
type: "boolean"
|
|
412
412
|
}]
|
|
413
|
-
},
|
|
413
|
+
}, j = {
|
|
414
414
|
name: "Text",
|
|
415
415
|
static: !0,
|
|
416
416
|
isRSC: !0,
|
|
@@ -428,7 +428,7 @@ const E = {
|
|
|
428
428
|
height: "auto",
|
|
429
429
|
textAlign: "center"
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, H = {
|
|
432
432
|
name: "Video",
|
|
433
433
|
canHaveChildren: !0,
|
|
434
434
|
defaultStyles: {
|
|
@@ -509,7 +509,7 @@ const E = {
|
|
|
509
509
|
defaultValue: !0,
|
|
510
510
|
advanced: !0
|
|
511
511
|
}]
|
|
512
|
-
},
|
|
512
|
+
}, L = {
|
|
513
513
|
name: "Embed",
|
|
514
514
|
static: !0,
|
|
515
515
|
inputs: [{
|
|
@@ -534,7 +534,7 @@ const E = {
|
|
|
534
534
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
535
535
|
hideFromUI: !0
|
|
536
536
|
}]
|
|
537
|
-
},
|
|
537
|
+
}, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), N = p({
|
|
538
538
|
name: "builder-embed",
|
|
539
539
|
props: ["content"],
|
|
540
540
|
data() {
|
|
@@ -567,7 +567,7 @@ const E = {
|
|
|
567
567
|
this.scriptsInserted.push(n.src);
|
|
568
568
|
const a = document.createElement("script");
|
|
569
569
|
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
570
|
-
} else if (
|
|
570
|
+
} else if (D(n) && !this.scriptsRun.includes(n.innerText))
|
|
571
571
|
try {
|
|
572
572
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
573
573
|
} catch (a) {
|
|
@@ -577,20 +577,20 @@ const E = {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
|
-
var
|
|
580
|
+
var q = function() {
|
|
581
581
|
var t = this, n = t._self._c;
|
|
582
582
|
return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
|
|
583
|
-
},
|
|
584
|
-
D,
|
|
583
|
+
}, B = [], M = /* @__PURE__ */ u(
|
|
585
584
|
N,
|
|
586
585
|
q,
|
|
586
|
+
B,
|
|
587
587
|
!1,
|
|
588
588
|
null,
|
|
589
589
|
null,
|
|
590
590
|
null,
|
|
591
591
|
null
|
|
592
592
|
);
|
|
593
|
-
const
|
|
593
|
+
const K = M.exports, O = p({
|
|
594
594
|
name: "builder-img-component",
|
|
595
595
|
props: [
|
|
596
596
|
"backgroundSize",
|
|
@@ -604,23 +604,23 @@ const M = B.exports, K = p({
|
|
|
604
604
|
return { isEditing: y, filterAttrs: x };
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
|
-
var
|
|
607
|
+
var J = function() {
|
|
608
608
|
var t = this, n = t._self._c;
|
|
609
609
|
return t._self._setupProxy, n("img", t._g(t._b({ key: t.isEditing() && t.imgSrc || "default-key", style: {
|
|
610
610
|
objectFit: t.backgroundSize || "cover",
|
|
611
611
|
objectPosition: t.backgroundPosition || "center"
|
|
612
612
|
}, attrs: { alt: t.altText, src: t.imgSrc || t.image } }, "img", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)));
|
|
613
|
-
},
|
|
614
|
-
K,
|
|
613
|
+
}, Y = [], G = /* @__PURE__ */ u(
|
|
615
614
|
O,
|
|
616
615
|
J,
|
|
616
|
+
Y,
|
|
617
617
|
!1,
|
|
618
618
|
null,
|
|
619
619
|
null,
|
|
620
620
|
null,
|
|
621
621
|
null
|
|
622
622
|
);
|
|
623
|
-
const
|
|
623
|
+
const X = G.exports, Q = {
|
|
624
624
|
name: "Raw:Img",
|
|
625
625
|
hideFromInsertMenu: !0,
|
|
626
626
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -633,7 +633,7 @@ const G = Y.exports, X = {
|
|
|
633
633
|
}],
|
|
634
634
|
noWrap: !0,
|
|
635
635
|
static: !0
|
|
636
|
-
},
|
|
636
|
+
}, Z = p({
|
|
637
637
|
name: "builder-custom-code",
|
|
638
638
|
props: ["replaceNodes", "code"],
|
|
639
639
|
data() {
|
|
@@ -681,22 +681,22 @@ const G = Y.exports, X = {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
});
|
|
684
|
-
var
|
|
684
|
+
var ee = function() {
|
|
685
685
|
var t = this, n = t._self._c;
|
|
686
686
|
return t._self._setupProxy, n("div", { ref: "elem", class: t._classStringToObject(
|
|
687
687
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
688
688
|
), domProps: { innerHTML: t._s(t.code) } });
|
|
689
|
-
},
|
|
690
|
-
Q,
|
|
689
|
+
}, te = [], ne = /* @__PURE__ */ u(
|
|
691
690
|
Z,
|
|
692
691
|
ee,
|
|
692
|
+
te,
|
|
693
693
|
!1,
|
|
694
694
|
null,
|
|
695
695
|
null,
|
|
696
696
|
null,
|
|
697
697
|
null
|
|
698
698
|
);
|
|
699
|
-
const
|
|
699
|
+
const ae = ne.exports, oe = {
|
|
700
700
|
name: "Custom Code",
|
|
701
701
|
static: !0,
|
|
702
702
|
requiredPermissions: ["editCode"],
|
|
@@ -720,38 +720,38 @@ const ne = te.exports, ae = {
|
|
|
720
720
|
}]
|
|
721
721
|
}, b = () => [{
|
|
722
722
|
component: v,
|
|
723
|
-
...E
|
|
724
|
-
}, {
|
|
725
|
-
component: S,
|
|
726
723
|
...V
|
|
727
724
|
}, {
|
|
728
|
-
component:
|
|
729
|
-
...
|
|
725
|
+
component: S,
|
|
726
|
+
...A
|
|
730
727
|
}, {
|
|
731
|
-
component:
|
|
732
|
-
...
|
|
728
|
+
component: ae,
|
|
729
|
+
...oe
|
|
733
730
|
}, {
|
|
734
|
-
component:
|
|
735
|
-
...
|
|
731
|
+
component: K,
|
|
732
|
+
...L
|
|
736
733
|
}, {
|
|
737
734
|
component: _,
|
|
738
735
|
...$
|
|
739
736
|
}, {
|
|
740
|
-
component:
|
|
741
|
-
...X
|
|
742
|
-
}, {
|
|
743
|
-
component: I,
|
|
737
|
+
component: T,
|
|
744
738
|
...W
|
|
745
739
|
}, {
|
|
746
|
-
component:
|
|
740
|
+
component: X,
|
|
741
|
+
...Q
|
|
742
|
+
}, {
|
|
743
|
+
component: I,
|
|
747
744
|
...P
|
|
748
745
|
}, {
|
|
749
746
|
component: C,
|
|
750
747
|
...U
|
|
751
748
|
}, {
|
|
752
|
-
component:
|
|
749
|
+
component: w,
|
|
753
750
|
...j
|
|
754
|
-
}
|
|
751
|
+
}, {
|
|
752
|
+
component: k,
|
|
753
|
+
...H
|
|
754
|
+
}], ie = ({
|
|
755
755
|
content: e,
|
|
756
756
|
data: t,
|
|
757
757
|
locale: n
|
|
@@ -773,7 +773,7 @@ const ne = te.exports, ae = {
|
|
|
773
773
|
...a,
|
|
774
774
|
...i
|
|
775
775
|
};
|
|
776
|
-
},
|
|
776
|
+
}, re = ({
|
|
777
777
|
content: e,
|
|
778
778
|
data: t
|
|
779
779
|
}) => e ? {
|
|
@@ -783,33 +783,33 @@ const ne = te.exports, ae = {
|
|
|
783
783
|
...t
|
|
784
784
|
},
|
|
785
785
|
meta: e == null ? void 0 : e.meta
|
|
786
|
-
} : void 0,
|
|
786
|
+
} : void 0, se = () => import("./index.e6fc80c7.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
787
787
|
throw console.error(
|
|
788
788
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
789
789
|
e
|
|
790
790
|
), e;
|
|
791
|
-
}),
|
|
791
|
+
}), le = () => import("./styles.06e1be5f.js").then((e) => e.default).catch((e) => {
|
|
792
792
|
throw console.error(
|
|
793
793
|
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
794
794
|
e
|
|
795
795
|
), e;
|
|
796
|
-
}),
|
|
796
|
+
}), ce = () => import("./enable-editor.e9efcd2b.js").then((e) => e.default).catch((e) => {
|
|
797
797
|
throw console.error(
|
|
798
798
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
799
799
|
e
|
|
800
800
|
), e;
|
|
801
|
-
}),
|
|
801
|
+
}), de = () => import("./inlined-script.ed4af994.js").then((e) => e.default).catch((e) => {
|
|
802
802
|
throw console.error(
|
|
803
803
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
804
804
|
e
|
|
805
805
|
), e;
|
|
806
|
-
}),
|
|
806
|
+
}), pe = p({
|
|
807
807
|
name: "content-component",
|
|
808
808
|
components: {
|
|
809
|
-
"enable-editor":
|
|
810
|
-
"inlined-script":
|
|
811
|
-
"content-styles":
|
|
812
|
-
blocks:
|
|
809
|
+
"enable-editor": ce,
|
|
810
|
+
"inlined-script": de,
|
|
811
|
+
"content-styles": le,
|
|
812
|
+
blocks: se
|
|
813
813
|
},
|
|
814
814
|
props: [
|
|
815
815
|
"content",
|
|
@@ -849,12 +849,12 @@ const ne = te.exports, ae = {
|
|
|
849
849
|
{}
|
|
850
850
|
),
|
|
851
851
|
builderContextSignal: {
|
|
852
|
-
content:
|
|
852
|
+
content: re({
|
|
853
853
|
content: this.content,
|
|
854
854
|
data: this.data
|
|
855
855
|
}),
|
|
856
856
|
localState: void 0,
|
|
857
|
-
rootState:
|
|
857
|
+
rootState: ie({
|
|
858
858
|
content: this.content,
|
|
859
859
|
data: this.data,
|
|
860
860
|
locale: this.locale
|
|
@@ -879,27 +879,35 @@ const ne = te.exports, ae = {
|
|
|
879
879
|
TARGET: R
|
|
880
880
|
};
|
|
881
881
|
},
|
|
882
|
+
provide() {
|
|
883
|
+
const e = this;
|
|
884
|
+
return {
|
|
885
|
+
[E.key]: {
|
|
886
|
+
registeredComponents: e.registeredComponents
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
},
|
|
882
890
|
methods: {
|
|
883
891
|
contentSetState(e) {
|
|
884
892
|
this.builderContextSignal.rootState = e;
|
|
885
893
|
}
|
|
886
894
|
}
|
|
887
895
|
});
|
|
888
|
-
var
|
|
896
|
+
var ue = function() {
|
|
889
897
|
var a, i, l, o, r, s, c;
|
|
890
898
|
var t = this, n = t._self._c;
|
|
891
899
|
return t._self._setupProxy, n("enable-editor", t._b({ attrs: { content: t.content, model: t.model, context: t.context, apiKey: t.apiKey, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, classNameProp: t.classNameProp, showContent: t.showContent, builderContextSignal: t.builderContextSignal } }, "enable-editor", {}, !1), [t.isSsrAbTest ? [n("inlined-script", { attrs: { scriptStr: t.scriptStr } })] : t._e(), t.TARGET !== "reactNative" ? [n("content-styles", { attrs: { contentId: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (l = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : l.cssCode, customFonts: (r = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (s = t.builderContextSignal.content) == null ? void 0 : s.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
|
|
892
|
-
},
|
|
893
|
-
de,
|
|
900
|
+
}, me = [], he = /* @__PURE__ */ u(
|
|
894
901
|
pe,
|
|
895
902
|
ue,
|
|
903
|
+
me,
|
|
896
904
|
!1,
|
|
897
905
|
null,
|
|
898
906
|
null,
|
|
899
907
|
null,
|
|
900
908
|
null
|
|
901
909
|
);
|
|
902
|
-
const
|
|
910
|
+
const be = he.exports;
|
|
903
911
|
export {
|
|
904
|
-
|
|
912
|
+
be as default
|
|
905
913
|
};
|