@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/README.md
CHANGED
|
@@ -13,7 +13,7 @@ NOTE: if you are using Nuxt, you will need to add the SDK's Nuxt module in `nuxt
|
|
|
13
13
|
```js
|
|
14
14
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
15
15
|
export default defineNuxtConfig({
|
|
16
|
-
|
|
16
|
+
modules: ['@builder.io/sdk-vue/nuxt'],
|
|
17
17
|
});
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-G94Y3yOE.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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { defineComponent as t, renderSlot as o } from "vue";
|
|
3
|
+
import { e as r } from "./index-IkCq97zU.js";
|
|
4
|
+
const n = t({
|
|
5
|
+
name: "awaiter",
|
|
6
|
+
props: [],
|
|
7
|
+
mounted() {
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
function a(e, s, p, f, i, m) {
|
|
11
|
+
return o(e.$slots, "default");
|
|
12
|
+
}
|
|
13
|
+
const u = /* @__PURE__ */ r(n, [["render", a]]);
|
|
14
|
+
export {
|
|
15
|
+
u as default
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-
|
|
1
|
+
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-G94Y3yOE.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,r=this.context.content,a=s.getSizesForBreakpoints(((y=r==null?void 0:r.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,c=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=c?s.createCssClass({className:n,styles:c,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,r,a,i,d){const c=l.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(l.openBlock(),l.createBlock(c,{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,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as C, resolveComponent as g, openBlock as $, createBlock as v, createCommentVNode as B } from "vue";
|
|
3
|
-
import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-
|
|
3
|
+
import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-IkCq97zU.js";
|
|
4
4
|
const z = C({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: _ },
|
|
@@ -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-Ub4OGrZU.cjs"),n=require("./index-G94Y3yOE.cjs"),c=()=>Promise.resolve().then(()=>require("./index-G94Y3yOE.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,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-pnQ6T89t.js";
|
|
4
|
+
import { e as m } from "./index-IkCq97zU.js";
|
|
5
|
+
const d = () => import("./index-IkCq97zU.js").then((e) => e.E).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
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
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";
|
|
3
|
+
import { e as h, B as S, w as y } from "./index-IkCq97zU.js";
|
|
4
|
+
import { a as C, g as A } from "./get-block-properties-pnQ6T89t.js";
|
|
5
|
+
const R = () => import("./awaiter-jLgWnSTO.js").then((e) => e.default).catch((e) => {
|
|
6
|
+
throw console.error(
|
|
7
|
+
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
|
+
e
|
|
9
|
+
), e;
|
|
10
|
+
}), E = d({
|
|
11
|
+
name: "interactive-element",
|
|
12
|
+
components: { Awaiter: P(R) },
|
|
13
|
+
props: ["includeBlockProps", "block", "context", "Wrapper", "wrapperProps"],
|
|
14
|
+
computed: {
|
|
15
|
+
attributes() {
|
|
16
|
+
return this.includeBlockProps ? {
|
|
17
|
+
...C({
|
|
18
|
+
block: this.block,
|
|
19
|
+
context: this.context
|
|
20
|
+
}),
|
|
21
|
+
...A({
|
|
22
|
+
block: this.block,
|
|
23
|
+
rootState: this.context.rootState,
|
|
24
|
+
rootSetState: this.context.rootSetState,
|
|
25
|
+
localState: this.context.localState,
|
|
26
|
+
context: this.context.context
|
|
27
|
+
})
|
|
28
|
+
} : {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function I(e, n, s, i, r, c) {
|
|
33
|
+
const t = k("Awaiter");
|
|
34
|
+
return e.Wrapper.load ? (o(), a(t, {
|
|
35
|
+
key: 0,
|
|
36
|
+
load: e.Wrapper.load,
|
|
37
|
+
fallback: e.Wrapper.fallback,
|
|
38
|
+
props: e.wrapperProps,
|
|
39
|
+
attributes: e.attributes
|
|
40
|
+
}, {
|
|
41
|
+
default: l(() => [
|
|
42
|
+
m(e.$slots, "default")
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), a(f(e.Wrapper), b({
|
|
46
|
+
key: 1,
|
|
47
|
+
attributes: e.attributes
|
|
48
|
+
}, e.wrapperProps), {
|
|
49
|
+
default: l(() => [
|
|
50
|
+
m(e.$slots, "default")
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16, ["attributes"]));
|
|
54
|
+
}
|
|
55
|
+
const u = /* @__PURE__ */ h(E, [["render", I]]), O = ({
|
|
56
|
+
componentOptions: e,
|
|
57
|
+
builderBlock: n,
|
|
58
|
+
context: s,
|
|
59
|
+
componentRef: i,
|
|
60
|
+
includeBlockProps: r,
|
|
61
|
+
isInteractive: c,
|
|
62
|
+
contextValue: t
|
|
63
|
+
}) => {
|
|
64
|
+
const p = {
|
|
65
|
+
...e,
|
|
66
|
+
/**
|
|
67
|
+
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
68
|
+
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
69
|
+
*/
|
|
70
|
+
...r ? {
|
|
71
|
+
attributes: C({
|
|
72
|
+
block: n,
|
|
73
|
+
context: t
|
|
74
|
+
})
|
|
75
|
+
} : {}
|
|
76
|
+
};
|
|
77
|
+
return c ? {
|
|
78
|
+
Wrapper: i,
|
|
79
|
+
block: n,
|
|
80
|
+
context: s,
|
|
81
|
+
wrapperProps: e,
|
|
82
|
+
includeBlockProps: r
|
|
83
|
+
} : p;
|
|
84
|
+
}, V = d({
|
|
85
|
+
name: "component-ref",
|
|
86
|
+
components: { Block: S, InteractiveElement: u },
|
|
87
|
+
props: [
|
|
88
|
+
"isInteractive",
|
|
89
|
+
"componentRef",
|
|
90
|
+
"componentOptions",
|
|
91
|
+
"builderBlock",
|
|
92
|
+
"context",
|
|
93
|
+
"linkComponent",
|
|
94
|
+
"includeBlockProps",
|
|
95
|
+
"blockChildren",
|
|
96
|
+
"registeredComponents"
|
|
97
|
+
],
|
|
98
|
+
data() {
|
|
99
|
+
return {
|
|
100
|
+
Wrapper: this.isInteractive ? y(u) : this.componentRef,
|
|
101
|
+
getWrapperProps: O
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
function z(e, n, s, i, r, c) {
|
|
106
|
+
const t = k("Block");
|
|
107
|
+
return e.componentRef ? (o(), a(f(e.Wrapper), B(b(
|
|
108
|
+
{ key: 0 },
|
|
109
|
+
e.getWrapperProps({
|
|
110
|
+
componentOptions: e.componentOptions,
|
|
111
|
+
builderBlock: e.builderBlock,
|
|
112
|
+
context: e.context,
|
|
113
|
+
componentRef: e.componentRef,
|
|
114
|
+
linkComponent: e.linkComponent,
|
|
115
|
+
includeBlockProps: e.includeBlockProps,
|
|
116
|
+
isInteractive: e.isInteractive,
|
|
117
|
+
contextValue: e.context
|
|
118
|
+
})
|
|
119
|
+
)), {
|
|
120
|
+
default: l(() => [
|
|
121
|
+
(o(!0), g($, null, v(e.blockChildren, (p, w) => (o(), a(t, {
|
|
122
|
+
key: p.id,
|
|
123
|
+
block: p,
|
|
124
|
+
context: e.context,
|
|
125
|
+
registeredComponents: e.registeredComponents,
|
|
126
|
+
linkComponent: e.linkComponent
|
|
127
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 16)) : W("", !0);
|
|
131
|
+
}
|
|
132
|
+
const j = /* @__PURE__ */ h(V, [["render", z]]);
|
|
133
|
+
export {
|
|
134
|
+
j as default
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-G94Y3yOE.cjs"),a=require("./get-block-properties-Ub4OGrZU.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-A9QVJBD9.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,i,r,l){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:i,includeBlockProps:r,isInteractive:l,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return l?{Wrapper:i,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,i,r,l){const o=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(p,k)=>(t.openBlock(),t.createBlock(o,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const h=c._export_sfc(B,[["render",C]]);exports.default=h;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -13,21 +13,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
context?: any;
|
|
14
14
|
block?: any;
|
|
15
15
|
includeBlockProps?: any;
|
|
16
|
-
wrapperProps?: any;
|
|
17
16
|
Wrapper?: any;
|
|
17
|
+
wrapperProps?: any;
|
|
18
18
|
}>, unknown, unknown, {
|
|
19
19
|
attributes(): {};
|
|
20
20
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
21
21
|
context?: any;
|
|
22
22
|
block?: any;
|
|
23
23
|
includeBlockProps?: any;
|
|
24
|
-
wrapperProps?: any;
|
|
25
24
|
Wrapper?: any;
|
|
25
|
+
wrapperProps?: any;
|
|
26
26
|
}>>>, {
|
|
27
27
|
readonly context?: any;
|
|
28
28
|
readonly block?: any;
|
|
29
29
|
readonly includeBlockProps?: any;
|
|
30
|
-
readonly wrapperProps?: any;
|
|
31
30
|
readonly Wrapper?: any;
|
|
31
|
+
readonly wrapperProps?: any;
|
|
32
32
|
}, {}>;
|
|
33
33
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.20";
|
|
@@ -3,9 +3,10 @@ import type { ApiVersion } from '../types/api-version';
|
|
|
3
3
|
import type { BuilderContent } from '../types/builder-content';
|
|
4
4
|
import type { ComponentInfo } from '../types/components';
|
|
5
5
|
import type { Dictionary, Nullable } from '../types/typescript';
|
|
6
|
+
import type { ComponentReference } from './component-reference-types';
|
|
6
7
|
import type { ExtraContextTypes } from './extra-context-types';
|
|
7
8
|
export type RegisteredComponent = ComponentInfo & {
|
|
8
|
-
component:
|
|
9
|
+
component: ComponentReference;
|
|
9
10
|
};
|
|
10
11
|
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
11
12
|
export type BuilderRenderState = Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const a=require("./index-
|
|
1
|
+
var d=require("./style.css");const a=require("./index-G94Y3yOE.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 p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(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=f;
|