@vtj/designer 0.11.15 → 0.12.0-alpha.0

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 (41) hide show
  1. package/dist/Editor-DN_yRaGC.js +4 -0
  2. package/dist/index-BW1rPE3i.js +17483 -0
  3. package/dist/index.mjs +69 -13054
  4. package/dist/style.css +1 -1
  5. package/package.json +10 -8
  6. package/types/components/hooks/index.d.ts +1 -0
  7. package/types/components/hooks/useAI.d.ts +188 -0
  8. package/types/components/hooks/useOpenApi.d.ts +15 -25
  9. package/types/components/hooks/useTemplates.d.ts +1 -1
  10. package/types/components/regions/apps.d.ts +32 -3
  11. package/types/components/regions/index.d.ts +31 -1
  12. package/types/components/regions/workspace.d.ts +1 -0
  13. package/types/components/shared/binder.d.ts +10 -10
  14. package/types/components/shared/item.d.ts +2 -0
  15. package/types/components/shared/panel.d.ts +1129 -5
  16. package/types/components/widgets/ai/avatar.d.ts +3 -0
  17. package/types/components/widgets/ai/bubble.d.ts +22 -0
  18. package/types/components/widgets/ai/chat-input.d.ts +27 -0
  19. package/types/components/widgets/ai/detail.d.ts +98 -0
  20. package/types/components/widgets/ai/index.d.ts +671 -0
  21. package/types/components/widgets/ai/invite-tip.d.ts +8 -0
  22. package/types/components/widgets/ai/login-tip.d.ts +3 -0
  23. package/types/components/widgets/ai/new-topic.d.ts +19 -0
  24. package/types/components/widgets/ai/no-file-tip.d.ts +3 -0
  25. package/types/components/widgets/ai/pay-tip.d.ts +11 -0
  26. package/types/components/widgets/ai/records.d.ts +18 -0
  27. package/types/components/widgets/ai/stream-markdown.d.ts +13 -0
  28. package/types/components/widgets/apis/form.d.ts +8 -8
  29. package/types/components/widgets/docs/index.d.ts +574 -5
  30. package/types/components/widgets/index.d.ts +1811 -7
  31. package/types/components/widgets/market/index.d.ts +574 -5
  32. package/types/framework/engine.d.ts +50 -1
  33. package/types/framework/index.d.ts +1 -0
  34. package/types/framework/openapi.d.ts +100 -0
  35. package/types/framework/renderer.d.ts +1 -0
  36. package/types/framework/report.d.ts +1 -1
  37. package/types/framework/types.d.ts +4 -0
  38. package/types/managers/widget.d.ts +11 -0
  39. package/types/utils.d.ts +2 -2
  40. package/types/version.d.ts +2 -2
  41. package/dist/Editor-7SLplEph.js +0 -67
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { AIChat } from '../../hooks';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ export interface Props {
4
+ type: 'user' | 'ai';
5
+ data: AIChat;
6
+ code?: boolean;
7
+ }
8
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ view: (...args: any[]) => void;
10
+ refresh: (...args: any[]) => void;
11
+ download: (...args: any[]) => void;
12
+ fix: (...args: any[]) => void;
13
+ }, string, PublicProps, Readonly<Props> & Readonly<{
14
+ onView?: ((...args: any[]) => any) | undefined;
15
+ onRefresh?: ((...args: any[]) => any) | undefined;
16
+ onDownload?: ((...args: any[]) => any) | undefined;
17
+ onFix?: ((...args: any[]) => any) | undefined;
18
+ }>, {
19
+ type: "user" | "ai";
20
+ code: boolean;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { Dict, AISendData } from '../../hooks';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ export interface Props {
4
+ minRows?: number;
5
+ modelValue?: string;
6
+ models?: Dict[];
7
+ model?: string;
8
+ lockModel?: boolean;
9
+ loading?: boolean;
10
+ disabled?: boolean;
11
+ }
12
+ declare const _default: DefineComponent<Props, {
13
+ auto: Ref<boolean, boolean>;
14
+ currentModel: Ref<string, string>;
15
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16
+ "update:modelValue": (value: string) => any;
17
+ send: (value: AISendData) => any;
18
+ }, string, PublicProps, Readonly<Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
+ onSend?: ((value: AISendData) => any) | undefined;
21
+ }>, {
22
+ loading: boolean;
23
+ minRows: number;
24
+ models: Dict[];
25
+ lockModel: boolean;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ export default _default;
@@ -0,0 +1,98 @@
1
+ import { AIChat } from '../../hooks';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
3
+ import { Props } from '../../editor/Editor';
4
+ export interface Props {
5
+ chat: AIChat;
6
+ updateChatDsl: any;
7
+ }
8
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ apply: (chat: AIChat) => any;
10
+ }, string, PublicProps, Readonly<Props> & Readonly<{
11
+ onApply?: ((chat: AIChat) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
13
+ editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
14
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
+ onBlur?: ((...args: any[]) => any) | undefined;
16
+ onChange?: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
19
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:modelValue": (...args: any[]) => void;
21
+ blur: (...args: any[]) => void;
22
+ change: (...args: any[]) => void;
23
+ }, PublicProps, {
24
+ height: string;
25
+ modelValue: string;
26
+ dark: boolean;
27
+ readonly: boolean;
28
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
29
+ lang: string;
30
+ minimap: boolean;
31
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
32
+ container: HTMLDivElement;
33
+ }, HTMLDivElement, ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly< Props> & Readonly<{
41
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
42
+ onBlur?: ((...args: any[]) => any) | undefined;
43
+ onChange?: ((...args: any[]) => any) | undefined;
44
+ }>, {
45
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
46
+ }, {}, {}, {}, {
47
+ height: string;
48
+ modelValue: string;
49
+ dark: boolean;
50
+ readonly: boolean;
51
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
52
+ lang: string;
53
+ minimap: boolean;
54
+ }> | null;
55
+ dslRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
56
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ onBlur?: ((...args: any[]) => any) | undefined;
58
+ onChange?: ((...args: any[]) => any) | undefined;
59
+ }>, {
60
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
61
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
62
+ "update:modelValue": (...args: any[]) => void;
63
+ blur: (...args: any[]) => void;
64
+ change: (...args: any[]) => void;
65
+ }, PublicProps, {
66
+ height: string;
67
+ modelValue: string;
68
+ dark: boolean;
69
+ readonly: boolean;
70
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
71
+ lang: string;
72
+ minimap: boolean;
73
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
74
+ container: HTMLDivElement;
75
+ }, HTMLDivElement, ComponentProvideOptions, {
76
+ P: {};
77
+ B: {};
78
+ D: {};
79
+ C: {};
80
+ M: {};
81
+ Defaults: {};
82
+ }, Readonly< Props> & Readonly<{
83
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
84
+ onBlur?: ((...args: any[]) => any) | undefined;
85
+ onChange?: ((...args: any[]) => any) | undefined;
86
+ }>, {
87
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
88
+ }, {}, {}, {}, {
89
+ height: string;
90
+ modelValue: string;
91
+ dark: boolean;
92
+ readonly: boolean;
93
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
94
+ lang: string;
95
+ minimap: boolean;
96
+ }> | null;
97
+ }, any>;
98
+ export default _default;