@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.
- package/dist/Editor-DN_yRaGC.js +4 -0
- package/dist/index-BW1rPE3i.js +17483 -0
- package/dist/index.mjs +69 -13054
- package/dist/style.css +1 -1
- package/package.json +10 -8
- package/types/components/hooks/index.d.ts +1 -0
- package/types/components/hooks/useAI.d.ts +188 -0
- package/types/components/hooks/useOpenApi.d.ts +15 -25
- package/types/components/hooks/useTemplates.d.ts +1 -1
- package/types/components/regions/apps.d.ts +32 -3
- package/types/components/regions/index.d.ts +31 -1
- package/types/components/regions/workspace.d.ts +1 -0
- package/types/components/shared/binder.d.ts +10 -10
- package/types/components/shared/item.d.ts +2 -0
- package/types/components/shared/panel.d.ts +1129 -5
- package/types/components/widgets/ai/avatar.d.ts +3 -0
- package/types/components/widgets/ai/bubble.d.ts +22 -0
- package/types/components/widgets/ai/chat-input.d.ts +27 -0
- package/types/components/widgets/ai/detail.d.ts +98 -0
- package/types/components/widgets/ai/index.d.ts +671 -0
- package/types/components/widgets/ai/invite-tip.d.ts +8 -0
- package/types/components/widgets/ai/login-tip.d.ts +3 -0
- package/types/components/widgets/ai/new-topic.d.ts +19 -0
- package/types/components/widgets/ai/no-file-tip.d.ts +3 -0
- package/types/components/widgets/ai/pay-tip.d.ts +11 -0
- package/types/components/widgets/ai/records.d.ts +18 -0
- package/types/components/widgets/ai/stream-markdown.d.ts +13 -0
- package/types/components/widgets/apis/form.d.ts +8 -8
- package/types/components/widgets/docs/index.d.ts +574 -5
- package/types/components/widgets/index.d.ts +1811 -7
- package/types/components/widgets/market/index.d.ts +574 -5
- package/types/framework/engine.d.ts +50 -1
- package/types/framework/index.d.ts +1 -0
- package/types/framework/openapi.d.ts +100 -0
- package/types/framework/renderer.d.ts +1 -0
- package/types/framework/report.d.ts +1 -1
- package/types/framework/types.d.ts +4 -0
- package/types/managers/widget.d.ts +11 -0
- package/types/utils.d.ts +2 -2
- package/types/version.d.ts +2 -2
- 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;
|