@ehfuse/taskbox 0.11.50 → 0.11.51

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.
Files changed (41) hide show
  1. package/dist/chunks/CumulativeFlowChart-WZGWUN6A.js +2 -0
  2. package/dist/chunks/CumulativeFlowChart-WZGWUN6A.js.map +7 -0
  3. package/dist/chunks/LeadTimeDistributionChart-STNCGIB7.js +2 -0
  4. package/dist/chunks/LeadTimeDistributionChart-STNCGIB7.js.map +7 -0
  5. package/dist/chunks/SprintBurndownChart-KL7SRDLI.js +2 -0
  6. package/dist/chunks/SprintBurndownChart-KL7SRDLI.js.map +7 -0
  7. package/dist/chunks/SprintVelocityChart-BHNSU7CM.js +2 -0
  8. package/dist/chunks/SprintVelocityChart-BHNSU7CM.js.map +7 -0
  9. package/dist/chunks/WorkloadChart-UQAFIMMM.js +2 -0
  10. package/dist/chunks/WorkloadChart-UQAFIMMM.js.map +7 -0
  11. package/dist/chunks/chunk-C2R3LZKF.js +2 -0
  12. package/dist/chunks/chunk-C2R3LZKF.js.map +7 -0
  13. package/dist/chunks/chunk-IMLWOKCK.js +2 -0
  14. package/dist/chunks/chunk-IMLWOKCK.js.map +7 -0
  15. package/dist/chunks/chunk-KNJPWFTB.js +12 -0
  16. package/dist/chunks/chunk-KNJPWFTB.js.map +7 -0
  17. package/dist/chunks/de-7VHDSUG7.js +7 -0
  18. package/dist/chunks/de-7VHDSUG7.js.map +7 -0
  19. package/dist/chunks/fr-TTUIZ44S.js +7 -0
  20. package/dist/chunks/fr-TTUIZ44S.js.map +7 -0
  21. package/dist/chunks/it-EY3YTXYP.js +7 -0
  22. package/dist/chunks/it-EY3YTXYP.js.map +7 -0
  23. package/dist/chunks/ja-BEOOICBN.js +7 -0
  24. package/dist/chunks/ja-BEOOICBN.js.map +7 -0
  25. package/dist/chunks/muiIconCatalog-L3RYHRS7.js +2 -0
  26. package/dist/chunks/muiIconCatalog-L3RYHRS7.js.map +7 -0
  27. package/dist/chunks/vi-THXFFRCT.js +7 -0
  28. package/dist/chunks/vi-THXFFRCT.js.map +7 -0
  29. package/dist/chunks/zh-VNLWBPK4.js +7 -0
  30. package/dist/chunks/zh-VNLWBPK4.js.map +7 -0
  31. package/dist/index.esm.js +15 -15
  32. package/dist/index.esm.js.map +4 -4
  33. package/dist/index.js +45 -45
  34. package/dist/index.js.map +4 -4
  35. package/dist/sections/TaskBoardFrame.d.ts +23 -0
  36. package/dist/sections/TaskContentEditor.d.ts +1 -6
  37. package/dist/sections/TaskDrawEditor.d.ts +9 -0
  38. package/dist/sections/TaskMindmapEditor.d.ts +9 -0
  39. package/dist/sections/taskBoardHtml.d.ts +15 -0
  40. package/dist/types/provider.d.ts +9 -0
  41. package/package.json +13 -3
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 그림판 · 마인드맵 편집기의 틀(0.11.51) — 스프레드시트 틀(TaskSheetEditor)과 같은 규칙을 한 곳에 둔다.
3
+ * · 높이가 정해진 상자(두 편집기 모두 높이가 있어야 그린다), 창 폭에 가득(bleed — config.contentFullBleed), 숨겨 두기(active)
4
+ * · 전체화면 단추(브라우저 창에 가득 — 같은 상자를 fixed 로 펼친다, 편집기는 다시 만들지 않는다)
5
+ * · 바깥(드로어의 단축키 · 끌어 스크롤)이 편집기의 키 · 끌기를 가로채지 않게 막는다.
6
+ */
7
+ import { type ReactNode } from "react";
8
+ export interface TaskBoardFrameProps {
9
+ height: number;
10
+ bleed: boolean;
11
+ active: boolean;
12
+ loading: boolean;
13
+ /** 전체화면 단추 자리 — 편집기의 제 단추와 겹치지 않는 모서리. */
14
+ fullscreenAt?: {
15
+ top?: number;
16
+ bottom?: number;
17
+ right?: number;
18
+ left?: number;
19
+ };
20
+ className?: string;
21
+ children: ReactNode;
22
+ }
23
+ export declare function TaskBoardFrame({ height, bleed, active, loading, fullscreenAt, className, children }: TaskBoardFrameProps): import("react").JSX.Element;
@@ -9,12 +9,7 @@
9
9
  */
10
10
  /** 에디터 HTML 을 줄바꿈 보존 평문으로 바꾼다(읽기 전용 복사 버튼용). */
11
11
  export declare function htmlToPlainText(html: string): string;
12
- export type TaskContentMode = "editor" | "sheet";
13
- /**
14
- * 내용 칸의 에디터 / 스프레드시트 고르기(0.11.46) — 모드와 고르기 단추(switcher)를 돌려준다. 절 제목 줄에 switcher 를 두고 TaskContentEditor 에 modeControl 로 모드를 넘긴다.
15
- * 시트로 저장한 내용(isSheetHtml)은 시트로 연다. 에디터 → 시트는 지금 글을 칸으로 옮긴다(표가 있으면 그 표, 없으면 줄마다 A 열) — 글 서식 · 그림이 빠지니 글이 있으면 묻는다
16
- * (표 하나뿐이면 잃는 것이 없어 묻지 않는다). 시트 → 에디터는 표 그대로 에디터에서 고친다. 폰은 고르기를 그리지 않는다(시트 편집이 어렵다).
17
- */
12
+ export type TaskContentMode = "editor" | "sheet" | "draw" | "mindmap";
18
13
  export declare function useTaskContentMode({ syncKey, value, onChange }: {
19
14
  syncKey: number | string;
20
15
  value: string;
@@ -0,0 +1,9 @@
1
+ export interface TaskDrawEditorProps {
2
+ syncKey: number | string;
3
+ value: string;
4
+ onChange: (html: string) => void;
5
+ height?: number;
6
+ bleed?: boolean;
7
+ active?: boolean;
8
+ }
9
+ export declare function TaskDrawEditor({ syncKey, value, onChange, height, bleed, active }: TaskDrawEditorProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface TaskMindmapEditorProps {
2
+ syncKey: number | string;
3
+ value: string;
4
+ onChange: (html: string) => void;
5
+ height?: number;
6
+ bleed?: boolean;
7
+ active?: boolean;
8
+ }
9
+ export declare function TaskMindmapEditor({ syncKey, value, onChange, height, bleed, active }: TaskMindmapEditorProps): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 그림판 · 마인드맵 내용의 저장 꼴(0.11.51, 업무함 2026-11-14 사용자 지시 "에디터 / 스프레드시트 / 그림판 / 마인드맵 고르기").
3
+ *
4
+ * 업무 내용은 HTML 한 칸이다. 그림판 · 마인드맵도 HTML 로 둔다 — 그림(SVG 를 data: 이미지로)과 다시 고칠 데이터(JSON)를 한 상자에 담는다.
5
+ * <div data-tb-board="draw|mindmap" data-tb-board-json="(base64 JSON)"><img src="data:image/svg+xml;base64,…" alt="…"></div>
6
+ * 읽기 화면 · 폰 · 이 기능을 켜지 않은 소비처(코드마켓)에서는 그림으로만 보이고, 켠 곳에서는 데이터로 다시 연다.
7
+ * 에디터로 바꿔 고치면 그림만 남는다(데이터 속성은 에디터가 지운다) — 그 뒤로는 평범한 그림이다.
8
+ */
9
+ export type TaskBoardKind = "draw" | "mindmap";
10
+ /** 이 HTML 이 그림판 · 마인드맵 내용인가(kind 를 주면 그 종류만). */
11
+ export declare function boardKindOf(html: string): TaskBoardKind | null;
12
+ /** 저장해 둔 데이터를 꺼낸다 — 그 종류가 아니거나 못 읽으면 null. */
13
+ export declare function readBoardData<T>(html: string, kind: TaskBoardKind): T | null;
14
+ /** 그림(SVG 글)과 데이터를 저장 꼴 HTML 로. */
15
+ export declare function boardToHtml(kind: TaskBoardKind, data: unknown, svg: string, alt: string): string;
@@ -129,6 +129,15 @@ export interface TaskboxConfig {
129
129
  * 드로어 끝까지 펼쳐지고, 테두리는 위 구분선 하나만 남는다(업무함 2026-11-14 사용자 지시). 끄면 예전처럼 둥근 테두리 상자.
130
130
  */
131
131
  contentFullBleed?: boolean;
132
+ /**
133
+ * 내용 칸 그림판(0.11.51, 기본 false) — 켜면 [에디터 | … | 그림판] 고르기에 그림판이 생긴다(Excalidraw — 고를 때만 불러온다).
134
+ * 켜는 소비처는 @excalidraw/excalidraw 를 설치해야 한다. 저장은 그림(SVG) + 다시 고칠 데이터를 담은 HTML(sections/taskBoardHtml).
135
+ */
136
+ contentDraw?: boolean;
137
+ /** 그림판 글꼴을 받을 주소(끝에 / — 그 아래 fonts/…). 없으면 Excalidraw 기본(CDN). */
138
+ drawAssetPath?: string;
139
+ /** 내용 칸 마인드맵(0.11.51, 기본 false) — Mind Elixir 5(고를 때만 불러온다). 켜는 소비처는 mind-elixir 를 설치해야 한다. */
140
+ contentMindmap?: boolean;
132
141
  /**
133
142
  * 업무 공유 텍스트를 기기 공유시트로 넘기는 방법. 미지정이면 `navigator.share`,
134
143
  * 그것도 없으면 클립보드 복사로 떨어진다(utils/taskShareText).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.11.50",
3
+ "version": "0.11.51",
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",
@@ -74,14 +74,16 @@
74
74
  "@ehfuse/tree-view": ">=1.0.15",
75
75
  "@emotion/react": ">=11.0.0",
76
76
  "@emotion/styled": ">=11.0.0",
77
+ "@excalidraw/excalidraw": ">=0.18.0",
77
78
  "@mui/icons-material": ">=6.0.0",
78
79
  "@mui/material": ">=6.0.0",
80
+ "@univerjs/preset-sheets-core": ">=1.4.0",
81
+ "@univerjs/presets": ">=1.4.0",
79
82
  "exceljs": ">=4.0.0",
83
+ "mind-elixir": ">=5.0.0",
80
84
  "react": ">=18.0.0",
81
85
  "react-daum-postcode": ">=3.0.0",
82
86
  "react-dom": ">=18.0.0",
83
- "@univerjs/presets": ">=1.4.0",
84
- "@univerjs/preset-sheets-core": ">=1.4.0",
85
87
  "react-virtuoso": ">=4.0.0",
86
88
  "recharts": ">=3.0.0"
87
89
  },
@@ -91,6 +93,12 @@
91
93
  },
92
94
  "exceljs": {
93
95
  "optional": true
96
+ },
97
+ "@excalidraw/excalidraw": {
98
+ "optional": true
99
+ },
100
+ "mind-elixir": {
101
+ "optional": true
94
102
  }
95
103
  },
96
104
  "devDependencies": {
@@ -112,6 +120,7 @@
112
120
  "@ehfuse/tree-view": "^1.0.15",
113
121
  "@emotion/react": "^11.14.0",
114
122
  "@emotion/styled": "^11.14.1",
123
+ "@excalidraw/excalidraw": "^0.18.1",
115
124
  "@mui/icons-material": "^7.3.4",
116
125
  "@mui/material": "^7.3.7",
117
126
  "@types/node": "^24.6.1",
@@ -123,6 +132,7 @@
123
132
  "esbuild": "^0.27.0",
124
133
  "esbuild-plugin-d.ts": "^1.3.1",
125
134
  "exceljs": "^4.4.0",
135
+ "mind-elixir": "^5.15.1",
126
136
  "react": "^19.2.4",
127
137
  "react-daum-postcode": "^3.2.0",
128
138
  "react-dom": "^19.2.4",