@uniai-fe/uds-templates 0.5.19 → 0.5.21
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": "@uniai-fe/uds-templates",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"description": "UNIAI Design System; UI Templates Package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
-
"packageManager": "pnpm@10.33.
|
|
15
|
+
"packageManager": "pnpm@10.33.3",
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=24",
|
|
18
18
|
"pnpm": ">=10"
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@svgr/webpack": "^8.1.0",
|
|
73
|
-
"@tanstack/react-query": "^5.100.
|
|
74
|
-
"@types/node": "^24.
|
|
73
|
+
"@tanstack/react-query": "^5.100.9",
|
|
74
|
+
"@types/node": "^24.12.3",
|
|
75
75
|
"@types/react": "^19.2.14",
|
|
76
76
|
"@types/react-dom": "^19.2.3",
|
|
77
77
|
"@uniai-fe/eslint-config": "workspace:*",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"@uniai-fe/util-next": "workspace:*",
|
|
87
87
|
"@uniai-fe/util-rtc": "workspace:*",
|
|
88
88
|
"eslint": "^9.39.2",
|
|
89
|
-
"jotai": "^2.
|
|
90
|
-
"next": "^15.5.
|
|
89
|
+
"jotai": "^2.20.0",
|
|
90
|
+
"next": "^15.5.18",
|
|
91
91
|
"prettier": "^3.8.3",
|
|
92
|
-
"react-hook-form": "^7.
|
|
92
|
+
"react-hook-form": "^7.75.0",
|
|
93
93
|
"sass": "^1.99.0",
|
|
94
94
|
"typescript": "5.9.3"
|
|
95
95
|
}
|
|
@@ -1,63 +1,40 @@
|
|
|
1
1
|
import { jotaiStorage } from "@uniai-fe/util-jotai";
|
|
2
|
+
import { atom } from "jotai";
|
|
2
3
|
import { atomWithStorage } from "jotai/utils";
|
|
3
4
|
import type { API_Res_LoginData, API_Res_LoginUserFarm } from "../types";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
|
-
* 로그인 사용자 정보
|
|
7
|
+
* 로그인 사용자 정보 메모리 상태
|
|
7
8
|
* @state
|
|
8
9
|
*/
|
|
9
|
-
export const userDataAtom =
|
|
10
|
-
"userData",
|
|
11
|
-
null,
|
|
12
|
-
jotaiStorage.session<API_Res_LoginData | null>(),
|
|
13
|
-
);
|
|
10
|
+
export const userDataAtom = atom<API_Res_LoginData | null>(null);
|
|
14
11
|
|
|
15
12
|
/**
|
|
16
13
|
* 로그인 사용자의 계정 아이디
|
|
17
14
|
* @state
|
|
18
15
|
*/
|
|
19
|
-
export const userAccountNameAtom =
|
|
20
|
-
"userAccountName",
|
|
21
|
-
"",
|
|
22
|
-
jotaiStorage.session<string>(),
|
|
23
|
-
);
|
|
16
|
+
export const userAccountNameAtom = atom<string>("");
|
|
24
17
|
|
|
25
18
|
/**
|
|
26
19
|
* 로그인 사용자 이름
|
|
27
20
|
* @state
|
|
28
21
|
*/
|
|
29
|
-
export const userOwnerNameAtom =
|
|
30
|
-
"userOwnerName",
|
|
31
|
-
"",
|
|
32
|
-
jotaiStorage.session<string>(),
|
|
33
|
-
);
|
|
22
|
+
export const userOwnerNameAtom = atom<string>("");
|
|
34
23
|
|
|
35
24
|
/**
|
|
36
25
|
* 로그인 사용자 접근가능한 농장 목록
|
|
37
26
|
*/
|
|
38
|
-
export const userFarmListAtom =
|
|
39
|
-
"userFarmList",
|
|
40
|
-
[],
|
|
41
|
-
jotaiStorage.session<API_Res_LoginUserFarm[]>(),
|
|
42
|
-
);
|
|
27
|
+
export const userFarmListAtom = atom<API_Res_LoginUserFarm[]>([]);
|
|
43
28
|
|
|
44
29
|
/**
|
|
45
30
|
* 현재 선택된 로그인 사용자 농장 정보
|
|
46
31
|
*/
|
|
47
|
-
export const userFarmAtom =
|
|
48
|
-
"userFarm",
|
|
49
|
-
null,
|
|
50
|
-
jotaiStorage.session<API_Res_LoginUserFarm | null>(),
|
|
51
|
-
);
|
|
32
|
+
export const userFarmAtom = atom<API_Res_LoginUserFarm | null>(null);
|
|
52
33
|
|
|
53
34
|
/**
|
|
54
35
|
* 로그인 사용자 농장 id 코드
|
|
55
36
|
*/
|
|
56
|
-
export const farmIdAtom =
|
|
57
|
-
"farmId",
|
|
58
|
-
-1,
|
|
59
|
-
jotaiStorage.session<number>(),
|
|
60
|
-
);
|
|
37
|
+
export const farmIdAtom = atom<number>(-1);
|
|
61
38
|
|
|
62
39
|
/**
|
|
63
40
|
* 로그인 사용자 농장 관리번호
|
|
@@ -427,6 +427,8 @@ export interface API_Res_LoginRole {
|
|
|
427
427
|
* @property {number} expires_in 토큰 유효기간 (초 단위)
|
|
428
428
|
* @property {string} refresh_token 리프레시 토큰
|
|
429
429
|
* @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
|
|
430
|
+
* @property {string | null} session_expires_at 세션 만료 일시
|
|
431
|
+
* @property {number | null} session_expires_in 세션 유효기간 (초 단위)
|
|
430
432
|
*/
|
|
431
433
|
export interface API_Res_LoginToken {
|
|
432
434
|
/**
|
|
@@ -452,6 +454,15 @@ export interface API_Res_LoginToken {
|
|
|
452
454
|
* - 초 단위
|
|
453
455
|
*/
|
|
454
456
|
refresh_expires_in: number;
|
|
457
|
+
/**
|
|
458
|
+
* 세션 만료 일시
|
|
459
|
+
*/
|
|
460
|
+
session_expires_at: string | null;
|
|
461
|
+
/**
|
|
462
|
+
* 세션 유효기간
|
|
463
|
+
* - 초 단위
|
|
464
|
+
*/
|
|
465
|
+
session_expires_in: number | null;
|
|
455
466
|
}
|
|
456
467
|
|
|
457
468
|
/**
|
|
@@ -462,6 +473,8 @@ export interface API_Res_LoginToken {
|
|
|
462
473
|
* @property {number} expires_in 토큰 유효기간 (초 단위)
|
|
463
474
|
* @property {string} refresh_token 리프레시 토큰
|
|
464
475
|
* @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
|
|
476
|
+
* @property {string | null} session_expires_at 세션 만료 일시
|
|
477
|
+
* @property {number | null} session_expires_in 세션 유효기간 (초 단위)
|
|
465
478
|
* @property {API_Res_LoginUserInfo} user_info 로그인 유저 정보
|
|
466
479
|
* @property {API_Res_LoginGroup[]} [groups] 소속 그룹 목록
|
|
467
480
|
* @property {API_Res_LoginGroup[]} [ancestor_groups] 상위 그룹 목록
|