@builder.io/sdk-vue 2.0.14 → 2.0.15
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/{edge/block-styles-zRPUnWLf.js → browser/block-styles-3kNIHbfo.js} +6 -6
- package/lib/browser/block-styles-mYBwPtv0.cjs +1 -0
- package/lib/browser/{block-wrapper-hPYvxseU.js → block-wrapper-N1PMQPGA.js} +3 -3
- package/lib/browser/{block-wrapper-l_mdj42t.cjs → block-wrapper-mGepkLsD.cjs} +1 -1
- package/lib/browser/{component-ref-dPnPtrON.cjs → component-ref-D4a8WUvU.cjs} +1 -1
- package/lib/browser/{component-ref-JlpkOrad.js → component-ref-eSpEv_vu.js} +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-PLBPSz3W.js → browser/get-block-properties--gxTb6u9.js} +13 -13
- package/lib/browser/get-block-properties-1Vr9AX-f.cjs +1 -0
- package/lib/browser/{index-ZL8QUFiN.js → index-dh7iM10N.js} +552 -546
- package/lib/browser/index-vQfvmzgX.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-8EN4xN25.js → repeated-block-CnX7KaV3.js} +2 -2
- package/lib/browser/{repeated-block-uV-zuqkw.cjs → repeated-block-zZGzC5Ez.cjs} +1 -1
- package/lib/browser/server-index.d.ts +1 -0
- package/lib/{node/block-styles-gLB-jSXN.js → edge/block-styles-IJpbU1il.js} +12 -13
- package/lib/edge/block-styles-c-t5DB1d.cjs +1 -0
- package/lib/{node/block-wrapper-frfIIST_.js → edge/block-wrapper-UEsTg8bU.js} +3 -3
- package/lib/edge/{block-wrapper-9IWz2vxg.cjs → block-wrapper-cbxxzz21.cjs} +1 -1
- package/lib/{node/component-ref-IbarjSnq.js → edge/component-ref-2h-cUV3Z.js} +2 -2
- package/lib/{node/component-ref-ZlBAzimq.cjs → edge/component-ref-pqmk5wUc.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/get-block-properties-QIsIgfnu.js → edge/get-block-properties-S3qjKi7G.js} +16 -17
- package/lib/edge/get-block-properties-egDFLKDW.cjs +1 -0
- package/lib/edge/{index-TGe9_80q.js → index-BN18YEfB.js} +843 -837
- package/lib/edge/{index-5-C3UhJz.cjs → index-NQs12e6I.cjs} +31 -31
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-_9Gs2AOY.js → repeated-block-3py1q2sc.js} +2 -2
- package/lib/{node/repeated-block-ZpVu-xdw.cjs → edge/repeated-block-IMmb2AE9.cjs} +1 -1
- package/lib/edge/server-index.d.ts +1 -0
- package/lib/{browser/block-styles-nWGppwAf.js → node/block-styles-E0MOJgK4.js} +12 -14
- package/lib/node/block-styles-VaKrzGA5.cjs +1 -0
- package/lib/node/{block-wrapper-cCYzfiv5.cjs → block-wrapper-TvqPY7Mt.cjs} +1 -1
- package/lib/{edge/block-wrapper-x7ERONr-.js → node/block-wrapper-cHgl5RuV.js} +5 -5
- package/lib/{edge/component-ref-eV0RBAzs.cjs → node/component-ref-fYSFTWDE.cjs} +1 -1
- package/lib/{edge/component-ref-JRfa9Vwo.js → node/component-ref-gqNpKniv.js} +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{browser/get-block-properties-HzVZCpxa.js → node/get-block-properties-AZMTucap.js} +18 -20
- package/lib/node/get-block-properties-IntKgx2x.cjs +1 -0
- package/lib/node/index-ozkdxROi.cjs +213 -0
- package/lib/node/{index-BugETl2c.js → index-xSGjb-sL.js} +1123 -907
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +16 -17
- package/lib/node/{repeated-block-Z-_chLeZ.js → repeated-block-WqJu5DET.js} +2 -2
- package/lib/{edge/repeated-block-FB2jF4o_.cjs → node/repeated-block-wW6CINnA.cjs} +1 -1
- package/lib/node/server-index.d.ts +1 -0
- package/package.json +2 -8
- package/lib/browser/block-styles-rt4v7rBl.cjs +0 -1
- package/lib/browser/get-block-properties-sInACBRh.cjs +0 -1
- package/lib/browser/index-MDNnQzZB.cjs +0 -166
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -65
- package/lib/browser/logger-0-1mARBa.cjs +0 -1
- package/lib/browser/logger-Hm2e1Xk_.js +0 -12
- package/lib/edge/block-styles-Ta3OQAmE.cjs +0 -1
- package/lib/edge/get-block-properties-Dy3XF05J.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/logger-I8FmJD_1.js +0 -11
- package/lib/edge/logger-U9-0vDJK.cjs +0 -1
- package/lib/node/block-styles-u7KGnyuc.cjs +0 -1
- package/lib/node/get-block-properties-2Q2lr9bu.cjs +0 -1
- package/lib/node/index-s5vEnK-M.cjs +0 -166
- package/lib/node/init.cjs +0 -1
- package/lib/node/init.mjs +0 -11
- package/lib/node/node-runtime-0rF8vJwU.js +0 -233
- package/lib/node/node-runtime-Bqb5TnyM.cjs +0 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.15";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
1
|
+
import { f as s, T as c, h as i, i as l } from "./index-BN18YEfB.js";
|
|
2
|
+
const f = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => s({
|
|
4
3
|
code: e,
|
|
5
4
|
context: t.context,
|
|
6
5
|
localState: t.localState,
|
|
@@ -10,27 +9,27 @@ const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
|
10
9
|
isExpression: !1,
|
|
11
10
|
enableCache: !0
|
|
12
11
|
});
|
|
13
|
-
function
|
|
12
|
+
function S(e) {
|
|
14
13
|
const t = {}, r = e.block.actions ?? {};
|
|
15
|
-
for (const
|
|
16
|
-
if (!r.hasOwnProperty(
|
|
14
|
+
for (const a in r) {
|
|
15
|
+
if (!r.hasOwnProperty(a))
|
|
17
16
|
continue;
|
|
18
|
-
const n = r[
|
|
19
|
-
let
|
|
17
|
+
const n = r[a];
|
|
18
|
+
let o = f(a);
|
|
20
19
|
if (e.stripPrefix)
|
|
21
|
-
switch (
|
|
20
|
+
switch (c) {
|
|
22
21
|
case "vue":
|
|
23
|
-
|
|
22
|
+
o = o.replace("v-on:", "");
|
|
24
23
|
break;
|
|
25
24
|
case "svelte":
|
|
26
|
-
|
|
25
|
+
o = o.replace("on:", "");
|
|
27
26
|
break;
|
|
28
27
|
}
|
|
29
|
-
t[
|
|
28
|
+
t[o] = u(n, e);
|
|
30
29
|
}
|
|
31
30
|
return t;
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function p({
|
|
34
33
|
properties: e
|
|
35
34
|
}) {
|
|
36
35
|
return e;
|
|
@@ -42,7 +41,7 @@ function g({
|
|
|
42
41
|
block: e,
|
|
43
42
|
context: t
|
|
44
43
|
}) {
|
|
45
|
-
var
|
|
44
|
+
var a;
|
|
46
45
|
const r = {
|
|
47
46
|
...v(e),
|
|
48
47
|
...e.properties,
|
|
@@ -51,9 +50,9 @@ function g({
|
|
|
51
50
|
block: e,
|
|
52
51
|
context: t
|
|
53
52
|
}),
|
|
54
|
-
[l()]: [e.id, "builder-block", e.class, (
|
|
53
|
+
[l()]: [e.id, "builder-block", e.class, (a = e.properties) == null ? void 0 : a.class].filter(Boolean).join(" ")
|
|
55
54
|
};
|
|
56
|
-
return
|
|
55
|
+
return p({
|
|
57
56
|
properties: r,
|
|
58
57
|
context: t,
|
|
59
58
|
block: e
|
|
@@ -61,5 +60,5 @@ function g({
|
|
|
61
60
|
}
|
|
62
61
|
export {
|
|
63
62
|
g as a,
|
|
64
|
-
|
|
63
|
+
S as g
|
|
65
64
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index-NQs12e6I.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;
|