@builder.io/sdk-vue 2.0.22 → 2.0.24
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/{awaiter-viAEqwfm.js → awaiter-J3HUxkGi.js} +1 -1
- package/lib/browser/{awaiter-M1lh1K2-.cjs → awaiter-g25f4_3R.cjs} +1 -1
- package/lib/browser/{block-styles-fZvY8gIP.js → block-styles-TEcZV6HE.js} +1 -1
- package/lib/browser/{block-styles-VuzYSiYY.cjs → block-styles-grUICPvP.cjs} +1 -1
- package/lib/browser/{block-wrapper-zf33SjUs.cjs → block-wrapper-29DvN0g9.cjs} +1 -1
- package/lib/browser/{block-wrapper-KkjwUwQv.js → block-wrapper-FeIbV4lJ.js} +3 -3
- package/lib/browser/{component-ref-AncObgyo.cjs → component-ref-0BQRfKsS.cjs} +1 -1
- package/lib/browser/{component-ref-9mii5nh9.js → component-ref-XOiYQaEV.js} +3 -3
- package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/browser/components/blocks/blocks.types.d.ts +2 -1
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/browser/functions/evaluate/helpers.d.ts +0 -1
- package/lib/browser/get-block-properties-9fNXyxXS.cjs +1 -0
- package/lib/browser/{get-block-properties-r0PzriD-.js → get-block-properties-AbQ4_DbB.js} +12 -13
- package/lib/browser/{index-cpKwntgM.js → index-VkKzZMwZ.js} +816 -838
- package/lib/browser/index-eo1_2KG1.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-e5WabrjL.cjs → repeated-block-3wAFgYUP.cjs} +1 -1
- package/lib/browser/{repeated-block-XluDUyDk.js → repeated-block-rRkup9T9.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-1FuctBeF.js → awaiter-bswCddmn.js} +1 -1
- package/lib/edge/{awaiter-xRk0I0dr.cjs → awaiter-z-FdxR2q.cjs} +1 -1
- package/lib/edge/{block-styles-RMnGytTp.cjs → block-styles-RI6klyct.cjs} +1 -1
- package/lib/edge/{block-styles-nV6PrngB.js → block-styles-_Y6pfvRo.js} +1 -1
- package/lib/edge/{block-wrapper-eaapNyCu.js → block-wrapper-RoXrtNnJ.js} +3 -3
- package/lib/edge/{block-wrapper-R_L5ZkWi.cjs → block-wrapper-oxJp7Q7d.cjs} +1 -1
- package/lib/edge/{component-ref-ZwUWH8O4.js → component-ref-CvZ3PHsD.js} +3 -3
- package/lib/edge/{component-ref-Yn3zdtSv.cjs → component-ref-K5NE0GO1.cjs} +1 -1
- package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/edge/components/blocks/blocks.types.d.ts +2 -1
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/edge/functions/evaluate/helpers.d.ts +0 -1
- package/lib/edge/{get-block-properties-2sGjLi7T.js → get-block-properties-WJ04QqT6.js} +14 -15
- package/lib/edge/get-block-properties-kxJh9lLa.cjs +1 -0
- package/lib/edge/index-PB_wCbdz.cjs +184 -0
- package/lib/edge/{index-BrP71lXa.js → index-UNfETa4b.js} +1330 -1352
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-v2OL865B.js → repeated-block-3sTRvL3l.js} +2 -2
- package/lib/{node/repeated-block-_FNn8a23.cjs → edge/repeated-block-JWTG1SGC.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-JU6SutHO.js → awaiter--0M8C3yH.js} +1 -1
- package/lib/node/{awaiter-TL_quYUm.cjs → awaiter-JHWYv1Aa.cjs} +1 -1
- package/lib/node/{block-styles-VipESJwI.cjs → block-styles-6tPiAmBz.cjs} +1 -1
- package/lib/node/{block-styles-lVoePN6J.js → block-styles-quUqeiHV.js} +1 -1
- package/lib/node/{block-wrapper-WaRYO5OP.js → block-wrapper-1t5eBFHt.js} +3 -3
- package/lib/node/{block-wrapper-bb4ehFYm.cjs → block-wrapper-RW0Dijwl.cjs} +1 -1
- package/lib/node/{component-ref-n4V4nzMd.js → component-ref-Aiwer6jd.js} +3 -3
- package/lib/node/{component-ref-K29DJwL7.cjs → component-ref-VImBkRlv.cjs} +1 -1
- package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +4 -0
- package/lib/node/components/blocks/blocks.types.d.ts +2 -1
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/node/functions/evaluate/helpers.d.ts +0 -1
- package/lib/node/{get-block-properties-5iq_xToj.js → get-block-properties-iMgsO_St.js} +6 -7
- package/lib/node/get-block-properties-l9MvlM58.cjs +1 -0
- package/lib/node/index-ncxt02LY.cjs +166 -0
- package/lib/node/{index-IlkG-_0S.js → index-vY7Ih1wu.js} +799 -821
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-3UBNtlWD.cjs → node/repeated-block-1bi9_70I.cjs} +1 -1
- package/lib/node/{repeated-block-E1kFV_yg.js → repeated-block-n_E2nVxY.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/get-block-properties-hQjyhVfq.cjs +0 -1
- package/lib/browser/index-H2omF6LJ.cjs +0 -166
- package/lib/edge/get-block-properties-p1GVg5hx.cjs +0 -1
- package/lib/edge/index-gS5SfYxp.cjs +0 -184
- package/lib/node/get-block-properties-E2ioWJxB.cjs +0 -1
- package/lib/node/index-axW_vcwu.cjs +0 -166
|
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
3
3
|
blocks?: any;
|
|
4
4
|
parent?: any;
|
|
5
5
|
styleProp?: any;
|
|
6
|
+
className?: any;
|
|
6
7
|
context?: any;
|
|
7
8
|
linkComponent?: any;
|
|
8
9
|
registeredComponents?: any;
|
|
@@ -11,6 +12,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
11
12
|
blocks?: any;
|
|
12
13
|
parent?: any;
|
|
13
14
|
styleProp?: any;
|
|
15
|
+
className?: any;
|
|
14
16
|
context?: any;
|
|
15
17
|
linkComponent?: any;
|
|
16
18
|
registeredComponents?: any;
|
|
@@ -19,6 +21,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
21
|
readonly blocks?: any;
|
|
20
22
|
readonly parent?: any;
|
|
21
23
|
readonly styleProp?: any;
|
|
24
|
+
readonly className?: any;
|
|
22
25
|
readonly context?: any;
|
|
23
26
|
readonly linkComponent?: any;
|
|
24
27
|
readonly registeredComponents?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.24";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EvaluatorArgs } from './helpers';
|
|
2
2
|
type EvalValue = unknown;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const getSimpleExpressionGetPath: (code: string) => any;
|
|
4
|
+
export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression }: EvaluatorArgs): EvalValue;
|
|
4
5
|
export {};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
const f = (e) => `v-on:${e.toLowerCase()}`,
|
|
1
|
+
import { f as n, T as c, h as i, i as l } from "./index-UNfETa4b.js";
|
|
2
|
+
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => n({
|
|
3
3
|
code: e,
|
|
4
4
|
context: t.context,
|
|
5
5
|
localState: t.localState,
|
|
6
6
|
rootState: t.rootState,
|
|
7
7
|
rootSetState: t.rootSetState,
|
|
8
8
|
event: r,
|
|
9
|
-
isExpression: !1
|
|
10
|
-
enableCache: !0
|
|
9
|
+
isExpression: !1
|
|
11
10
|
});
|
|
12
11
|
function S(e) {
|
|
13
12
|
const t = {}, r = e.block.actions ?? {};
|
|
14
|
-
for (const
|
|
15
|
-
if (!r.hasOwnProperty(
|
|
13
|
+
for (const o in r) {
|
|
14
|
+
if (!r.hasOwnProperty(o))
|
|
16
15
|
continue;
|
|
17
|
-
const
|
|
18
|
-
let
|
|
16
|
+
const s = r[o];
|
|
17
|
+
let a = f(o);
|
|
19
18
|
if (e.stripPrefix)
|
|
20
19
|
switch (c) {
|
|
21
20
|
case "vue":
|
|
22
|
-
|
|
21
|
+
a = a.replace("v-on:", "");
|
|
23
22
|
break;
|
|
24
23
|
case "svelte":
|
|
25
|
-
|
|
24
|
+
a = a.replace("on:", "");
|
|
26
25
|
break;
|
|
27
26
|
}
|
|
28
|
-
t[
|
|
27
|
+
t[a] = p(s, e);
|
|
29
28
|
}
|
|
30
29
|
return t;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function u({
|
|
33
32
|
properties: e
|
|
34
33
|
}) {
|
|
35
34
|
return e;
|
|
@@ -41,7 +40,7 @@ function g({
|
|
|
41
40
|
block: e,
|
|
42
41
|
context: t
|
|
43
42
|
}) {
|
|
44
|
-
var
|
|
43
|
+
var o;
|
|
45
44
|
const r = {
|
|
46
45
|
...v(e),
|
|
47
46
|
...e.properties,
|
|
@@ -50,9 +49,9 @@ function g({
|
|
|
50
49
|
block: e,
|
|
51
50
|
context: t
|
|
52
51
|
}),
|
|
53
|
-
[l()]: [e.id, "builder-block", e.class, (
|
|
52
|
+
[l()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
54
53
|
};
|
|
55
|
-
return
|
|
54
|
+
return u({
|
|
56
55
|
properties: r,
|
|
57
56
|
context: t,
|
|
58
57
|
block: e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index-PB_wCbdz.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,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: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 u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|