@builder.io/sdk-vue 2.0.0 → 2.0.1
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/block-styles-Csi42CXj.cjs +1 -0
- package/lib/browser/{block-styles-cVSrkWog.js → block-styles-svOVzDaV.js} +14 -13
- package/lib/browser/{block-wrapper-WsC3tXV8.cjs → block-wrapper-GE-RFbYp.cjs} +1 -1
- package/lib/browser/{block-wrapper-maIbj8Gi.js → block-wrapper-KGQI5yrU.js} +3 -3
- package/lib/browser/{component-ref-da6lIO9c.cjs → component-ref-X2UZCaau.cjs} +1 -1
- package/lib/browser/{component-ref-1N_Kijok.js → component-ref-k5NF2o_L.js} +2 -2
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/inlined-script.vue.d.ts +3 -0
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder.context.d.ts +1 -0
- package/lib/browser/context/types.d.ts +1 -0
- package/lib/browser/{get-block-properties-AuDiFohY.js → get-block-properties-1Sn1T_z8.js} +1 -1
- package/lib/browser/{get-block-properties-0QNsXkZI.cjs → get-block-properties-lkKJCs4_.cjs} +1 -1
- package/lib/browser/index-5WrmkFk4.cjs +166 -0
- package/lib/browser/{index-pDvo-fub.js → index-zc0i09p9.js} +47 -30
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-nP-Etgd7.js → repeated-block-BxE-FBVv.js} +2 -2
- package/lib/browser/{repeated-block-Z2UnXIU-.cjs → repeated-block-U8EfEnWl.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-props.d.ts +3 -0
- package/lib/edge/{block-styles--vY4nPqp.js → block-styles-F04q1oh7.js} +14 -13
- package/lib/edge/block-styles-fRc_JL86.cjs +1 -0
- package/lib/edge/{block-wrapper-JdVK1HVZ.js → block-wrapper-8j2OMXf0.js} +3 -3
- package/lib/{node/block-wrapper-TveOxTSb.cjs → edge/block-wrapper-ai3_EF77.cjs} +1 -1
- package/lib/{node/component-ref-N8Z1onkW.cjs → edge/component-ref-adfadHtQ.cjs} +1 -1
- package/lib/{node/component-ref-KnwCIp0k.js → edge/component-ref-okii_K_0.js} +2 -2
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/inlined-script.vue.d.ts +3 -0
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder.context.d.ts +1 -0
- package/lib/edge/context/types.d.ts +1 -0
- package/lib/edge/{get-block-properties-dww-G4lx.cjs → get-block-properties-T-X8E9sU.cjs} +1 -1
- package/lib/edge/{get-block-properties-hYo7UjjZ.js → get-block-properties-aLqPRHin.js} +1 -1
- package/lib/edge/{index-OtE_7PIE.js → index-Hw76nggP.js} +165 -148
- package/lib/edge/{index-lFidbDeW.cjs → index-kEvRBdly.cjs} +7 -7
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-vPgWRa-A.js → repeated-block-RuwJfamt.js} +2 -2
- package/lib/edge/{repeated-block-IMXruThl.cjs → repeated-block-iGJv6g_d.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-props.d.ts +3 -0
- package/lib/node/{block-styles-JjLwXWt4.js → block-styles-akqgR8wB.js} +14 -13
- package/lib/node/block-styles-fnIQFp0q.cjs +1 -0
- package/lib/{edge/block-wrapper-szOQNDWW.cjs → node/block-wrapper-x4ztktEw.cjs} +1 -1
- package/lib/node/{block-wrapper--XSKGCL-.js → block-wrapper-xIeM4taN.js} +3 -3
- package/lib/{edge/component-ref-Ffo8HUWI.js → node/component-ref-SSAGqUU1.js} +2 -2
- package/lib/{edge/component-ref-7HkRGS_l.cjs → node/component-ref-Xsv_XmLR.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content/components/styles.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/inlined-script.vue.d.ts +3 -0
- package/lib/node/components/inlined-styles.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder.context.d.ts +1 -0
- package/lib/node/context/types.d.ts +1 -0
- package/lib/node/{get-block-properties-Xr5L4Okr.js → get-block-properties-4897A0cX.js} +1 -1
- package/lib/node/{get-block-properties-inIHDjNu.cjs → get-block-properties-gYAacxBD.cjs} +1 -1
- package/lib/node/{index-EVLuO1iu.js → index-ZwTY1dOi.js} +47 -30
- package/lib/node/index-zlCXfe4Y.cjs +213 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-gAw64HdW.js → repeated-block-hqi2-jn4.js} +2 -2
- package/lib/node/{repeated-block-Co8byFSc.cjs → repeated-block-kVVd7Ki5.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-props.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/block-styles-fmMk_gc8.cjs +0 -1
- package/lib/browser/index-7PcQ3One.cjs +0 -166
- package/lib/edge/block-styles-UnZvcuhz.cjs +0 -1
- package/lib/node/block-styles-houtGRpT.cjs +0 -1
- package/lib/node/index-QFbjU7Zd.cjs +0 -213
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var b=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./index-5WrmkFk4.cjs"),f=c.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var m,h,y;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=e.responsiveStyles,a=this.context.content,r=t.getSizesForBreakpoints(((m=a==null?void 0:a.meta)==null?void 0:m.breakpoints)||{}),i=s==null?void 0:s.large,d=s==null?void 0:s.medium,l=s==null?void 0:s.small,n=e.id;if(!n)return"";const p=i?t.createCssClass({className:n,styles:i}):"",k=d?t.createCssClass({className:n,styles:d,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",C=l?t.createCssClass({className:n,styles:l,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"",o=e.animations&&e.animations.find(u=>u.trigger==="hover");let S="";if(o){const u=((y=(h=o.steps)==null?void 0:h[1])==null?void 0:y.styles)||{};S=t.createCssClass({className:`${n}:hover`,styles:{...u,transition:`all ${o.duration}s ${t.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[p,k,C,S].join(" ")}}});function g(e,s,a,r,i,d){const l=c.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(c.openBlock(),c.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):c.createCommentVNode("",!0)}const x=t._export_sfc(f,[["render",g]]);exports.default=x;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as
|
|
3
|
-
import { _
|
|
2
|
+
import { defineComponent as g, resolveComponent as B, openBlock as v, createBlock as C, createCommentVNode as $ } from "vue";
|
|
3
|
+
import { _, T, g as p, c as y, a as w, b as c, d as k, e as E, f as I } from "./index-zc0i09p9.js";
|
|
4
4
|
const N = g({
|
|
5
5
|
name: "block-styles",
|
|
6
|
-
components: { InlinedStyles:
|
|
6
|
+
components: { InlinedStyles: _ },
|
|
7
7
|
props: ["block", "context"],
|
|
8
8
|
data() {
|
|
9
9
|
return { TARGET: T };
|
|
@@ -29,33 +29,33 @@ const N = g({
|
|
|
29
29
|
rootSetState: this.context.rootSetState,
|
|
30
30
|
context: this.context.context,
|
|
31
31
|
shouldEvaluateBindings: !0
|
|
32
|
-
}), e = t.responsiveStyles, n = this.context.content,
|
|
32
|
+
}), e = t.responsiveStyles, n = this.context.content, l = w(
|
|
33
33
|
((S = n == null ? void 0 : n.meta) == null ? void 0 : S.breakpoints) || {}
|
|
34
34
|
), r = e == null ? void 0 : e.large, i = e == null ? void 0 : e.medium, a = e == null ? void 0 : e.small, o = t.id;
|
|
35
35
|
if (!o)
|
|
36
36
|
return "";
|
|
37
|
-
const f = r ?
|
|
37
|
+
const f = r ? c({
|
|
38
38
|
className: o,
|
|
39
39
|
styles: r
|
|
40
|
-
}) : "", x = i ?
|
|
40
|
+
}) : "", x = i ? c({
|
|
41
41
|
className: o,
|
|
42
42
|
styles: i,
|
|
43
43
|
mediaQuery: k(
|
|
44
44
|
"medium",
|
|
45
|
-
|
|
45
|
+
l
|
|
46
46
|
)
|
|
47
|
-
}) : "", b = a ?
|
|
47
|
+
}) : "", b = a ? c({
|
|
48
48
|
className: o,
|
|
49
49
|
styles: a,
|
|
50
50
|
mediaQuery: k(
|
|
51
51
|
"small",
|
|
52
|
-
|
|
52
|
+
l
|
|
53
53
|
)
|
|
54
54
|
}) : "", s = t.animations && t.animations.find((d) => d.trigger === "hover");
|
|
55
55
|
let m = "";
|
|
56
56
|
if (s) {
|
|
57
57
|
const d = ((h = (u = s.steps) == null ? void 0 : u[1]) == null ? void 0 : h.styles) || {};
|
|
58
|
-
m =
|
|
58
|
+
m = c({
|
|
59
59
|
className: `${o}:hover`,
|
|
60
60
|
styles: {
|
|
61
61
|
...d,
|
|
@@ -75,13 +75,14 @@ const N = g({
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
function z(t, e, n,
|
|
78
|
+
function z(t, e, n, l, r, i) {
|
|
79
79
|
const a = B("InlinedStyles");
|
|
80
80
|
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (v(), C(a, {
|
|
81
81
|
key: 0,
|
|
82
82
|
id: "builderio-block",
|
|
83
|
-
styles: t.css
|
|
84
|
-
|
|
83
|
+
styles: t.css,
|
|
84
|
+
nonce: t.context.nonce
|
|
85
|
+
}, null, 8, ["styles", "nonce"])) : $("", !0);
|
|
85
86
|
}
|
|
86
87
|
const F = /* @__PURE__ */ I(N, [["render", z]]);
|
|
87
88
|
export {
|
|
@@ -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-lkKJCs4_.cjs"),n=require("./index-5WrmkFk4.cjs"),c=()=>Promise.resolve().then(()=>require("./index-5WrmkFk4.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 { f as m } from "./index-
|
|
5
|
-
const d = () => import("./index-
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-1Sn1T_z8.js";
|
|
4
|
+
import { f as m } from "./index-zc0i09p9.js";
|
|
5
|
+
const d = () => import("./index-zc0i09p9.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 P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-5WrmkFk4.cjs"),a=require("./get-block-properties-lkKJCs4_.cjs"),u=t.defineComponent({name:"interactive-element",props:["includeBlockProps","block","context","wrapperProps","Wrapper"],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 d(e,o,p,s,n,i){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=c._export_sfc(u,[["render",d]]),f=({componentOptions:e,builderBlock:o,context:p,componentRef:s,includeBlockProps:n,isInteractive:i,contextValue:l})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:o,context:l})}:{}};return i?{Wrapper:s,block:o,context:p,wrapperProps:e,includeBlockProps:n}:r},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:f}}});function b(e,o,p,s,n,i){const l=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,(r,k)=>(t.openBlock(),t.createBlock(l,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const C=c._export_sfc(B,[["render",b]]);exports.default=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as m, openBlock as r, createBlock as a, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as h, resolveComponent as B, normalizeProps as P, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as S } from "vue";
|
|
3
|
-
import { f, B as W, w } from "./index-
|
|
4
|
-
import { a as b, g as R } from "./get-block-properties-
|
|
3
|
+
import { f, B as W, w } from "./index-zc0i09p9.js";
|
|
4
|
+
import { a as b, g as R } from "./get-block-properties-1Sn1T_z8.js";
|
|
5
5
|
const x = m({
|
|
6
6
|
name: "interactive-element",
|
|
7
7
|
props: ["includeBlockProps", "block", "context", "wrapperProps", "Wrapper"],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
contentId?: any;
|
|
3
4
|
cssCode?: any;
|
|
4
5
|
customFonts?: any;
|
|
@@ -6,11 +7,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
7
|
}>, unknown, {
|
|
7
8
|
injectedStyles: string;
|
|
8
9
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
10
|
+
nonce?: any;
|
|
9
11
|
contentId?: any;
|
|
10
12
|
cssCode?: any;
|
|
11
13
|
customFonts?: any;
|
|
12
14
|
isNestedRender?: any;
|
|
13
15
|
}>>>, {
|
|
16
|
+
readonly nonce?: any;
|
|
14
17
|
readonly contentId?: any;
|
|
15
18
|
readonly cssCode?: any;
|
|
16
19
|
readonly customFonts?: any;
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
7
7
|
content?: any;
|
|
8
8
|
apiKey?: any;
|
|
9
9
|
apiVersion?: any;
|
|
10
|
+
nonce?: any;
|
|
10
11
|
canTrack?: any;
|
|
11
12
|
linkComponent?: any;
|
|
12
13
|
locale?: any;
|
|
@@ -39,6 +40,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
39
40
|
inheritedStyles: {};
|
|
40
41
|
BlocksWrapper: any;
|
|
41
42
|
BlocksWrapperProps: any;
|
|
43
|
+
nonce: any;
|
|
42
44
|
};
|
|
43
45
|
TARGET: import("../../types/targets").Target;
|
|
44
46
|
}, {}, {
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
49
51
|
content?: any;
|
|
50
52
|
apiKey?: any;
|
|
51
53
|
apiVersion?: any;
|
|
54
|
+
nonce?: any;
|
|
52
55
|
canTrack?: any;
|
|
53
56
|
linkComponent?: any;
|
|
54
57
|
locale?: any;
|
|
@@ -69,6 +72,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
69
72
|
readonly content?: any;
|
|
70
73
|
readonly apiKey?: any;
|
|
71
74
|
readonly apiVersion?: any;
|
|
75
|
+
readonly nonce?: any;
|
|
72
76
|
readonly canTrack?: any;
|
|
73
77
|
readonly linkComponent?: any;
|
|
74
78
|
readonly locale?: any;
|
|
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
4
4
|
content?: any;
|
|
5
5
|
apiKey?: any;
|
|
6
6
|
apiVersion?: any;
|
|
7
|
+
nonce?: any;
|
|
7
8
|
canTrack?: any;
|
|
8
9
|
linkComponent?: any;
|
|
9
10
|
locale?: any;
|
|
@@ -54,6 +55,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
54
55
|
content?: any;
|
|
55
56
|
apiKey?: any;
|
|
56
57
|
apiVersion?: any;
|
|
58
|
+
nonce?: any;
|
|
57
59
|
canTrack?: any;
|
|
58
60
|
linkComponent?: any;
|
|
59
61
|
locale?: any;
|
|
@@ -72,6 +74,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
72
74
|
readonly content?: any;
|
|
73
75
|
readonly apiKey?: any;
|
|
74
76
|
readonly apiVersion?: any;
|
|
77
|
+
readonly nonce?: any;
|
|
75
78
|
readonly canTrack?: any;
|
|
76
79
|
readonly linkComponent?: any;
|
|
77
80
|
readonly locale?: any;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
id?: any;
|
|
3
4
|
scriptStr?: any;
|
|
4
5
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
|
+
nonce?: any;
|
|
5
7
|
id?: any;
|
|
6
8
|
scriptStr?: any;
|
|
7
9
|
}>>>, {
|
|
10
|
+
readonly nonce?: any;
|
|
8
11
|
readonly id?: any;
|
|
9
12
|
readonly scriptStr?: any;
|
|
10
13
|
}, {}>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
nonce?: any;
|
|
2
3
|
styles?: any;
|
|
3
4
|
id?: any;
|
|
4
5
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
6
|
+
nonce?: any;
|
|
5
7
|
styles?: any;
|
|
6
8
|
id?: any;
|
|
7
9
|
}>>>, {
|
|
10
|
+
readonly nonce?: any;
|
|
8
11
|
readonly styles?: any;
|
|
9
12
|
readonly id?: any;
|
|
10
13
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const a=require("./index-
|
|
1
|
+
var d=require("./style.css");const a=require("./index-5WrmkFk4.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;
|