@builder.io/sdk-vue 2.0.15 → 2.0.17
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/{block-styles-3kNIHbfo.js → block-styles-XATffH3k.js} +1 -1
- package/lib/browser/{block-styles-mYBwPtv0.cjs → block-styles-Zh_uY_9J.cjs} +1 -1
- package/lib/browser/{block-wrapper-N1PMQPGA.js → block-wrapper-3zieXizb.js} +3 -3
- package/lib/browser/{block-wrapper-mGepkLsD.cjs → block-wrapper-qyvezpeU.cjs} +1 -1
- package/lib/browser/{component-ref-D4a8WUvU.cjs → component-ref-7Yms_kIr.cjs} +1 -1
- package/lib/browser/{component-ref-eSpEv_vu.js → component-ref-Y4ahpku0.js} +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/lib/browser/{get-block-properties-1Vr9AX-f.cjs → get-block-properties-fBYHk4bI.cjs} +1 -1
- package/lib/browser/{get-block-properties--gxTb6u9.js → get-block-properties-pPWign8y.js} +1 -1
- package/lib/browser/{index-vQfvmzgX.cjs → index-1YjkT_sc.cjs} +6 -6
- package/lib/browser/{index-dh7iM10N.js → index-BOG8Hl1M.js} +14 -10
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-zZGzC5Ez.cjs → repeated-block-0DDJP8Gf.cjs} +1 -1
- package/lib/browser/{repeated-block-CnX7KaV3.js → repeated-block-zS917EGl.js} +2 -2
- package/lib/edge/{block-styles-IJpbU1il.js → block-styles-42NfQ-QZ.js} +1 -1
- package/lib/edge/{block-styles-c-t5DB1d.cjs → block-styles-XqNJ134U.cjs} +1 -1
- package/lib/edge/{block-wrapper-UEsTg8bU.js → block-wrapper-ir-wF7K0.js} +3 -3
- package/lib/{node/block-wrapper-TvqPY7Mt.cjs → edge/block-wrapper-rnfy_SCM.cjs} +1 -1
- package/lib/{node/component-ref-fYSFTWDE.cjs → edge/component-ref-BZN6oNTF.cjs} +1 -1
- package/lib/{node/component-ref-gqNpKniv.js → edge/component-ref-RIUPYjj6.js} +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/lib/{node/get-block-properties-AZMTucap.js → edge/get-block-properties-ALNjeTqz.js} +1 -1
- package/lib/edge/{get-block-properties-egDFLKDW.cjs → get-block-properties-eb2d5_4Q.cjs} +1 -1
- package/lib/edge/{index-NQs12e6I.cjs → index-0XQ5XNP7.cjs} +2 -2
- package/lib/edge/{index-BN18YEfB.js → index-v3LhePEX.js} +14 -10
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-3py1q2sc.js → repeated-block-Uq0TRwkZ.js} +2 -2
- package/lib/edge/{repeated-block-IMmb2AE9.cjs → repeated-block-n_hytrP5.cjs} +1 -1
- package/lib/node/block-styles-Su4n0sEi.cjs +1 -0
- package/lib/node/{block-styles-E0MOJgK4.js → block-styles-vHF5sPG1.js} +16 -15
- package/lib/node/{block-wrapper-cHgl5RuV.js → block-wrapper-IDLu_rNS.js} +3 -3
- package/lib/{edge/block-wrapper-cbxxzz21.cjs → node/block-wrapper-Txf-PVII.cjs} +1 -1
- package/lib/{edge/component-ref-2h-cUV3Z.js → node/component-ref-UXGJDqnl.js} +2 -2
- package/lib/{edge/component-ref-pqmk5wUc.cjs → node/component-ref-Wtcz1Bo2.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/lib/{edge/get-block-properties-S3qjKi7G.js → node/get-block-properties-Ofwbz2xI.js} +17 -16
- package/lib/node/get-block-properties-ddqamR0O.cjs +1 -0
- package/lib/node/{index-xSGjb-sL.js → index-3yXRUxo9.js} +902 -1128
- package/lib/node/index-DIvgU3ms.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-WqJu5DET.js → repeated-block-e-lz3FXu.js} +13 -13
- package/lib/node/{repeated-block-wW6CINnA.cjs → repeated-block-npWRvHlT.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/nuxt-isolated-vm-plugin.js +14 -0
- package/nuxt.js +31 -2
- package/package.json +8 -2
- package/lib/node/block-styles-VaKrzGA5.cjs +0 -1
- package/lib/node/get-block-properties-IntKgx2x.cjs +0 -1
- package/lib/node/index-ozkdxROi.cjs +0 -213
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { T as s } from "./should-force-browser-runtime-in-node-Hy3G5eB4.js";
|
|
2
|
+
import { e as c, f as i, h as l } from "./index-3yXRUxo9.js";
|
|
3
|
+
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
3
4
|
code: e,
|
|
4
5
|
context: t.context,
|
|
5
6
|
localState: t.localState,
|
|
@@ -9,27 +10,27 @@ const f = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => s({
|
|
|
9
10
|
isExpression: !1,
|
|
10
11
|
enableCache: !0
|
|
11
12
|
});
|
|
12
|
-
function
|
|
13
|
+
function m(e) {
|
|
13
14
|
const t = {}, r = e.block.actions ?? {};
|
|
14
|
-
for (const
|
|
15
|
-
if (!r.hasOwnProperty(
|
|
15
|
+
for (const o in r) {
|
|
16
|
+
if (!r.hasOwnProperty(o))
|
|
16
17
|
continue;
|
|
17
|
-
const n = r[
|
|
18
|
-
let
|
|
18
|
+
const n = r[o];
|
|
19
|
+
let a = f(o);
|
|
19
20
|
if (e.stripPrefix)
|
|
20
|
-
switch (
|
|
21
|
+
switch (s) {
|
|
21
22
|
case "vue":
|
|
22
|
-
|
|
23
|
+
a = a.replace("v-on:", "");
|
|
23
24
|
break;
|
|
24
25
|
case "svelte":
|
|
25
|
-
|
|
26
|
+
a = a.replace("on:", "");
|
|
26
27
|
break;
|
|
27
28
|
}
|
|
28
|
-
t[
|
|
29
|
+
t[a] = p(n, e);
|
|
29
30
|
}
|
|
30
31
|
return t;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function u({
|
|
33
34
|
properties: e
|
|
34
35
|
}) {
|
|
35
36
|
return e;
|
|
@@ -41,7 +42,7 @@ function g({
|
|
|
41
42
|
block: e,
|
|
42
43
|
context: t
|
|
43
44
|
}) {
|
|
44
|
-
var
|
|
45
|
+
var o;
|
|
45
46
|
const r = {
|
|
46
47
|
...v(e),
|
|
47
48
|
...e.properties,
|
|
@@ -50,9 +51,9 @@ function g({
|
|
|
50
51
|
block: e,
|
|
51
52
|
context: t
|
|
52
53
|
}),
|
|
53
|
-
[l()]: [e.id, "builder-block", e.class, (
|
|
54
|
+
[l()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
54
55
|
};
|
|
55
|
-
return
|
|
56
|
+
return u({
|
|
56
57
|
properties: r,
|
|
57
58
|
context: t,
|
|
58
59
|
block: e
|
|
@@ -60,5 +61,5 @@ function g({
|
|
|
60
61
|
}
|
|
61
62
|
export {
|
|
62
63
|
g as a,
|
|
63
|
-
|
|
64
|
+
m as g
|
|
64
65
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node-cm1lg4FM.cjs"),s=require("./index-DIvgU3ms.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(a,e)}return t}function d({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:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|