x-block-lib 0.9.5 → 0.9.7
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.
|
@@ -9,7 +9,7 @@ export declare function getAllArgumentInfos(): ArgumentInfo[];
|
|
|
9
9
|
export declare function getArgumentInfo(id: string): {
|
|
10
10
|
key: string;
|
|
11
11
|
name: string;
|
|
12
|
-
type: "string" | "number" | "boolean" | "object" | "array";
|
|
12
|
+
type: "string" | "number" | "boolean" | "object" | "array" | "any";
|
|
13
13
|
} | undefined;
|
|
14
14
|
export declare function genArgumentOpts(): Blockly.MenuOption[];
|
|
15
15
|
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Type } from 'x-essential-lib';
|
|
3
|
+
import { EventKind } from 'x-runtime-lib';
|
|
4
|
+
interface Param {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: Type;
|
|
8
|
+
}
|
|
3
9
|
interface EventInfo {
|
|
4
10
|
id: string;
|
|
5
11
|
kind: EventKind;
|
|
6
12
|
names: string[];
|
|
7
|
-
params?:
|
|
13
|
+
params?: Param[];
|
|
8
14
|
}
|
|
9
15
|
export declare function getAllOnEventInfos(nodeId: string): EventInfo[];
|
|
10
16
|
export declare function getOnEventInfo(id: string): EventInfo | undefined;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Type } from 'x-essential-lib';
|
|
3
|
+
import { MethodKind } from 'x-runtime-lib';
|
|
4
|
+
interface Field {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: Type;
|
|
8
|
+
}
|
|
3
9
|
interface MethodInfo {
|
|
4
10
|
id: string;
|
|
5
11
|
kind: MethodKind;
|
|
6
12
|
names: string[];
|
|
7
|
-
inputs?:
|
|
8
|
-
outputs?:
|
|
13
|
+
inputs?: Field[];
|
|
14
|
+
outputs?: Field[];
|
|
9
15
|
}
|
|
10
16
|
export declare function getAllCallMethodInfos(nodeId: string): MethodInfo[];
|
|
11
17
|
export declare function getCallMethodInfo(id: string): MethodInfo | undefined;
|
|
@@ -13,7 +19,7 @@ export declare function genCallMethodOpts(nodeId: string): Blockly.MenuOption[];
|
|
|
13
19
|
export declare function getAllImplementMethodInfos(nodeId: string): MethodInfo[];
|
|
14
20
|
export declare function getImplementMethodInfo(id: string): MethodInfo | undefined;
|
|
15
21
|
export declare function genImplementMethodOpts(nodeId: string): Blockly.MenuOption[];
|
|
16
|
-
export declare function getAllImplementMethodOutputInfos(methodId: string):
|
|
17
|
-
export declare function getImplementMethodOutputInfo(methodId: string, outputKey: string):
|
|
22
|
+
export declare function getAllImplementMethodOutputInfos(methodId: string): Field[] | undefined;
|
|
23
|
+
export declare function getImplementMethodOutputInfo(methodId: string, outputKey: string): Field | undefined;
|
|
18
24
|
export declare function genImplementMethodOutputOpts(methodKey: string): Blockly.MenuOption[];
|
|
19
25
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1960,7 +1960,7 @@ function te(t, e) {
|
|
|
1960
1960
|
const m = f.slots.find((T) => T.key === d);
|
|
1961
1961
|
if (m && m.properties)
|
|
1962
1962
|
for (const T of m.properties)
|
|
1963
|
-
c.push({
|
|
1963
|
+
e === "write" && T.readonly || c.push({
|
|
1964
1964
|
id: Tt(
|
|
1965
1965
|
"adaptSlotElementProperty",
|
|
1966
1966
|
t,
|
|
@@ -3663,7 +3663,7 @@ I.get_app_property_v1 = hi;
|
|
|
3663
3663
|
i.forBlock.get_app_property_v1 = function(t) {
|
|
3664
3664
|
const e = i.quote_, n = t;
|
|
3665
3665
|
let o = "''";
|
|
3666
|
-
return n.getInput("INSTANCE") && (o = i.valueToCode(n, "INSTANCE", h.NONE) || "''"), [`__getPropertyV1__(${e(n.property.id)}, ${o})`, h.ATOMIC];
|
|
3666
|
+
return n.getInput("INSTANCE") && (o = i.valueToCode(n, "INSTANCE", h.NONE) || "''"), [`await __getPropertyV1__(${e(n.property.id)}, ${o})`, h.ATOMIC];
|
|
3667
3667
|
};
|
|
3668
3668
|
const fi = {
|
|
3669
3669
|
init: function() {
|
|
@@ -10299,7 +10299,7 @@ ce.getText_ = function() {
|
|
|
10299
10299
|
return eo(n, o);
|
|
10300
10300
|
} else if (this.name === "EVENT") {
|
|
10301
10301
|
const { kind: n, names: o } = e.event;
|
|
10302
|
-
return
|
|
10302
|
+
return be(n, o);
|
|
10303
10303
|
} else if (this.name === "METHOD") {
|
|
10304
10304
|
const { kind: n, names: o } = e.method;
|
|
10305
10305
|
return Pe(n, o);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"vue-i18n": "^11.2.8",
|
|
38
38
|
"vue-router": "^4.6.4",
|
|
39
39
|
"vuetify": "^3.11.6",
|
|
40
|
-
"x-essential-lib": "^0.9.
|
|
41
|
-
"x-runtime-lib": "^0.8.
|
|
40
|
+
"x-essential-lib": "^0.9.21",
|
|
41
|
+
"x-runtime-lib": "^0.8.168",
|
|
42
42
|
"x-state-lib": "^0.3.34"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|