@amirjalili1374/ui-kit 1.10.13 → 1.10.15

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,5 +1,8 @@
1
- import type { UserInfoResponse } from '@/types/models/userInfo';
2
1
  type GreetingLocale = 'fa' | 'en';
2
+ export interface GreetingUserInfo {
3
+ authTime?: string | Date;
4
+ fullName?: string;
5
+ }
3
6
  export declare class GreetingUtils {
4
7
  static getGreeting(serverTime?: string | Date, locale?: GreetingLocale): string;
5
8
  static getTimePeriod(serverTime?: string | Date, locale?: GreetingLocale): string;
@@ -7,6 +10,6 @@ export declare class GreetingUtils {
7
10
  static getGreetingWithTime(serverTime?: string | Date, locale?: GreetingLocale): string;
8
11
  static getFullGreeting(serverTime?: string | Date, userName?: string, locale?: GreetingLocale): string;
9
12
  /** Convenience: build greeting from a full UserInfoResponse. */
10
- static fromUserInfo(userInfo: Pick<UserInfoResponse, 'authTime' | 'fullName'>, locale?: GreetingLocale): string;
13
+ static fromUserInfo(userInfo: GreetingUserInfo, locale?: GreetingLocale): string;
11
14
  }
12
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amirjalili1374/ui-kit",
3
- "version": "1.10.13",
3
+ "version": "1.10.15",
4
4
  "description": "A reusable UI component library built with Vue 3, Vuetify, and TypeScript",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -33,7 +33,7 @@
33
33
  "ui-kit"
34
34
  ],
35
35
  "license": "MIT",
36
- "packageManager": "npm@11.16.0",
36
+ "packageManager": "bun@1.4.0",
37
37
  "engines": {
38
38
  "node": "^20.19.0 || >=22.12.0"
39
39
  },
@@ -42,13 +42,13 @@
42
42
  "dev:prelive": "vite --mode prelive",
43
43
  "dev:live": "vite --mode live",
44
44
  "dev:demo": "vite --mode demo",
45
- "build": "npm run typecheck && vite build --mode dev",
46
- "build:dev": "npm run typecheck && vite build --mode dev",
47
- "build:prelive": "npm run typecheck && vite build --mode prelive",
48
- "build:live": "npm run typecheck && vite build --mode live",
49
- "build:demo": "npm run typecheck && vite build --mode demo",
50
- "build:lib": "npm run typecheck && cross-env BUILD_LIB=true vite build && npm run build:types",
51
- "dev:link": "npm run build:lib && cross-env BUILD_LIB=true BUILD_LIB_WATCH=true vite build --watch",
45
+ "build": "bun run typecheck && vite build --mode dev",
46
+ "build:dev": "bun run typecheck && vite build --mode dev",
47
+ "build:prelive": "bun run typecheck && vite build --mode prelive",
48
+ "build:live": "bun run typecheck && vite build --mode live",
49
+ "build:demo": "bun run typecheck && vite build --mode demo",
50
+ "build:lib": "bun run typecheck && cross-env BUILD_LIB=true vite build && bun run build:types",
51
+ "dev:link": "bun run build:lib && cross-env BUILD_LIB=true BUILD_LIB_WATCH=true vite build --watch",
52
52
  "build:types": "vue-tsc --declaration --emitDeclarationOnly --project tsconfig.lib.json --skipLibCheck",
53
53
  "preview": "vite preview --port 5050 --host",
54
54
  "test": "vitest run",
@@ -56,15 +56,15 @@
56
56
  "test:coverage": "vitest run --coverage",
57
57
  "typecheck": "vue-tsc --noEmit",
58
58
  "typecheck:watch": "vue-tsc --noEmit --watch",
59
- "lint": "npm run lint:check",
59
+ "lint": "bun run lint:check",
60
60
  "lint:check": "eslint .",
61
61
  "lint:fix": "eslint . --fix",
62
62
  "format": "prettier --write \"src/**/*.{js,ts,vue,scss,css,json}\"",
63
63
  "clean": "rimraf dist node_modules/.vite",
64
- "analyze": "vite build && npx vite-bundle-analyzer dist/stats.html",
65
- "test:consumer": "node scripts/verify-packed-package.mjs",
66
- "validate": "npm run lint:check && npm run typecheck && npm run test:coverage && npm run build:lib && npm run test:consumer",
67
- "prepublishOnly": "npm run build:lib"
64
+ "analyze": "vite build && bunx vite-bundle-analyzer dist/stats.html",
65
+ "test:consumer": "bun scripts/verify-packed-package.mjs",
66
+ "validate": "bun run lint:check && bun run typecheck && bun run test:coverage && bun run build:lib && bun run test:consumer",
67
+ "prepublishOnly": "bun run build:lib"
68
68
  },
69
69
  "dependencies": {
70
70
  "@dsb-norge/vue-keycloak-js": "^3.0.8",
@@ -72,7 +72,9 @@
72
72
  "@tabler/icons-vue": "^3.44.0",
73
73
  "@vueuse/core": "^13.9.0",
74
74
  "axios": "^1.6.8",
75
+ "highlight.js": "^11.12.0",
75
76
  "jalaali-js": "^1.2.8",
77
+ "markdown-it": "^15.0.0",
76
78
  "pinia": "^2.1.7",
77
79
  "vue3-lottie": "^3.3.1",
78
80
  "vue3-perfect-scrollbar": "^2.0.0",
@@ -94,6 +96,7 @@
94
96
  "devDependencies": {
95
97
  "@eslint/js": "^9.39.4",
96
98
  "@tsconfig/node20": "^20.1.9",
99
+ "@types/markdown-it": "^14.2.0",
97
100
  "@types/node": "^20.19.43",
98
101
  "@vitejs/plugin-vue": "^6.0.7",
99
102
  "@vitest/coverage-v8": "^4.1.9",
@@ -1,12 +0,0 @@
1
- export interface PersonDTO {
2
- id: string;
3
- name: string;
4
- }
5
- export interface CustomizerDTO {
6
- fontTheme: string;
7
- inputBg: boolean;
8
- layoutType: string;
9
- actTheme: string;
10
- themeMode: string;
11
- menuOrientation: string;
12
- }
@@ -1,28 +0,0 @@
1
- import type { CustomizerDTO } from '@/types/models/person';
2
- export interface UserInfoResponse {
3
- name: string;
4
- sub: string;
5
- emailVerified: boolean;
6
- issuer: string | null;
7
- branchName: string;
8
- preferredUsername: string;
9
- nonce: string;
10
- sid: string;
11
- branchCode: string;
12
- audience: string[];
13
- acr: string;
14
- azp: string;
15
- authTime: string;
16
- fullName: string;
17
- position: string;
18
- expiration: string;
19
- sessionState: string;
20
- issuedAt: string;
21
- jti: string;
22
- authorities: string[];
23
- username: string;
24
- email: string | null;
25
- roles: string[];
26
- lotusRoles: string[];
27
- customizer: CustomizerDTO;
28
- }