@vtj/renderer 0.12.42 → 0.12.44

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.12.42",
4
+ "version": "0.12.44",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -21,15 +21,15 @@
21
21
  "author": "chenhuachun",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.42",
25
- "@vtj/utils": "~0.12.42"
24
+ "@vtj/core": "~0.12.44",
25
+ "@vtj/utils": "~0.12.44"
26
26
  },
27
27
  "devDependencies": {
28
28
  "vue": "~3.5.5",
29
29
  "vue-router": "~4.5.0",
30
- "@vtj/icons": "~0.12.42",
31
- "@vtj/ui": "~0.12.42",
32
- "@vtj/cli": "~0.12.5"
30
+ "@vtj/cli": "~0.12.5",
31
+ "@vtj/ui": "~0.12.44",
32
+ "@vtj/icons": "~0.12.44"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -40,3 +40,9 @@ export declare const PAGE_ROUTE_NAME = "VtjPage";
40
40
  export declare const HOMEPAGE_ROUTE_NAME = "VtjHomepage";
41
41
  export declare const HTML_TAGS: string[];
42
42
  export declare const BUILD_IN_TAGS: string[];
43
+ export declare const REMOTE: string;
44
+ export declare const ACCESS: {
45
+ auth: string;
46
+ storageKey: string;
47
+ privateKey: string;
48
+ };
@@ -1,10 +1,14 @@
1
1
  import { MenuDataItem } from '@vtj/ui';
2
+ import { PageFile } from '@vtj/core';
3
+ import { Access } from '../plugins';
2
4
  import { Ref } from 'vue';
3
5
  export interface UseMaskOptions {
4
6
  pageRouteName?: string;
5
7
  menuPathPrefix?: string;
6
8
  disableMenusFilter?: boolean;
7
9
  }
10
+ export declare function createMenus(menuPathPrefix: string, pageRouteName: string, pages?: PageFile[]): MenuDataItem[];
11
+ export declare function menusFilter(menus: MenuDataItem[], access?: Access): MenuDataItem[];
8
12
  export declare function useMask(options?: UseMaskOptions): {
9
13
  disabled: Ref<boolean, boolean>;
10
14
  logo: string | undefined;
@@ -4,6 +4,7 @@ import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugi
4
4
  import { ContextMode } from '../constants';
5
5
  import { CreateRendererOptions } from '../render';
6
6
  import { ProvideAdapter } from './defaults';
7
+ import { MenuDataItem } from '@vtj/ui';
7
8
  import { Context } from '..';
8
9
  export declare const providerKey: InjectionKey<Provider>;
9
10
  export interface ProviderOptions {
@@ -85,6 +86,7 @@ export declare class Provider extends Base {
85
86
  install(app: App): void;
86
87
  getFile(id: string): PageFile | BlockFile | null;
87
88
  getPage(id: string): PageFile | null;
89
+ getMenus(name?: string, prefix?: string): MenuDataItem[];
88
90
  getHomepage(): PageFile | null;
89
91
  getDsl(id: string): Promise<BlockSchema | null>;
90
92
  getDslByUrl(url: string): Promise<BlockSchema | null>;
@@ -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.12.41
5
+ * @version 0.12.43
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.41";
8
+ export declare const version = "0.12.43";