@cp949/mui-react19 2.0.2 → 2.1.0
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/LICENSE +21 -0
- package/README.md +12 -3
- package/dist/closables-CeOGJV-d.d.cts +136 -0
- package/dist/closables-CeOGJV-d.d.ts +136 -0
- package/dist/file-drop/index.cjs +1 -1
- package/dist/file-drop/index.cjs.map +1 -1
- package/dist/file-drop/index.d.cts +224 -217
- package/dist/file-drop/index.d.ts +224 -217
- package/dist/file-drop/index.js +1 -1
- package/dist/file-drop/index.js.map +1 -1
- package/dist/helper/index.cjs +1 -1
- package/dist/helper/index.cjs.map +1 -1
- package/dist/helper/index.d.cts +22 -38
- package/dist/helper/index.d.ts +22 -38
- package/dist/helper/index.js +1 -1
- package/dist/helper/index.js.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +439 -305
- package/dist/hooks/index.d.ts +439 -305
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1150 -737
- package/dist/index.d.ts +1150 -737
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/misc-utils-B2de-HS4.cjs +2 -0
- package/dist/misc-utils-B2de-HS4.cjs.map +1 -0
- package/dist/misc-utils-BXQ8UU0R.js +2 -0
- package/dist/misc-utils-BXQ8UU0R.js.map +1 -0
- package/dist/parallel-map-DyuHvxYY.js +2 -0
- package/dist/parallel-map-DyuHvxYY.js.map +1 -0
- package/dist/parallel-map-_ZhC5iBn.cjs +2 -0
- package/dist/parallel-map-_ZhC5iBn.cjs.map +1 -0
- package/dist/rolldown-runtime-Chgba0Kb.cjs +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/llm.txt +350 -0
- package/package.json +31 -28
- package/dist/chunk-4C666HHU.js +0 -2
- package/dist/chunk-4C666HHU.js.map +0 -1
- package/dist/chunk-DGBGKY22.cjs +0 -2
- package/dist/chunk-DGBGKY22.cjs.map +0 -1
- package/dist/chunk-J5UGIABI.js +0 -2
- package/dist/chunk-J5UGIABI.js.map +0 -1
- package/dist/chunk-M4G6J7DP.cjs +0 -2
- package/dist/chunk-M4G6J7DP.cjs.map +0 -1
- package/dist/closables-BK0Db72u.d.cts +0 -135
- package/dist/closables-BK0Db72u.d.ts +0 -135
- package/dist/parallel-map-M764G6IE.js +0 -2
- package/dist/parallel-map-M764G6IE.js.map +0 -1
- package/dist/parallel-map-V2OVUIFQ.cjs +0 -2
- package/dist/parallel-map-V2OVUIFQ.cjs.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/file-drop/handle-file-tree-drop.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* 레거시 파일 트리 드롭 이벤트 처리 함수
|
|
3
4
|
*
|
|
@@ -33,52 +34,54 @@
|
|
|
33
34
|
* @since 1.0.0
|
|
34
35
|
* @deprecated since 1.0.8 - Use processFileTreeDrop instead
|
|
35
36
|
*/
|
|
36
|
-
declare function handleFileTreeDropEvent(event: React.DragEvent<HTMLElement>, callbackAccept?: (file: File) => boolean): Promise<Array<{
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
export declare function handleFileTreeDropEvent(event: React.DragEvent<HTMLElement>, callbackAccept?: (file: File) => boolean): Promise<Array<{
|
|
38
|
+
type: 'dir';
|
|
39
|
+
path: string;
|
|
39
40
|
} | {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
type: 'file';
|
|
42
|
+
path: string;
|
|
43
|
+
file: File;
|
|
43
44
|
}>>;
|
|
44
|
-
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/file-drop/internal/path-util.d.ts
|
|
45
47
|
/**
|
|
46
48
|
* Path utils
|
|
47
49
|
* not support relative path
|
|
48
50
|
*/
|
|
49
|
-
declare class PathUtils {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
export declare class PathUtils {
|
|
52
|
+
static join(...args: (string[] | string | undefined | null)[]): string;
|
|
53
|
+
static split: (...args: (string[] | string | undefined | null)[]) => string[];
|
|
54
|
+
/**
|
|
55
|
+
* check startsWith for path segments
|
|
56
|
+
* pathStartsWith('a/b/c','a/b') = true
|
|
57
|
+
* pathStartsWith('/a/b/c','a/b') = true
|
|
58
|
+
* pathStartsWith('/a/b/c','/a/b') = true
|
|
59
|
+
* pathStartsWith('/a/b/c','/a/b/') = true
|
|
60
|
+
* pathStartsWith('/a//b//c//','//a//b//') = true
|
|
61
|
+
*/
|
|
62
|
+
static pathStartsWith(p1: string, p2: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* check startsWith for path segments
|
|
65
|
+
* segmentsStartsWith([1,2,3], [1,2]) = true
|
|
66
|
+
*/
|
|
67
|
+
static segmentsStartsWith(p1: string[], p2: string[]): boolean;
|
|
66
68
|
}
|
|
67
|
-
declare class PathHolder {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
export declare class PathHolder {
|
|
70
|
+
readonly segments: string[];
|
|
71
|
+
readonly path: string;
|
|
72
|
+
constructor(path: string | string[]);
|
|
73
|
+
static EMPTY: PathHolder;
|
|
74
|
+
static from: (...args: (string[] | string | undefined | null)[]) => PathHolder;
|
|
75
|
+
join: (...args: (string[] | string | undefined | null)[]) => PathHolder;
|
|
76
|
+
changeLast: (fileName: string) => PathHolder;
|
|
77
|
+
parentOrNull: () => PathHolder | null;
|
|
78
|
+
lastSegmentOrNull: () => string | null;
|
|
79
|
+
lastSegment: () => string;
|
|
80
|
+
startsWith: (otherPath: string | string[] | PathHolder) => boolean;
|
|
81
|
+
toString(): string;
|
|
80
82
|
}
|
|
81
|
-
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/file-drop/types.d.ts
|
|
82
85
|
/**
|
|
83
86
|
* 기본 파일/디렉토리 아이템을 나타내는 인터페이스
|
|
84
87
|
*
|
|
@@ -96,20 +99,20 @@ declare class PathHolder {
|
|
|
96
99
|
* ```
|
|
97
100
|
*/
|
|
98
101
|
interface FileItem {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
/** 아이템 타입 - 파일 또는 디렉토리 */
|
|
103
|
+
type: 'file' | 'directory';
|
|
104
|
+
/** 파일/디렉토리 이름 (확장자 포함) */
|
|
105
|
+
name: string;
|
|
106
|
+
/** 전체 경로 (루트부터 시작) */
|
|
107
|
+
path: string;
|
|
108
|
+
/** 경로를 세그먼트로 분할한 배열 */
|
|
109
|
+
pathSegments: string[];
|
|
110
|
+
/** 파일 크기 (바이트 단위, 디렉토리의 경우 optional) */
|
|
111
|
+
size?: number;
|
|
112
|
+
/** 마지막 수정 날짜 */
|
|
113
|
+
lastModified?: Date;
|
|
114
|
+
/** 드롭 루트로부터의 상대 경로 */
|
|
115
|
+
relativePath: string;
|
|
113
116
|
}
|
|
114
117
|
/**
|
|
115
118
|
* 처리 완료된 파일 정보
|
|
@@ -128,14 +131,14 @@ interface FileItem {
|
|
|
128
131
|
* ```
|
|
129
132
|
*/
|
|
130
133
|
interface ProcessedFile extends FileItem {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
/** 항상 'file' 타입 */
|
|
135
|
+
type: 'file';
|
|
136
|
+
/** 브라우저의 File 객체 */
|
|
137
|
+
file: File;
|
|
138
|
+
/** MIME 타입 (예: 'image/jpeg', 'text/plain') */
|
|
139
|
+
mimeType: string;
|
|
140
|
+
/** 파일 확장자 (점 포함, 예: '.jpg', '.txt') */
|
|
141
|
+
extension: string;
|
|
139
142
|
}
|
|
140
143
|
/**
|
|
141
144
|
* 처리 완료된 디렉토리 정보
|
|
@@ -152,10 +155,10 @@ interface ProcessedFile extends FileItem {
|
|
|
152
155
|
* ```
|
|
153
156
|
*/
|
|
154
157
|
interface ProcessedDirectory extends FileItem {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
/** 항상 'directory' 타입 */
|
|
159
|
+
type: 'directory';
|
|
160
|
+
/** 하위 파일/디렉토리 목록 (optional) */
|
|
161
|
+
children?: FileItem[];
|
|
159
162
|
}
|
|
160
163
|
/**
|
|
161
164
|
* 파일 트리 구조를 나타내는 노드
|
|
@@ -186,18 +189,18 @@ interface ProcessedDirectory extends FileItem {
|
|
|
186
189
|
* ```
|
|
187
190
|
*/
|
|
188
191
|
interface FileTreeNode {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
/** 노드 이름 */
|
|
193
|
+
name: string;
|
|
194
|
+
/** 노드 타입 */
|
|
195
|
+
type: 'file' | 'directory';
|
|
196
|
+
/** 노드의 전체 경로 */
|
|
197
|
+
path: string;
|
|
198
|
+
/** 자식 노드들 (디렉토리인 경우) */
|
|
199
|
+
children?: FileTreeNode[];
|
|
200
|
+
/** 파일 객체 (파일 노드인 경우) */
|
|
201
|
+
file?: File;
|
|
202
|
+
/** 파일 메타데이터 (파일 노드인 경우) */
|
|
203
|
+
metadata?: FileMetadata;
|
|
201
204
|
}
|
|
202
205
|
/**
|
|
203
206
|
* 파일의 메타데이터 정보
|
|
@@ -213,14 +216,14 @@ interface FileTreeNode {
|
|
|
213
216
|
* ```
|
|
214
217
|
*/
|
|
215
218
|
interface FileMetadata {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
/** 파일 크기 (바이트 단위) */
|
|
220
|
+
size: number;
|
|
221
|
+
/** 마지막 수정 날짜 */
|
|
222
|
+
lastModified: Date;
|
|
223
|
+
/** MIME 타입 (optional) */
|
|
224
|
+
mimeType?: string;
|
|
225
|
+
/** 파일 확장자 (점 포함) */
|
|
226
|
+
extension: string;
|
|
224
227
|
}
|
|
225
228
|
/**
|
|
226
229
|
* 파일 처리 진행 상황 정보
|
|
@@ -238,16 +241,16 @@ interface FileMetadata {
|
|
|
238
241
|
* ```
|
|
239
242
|
*/
|
|
240
243
|
interface ProgressInfo {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
244
|
+
/** 전체 처리할 아이템 수 */
|
|
245
|
+
totalItems: number;
|
|
246
|
+
/** 현재까지 처리된 아이템 수 */
|
|
247
|
+
processedItems: number;
|
|
248
|
+
/** 현재 처리 중인 아이템 (optional) */
|
|
249
|
+
currentItem?: FileItem;
|
|
250
|
+
/** 진행률 퍼센트 (0-100) */
|
|
251
|
+
percentage: number;
|
|
252
|
+
/** 예상 남은 시간 (밀리초, optional) */
|
|
253
|
+
estimatedTimeLeft?: number;
|
|
251
254
|
}
|
|
252
255
|
/**
|
|
253
256
|
* 파일 드롭 처리 중 발생할 수 있는 에러 코드
|
|
@@ -287,18 +290,18 @@ type FileDropErrorCode = 'UNSUPPORTED_API' | 'FILE_TOO_LARGE' | 'ACCESS_DENIED'
|
|
|
287
290
|
* }
|
|
288
291
|
* ```
|
|
289
292
|
*/
|
|
290
|
-
declare class FileDropError extends Error {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
293
|
+
export declare class FileDropError extends Error {
|
|
294
|
+
/** 에러 코드 */
|
|
295
|
+
code: FileDropErrorCode;
|
|
296
|
+
/** 에러와 관련된 파일/디렉토리 아이템 (optional) */
|
|
297
|
+
item?: FileItem | undefined;
|
|
298
|
+
constructor(
|
|
299
|
+
/** 에러 코드 */
|
|
300
|
+
code: FileDropErrorCode,
|
|
301
|
+
/** 에러와 관련된 파일/디렉토리 아이템 (optional) */
|
|
302
|
+
item?: FileItem | undefined,
|
|
303
|
+
/** 에러 메시지 (optional, 기본값 자동 생성) */
|
|
304
|
+
message?: string);
|
|
302
305
|
}
|
|
303
306
|
/**
|
|
304
307
|
* 파일 필터링 옵션
|
|
@@ -316,16 +319,16 @@ declare class FileDropError extends Error {
|
|
|
316
319
|
* ```
|
|
317
320
|
*/
|
|
318
321
|
interface FilterOptions {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
322
|
+
/** 커스텀 필터 함수 - true 반환시 파일 허용 */
|
|
323
|
+
accept?: (item: FileItem) => boolean;
|
|
324
|
+
/** 최대 파일 크기 (바이트 단위) */
|
|
325
|
+
maxSize?: number;
|
|
326
|
+
/** 최대 파일 개수 */
|
|
327
|
+
maxFiles?: number;
|
|
328
|
+
/** 허용할 파일 확장자 목록 (점 포함, 예: ['.jpg', '.png']) */
|
|
329
|
+
allowedExtensions?: string[];
|
|
330
|
+
/** true시 디렉토리 제외하고 파일만 처리 */
|
|
331
|
+
excludeDirectories?: boolean;
|
|
329
332
|
}
|
|
330
333
|
/**
|
|
331
334
|
* 파일 처리 옵션
|
|
@@ -341,12 +344,12 @@ interface FilterOptions {
|
|
|
341
344
|
* ```
|
|
342
345
|
*/
|
|
343
346
|
interface ProcessingOptions {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
/** 병렬 처리 사용 여부 (기본: true) */
|
|
348
|
+
parallel?: boolean;
|
|
349
|
+
/** 동시 처리할 파일 수 (기본: 4) */
|
|
350
|
+
concurrency?: number;
|
|
351
|
+
/** 디렉토리 구조 정보 유지 여부 (기본: true) */
|
|
352
|
+
preserveStructure?: boolean;
|
|
350
353
|
}
|
|
351
354
|
/**
|
|
352
355
|
* 콜백 옵션
|
|
@@ -368,12 +371,12 @@ interface ProcessingOptions {
|
|
|
368
371
|
* ```
|
|
369
372
|
*/
|
|
370
373
|
interface CallbackOptions {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
/** 진행상황 업데이트시 호출되는 콜백 */
|
|
375
|
+
onProgress?: (progress: ProgressInfo) => void;
|
|
376
|
+
/** 에러 발생시 호출되는 콜백 */
|
|
377
|
+
onError?: (error: FileDropError, item?: FileItem) => void;
|
|
378
|
+
/** 각 파일 처리 완료시 호출되는 콜백 */
|
|
379
|
+
onFile?: (file: ProcessedFile) => void;
|
|
377
380
|
}
|
|
378
381
|
/**
|
|
379
382
|
* processFileTreeDrop 함수의 전체 옵션
|
|
@@ -401,26 +404,26 @@ interface CallbackOptions {
|
|
|
401
404
|
* ```
|
|
402
405
|
*/
|
|
403
406
|
interface FileDropOptions {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
407
|
+
/** 파일 필터링 옵션 */
|
|
408
|
+
filter?: FilterOptions;
|
|
409
|
+
/** 처리 방식 옵션 */
|
|
410
|
+
processing?: ProcessingOptions;
|
|
411
|
+
/** 콜백 함수들 */
|
|
412
|
+
callbacks?: CallbackOptions;
|
|
413
|
+
/** 상세한 메타데이터 포함 여부 (기본: true) */
|
|
414
|
+
includeMetadata?: boolean;
|
|
415
|
+
/** 처리 중단을 위한 AbortSignal */
|
|
416
|
+
signal?: AbortSignal;
|
|
417
|
+
/**
|
|
418
|
+
* 디버그 로그 출력 레벨
|
|
419
|
+
* - 'none': 로그 비활성화
|
|
420
|
+
* - 'warn': 경고 로그만 출력 (기본값)
|
|
421
|
+
* - 'info': 주요 단계와 요약 정보만 출력
|
|
422
|
+
* - 'verbose': 파일/디렉터리 단위의 상세 로그 포함
|
|
423
|
+
*
|
|
424
|
+
* 기존 boolean 옵션과의 호환을 위해 true는 'verbose', false는 'none'으로 간주합니다.
|
|
425
|
+
*/
|
|
426
|
+
debug?: DebugLevel | boolean;
|
|
424
427
|
}
|
|
425
428
|
/** 디버그 로그 출력 레벨 */
|
|
426
429
|
type DebugLevel = 'none' | 'warn' | 'info' | 'verbose';
|
|
@@ -454,25 +457,25 @@ type DebugLevel = 'none' | 'warn' | 'info' | 'verbose';
|
|
|
454
457
|
* ```
|
|
455
458
|
*/
|
|
456
459
|
interface ProcessResult {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
460
|
+
/** 처리된 모든 파일들 */
|
|
461
|
+
files: ProcessedFile[];
|
|
462
|
+
/** 처리된 모든 디렉토리들 */
|
|
463
|
+
directories: ProcessedDirectory[];
|
|
464
|
+
/** 계층 구조를 나타내는 트리 */
|
|
465
|
+
tree: FileTreeNode;
|
|
466
|
+
/** 처리 결과 통계 정보 */
|
|
467
|
+
metadata: {
|
|
468
|
+
/** 총 파일 수 */
|
|
469
|
+
totalFiles: number;
|
|
470
|
+
/** 총 디렉토리 수 */
|
|
471
|
+
totalDirectories: number;
|
|
472
|
+
/** 총 파일 크기 (바이트) */
|
|
473
|
+
totalSize: number;
|
|
474
|
+
/** 처리 소요 시간 (밀리초) */
|
|
475
|
+
processingTime: number;
|
|
476
|
+
};
|
|
477
|
+
/** 처리 중 발생한 에러들 (부분 실패시 포함) */
|
|
478
|
+
errors: FileDropError[];
|
|
476
479
|
}
|
|
477
480
|
/**
|
|
478
481
|
* 파일 트리 처리 실패 결과
|
|
@@ -488,12 +491,12 @@ interface ProcessResult {
|
|
|
488
491
|
* ```
|
|
489
492
|
*/
|
|
490
493
|
interface ErrorResult {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
/** 항상 false (실패 표시) */
|
|
495
|
+
success: false;
|
|
496
|
+
/** 발생한 주요 에러 */
|
|
497
|
+
error: FileDropError;
|
|
498
|
+
/** 부분적으로 처리된 결과 (optional) */
|
|
499
|
+
partialResult?: ProcessResult;
|
|
497
500
|
}
|
|
498
501
|
/**
|
|
499
502
|
* 안전한 처리 결과 타입
|
|
@@ -558,14 +561,15 @@ type FileDropSource = React.DragEvent<HTMLElement> | FileList | FileSystemHandle
|
|
|
558
561
|
* ```
|
|
559
562
|
*/
|
|
560
563
|
interface LegacyFileItem {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
/** 아이템 타입 - 'file' 또는 'dir' */
|
|
565
|
+
type: 'file' | 'dir';
|
|
566
|
+
/** 파일/디렉토리 경로 */
|
|
567
|
+
path: string;
|
|
568
|
+
/** File 객체 (파일인 경우만) */
|
|
569
|
+
file?: File;
|
|
567
570
|
}
|
|
568
|
-
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region src/file-drop/process-file-drop.d.ts
|
|
569
573
|
/**
|
|
570
574
|
* 파일 드래그앤드롭 이벤트를 처리하여 파일 트리를 순회하는 메인 API 함수
|
|
571
575
|
*
|
|
@@ -626,7 +630,7 @@ interface LegacyFileItem {
|
|
|
626
630
|
*
|
|
627
631
|
* @since 1.0.0
|
|
628
632
|
*/
|
|
629
|
-
declare function processFileTreeDrop(source: FileDropSource, options?: FileDropOptions): Promise<ProcessResult>;
|
|
633
|
+
export declare function processFileTreeDrop(source: FileDropSource, options?: FileDropOptions): Promise<ProcessResult>;
|
|
630
634
|
/**
|
|
631
635
|
* 안전한 버전의 파일 트리 처리 함수
|
|
632
636
|
*
|
|
@@ -694,56 +698,59 @@ declare function processFileTreeDrop(source: FileDropSource, options?: FileDropO
|
|
|
694
698
|
*
|
|
695
699
|
* @since 1.0.0
|
|
696
700
|
*/
|
|
697
|
-
declare function processFileTreeDropSafe(source: FileDropSource, options?: FileDropOptions): Promise<SafeProcessResult>;
|
|
698
|
-
|
|
701
|
+
export declare function processFileTreeDropSafe(source: FileDropSource, options?: FileDropOptions): Promise<SafeProcessResult>;
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/file-drop/utils/file-utils.d.ts
|
|
699
704
|
/**
|
|
700
705
|
* 파일 경로 유틸리티 (기존 PathUtils 개선)
|
|
701
706
|
*/
|
|
702
|
-
declare class FilePathUtils {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
707
|
+
export declare class FilePathUtils {
|
|
708
|
+
static normalize(path: string): string;
|
|
709
|
+
static join(...segments: string[]): string;
|
|
710
|
+
static dirname(path: string): string;
|
|
711
|
+
static basename(path: string, ext?: string): string;
|
|
712
|
+
static extname(path: string): string;
|
|
713
|
+
static relative(from: string, to: string): string;
|
|
709
714
|
}
|
|
710
715
|
/**
|
|
711
716
|
* 파일 검증 함수들
|
|
712
717
|
*/
|
|
713
|
-
declare function isValidFileType(file: File, allowedExtensions: string[]): boolean;
|
|
714
|
-
declare function isValidFileSize(file: File, maxSize: number): boolean;
|
|
715
|
-
declare function isValidFileName(name: string): boolean;
|
|
718
|
+
export declare function isValidFileType(file: File, allowedExtensions: string[]): boolean;
|
|
719
|
+
export declare function isValidFileSize(file: File, maxSize: number): boolean;
|
|
720
|
+
export declare function isValidFileName(name: string): boolean;
|
|
716
721
|
/**
|
|
717
722
|
* 트리 구조 조작 유틸리티
|
|
718
723
|
*/
|
|
719
|
-
declare function flattenTree(tree: FileTreeNode): FileItem[];
|
|
720
|
-
declare function filterTree(tree: FileTreeNode, predicate: (node: FileTreeNode) => boolean): FileTreeNode | null;
|
|
721
|
-
declare function findInTree(tree: FileTreeNode, predicate: (node: FileTreeNode) => boolean): FileTreeNode | null;
|
|
724
|
+
export declare function flattenTree(tree: FileTreeNode): FileItem[];
|
|
725
|
+
export declare function filterTree(tree: FileTreeNode, predicate: (node: FileTreeNode) => boolean): FileTreeNode | null;
|
|
726
|
+
export declare function findInTree(tree: FileTreeNode, predicate: (node: FileTreeNode) => boolean): FileTreeNode | null;
|
|
722
727
|
/**
|
|
723
728
|
* 트리 빌더
|
|
724
729
|
*/
|
|
725
|
-
declare function buildFileTree(items: FileItem[]): FileTreeNode;
|
|
726
|
-
|
|
730
|
+
export declare function buildFileTree(items: FileItem[]): FileTreeNode;
|
|
731
|
+
//#endregion
|
|
732
|
+
//#region src/file-drop/utils/filter.d.ts
|
|
727
733
|
/**
|
|
728
734
|
* 기본 필터 프리셋
|
|
729
735
|
*/
|
|
730
|
-
declare const FilterPresets: {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
736
|
+
export declare const FilterPresets: {
|
|
737
|
+
/**
|
|
738
|
+
* 이미지만 허용
|
|
739
|
+
*/
|
|
740
|
+
imagesOnly: () => FilterOptions;
|
|
741
|
+
/**
|
|
742
|
+
* 텍스트 파일만 허용
|
|
743
|
+
*/
|
|
744
|
+
textOnly: () => FilterOptions;
|
|
745
|
+
/**
|
|
746
|
+
* 작은 파일만 허용 (1MB 이하)
|
|
747
|
+
*/
|
|
748
|
+
smallFilesOnly: () => FilterOptions;
|
|
749
|
+
/**
|
|
750
|
+
* 개발 파일만 허용
|
|
751
|
+
*/
|
|
752
|
+
developmentFiles: () => FilterOptions;
|
|
747
753
|
};
|
|
748
|
-
|
|
749
|
-
export {
|
|
754
|
+
//#endregion
|
|
755
|
+
export type { CallbackOptions, DebugLevel, FileDropOptions, FileDropSource, FileItem, FileMetadata, FileTreeNode, FilterOptions, LegacyFileItem, ProcessResult, ProcessedDirectory, ProcessedFile, ProcessingOptions, ProgressInfo, SafeProcessResult };
|
|
756
|
+
//# sourceMappingURL=index.d.ts.map
|