@builder.io/sdk-vue 2.0.16 → 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/README.md +1 -1
- package/lib/browser/awaiter-A9QVJBD9.cjs +1 -0
- package/lib/browser/awaiter-jLgWnSTO.js +16 -0
- package/lib/browser/{block-styles-wdfZngGH.cjs → block-styles-FLI6qMZg.cjs} +1 -1
- package/lib/browser/{block-styles-J1Ycb5k6.js → block-styles-McsYN1Hd.js} +1 -1
- package/lib/browser/{block-wrapper-0yNnaWi7.cjs → block-wrapper-c1TRGGdm.cjs} +1 -1
- package/lib/browser/{block-wrapper-WNcg8adi.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-EYg8xaCR.cjs → get-block-properties-Ub4OGrZU.cjs} +1 -1
- package/lib/browser/{get-block-properties-9178299s.js → get-block-properties-pnQ6T89t.js} +1 -1
- package/lib/browser/{index-NFUE2Jgz.cjs → index-G94Y3yOE.cjs} +3 -3
- package/lib/browser/{index-LzjDY2XM.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-qTqSm8kM.js → repeated-block-9kzlJZ0z.js} +2 -2
- package/lib/browser/{repeated-block-BQJwYMB1.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-VxOvC1TW.cjs → block-styles-dBm-UB6s.cjs} +1 -1
- package/lib/{node/block-styles-1_5JG_2z.js → edge/block-styles-e5rHDnez.js} +1 -1
- package/lib/edge/{block-wrapper--PIvpZ-W.js → block-wrapper-IsmLQCso.js} +3 -3
- package/lib/{node/block-wrapper-ofVcndkY.cjs → edge/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-YnnLDBjt.cjs → get-block-properties-FTpxQBNr.cjs} +1 -1
- package/lib/{node/get-block-properties-dtlboGe6.js → edge/get-block-properties-jWWYZFYS.js} +1 -1
- package/lib/edge/{index-_G5Jct0s.js → index-a1uEIlXu.js} +15 -15
- package/lib/edge/{index-sCP9BbUb.cjs → index-wbH9RC9d.cjs} +10 -10
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-BFv7xfur.cjs → repeated-block--9pU5oBU.cjs} +1 -1
- package/lib/edge/{repeated-block-xjv5lSgT.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-nafXA7XU.cjs +1 -0
- package/lib/{edge/block-styles-ZXgAEao4.js → node/block-styles-z1hRu_oN.js} +16 -15
- package/lib/{edge/block-wrapper-_Jqy6OhJ.cjs → node/block-wrapper-7Zyz-IHk.cjs} +1 -1
- package/lib/node/{block-wrapper-V_pureM-.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-3bo9EXiT.cjs +1 -0
- package/lib/{edge/get-block-properties-1IIhEm1L.js → node/get-block-properties-7k5SVVoM.js} +17 -16
- package/lib/node/{index-trhIUBJe.js → index-arpbCDNz.js} +906 -1136
- package/lib/node/index-m2Te0zyE.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +17 -16
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.d.cts +14 -0
- package/lib/node/init.d.mts +14 -0
- package/lib/node/init.mjs +15 -0
- package/lib/node/{repeated-block-DGLvKNeT.js → repeated-block-7xPIdLvm.js} +13 -13
- package/lib/node/{repeated-block-3sS8LQKZ.cjs → repeated-block-opGUN59c.cjs} +1 -1
- package/lib/node/should-force-browser-runtime-in-node-Hy3G5eB4.js +248 -0
- package/lib/node/should-force-browser-runtime-in-node-cm1lg4FM.cjs +48 -0
- package/lib/node/style.css +1 -1
- package/nuxt-isolated-vm-plugin.js +14 -0
- package/nuxt.js +31 -2
- package/package.json +7 -2
- package/lib/browser/component-ref-ZQ1LWsdM.js +0 -114
- package/lib/browser/component-ref-vgKnLwfE.cjs +0 -1
- package/lib/edge/component-ref-Gmo3ST7V.cjs +0 -1
- package/lib/edge/component-ref-J3KW7NWq.js +0 -113
- package/lib/node/block-styles-_qZsI9c3.cjs +0 -1
- package/lib/node/component-ref--fBJ8B90.cjs +0 -1
- package/lib/node/component-ref-i-BTHCKC.js +0 -113
- package/lib/node/get-block-properties-WxCzIZPQ.cjs +0 -1
- package/lib/node/index-Yv0J5kjl.cjs +0 -213
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { n as a, j as r, k as o, C as i, o as n, F as c, I as g, S as m, l, m as u, V as d, z as p, r as C, y as B, A as E, D as S, u as f, p as h, q as x, s as b, t as k, x as y, v as P } from "./index-
|
|
2
|
+
import { n as a, j as r, k as o, C as i, o as n, F as c, I as g, S as m, l, m as u, V as d, z as p, r as C, y as B, A as E, D as S, u as f, p as h, q as x, s as b, t as k, x as y, v as P } from "./index-IkCq97zU.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Blocks,
|
|
5
5
|
r as BuilderContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as c } from "vue";
|
|
3
|
-
import { j as s, e as l } from "./index-
|
|
4
|
-
const i = () => import("./index-
|
|
3
|
+
import { j as s, e as l } from "./index-IkCq97zU.js";
|
|
4
|
+
const i = () => import("./index-IkCq97zU.js").then((o) => o.G).then((o) => o.default).catch((o) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
7
7
|
o
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-G94Y3yOE.cjs"),r=()=>Promise.resolve().then(()=>require("./index-G94Y3yOE.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,m,a,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;
|
package/lib/browser/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 { e as r } from "./index-a1uEIlXu.js";
|
|
3
|
+
const n = t({
|
|
4
|
+
name: "awaiter",
|
|
5
|
+
props: [],
|
|
6
|
+
mounted() {
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
function a(e, s, p, f, c, d) {
|
|
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-wbH9RC9d.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 l=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-wbH9RC9d.cjs"),f=l.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 y,p,h;const e=this.block,t=e.responsiveStyles,c=this.context.content,a=s.getSizesForBreakpoints(((y=c==null?void 0:c.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,r=t==null?void 0:t.small,n=e.id;if(!n)return"";const S=i?s.createCssClass({className:n,styles:i}):"",k=d?s.createCssClass({className:n,styles:d,mediaQuery:s.getMaxWidthQueryForSize("medium",a)}):"",C=r?s.createCssClass({className:n,styles:r,mediaQuery:s.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let u="";if(o){const m=((h=(p=o.steps)==null?void 0:p[1])==null?void 0:h.styles)||{};u=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${s.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[S,k,C,u].join(" ")}}});function b(e,t,c,a,i,d){const r=l.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(l.openBlock(),l.createBlock(r,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):l.createCommentVNode("",!0)}const g=s._export_sfc(f,[["render",b]]);exports.default=g;
|
|
@@ -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 { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-
|
|
2
|
+
import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-a1uEIlXu.js";
|
|
3
3
|
const z = C({
|
|
4
4
|
name: "block-styles",
|
|
5
5
|
components: { InlinedStyles: _ },
|
|
@@ -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 { e as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-jWWYZFYS.js";
|
|
3
|
+
import { e as m } from "./index-a1uEIlXu.js";
|
|
4
|
+
const d = () => import("./index-a1uEIlXu.js").then((e) => e.E).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
|
|
@@ -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-FTpxQBNr.cjs"),n=require("./index-wbH9RC9d.cjs"),c=()=>Promise.resolve().then(()=>require("./index-wbH9RC9d.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-wbH9RC9d.cjs"),a=require("./get-block-properties-FTpxQBNr.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-qkwHnyG4.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,134 @@
|
|
|
1
|
+
import { defineComponent as d, 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 { e as h, B as S, w as y } from "./index-a1uEIlXu.js";
|
|
3
|
+
import { a as C, g as A } from "./get-block-properties-jWWYZFYS.js";
|
|
4
|
+
const R = () => import("./awaiter-EaEHpSME.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 = d({
|
|
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 u = /* @__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 = d({
|
|
84
|
+
name: "component-ref",
|
|
85
|
+
components: { Block: S, InteractiveElement: u },
|
|
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(u) : 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,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 a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-wbH9RC9d.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({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:a.getStyle({block:e,context:t}),[a.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=p;
|
|
@@ -3126,7 +3126,7 @@ function eo(e, t) {
|
|
|
3126
3126
|
const n = new URL(t.origin), r = n.hostname;
|
|
3127
3127
|
return (e || _i).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
3128
3128
|
}
|
|
3129
|
-
const Yi = "2.0.
|
|
3129
|
+
const Yi = "2.0.20", Zi = () => {
|
|
3130
3130
|
Oi("insertMenu", {
|
|
3131
3131
|
name: "_default",
|
|
3132
3132
|
default: !0,
|
|
@@ -3699,22 +3699,22 @@ const bs = ({
|
|
|
3699
3699
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3700
3700
|
e
|
|
3701
3701
|
), e;
|
|
3702
|
-
}), Is = () => import("./block-styles-
|
|
3702
|
+
}), Is = () => import("./block-styles-e5rHDnez.js").then((e) => e.default).catch((e) => {
|
|
3703
3703
|
throw console.error(
|
|
3704
3704
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3705
3705
|
e
|
|
3706
3706
|
), e;
|
|
3707
|
-
}), xs = () => import("./block-wrapper
|
|
3707
|
+
}), xs = () => import("./block-wrapper-IsmLQCso.js").then((e) => e.default).catch((e) => {
|
|
3708
3708
|
throw console.error(
|
|
3709
3709
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3710
3710
|
e
|
|
3711
3711
|
), e;
|
|
3712
|
-
}), Rs = () => import("./component-ref-
|
|
3712
|
+
}), Rs = () => import("./component-ref-mDQskFmn.js").then((e) => e.default).catch((e) => {
|
|
3713
3713
|
throw console.error(
|
|
3714
3714
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3715
3715
|
e
|
|
3716
3716
|
), e;
|
|
3717
|
-
}), As = () => import("./repeated-block-
|
|
3717
|
+
}), As = () => import("./repeated-block-WbUp3X7n.js").then((e) => e.default).catch((e) => {
|
|
3718
3718
|
throw console.error(
|
|
3719
3719
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3720
3720
|
e
|
|
@@ -3930,7 +3930,7 @@ const Mn = /* @__PURE__ */ V($s, [["render", Ps]]), Tu = /* @__PURE__ */ Object.
|
|
|
3930
3930
|
function js(e, t, n, r, o, i) {
|
|
3931
3931
|
return y(), D(ct(e.BlocksWrapper), K({
|
|
3932
3932
|
ref: "blocksWrapperRef",
|
|
3933
|
-
class: e.className + " component-
|
|
3933
|
+
class: e.className + " component-1k2igrjdg3x",
|
|
3934
3934
|
"builder-path": e.path,
|
|
3935
3935
|
"builder-parent-id": e.parent,
|
|
3936
3936
|
style: e.styleProp,
|
|
@@ -3944,7 +3944,7 @@ function js(e, t, n, r, o, i) {
|
|
|
3944
3944
|
_: 3
|
|
3945
3945
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3946
3946
|
}
|
|
3947
|
-
const Bs = /* @__PURE__ */ V(Os, [["render", js], ["__scopeId", "data-v-
|
|
3947
|
+
const Bs = /* @__PURE__ */ V(Os, [["render", js], ["__scopeId", "data-v-162df12b"]]), Ns = j({
|
|
3948
3948
|
name: "builder-blocks",
|
|
3949
3949
|
components: { BlocksWrapper: Bs, Block: Mn },
|
|
3950
3950
|
props: [
|
|
@@ -4186,7 +4186,7 @@ function Hs(e, t, n, r, o, i) {
|
|
|
4186
4186
|
var m;
|
|
4187
4187
|
const a = U("InlinedStyles"), u = U("Blocks"), p = U("DynamicRenderer");
|
|
4188
4188
|
return y(), T("div", K({
|
|
4189
|
-
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-
|
|
4189
|
+
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-4wbls88y960",
|
|
4190
4190
|
style: e.columnsCssVars()
|
|
4191
4191
|
}, {}), [
|
|
4192
4192
|
e.TARGET !== "reactNative" ? (y(), D(a, {
|
|
@@ -4218,7 +4218,7 @@ function Hs(e, t, n, r, o, i) {
|
|
|
4218
4218
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4219
4219
|
], 16);
|
|
4220
4220
|
}
|
|
4221
|
-
const Ks = /* @__PURE__ */ V(Ls, [["render", Hs], ["__scopeId", "data-v-
|
|
4221
|
+
const Ks = /* @__PURE__ */ V(Ls, [["render", Hs], ["__scopeId", "data-v-adc066fc"]]), qs = j({
|
|
4222
4222
|
name: "builder-fragment-component",
|
|
4223
4223
|
props: []
|
|
4224
4224
|
});
|
|
@@ -4311,7 +4311,7 @@ const _s = j({
|
|
|
4311
4311
|
}
|
|
4312
4312
|
}), Ys = ["srcset"], Zs = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], Qs = {
|
|
4313
4313
|
key: 2,
|
|
4314
|
-
class: "div-
|
|
4314
|
+
class: "div-29wpyomtntv-2"
|
|
4315
4315
|
};
|
|
4316
4316
|
function ea(e, t, n, r, o, i) {
|
|
4317
4317
|
var a, u, p, m, v, h;
|
|
@@ -4333,7 +4333,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4333
4333
|
...e.aspectRatioCss
|
|
4334
4334
|
}),
|
|
4335
4335
|
class: mt(
|
|
4336
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
4336
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
4337
4337
|
),
|
|
4338
4338
|
src: e.image,
|
|
4339
4339
|
srcset: e.srcSetToUse,
|
|
@@ -4342,7 +4342,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4342
4342
|
]),
|
|
4343
4343
|
e.aspectRatio && !((u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent) ? (y(), T("div", {
|
|
4344
4344
|
key: 0,
|
|
4345
|
-
class: "builder-image-sizer div-
|
|
4345
|
+
class: "builder-image-sizer div-29wpyomtntv",
|
|
4346
4346
|
style: Oe({
|
|
4347
4347
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4348
4348
|
})
|
|
@@ -4353,7 +4353,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4353
4353
|
])) : M("", !0)
|
|
4354
4354
|
], 64);
|
|
4355
4355
|
}
|
|
4356
|
-
const ta = /* @__PURE__ */ V(_s, [["render", ea], ["__scopeId", "data-v-
|
|
4356
|
+
const ta = /* @__PURE__ */ V(_s, [["render", ea], ["__scopeId", "data-v-77f8a6c4"]]), na = j({
|
|
4357
4357
|
name: "builder-section-component",
|
|
4358
4358
|
props: ["attributes", "maxWidth"],
|
|
4359
4359
|
data() {
|
|
@@ -5917,7 +5917,7 @@ const Ha = /* @__PURE__ */ V(Ma, [["render", La]]), Ka = {
|
|
|
5917
5917
|
}
|
|
5918
5918
|
}), Xa = ["validate", "action", "method", "name"], _a = {
|
|
5919
5919
|
key: 3,
|
|
5920
|
-
class: "builder-form-error-text pre-
|
|
5920
|
+
class: "builder-form-error-text pre-3q96myty4lk"
|
|
5921
5921
|
};
|
|
5922
5922
|
function Ya(e, t, n, r, o, i) {
|
|
5923
5923
|
var p;
|
|
@@ -5958,7 +5958,7 @@ function Ya(e, t, n, r, o, i) {
|
|
|
5958
5958
|
}, null, 8, ["blocks", "context"])) : M("", !0)
|
|
5959
5959
|
], 16, Xa);
|
|
5960
5960
|
}
|
|
5961
|
-
const Za = /* @__PURE__ */ V(Ja, [["render", Ya], ["__scopeId", "data-v-
|
|
5961
|
+
const Za = /* @__PURE__ */ V(Ja, [["render", Ya], ["__scopeId", "data-v-6e18f21b"]]), Qa = {
|
|
5962
5962
|
name: "Form:Input",
|
|
5963
5963
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
5964
5964
|
inputs: [
|