x-essential-lib 0.7.3 → 0.7.5

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.
@@ -1,2 +1 @@
1
1
  export * from './global';
2
- export * from './viewMgr';
@@ -3,4 +3,6 @@ export * from './dialog';
3
3
  export * from './message';
4
4
  export * from './misc';
5
5
  export * from './permission';
6
+ export * from './provideInject';
6
7
  export * from './router';
8
+ export * from './viewMgr';
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ import { PermissionObjects } from './permission';
3
+ export declare function provideDark(dark: Ref<boolean | undefined>): void;
4
+ export declare function injectDark(): Ref<boolean | undefined>;
5
+ export declare function provideLocale(locale: Ref<string>): void;
6
+ export declare function injectLocale(): Ref<string>;
7
+ export declare function providePermissionObjects(permissionObjects: Ref<PermissionObjects>): void;
8
+ export declare function injectPermissionObjects(): Ref<PermissionObjects>;
9
+ export declare function providePermissionChecksum(permissionChecksum: Ref<string>): void;
10
+ export declare function injectPermissionChecksum(): Ref<string>;
11
+ export declare function provideLastAppPath(lastAppPath: Ref<string>): void;
12
+ export declare function injectLastAppPath(): Ref<string>;
13
+ export declare function provideViews(views: Ref<string[]>): void;
14
+ export declare function injectViews(): Ref<string[]>;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export declare function isEmpty(views: Ref<string[]>): boolean;
3
+ export declare function lastView(views: Ref<string[]>): string | undefined;
4
+ export declare function hasView(views: Ref<string[]>, name: string): boolean;
5
+ export declare function addView(views: Ref<string[]>, name: string): void;
6
+ export declare function delView(views: Ref<string[]>, name: string): void;
7
+ export declare function popView(views: Ref<string[]>): void;
8
+ export declare function clearViews(views: Ref<string[]>): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.3",
4
+ "version": "0.7.5",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -12,48 +12,43 @@
12
12
  "dev": "vite",
13
13
  "build": "vue-tsc && vite build",
14
14
  "preview": "vite preview",
15
- "lint": "eslint --fix .",
15
+ "lint": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
16
16
  "format": "prettier --write .",
17
17
  "lint-staged": "lint-staged",
18
18
  "prepare": "husky"
19
19
  },
20
20
  "lint-staged": {
21
- "*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix",
21
+ "*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
22
22
  "*": "prettier --write ."
23
23
  },
24
24
  "dependencies": {
25
- "@vueuse/core": "^10.11.1",
25
+ "@vueuse/core": "^11.1.0",
26
26
  "js-cookie": "^3.0.5",
27
27
  "mitt": "^3.0.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "axios": "^1.7.7",
31
- "pinia": "^2.2.4",
32
- "pinia-plugin-persistedstate": "^4.1.1",
33
31
  "vue": "^3.5.12",
34
32
  "vue-i18n": "^10.0.4",
35
33
  "vue-router": "^4.4.3",
36
- "vuetify": "^3.7.2"
34
+ "vuetify": "^3.7.3"
37
35
  },
38
36
  "devDependencies": {
39
37
  "@eslint/js": "^10.0.0",
40
38
  "@mdi/js": "^7.4.47",
41
- "@rushstack/eslint-patch": "^1.10.4",
42
39
  "@types/js-cookie": "^3.0.6",
43
- "@types/node": "^22.7.6",
40
+ "@types/node": "^22.7.7",
44
41
  "@vitejs/plugin-vue": "^5.1.4",
45
- "@vue/eslint-config-prettier": "^10.0.0",
46
- "@vue/eslint-config-typescript": "^14.1.1",
47
- "eslint": "^9.12.0",
42
+ "eslint": "^9.13.0",
43
+ "eslint-config-prettier": "^9.1.0",
48
44
  "eslint-plugin-prettier": "^5.2.1",
49
- "eslint-plugin-vue": "^9.29.0",
50
- "globals": "^15.11.0",
45
+ "eslint-plugin-vue": "^9.29.1",
51
46
  "husky": "^9.1.6",
52
47
  "lint-staged": "^15.2.10",
53
48
  "prettier": "3.3.3",
54
- "sass": "^1.80.0",
49
+ "sass": "^1.80.3",
55
50
  "typescript": "^5.6.3",
56
- "typescript-eslint": "^8.9.0",
51
+ "typescript-eslint": "^8.11.0",
57
52
  "vite": "^5.4.9",
58
53
  "vite-plugin-css-injected-by-js": "^3.5.2",
59
54
  "vite-plugin-vuetify": "^2.0.4",
@@ -1,29 +0,0 @@
1
- import 'pinia-plugin-persistedstate';
2
- export declare const useViewMgrStore: import("pinia").StoreDefinition<"viewMgr", Pick<{
3
- views: import("vue").Ref<string[], string[]>;
4
- isEmpty: () => boolean;
5
- lastView: () => string | undefined;
6
- hasView: (name: string) => boolean;
7
- addView: (name: string) => void;
8
- delView: (name: string) => void;
9
- popView: () => void;
10
- clearViews: () => void;
11
- }, "views">, Pick<{
12
- views: import("vue").Ref<string[], string[]>;
13
- isEmpty: () => boolean;
14
- lastView: () => string | undefined;
15
- hasView: (name: string) => boolean;
16
- addView: (name: string) => void;
17
- delView: (name: string) => void;
18
- popView: () => void;
19
- clearViews: () => void;
20
- }, never>, Pick<{
21
- views: import("vue").Ref<string[], string[]>;
22
- isEmpty: () => boolean;
23
- lastView: () => string | undefined;
24
- hasView: (name: string) => boolean;
25
- addView: (name: string) => void;
26
- delView: (name: string) => void;
27
- popView: () => void;
28
- clearViews: () => void;
29
- }, "isEmpty" | "lastView" | "hasView" | "addView" | "delView" | "popView" | "clearViews">>;
File without changes