@vtj/designer 0.13.13 → 0.13.14

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.
Files changed (34) hide show
  1. package/dist/Editor-aW8OJBwm.js +4 -0
  2. package/dist/{index-Cxjl3t69.js → index-PNSVcEAY.js} +4785 -4535
  3. package/dist/index.mjs +1 -1
  4. package/dist/style.css +1 -1
  5. package/package.json +7 -7
  6. package/types/components/binders/event.d.ts +2 -2
  7. package/types/components/binders/variable.d.ts +2 -2
  8. package/types/components/editor/Editor.d.ts +1 -1
  9. package/types/components/editor/index.d.ts +1 -1
  10. package/types/components/hooks/index.d.ts +1 -0
  11. package/types/components/hooks/useSwagger.d.ts +57 -0
  12. package/types/components/setters/css.d.ts +2 -2
  13. package/types/components/setters/function.d.ts +2 -2
  14. package/types/components/setters/index.d.ts +6 -6
  15. package/types/components/setters/json.d.ts +2 -2
  16. package/types/components/shared/panel.d.ts +1 -0
  17. package/types/components/widgets/ai/detail.d.ts +4 -4
  18. package/types/components/widgets/ai/image-input.d.ts +1 -1
  19. package/types/components/widgets/ai/index.d.ts +1 -0
  20. package/types/components/widgets/ai/json-input.d.ts +1 -1
  21. package/types/components/widgets/apis/swagger.d.ts +1298 -0
  22. package/types/components/widgets/css/index.d.ts +2 -2
  23. package/types/components/widgets/docs/index.d.ts +1 -0
  24. package/types/components/widgets/index.d.ts +9 -6
  25. package/types/components/widgets/market/index.d.ts +1 -0
  26. package/types/components/widgets/raw/index.d.ts +2 -2
  27. package/types/components/widgets/schema/index.d.ts +2 -2
  28. package/types/components/widgets/scripts/group.d.ts +6 -6
  29. package/types/components/widgets/scripts/lifeCycles.d.ts +2 -2
  30. package/types/components/widgets/style/JsonMode.d.ts +2 -2
  31. package/types/framework/openapi.d.ts +1 -0
  32. package/types/version.d.ts +2 -2
  33. package/types/wrappers/setter.d.ts +1 -1
  34. package/dist/Editor-B7IzXl24.js +0 -4
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
14
14
  }, PublicProps, {
15
15
  height: string;
16
16
  modelValue: string;
17
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
17
18
  dark: boolean;
18
19
  readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
20
  lang: string;
21
21
  minimap: boolean;
22
22
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
37
37
  }, {}, {}, {}, {
38
38
  height: string;
39
39
  modelValue: string;
40
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
40
41
  dark: boolean;
41
42
  readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
43
  lang: string;
44
44
  minimap: boolean;
45
45
  }> | null;
@@ -676,6 +676,7 @@ declare const _default: DefineComponent<Props, {
676
676
  scrollToTop: () => void;
677
677
  }> & {} & ComponentCustomProperties & {} & {
678
678
  $slots: {
679
+ 'pre-actions'?(_: {}): any;
679
680
  actions?(_: {}): any;
680
681
  default?(_: {}): any;
681
682
  footer?(_: {}): any;
@@ -69,9 +69,9 @@ export declare const widgets: {
69
69
  }, PublicProps, {
70
70
  height: string;
71
71
  modelValue: string;
72
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
72
73
  dark: boolean;
73
74
  readonly: boolean;
74
- options: import("monaco-editor").editor.IEditorConstructionOptions;
75
75
  lang: string;
76
76
  minimap: boolean;
77
77
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -92,9 +92,9 @@ export declare const widgets: {
92
92
  }, {}, {}, {}, {
93
93
  height: string;
94
94
  modelValue: string;
95
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
95
96
  dark: boolean;
96
97
  readonly: boolean;
97
- options: import("monaco-editor").editor.IEditorConstructionOptions;
98
98
  lang: string;
99
99
  minimap: boolean;
100
100
  }> | null;
@@ -124,9 +124,9 @@ export declare const widgets: {
124
124
  }, PublicProps, {
125
125
  height: string;
126
126
  modelValue: string;
127
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
127
128
  dark: boolean;
128
129
  readonly: boolean;
129
- options: import("monaco-editor").editor.IEditorConstructionOptions;
130
130
  lang: string;
131
131
  minimap: boolean;
132
132
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -147,9 +147,9 @@ export declare const widgets: {
147
147
  }, {}, {}, {}, {
148
148
  height: string;
149
149
  modelValue: string;
150
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
150
151
  dark: boolean;
151
152
  readonly: boolean;
152
- options: import("monaco-editor").editor.IEditorConstructionOptions;
153
153
  lang: string;
154
154
  minimap: boolean;
155
155
  }> | null;
@@ -168,9 +168,9 @@ export declare const widgets: {
168
168
  }, PublicProps, {
169
169
  height: string;
170
170
  modelValue: string;
171
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
171
172
  dark: boolean;
172
173
  readonly: boolean;
173
- options: import("monaco-editor").editor.IEditorConstructionOptions;
174
174
  lang: string;
175
175
  minimap: boolean;
176
176
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -191,9 +191,9 @@ export declare const widgets: {
191
191
  }, {}, {}, {}, {
192
192
  height: string;
193
193
  modelValue: string;
194
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
194
195
  dark: boolean;
195
196
  readonly: boolean;
196
- options: import("monaco-editor").editor.IEditorConstructionOptions;
197
197
  lang: string;
198
198
  minimap: boolean;
199
199
  }> | null;
@@ -869,6 +869,7 @@ export declare const widgets: {
869
869
  scrollToTop: () => void;
870
870
  }> & {} & ComponentCustomProperties & {} & {
871
871
  $slots: {
872
+ 'pre-actions'?(_: {}): any;
872
873
  actions?(_: {}): any;
873
874
  default?(_: {}): any;
874
875
  footer?(_: {}): any;
@@ -1547,6 +1548,7 @@ export declare const widgets: {
1547
1548
  scrollToTop: () => void;
1548
1549
  }> & {} & ComponentCustomProperties & {} & {
1549
1550
  $slots: {
1551
+ 'pre-actions'?(_: {}): any;
1550
1552
  actions?(_: {}): any;
1551
1553
  default?(_: {}): any;
1552
1554
  footer?(_: {}): any;
@@ -2224,6 +2226,7 @@ export declare const widgets: {
2224
2226
  scrollToTop: () => void;
2225
2227
  }> & {} & ComponentCustomProperties & {} & {
2226
2228
  $slots: {
2229
+ 'pre-actions'?(_: {}): any;
2227
2230
  actions?(_: {}): any;
2228
2231
  default?(_: {}): any;
2229
2232
  footer?(_: {}): any;
@@ -670,6 +670,7 @@ declare const _default: DefineComponent<{}, {
670
670
  scrollToTop: () => void;
671
671
  }> & {} & ComponentCustomProperties & {} & {
672
672
  $slots: {
673
+ 'pre-actions'?(_: {}): any;
673
674
  actions?(_: {}): any;
674
675
  default?(_: {}): any;
675
676
  footer?(_: {}): any;
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
14
14
  }, PublicProps, {
15
15
  height: string;
16
16
  modelValue: string;
17
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
17
18
  dark: boolean;
18
19
  readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
20
  lang: string;
21
21
  minimap: boolean;
22
22
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
37
37
  }, {}, {}, {}, {
38
38
  height: string;
39
39
  modelValue: string;
40
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
40
41
  dark: boolean;
41
42
  readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
43
  lang: string;
44
44
  minimap: boolean;
45
45
  }> | null;
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
14
14
  }, PublicProps, {
15
15
  height: string;
16
16
  modelValue: string;
17
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
17
18
  dark: boolean;
18
19
  readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
20
  lang: string;
21
21
  minimap: boolean;
22
22
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
37
37
  }, {}, {}, {}, {
38
38
  height: string;
39
39
  modelValue: string;
40
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
40
41
  dark: boolean;
41
42
  readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
43
  lang: string;
44
44
  minimap: boolean;
45
45
  }> | null;
@@ -58,10 +58,10 @@ declare function __VLS_template(): {
58
58
  readonly width?: string | number | undefined;
59
59
  readonly label?: string | undefined;
60
60
  readonly error?: string | undefined;
61
+ readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
61
62
  readonly disabled?: boolean | undefined;
62
63
  readonly placeholder?: string | null | undefined;
63
64
  readonly readonly?: boolean | undefined;
64
- readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
65
65
  readonly cascader?: string | string[] | undefined;
66
66
  readonly tip?: string | undefined;
67
67
  readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
@@ -548,9 +548,9 @@ declare function __VLS_template(): {
548
548
  }, PublicProps, {
549
549
  height: string;
550
550
  modelValue: string;
551
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
551
552
  dark: boolean;
552
553
  readonly: boolean;
553
- options: import("monaco-editor").editor.IEditorConstructionOptions;
554
554
  lang: string;
555
555
  minimap: boolean;
556
556
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -571,9 +571,9 @@ declare function __VLS_template(): {
571
571
  }, {}, {}, {}, {
572
572
  height: string;
573
573
  modelValue: string;
574
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
574
575
  dark: boolean;
575
576
  readonly: boolean;
576
- options: import("monaco-editor").editor.IEditorConstructionOptions;
577
577
  lang: string;
578
578
  minimap: boolean;
579
579
  }> | null;
@@ -614,10 +614,10 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
614
614
  readonly width?: string | number | undefined;
615
615
  readonly label?: string | undefined;
616
616
  readonly error?: string | undefined;
617
+ readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
617
618
  readonly disabled?: boolean | undefined;
618
619
  readonly placeholder?: string | null | undefined;
619
620
  readonly readonly?: boolean | undefined;
620
- readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
621
621
  readonly cascader?: string | string[] | undefined;
622
622
  readonly tip?: string | undefined;
623
623
  readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
@@ -1104,9 +1104,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
1104
1104
  }, PublicProps, {
1105
1105
  height: string;
1106
1106
  modelValue: string;
1107
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
1107
1108
  dark: boolean;
1108
1109
  readonly: boolean;
1109
- options: import("monaco-editor").editor.IEditorConstructionOptions;
1110
1110
  lang: string;
1111
1111
  minimap: boolean;
1112
1112
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -1127,9 +1127,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
1127
1127
  }, {}, {}, {}, {
1128
1128
  height: string;
1129
1129
  modelValue: string;
1130
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
1130
1131
  dark: boolean;
1131
1132
  readonly: boolean;
1132
- options: import("monaco-editor").editor.IEditorConstructionOptions;
1133
1133
  lang: string;
1134
1134
  minimap: boolean;
1135
1135
  }> | null;
@@ -20,9 +20,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
20
20
  }, PublicProps, {
21
21
  height: string;
22
22
  modelValue: string;
23
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
23
24
  dark: boolean;
24
25
  readonly: boolean;
25
- options: import("monaco-editor").editor.IEditorConstructionOptions;
26
26
  lang: string;
27
27
  minimap: boolean;
28
28
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -43,9 +43,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
43
43
  }, {}, {}, {}, {
44
44
  height: string;
45
45
  modelValue: string;
46
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
46
47
  dark: boolean;
47
48
  readonly: boolean;
48
- options: import("monaco-editor").editor.IEditorConstructionOptions;
49
49
  lang: string;
50
50
  minimap: boolean;
51
51
  }> | null;
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
14
14
  }, PublicProps, {
15
15
  height: string;
16
16
  modelValue: string;
17
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
17
18
  dark: boolean;
18
19
  readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
20
  lang: string;
21
21
  minimap: boolean;
22
22
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
37
37
  }, {}, {}, {}, {
38
38
  height: string;
39
39
  modelValue: string;
40
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
40
41
  dark: boolean;
41
42
  readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
43
  lang: string;
44
44
  minimap: boolean;
45
45
  }> | null;
@@ -36,6 +36,7 @@ export interface TopicDto {
36
36
  source: string;
37
37
  prompt?: string;
38
38
  file?: File;
39
+ options?: string;
39
40
  }
40
41
  export type TopicType = 'text' | 'image' | 'json';
41
42
  export type TopicDataType = 'sketch' | 'figma' | 'mastergo' | 'unknown';
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.13.12
5
+ * @version 0.13.13
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.13.12";
8
+ export declare const version = "0.13.13";
@@ -96,8 +96,8 @@ export declare const SetterWrapper: DefineComponent<ExtractPropTypes<{
96
96
  value: string | number | boolean | Record<string, any> | unknown[];
97
97
  context: Context | null;
98
98
  setters: string | MaterialSetter | (string | MaterialSetter)[];
99
- disabled: boolean;
100
99
  options: unknown[];
100
+ disabled: boolean;
101
101
  current: BlockModel | null;
102
102
  removable: boolean;
103
103
  variable: boolean;
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-Cxjl3t69.js";
2
- export {
3
- f as default
4
- };