@ehfuse/taskbox 0.5.376 → 0.5.378

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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 다이얼로그를 기기(브라우저) 뒤로가기로 닫히게 해주는 훅이다(codeshop www `hooks/useDialogBackClose` 와 같은 장치).
3
+ *
4
+ * mfd `FormDialog` 는 히스토리를 건드리지 않아서 열림 상태를 `useState` 로만 관리하는 다이얼로그는
5
+ * 폰 뒤로가기가 다이얼로그가 아니라 **라우트를 되돌려** 이전 화면으로 나가버린다.
6
+ * forma `useModal` 은 열 때 히스토리를 한 칸 쌓고 popstate 를 가로채 그 모달만 닫는다. 이 훅은 그 장치를
7
+ * "이미 있는 열림 상태"에 얹는다 — 표시 여부의 원본은 소비처가 그대로 두고 히스토리 칸만 맞춰 따라간다.
8
+ *
9
+ * ⚠️ `modalId` 는 동시에 마운트되는 인스턴스끼리 겹치면 안 된다(forma useModal 의 알려진 함정).
10
+ * 상세 드로어가 겹쳐 뜨는 구조라 인스턴스가 여러 개인 다이얼로그는 생략해 자동 생성 id 를 쓴다.
11
+ * ⚠️ `requestClose` 는 "그것만으로 닫히는" 경로(←·X·백드롭·닫기 버튼)에만 연결한다 — 소비처가 콜백 안에서
12
+ * 이미 열림 상태를 내리는 자리에서 부르면 back 이 두 번 나가 부모 다이얼로그 칸까지 소비한다.
13
+ */
14
+ /** 뒤로가기 닫기 훅 옵션이다. */
15
+ export interface DialogBackCloseOptions {
16
+ open: boolean;
17
+ onClose: () => void;
18
+ modalId?: string;
19
+ }
20
+ /** 뒤로가기 닫기 훅 반환값이다. */
21
+ export interface DialogBackCloseControl {
22
+ requestClose: () => void;
23
+ }
24
+ /** 다이얼로그를 기기 뒤로가기로 닫을 수 있게 forma 모달 히스토리에 등록한다. */
25
+ export declare function useDialogBackClose({ open, onClose, modalId }: DialogBackCloseOptions): DialogBackCloseControl;
@@ -23,3 +23,14 @@ export interface TaskBoxGoogleEvent {
23
23
  end_date: string;
24
24
  time: string;
25
25
  }
26
+ /** 구글 캘린더 API 연동 상태다(계정별 OAuth — iCal 연동과 별개, 서버 /v1/taskbox/gcal 응답 모양). */
27
+ export interface TaskBoxGcalLink {
28
+ configured: boolean;
29
+ linked: boolean;
30
+ google_email: string;
31
+ export_enabled: boolean;
32
+ import_enabled: boolean;
33
+ linked_time: string;
34
+ last_export_time: string;
35
+ last_error: string;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.376",
3
+ "version": "0.5.378",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",