@vtj/renderer 0.10.12 → 0.10.13
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 +5 -5
- package/dist/index.mjs +275 -251
- package/package.json +5 -5
- package/types/provider/defaults.d.ts +4 -1
- package/types/provider/provider.d.ts +1 -1
- package/types/utils/util.d.ts +4 -1
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/renderer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.10.
|
4
|
+
"version": "0.10.13",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
|
-
"@vtj/core": "~0.10.
|
8
|
-
"@vtj/utils": "~0.10.
|
7
|
+
"@vtj/core": "~0.10.13",
|
8
|
+
"@vtj/utils": "~0.10.13"
|
9
9
|
},
|
10
10
|
"devDependencies": {
|
11
11
|
"vue": "~3.5.5",
|
12
12
|
"vue-router": "~4.5.0",
|
13
13
|
"@vtj/cli": "~0.10.2",
|
14
|
-
"@vtj/
|
15
|
-
"@vtj/
|
14
|
+
"@vtj/icons": "~0.10.13",
|
15
|
+
"@vtj/ui": "~0.10.13"
|
16
16
|
},
|
17
17
|
"exports": {
|
18
18
|
".": {
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { MaybeRef, Ref } from 'vue';
|
2
2
|
import { IRequestSettings, IStaticRequest, Jsonp } from '@vtj/utils';
|
3
|
-
import { Access } from '../plugins';
|
3
|
+
import { Access, AccessOptions } from '../plugins';
|
4
4
|
export type UseTitle = (newTitle?: MaybeRef<string | null | undefined>, options?: Record<string, any>) => Ref<string | null | undefined>;
|
5
5
|
export interface CreateAdapterOptions {
|
6
6
|
notify?: (msg: string) => void;
|
7
7
|
loading?: () => any;
|
8
8
|
settings?: IRequestSettings;
|
9
9
|
Startup?: any;
|
10
|
+
access?: Partial<AccessOptions>;
|
11
|
+
remote?: string;
|
10
12
|
}
|
11
13
|
export interface ProvideAdapter {
|
12
14
|
request: IStaticRequest;
|
@@ -22,3 +24,4 @@ export interface ProvideAdapter {
|
|
22
24
|
[index: string]: any;
|
23
25
|
}
|
24
26
|
export declare function createAdapter(options?: CreateAdapterOptions): ProvideAdapter;
|
27
|
+
export declare function createAccess(options?: Partial<AccessOptions>): Access;
|
@@ -11,7 +11,7 @@ export interface ProviderOptions {
|
|
11
11
|
project?: Partial<ProjectSchema>;
|
12
12
|
modules?: Record<string, () => Promise<any>>;
|
13
13
|
mode?: ContextMode;
|
14
|
-
adapter?: ProvideAdapter
|
14
|
+
adapter?: Partial<ProvideAdapter>;
|
15
15
|
router?: Router;
|
16
16
|
dependencies?: Record<string, () => Promise<any>>;
|
17
17
|
materials?: Record<string, () => Promise<any>>;
|
package/types/utils/util.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
import { Plugin } from 'vue';
|
1
|
+
import { Plugin, App } from 'vue';
|
2
|
+
import { PageFile, BlockFile } from '@vtj/core';
|
3
|
+
import { RouteLocationNormalizedGeneric } from 'vue-router';
|
2
4
|
export declare function toString(value: any): string;
|
3
5
|
export declare function adoptedStyleSheets(global: Window, id: string, css: string): void;
|
4
6
|
export declare function loadCss(id: string, url: string): Promise<void>;
|
@@ -8,3 +10,4 @@ export declare function isVuePlugin(value: unknown): value is Plugin;
|
|
8
10
|
export declare function isBuiltInTag(tag: string): boolean;
|
9
11
|
export declare function isNativeTag(tag: string): boolean;
|
10
12
|
export declare function getMock(global?: any): any;
|
13
|
+
export declare function setupPageSetting(app: App, route: RouteLocationNormalizedGeneric, file: PageFile | BlockFile): void;
|
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.10.
|
5
|
+
* @version 0.10.12
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.10.
|
8
|
+
export declare const version = "0.10.12";
|