@zhin.js/console-contract 1.1.2 → 1.1.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/console-contract",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Zero-dependency Page, Layout, route and navigation contracts for Zhin.js plugins",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
package/src/navigation.ts CHANGED
@@ -2,6 +2,7 @@ export interface NavNode {
2
2
  readonly id: string;
3
3
  readonly type: 'plugin' | 'page';
4
4
  readonly label: string;
5
+ readonly titleI18n?: Readonly<Partial<Record<'zh-CN' | 'en', string>>>;
5
6
  readonly icon?: string;
6
7
  readonly path?: string;
7
8
  readonly order: number;
@@ -11,4 +12,6 @@ export interface NavNode {
11
12
  export interface AccessSnapshot {
12
13
  readonly permissions: readonly string[];
13
14
  readonly roles: readonly string[];
15
+ /** The operator (full-scope token, or a Host without tokens): every Page is allowed. */
16
+ readonly unrestricted?: boolean;
14
17
  }