@vtj/designer 0.12.0-alpha.0 → 0.12.0-alpha.1
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-COl9ea8e.js +4 -0
- package/dist/{index-BW1rPE3i.js → index-BHWx6qNv.js} +3548 -3542
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
- package/types/components/hooks/useAI.d.ts +2 -19
- package/types/components/hooks/useOpenApi.d.ts +2 -2
- package/types/components/widgets/ai/new-topic.d.ts +0 -2
- package/types/framework/openapi.d.ts +31 -17
- package/types/version.d.ts +2 -2
- package/dist/Editor-DN_yRaGC.js +0 -4
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-
|
1
|
+
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-BHWx6qNv.js";
|
2
2
|
export {
|
3
3
|
e as ACCESS,
|
4
4
|
E as API_METHOD_TYPES,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/designer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.12.0-alpha.
|
4
|
+
"version": "0.12.0-alpha.1",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -26,18 +26,18 @@
|
|
26
26
|
"marked": "~15.0.8",
|
27
27
|
"mockjs": "~1.1.0",
|
28
28
|
"monaco-editor": "~0.52.0",
|
29
|
-
"@vtj/
|
30
|
-
"@vtj/
|
31
|
-
"@vtj/
|
32
|
-
"@vtj/
|
33
|
-
"@vtj/
|
34
|
-
"@vtj/
|
29
|
+
"@vtj/core": "~0.12.0-alpha.1",
|
30
|
+
"@vtj/icons": "~0.12.0-alpha.1",
|
31
|
+
"@vtj/renderer": "~0.12.0-alpha.1",
|
32
|
+
"@vtj/ui": "~0.12.0-alpha.1",
|
33
|
+
"@vtj/utils": "~0.12.0-alpha.1",
|
34
|
+
"@vtj/uni": "~0.12.0-alpha.1"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@types/mockjs": "~1.0.10",
|
38
38
|
"vue": "~3.5.5",
|
39
39
|
"vue-router": "~4.5.0",
|
40
|
-
"@vtj/cli": "~0.12.0-alpha.
|
40
|
+
"@vtj/cli": "~0.12.0-alpha.1"
|
41
41
|
},
|
42
42
|
"files": [
|
43
43
|
"dist",
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Ref, ShallowReactive, ComputedRef } from 'vue';
|
2
2
|
import { useOpenApi } from './useOpenApi';
|
3
|
-
import { AITopic, AIChat, DictOption } from '../../framework';
|
3
|
+
import { AITopic, AIChat, DictOption, Settings } from '../../framework';
|
4
4
|
import { BlockSchema, BlockModel } from '@vtj/core';
|
5
5
|
import { Engine } from '../..';
|
6
|
-
export type { AITopic, AIChat };
|
6
|
+
export type { AITopic, AIChat, Settings };
|
7
7
|
export type Dict = DictOption;
|
8
8
|
export type UseAIOptions = ReturnType<typeof useOpenApi>;
|
9
9
|
export interface AISendData {
|
@@ -11,22 +11,6 @@ export interface AISendData {
|
|
11
11
|
auto: boolean;
|
12
12
|
prompt: string;
|
13
13
|
}
|
14
|
-
export interface CompletionsParams {
|
15
|
-
chat: AIChat;
|
16
|
-
callback?: (data: any, done?: boolean) => void;
|
17
|
-
error?: (e: any, cancel?: boolean) => void;
|
18
|
-
}
|
19
|
-
export interface Settings {
|
20
|
-
limit: number;
|
21
|
-
max: number;
|
22
|
-
mode: number;
|
23
|
-
price: number;
|
24
|
-
payQr: string;
|
25
|
-
contactQr: string;
|
26
|
-
invited: boolean;
|
27
|
-
paid: boolean;
|
28
|
-
free: boolean;
|
29
|
-
}
|
30
14
|
export declare function useAI(): {
|
31
15
|
engine: ShallowReactive<Engine>;
|
32
16
|
isLogined: () => Promise<boolean>;
|
@@ -35,7 +19,6 @@ export declare function useAI(): {
|
|
35
19
|
loading: Ref<boolean, boolean>;
|
36
20
|
isNewChat: Ref<boolean, boolean>;
|
37
21
|
models: Ref<DictOption[], DictOption[]>;
|
38
|
-
topicTypes: Ref<DictOption[], DictOption[]>;
|
39
22
|
onPostTopic: (data: AISendData) => Promise<any>;
|
40
23
|
topics: Ref<{
|
41
24
|
id: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BlockSchema, PlatformType } from '@vtj/core';
|
2
|
-
import { PublishTemplateDto, TemplateDto, TopicDto, ChatDto } from '../../framework';
|
2
|
+
import { PublishTemplateDto, TemplateDto, TopicDto, ChatDto, Settings } from '../../framework';
|
3
3
|
import { ShallowReactive } from 'vue';
|
4
4
|
import { Engine } from '../..';
|
5
5
|
import { Access } from '@vtj/renderer';
|
@@ -26,7 +26,7 @@ export declare function useOpenApi(): {
|
|
26
26
|
chatCompletions: (topicId: string, chatId: string, callback?: (data: any, done?: boolean) => void, error?: (err: any, cancel?: boolean) => void) => Promise<() => void>;
|
27
27
|
saveChat: (chat: any) => Promise<any>;
|
28
28
|
getHotTopics: () => Promise<any>;
|
29
|
-
getSettins: () => Promise<
|
29
|
+
getSettins: () => Promise<Settings>;
|
30
30
|
createOrder: () => Promise<any>;
|
31
31
|
cancelOrder: (id: string) => Promise<any>;
|
32
32
|
getOrder: (id: string) => Promise<any>;
|
@@ -2,7 +2,6 @@ import { Dict, AISendData } from '../../hooks';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
3
|
export interface Props {
|
4
4
|
models?: Dict[];
|
5
|
-
types?: Dict[];
|
6
5
|
loading?: boolean;
|
7
6
|
modelValue?: string;
|
8
7
|
fillPromptInput: any;
|
@@ -14,6 +13,5 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
14
13
|
onSend?: ((data: AISendData) => any) | undefined;
|
15
14
|
}>, {
|
16
15
|
models: Dict[];
|
17
|
-
types: Dict[];
|
18
16
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
19
17
|
export default _default;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Access } from '@vtj/renderer';
|
2
1
|
import { PlatformType, BlockSchema } from '@vtj/core';
|
3
2
|
export interface TemplateDto {
|
4
3
|
id: string;
|
@@ -77,24 +76,39 @@ export interface ResponseWrapper<T = any> {
|
|
77
76
|
message?: string;
|
78
77
|
data: T;
|
79
78
|
}
|
79
|
+
export interface Settings {
|
80
|
+
limit: number;
|
81
|
+
max: number;
|
82
|
+
mode: number;
|
83
|
+
price: number;
|
84
|
+
payQr: string;
|
85
|
+
contactQr: string;
|
86
|
+
invited: boolean;
|
87
|
+
paid: boolean;
|
88
|
+
free: boolean;
|
89
|
+
}
|
80
90
|
export declare abstract class OpenApi {
|
81
|
-
abstract
|
82
|
-
abstract
|
83
|
-
abstract
|
84
|
-
abstract
|
85
|
-
abstract
|
86
|
-
abstract
|
87
|
-
abstract
|
88
|
-
abstract
|
89
|
-
abstract
|
90
|
-
abstract postTopic: (dto: TopicDto) => Promise<ResponseWrapper<{
|
91
|
+
abstract loginBySign?: () => Promise<string[]>;
|
92
|
+
abstract isLogined?: () => Promise<boolean>;
|
93
|
+
abstract getTemplates?: (platform: PlatformType) => Promise<TemplateDto[]>;
|
94
|
+
abstract getTemplateById?: (id: string) => Promise<TemplateDto>;
|
95
|
+
abstract removeTemplate?: (id: string) => Promise<boolean>;
|
96
|
+
abstract getTemplateDsl?: (id: string) => Promise<BlockSchema>;
|
97
|
+
abstract getDictOptions?: (code: string) => Promise<DictOption[]>;
|
98
|
+
abstract publishTemplate?: (dto: PublishTemplateDto) => Promise<boolean>;
|
99
|
+
abstract postTopic?: (dto: TopicDto) => Promise<ResponseWrapper<{
|
91
100
|
topic: AITopic;
|
92
101
|
chat: AIChat;
|
93
102
|
}>>;
|
94
|
-
abstract getChats
|
95
|
-
abstract getTopics
|
96
|
-
abstract postChat
|
97
|
-
abstract saveChat
|
98
|
-
abstract removeTopic
|
99
|
-
abstract getHotTopics
|
103
|
+
abstract getChats?: (topicId: string) => Promise<ResponseWrapper<AIChat[]>>;
|
104
|
+
abstract getTopics?: (fileId: string) => Promise<ResponseWrapper<AITopic[]>>;
|
105
|
+
abstract postChat?: (dto: ChatDto) => Promise<ResponseWrapper<AIChat>>;
|
106
|
+
abstract saveChat?: (chat: AIChat) => Promise<ResponseWrapper<boolean>>;
|
107
|
+
abstract removeTopic?: (topicId: string) => Promise<ResponseWrapper<boolean>>;
|
108
|
+
abstract getHotTopics?: () => Promise<ResponseWrapper<AITopic[]>>;
|
109
|
+
abstract chatCompletions?: (topicId: string, chatId: string, callback?: (data: any, done?: boolean) => void, error?: (err: any, cancel?: boolean) => void) => Promise<() => void>;
|
110
|
+
abstract getSettins?: () => Promise<Settings>;
|
111
|
+
abstract createOrder?: () => Promise<ResponseWrapper<any>>;
|
112
|
+
abstract cancelOrder?: (id: string) => Promise<ResponseWrapper<any>>;
|
113
|
+
abstract getOrder?: (id: string) => Promise<ResponseWrapper<any>>;
|
100
114
|
}
|
package/types/version.d.ts
CHANGED
@@ -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.
|
5
|
+
* @version 0.12.0-alpha.0
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.
|
8
|
+
export declare const version = "0.12.0-alpha.0";
|
package/dist/Editor-DN_yRaGC.js
DELETED