x-block-lib 0.8.6 → 0.8.8

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.
@@ -0,0 +1,28 @@
1
+ import * as Blockly from 'blockly/core';
2
+ interface BindProp {
3
+ type: 'prop';
4
+ nodeId: string;
5
+ propKeys: string;
6
+ subKeys?: string;
7
+ }
8
+ interface BindState {
9
+ type: 'state';
10
+ stateId: string;
11
+ subKeys?: string;
12
+ }
13
+ type BindEntry = BindProp | BindState;
14
+ export interface Reactive {
15
+ watchEffect: {
16
+ [key: string]: string[];
17
+ };
18
+ bind: {
19
+ sets: {
20
+ [key: string]: BindEntry[];
21
+ };
22
+ triggers: {
23
+ [key: string]: string[];
24
+ };
25
+ };
26
+ }
27
+ export declare function buildReactive(workspace: Blockly.Workspace): Reactive;
28
+ export {};
@@ -1,7 +1,8 @@
1
1
  interface Props {
2
2
  lock: boolean;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<Props, {
4
+ declare const __VLS_export: import("vue").DefineComponent<Props, {
5
5
  cleanWorkspace: () => void;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
7
8
  export default _default;
@@ -6,18 +6,20 @@ interface Props {
6
6
  dark: boolean;
7
7
  }
8
8
  type __VLS_Props = Props;
9
- type __VLS_PublicProps = __VLS_Props & {
9
+ type __VLS_ModelProps = {
10
10
  'lock': boolean;
11
11
  'scale': number;
12
12
  };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
14
  declare var __VLS_1: {};
14
15
  type __VLS_Slots = {} & {
15
16
  bottom?: (props: typeof __VLS_1) => any;
16
17
  };
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
18
19
  loading: import("vue").Ref<boolean, boolean>;
19
20
  load: (state: any) => void;
20
21
  save: () => any;
22
+ generateReactive: () => import("./buildReactive").Reactive;
21
23
  generateCode: () => string | undefined;
22
24
  fireStateChange: () => void;
23
25
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -29,7 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
29
31
  "onUpdate:lock"?: ((value: boolean) => any) | undefined;
30
32
  "onUpdate:scale"?: ((value: number) => any) | undefined;
31
33
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
33
36
  export default _default;
34
37
  type __VLS_WithSlots<T, S> = T & {
35
38
  new (): {
@@ -1,9 +1,10 @@
1
- type __VLS_PublicProps = {
1
+ type __VLS_ModelProps = {
2
2
  modelValue: boolean;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  "update:modelValue": (value: boolean) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -2,14 +2,16 @@ interface Props {
2
2
  lock: boolean;
3
3
  }
4
4
  type __VLS_Props = Props;
5
- type __VLS_PublicProps = __VLS_Props & {
5
+ type __VLS_ModelProps = {
6
6
  modelValue: boolean;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
9
10
  update: () => void;
10
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
12
  "update:modelValue": (value: boolean) => any;
12
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
15
17
  export default _default;
@@ -3,9 +3,10 @@ interface Props {
3
3
  title: string;
4
4
  select: boolean;
5
5
  }
6
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "x-click": (...args: any[]) => void;
8
8
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
9
  "onX-click"?: ((...args: any[]) => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,11 +1,12 @@
1
- type __VLS_PublicProps = {
1
+ type __VLS_ModelProps = {
2
2
  modelValue: boolean;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {
5
5
  update: () => void;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (value: boolean) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
9
9
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -2,8 +2,9 @@ interface Props {
2
2
  type: 'list' | 'tree';
3
3
  lock: boolean;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<Props, {
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {
6
6
  open: import("vue").WritableComputedRef<boolean, boolean>;
7
7
  update: () => void;
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -2,5 +2,6 @@ import 'highlight.js/styles/default.min.css';
2
2
  interface Props {
3
3
  code: string;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;