@vtj/renderer 0.9.30 → 0.10.1-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/index.cjs +14 -12
- package/dist/index.mjs +565 -554
- package/package.json +6 -6
- package/types/services/base.d.ts +2 -2
- package/types/services/local.d.ts +1 -1
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/renderer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.10.1-alpha.0",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"mockjs": "~1.1.0",
|
8
|
-
"@vtj/core": "~0.
|
9
|
-
"@vtj/utils": "~0.
|
8
|
+
"@vtj/core": "~0.10.1-alpha.0",
|
9
|
+
"@vtj/utils": "~0.10.1-alpha.0"
|
10
10
|
},
|
11
11
|
"devDependencies": {
|
12
12
|
"vue": "~3.5.5",
|
13
13
|
"vue-router": "~4.5.0",
|
14
|
-
"@vtj/
|
15
|
-
"@vtj/
|
16
|
-
"@vtj/
|
14
|
+
"@vtj/cli": "~0.10.0",
|
15
|
+
"@vtj/ui": "~0.10.1-alpha.0",
|
16
|
+
"@vtj/icons": "~0.10.1-alpha.0"
|
17
17
|
},
|
18
18
|
"exports": {
|
19
19
|
".": {
|
package/types/services/base.d.ts
CHANGED
@@ -2,13 +2,13 @@ import { ProjectSchema, PageFile, BlockFile, BlockSchema, MaterialDescription, H
|
|
2
2
|
import { IStaticRequest } from '@vtj/utils';
|
3
3
|
export declare function createServiceRequest(notify?: (msg: string) => void): IStaticRequest<any, any>;
|
4
4
|
export declare class BaseService implements Service {
|
5
|
-
protected api: (type: string, data: any) => Promise<any>;
|
5
|
+
protected api: (type: string, data: any, query?: any) => Promise<any>;
|
6
6
|
private pluginCaches;
|
7
7
|
protected uploader: (file: File, projectId: string) => Promise<StaticFileInfo>;
|
8
8
|
constructor(req?: IStaticRequest);
|
9
9
|
getExtension(): Promise<ExtensionConfig | undefined>;
|
10
10
|
init(project: ProjectSchema): Promise<ProjectSchema>;
|
11
|
-
saveProject(project: ProjectSchema): Promise<boolean>;
|
11
|
+
saveProject(project: ProjectSchema, type?: string): Promise<boolean>;
|
12
12
|
saveMaterials(project: ProjectSchema, materials: Map<string, MaterialDescription>): Promise<boolean>;
|
13
13
|
saveFile(file: BlockSchema): Promise<boolean>;
|
14
14
|
getFile(id: string): Promise<BlockSchema>;
|
@@ -4,7 +4,7 @@ export declare class LocalService extends BaseService {
|
|
4
4
|
private getFileCaches;
|
5
5
|
getExtension(): Promise<ExtensionConfig | undefined>;
|
6
6
|
init(project: ProjectSchema): Promise<ProjectSchema>;
|
7
|
-
saveProject(project: ProjectSchema): Promise<boolean>;
|
7
|
+
saveProject(project: ProjectSchema, type?: string): Promise<boolean>;
|
8
8
|
saveMaterials(project: ProjectSchema, materials: Map<string, MaterialDescription>): Promise<boolean>;
|
9
9
|
saveFile(file: BlockSchema): Promise<boolean>;
|
10
10
|
getFile(id: string): Promise<BlockSchema>;
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/renderer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.
|
5
|
+
* @version 0.10.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.10.0";
|