@ehfuse/taskbox 0.11.66 → 0.11.68

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.
@@ -32,11 +32,13 @@ export interface TaskBoardFrameProps {
32
32
  * 문서 안 블록을 눌러 크게 고치고 닫으면 문서로 돌아가는 꼴이라, 작은 상자로 돌아가는 단계가 없다.
33
33
  */
34
34
  onExit?: () => void;
35
+ /** 블록 편집 창을 이 자리(누른 블록의 화면 위치)에서 화면 가득 커지며 연다(0.11.67) */
36
+ openFrom?: GrowRect;
35
37
  /** 블록 편집 창의 취소(완료 왼쪽 ✕) — 누른 단추를 넘긴다(고친 것이 있으면 그 자리에서 묻는다). */
36
38
  onCancel?: (anchor: HTMLElement) => void;
37
39
  children: ReactNode;
38
40
  }
39
- export declare function TaskBoardFrame({ height, bleed, active, loading, fullscreenAt, className, onFullscreenChange, onExit, onCancel, children }: TaskBoardFrameProps): import("react").JSX.Element;
41
+ export declare function TaskBoardFrame({ height, bleed, active, loading, fullscreenAt, className, onFullscreenChange, onExit, onCancel, openFrom, children }: TaskBoardFrameProps): import("react").JSX.Element;
40
42
  /**
41
43
  * 블록 편집 창의 [✕ 취소] [✓ 완료](0.11.64 — 사용자 지시 "완료는 있는데 취소는?"). 틀마다 지금 쓰던 자리 · 크기를 그대로 받는다
42
44
  * (그림판 · 마인드맵 틀 32px, 표 틀은 툴바 높이에 맞춘 28px). 취소는 누른 단추를 넘겨 확인 팝퍼를 그 자리에 띄운다.
@@ -52,3 +54,18 @@ export declare function BlockExitButtons({ at, size, onExit, onCancel, }: {
52
54
  onExit: () => void;
53
55
  onCancel?: (anchor: HTMLElement) => void;
54
56
  }): import("react").JSX.Element;
57
+ /** 화면 위치 · 크기(누른 블록의 getBoundingClientRect) */
58
+ export interface GrowRect {
59
+ top: number;
60
+ left: number;
61
+ width: number;
62
+ height: number;
63
+ }
64
+ /**
65
+ * 블록 편집 창이 누른 블록 자리에서 화면 가득 커지게(0.11.67 — 사용자 지시 "갑자기 전체화면 말고 커지면서"). 첫 장면은 그 자리 · 크기로 그리고
66
+ * 다음 장면에 화면 가득으로 바꿔 위치 · 크기 변화에 테마 전환(shortest — 0.11.68 사용자 지시 "속도 올리자", 전에는 short)을 건다. ready 는 다 커진 뒤 — 그때 편집기를 그리거나 보인다.
67
+ */
68
+ export declare function useGrowFrom(from?: GrowRect): {
69
+ sx: Record<string, unknown>;
70
+ ready: boolean;
71
+ };
@@ -1,3 +1,4 @@
1
+ import { type GrowRect } from "./TaskBoardFrame";
1
2
  export interface TaskDrawEditorProps {
2
3
  syncKey: number | string;
3
4
  value: string;
@@ -9,5 +10,7 @@ export interface TaskDrawEditorProps {
9
10
  onExit?: () => void;
10
11
  /** 블록 편집 창의 취소(TaskBoardFrame onCancel) */
11
12
  onCancel?: (anchor: HTMLElement) => void;
13
+ /** 블록 편집 창을 누른 블록 자리에서 커지며 연다(TaskBoardFrame openFrom) */
14
+ openFrom?: GrowRect;
12
15
  }
13
- export declare function TaskDrawEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel }: TaskDrawEditorProps): import("react").JSX.Element;
16
+ export declare function TaskDrawEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel, openFrom }: TaskDrawEditorProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { type GrowRect } from "./TaskBoardFrame";
1
2
  export interface TaskMindmapEditorProps {
2
3
  syncKey: number | string;
3
4
  value: string;
@@ -9,5 +10,7 @@ export interface TaskMindmapEditorProps {
9
10
  onExit?: () => void;
10
11
  /** 블록 편집 창의 취소(TaskBoardFrame onCancel) */
11
12
  onCancel?: (anchor: HTMLElement) => void;
13
+ /** 블록 편집 창을 누른 블록 자리에서 커지며 연다(TaskBoardFrame openFrom) */
14
+ openFrom?: GrowRect;
12
15
  }
13
- export declare function TaskMindmapEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel }: TaskMindmapEditorProps): import("react").JSX.Element;
16
+ export declare function TaskMindmapEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel, openFrom }: TaskMindmapEditorProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { type GrowRect } from "./TaskBoardFrame";
1
2
  export { isSheetHtml, isSingleTableHtml } from "./taskSheetHtml";
2
3
  export interface TaskSheetEditorProps {
3
4
  syncKey: number | string;
@@ -5,8 +6,9 @@ export interface TaskSheetEditorProps {
5
6
  onChange: (html: string) => void;
6
7
  height?: number;
7
8
  bleed?: boolean;
9
+ openFrom?: GrowRect;
8
10
  onCancel?: (anchor: HTMLElement) => void;
9
11
  onExit?: () => void;
10
12
  active?: boolean;
11
13
  }
12
- export declare function TaskSheetEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel }: TaskSheetEditorProps): import("react").JSX.Element;
14
+ export declare function TaskSheetEditor({ syncKey, value, onChange, height, bleed, active, onExit, onCancel, openFrom }: TaskSheetEditorProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.11.66",
3
+ "version": "0.11.68",
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",