x-block-lib 0.10.26 → 0.10.27

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/dist/index.d.ts CHANGED
@@ -4,12 +4,17 @@ import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
5
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
6
6
  import { DefineComponent } from 'vue';
7
+ import { EventKind } from 'x-runtime-lib';
7
8
  import { GlobalComponents } from 'vue';
8
9
  import { GlobalDirectives } from 'vue';
10
+ import { MethodKind } from 'x-runtime-lib';
11
+ import { PropertyKind } from 'x-runtime-lib';
9
12
  import { PublicProps } from 'vue';
10
13
  import { Reactivity } from 'x-runtime-lib';
11
14
  import { Ref } from 'vue';
15
+ import { Type } from 'x-essential-lib';
12
16
  import { WritableComputedRef } from 'vue';
17
+ import { ZProperty } from 'x-runtime-lib';
13
18
 
14
19
  declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
15
20
  loading: Ref<boolean, boolean>;
@@ -118,7 +123,7 @@ parentContainer: HTMLDivElement;
118
123
  }, HTMLDivElement>;
119
124
 
120
125
  declare type __VLS_Props = {
121
- type: Type;
126
+ type: Type_2;
122
127
  version: string;
123
128
  locale: string;
124
129
  dark: boolean;
@@ -239,11 +244,72 @@ declare const _default: {
239
244
  };
240
245
  export default _default;
241
246
 
247
+ declare interface EventInfo {
248
+ id: string;
249
+ kind: EventKind;
250
+ names: string[];
251
+ params?: Param[];
252
+ }
253
+
254
+ declare interface Field {
255
+ key: string;
256
+ name: string;
257
+ type: Type;
258
+ }
259
+
260
+ export declare function getCallMethodInfo(id: string): MethodInfo | undefined;
261
+
262
+ export declare function getImplementMethodInfo(id: string): MethodInfo | undefined;
263
+
264
+ export declare function getNodeInfo(nodeid: string): NodeInfo | undefined;
265
+
266
+ export declare function getOnEventInfo(id: string): EventInfo | undefined;
267
+
268
+ export declare function getPropertyInfo(id: string): PropertyInfo | undefined;
269
+
270
+ export declare function getTriggerEventInfo(id: string): EventInfo | undefined;
271
+
242
272
  export declare const install: (app: App) => void;
243
273
 
244
274
  export declare function loadLocaleMessageBlock(locale: string): Promise<object>;
245
275
 
246
- declare type Type = 'page' | 'comp' | 'func' | 'flow' | 'json';
276
+ declare interface MethodInfo {
277
+ id: string;
278
+ kind: MethodKind;
279
+ names: string[];
280
+ inputs?: Field[];
281
+ outputs?: Field[];
282
+ }
283
+
284
+ declare interface NodeInfo {
285
+ id: string;
286
+ key: string;
287
+ name: string;
288
+ alias: string;
289
+ }
290
+
291
+ declare interface Param {
292
+ key: string;
293
+ name: string;
294
+ type: Type;
295
+ }
296
+
297
+ declare interface PropertyInfo {
298
+ id: string;
299
+ kind: PropertyKind;
300
+ names: string[];
301
+ meta: {
302
+ element: true;
303
+ raw: ZProperty;
304
+ } | {
305
+ element?: false;
306
+ raw: {
307
+ type: Type;
308
+ };
309
+ };
310
+ }
311
+
312
+ declare type Type_2 = 'page' | 'comp' | 'func' | 'flow' | 'json';
247
313
 
248
314
  export declare const XBlockly: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
249
315
 
package/dist/index.js CHANGED
@@ -10566,4 +10566,4 @@ async function uo(e) {
10566
10566
  //#region src/index.ts
10567
10567
  var fo = { install: lo };
10568
10568
  //#endregion
10569
- export { io as XBlockly, fo as default, lo as install, uo as loadLocaleMessageBlock };
10569
+ export { io as XBlockly, fo as default, sr as getCallMethodInfo, dr as getImplementMethodInfo, W as getNodeInfo, er as getOnEventInfo, br as getPropertyInfo, rr as getTriggerEventInfo, lo as install, uo as loadLocaleMessageBlock };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.10.26",
4
+ "version": "0.10.27",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",