@vtj/designer 0.19.19 → 0.19.21
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-CMssulHs.js +4 -0
- package/dist/{index-XZTe9av3.js → index-DA-pFIW9.js} +5800 -5721
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/components/hooks/useOpenApi.d.ts +2 -1
- package/types/components/widgets/actions/index.d.ts +2 -0
- package/types/components/widgets/agent/types/agent.d.ts +2 -0
- package/types/components/widgets/agent/utils/chat.d.ts +2 -0
- package/types/components/widgets/agent/utils/messages.d.ts +1 -1
- package/types/components/widgets/index.d.ts +1 -0
- package/types/framework/openapi.d.ts +16 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BBme3a7y.js +0 -4
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-
|
|
1
|
+
import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-DA-pFIW9.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API_METHOD_TYPES,
|
|
4
4
|
r as ActionMenu,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.21",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"低代码引擎",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"marked": "~17.0.1",
|
|
30
30
|
"mockjs": "~1.1.0",
|
|
31
31
|
"monaco-editor": "~0.55.0",
|
|
32
|
-
"@vtj/
|
|
33
|
-
"@vtj/
|
|
34
|
-
"@vtj/
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/
|
|
32
|
+
"@vtj/core": "~0.19.21",
|
|
33
|
+
"@vtj/icons": "~0.19.21",
|
|
34
|
+
"@vtj/renderer": "~0.19.21",
|
|
35
|
+
"@vtj/ui": "~0.19.21",
|
|
36
|
+
"@vtj/uni": "~0.19.21",
|
|
37
|
+
"@vtj/utils": "~0.19.21"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/mockjs": "~1.0.10",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockSchema, PlatformType } from '@vtj/core';
|
|
2
|
-
import { PublishTemplateDto, TemplateDto, TopicDto, ChatDto, Settings, CompletionChunk } from '../../framework';
|
|
2
|
+
import { PublishTemplateDto, PublishCloudProjectResult, TemplateDto, TopicDto, ChatDto, Settings, CompletionChunk } from '../../framework';
|
|
3
3
|
import { ShallowReactive } from 'vue';
|
|
4
4
|
import { Engine } from '../..';
|
|
5
5
|
import { Access } from '@vtj/renderer';
|
|
@@ -16,6 +16,7 @@ export declare function useOpenApi(): {
|
|
|
16
16
|
getDictOptions: (code: string) => Promise<any>;
|
|
17
17
|
getTemplateCategories: () => Promise<any>;
|
|
18
18
|
publishTemplate: (dto: PublishTemplateDto) => Promise<unknown>;
|
|
19
|
+
publishCloudProject: () => Promise<PublishCloudProjectResult>;
|
|
19
20
|
getTemplateById: (id: string) => Promise<TemplateDto>;
|
|
20
21
|
removeTemplate: (id: string) => Promise<boolean>;
|
|
21
22
|
postTopic: (dto: TopicDto) => Promise<any>;
|
|
@@ -4,6 +4,7 @@ export interface Props {
|
|
|
4
4
|
onlyPublishTemplate?: boolean;
|
|
5
5
|
coder?: boolean;
|
|
6
6
|
appMode?: boolean;
|
|
7
|
+
cloudPublish?: boolean;
|
|
7
8
|
getAppsInit?: any;
|
|
8
9
|
postAppsVersions?: any;
|
|
9
10
|
postDslDevPublish?: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: DefineComponent<Props, {
|
|
|
17
18
|
coder: boolean;
|
|
18
19
|
appMode: boolean;
|
|
19
20
|
onlyPublishTemplate: boolean;
|
|
21
|
+
cloudPublish: boolean;
|
|
20
22
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
21
23
|
versionerRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{}>, {
|
|
22
24
|
openDialog: () => Promise<void>;
|
|
@@ -168,7 +168,7 @@ export declare const Messages: {
|
|
|
168
168
|
retryingStep: (index: number) => AgentStatusMessage;
|
|
169
169
|
retryArchitect: (label: string) => AgentStatusMessage;
|
|
170
170
|
architectRetrying: (attempt: number, max: number) => AgentStatusMessage;
|
|
171
|
-
architectFailed: (message: string) => AgentStatusMessage;
|
|
171
|
+
architectFailed: (message: string, retries?: number) => AgentStatusMessage;
|
|
172
172
|
error: (message: string) => AgentStatusMessage;
|
|
173
173
|
retryFailed: (message: string) => AgentStatusMessage;
|
|
174
174
|
historyLoaded: (count: number) => AgentStatusMessage;
|
|
@@ -49,6 +49,7 @@ export declare const widgets: {
|
|
|
49
49
|
coder: boolean;
|
|
50
50
|
appMode: boolean;
|
|
51
51
|
onlyPublishTemplate: boolean;
|
|
52
|
+
cloudPublish: boolean;
|
|
52
53
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
53
54
|
versionerRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{}>, {
|
|
54
55
|
openDialog: () => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformType, BlockSchema } from '@vtj/core';
|
|
1
|
+
import { PlatformType, BlockSchema, ProjectSchema } from '@vtj/core';
|
|
2
2
|
import { AITopic, AIChat } from './types';
|
|
3
3
|
export interface TemplateDto {
|
|
4
4
|
id: string;
|
|
@@ -33,6 +33,17 @@ export interface PublishTemplateDto {
|
|
|
33
33
|
dsl: string;
|
|
34
34
|
id?: string;
|
|
35
35
|
}
|
|
36
|
+
export interface PublishCloudProjectDto {
|
|
37
|
+
project: ProjectSchema;
|
|
38
|
+
materials: Record<string, any>;
|
|
39
|
+
files: BlockSchema[];
|
|
40
|
+
}
|
|
41
|
+
export interface PublishCloudProjectResult {
|
|
42
|
+
app: string;
|
|
43
|
+
projectCount: number;
|
|
44
|
+
materialCount: number;
|
|
45
|
+
fileCount: number;
|
|
46
|
+
}
|
|
36
47
|
export interface TopicDto {
|
|
37
48
|
model: string;
|
|
38
49
|
llm?: string;
|
|
@@ -133,6 +144,10 @@ export declare abstract class OpenApi {
|
|
|
133
144
|
* 发布模版
|
|
134
145
|
*/
|
|
135
146
|
abstract publishTemplate?: (dto: PublishTemplateDto) => Promise<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* 将本地项目 DSL 发布到在线开发环境
|
|
149
|
+
*/
|
|
150
|
+
abstract publishCloudProject?: (dto: PublishCloudProjectDto) => Promise<PublishCloudProjectResult>;
|
|
136
151
|
/**
|
|
137
152
|
* 发送AI话题
|
|
138
153
|
*/
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.19.
|
|
5
|
+
* @version 0.19.20
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.19.
|
|
8
|
+
export declare const version = "0.19.20";
|
package/dist/Editor-BBme3a7y.js
DELETED