@uploadista/vue 0.0.20-beta.6 → 0.0.20-beta.7

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 (55) hide show
  1. package/dist/components/index.d.mts +3 -3
  2. package/dist/components/index.mjs +1 -1
  3. package/dist/components-Dk25ojCY.mjs +2 -0
  4. package/dist/components-Dk25ojCY.mjs.map +1 -0
  5. package/dist/composables/index.d.mts +1 -1
  6. package/dist/composables/index.mjs +1 -1
  7. package/dist/composables-BZ2c_WgI.mjs +2 -0
  8. package/dist/composables-BZ2c_WgI.mjs.map +1 -0
  9. package/dist/index-CDJUpsAf.d.mts +49 -0
  10. package/dist/index-CDJUpsAf.d.mts.map +1 -0
  11. package/dist/index-Ci1I0jRB.d.mts +787 -0
  12. package/dist/index-Ci1I0jRB.d.mts.map +1 -0
  13. package/dist/{index-Bemg9qdC.d.mts → index-qvkAz1kU.d.mts} +30 -30
  14. package/dist/index-qvkAz1kU.d.mts.map +1 -0
  15. package/dist/index.d.mts +4 -4
  16. package/dist/index.mjs +1 -1
  17. package/dist/providers/index.d.mts +2 -2
  18. package/dist/providers/index.mjs +1 -1
  19. package/dist/providers-DL9Qq-3z.mjs +2 -0
  20. package/dist/providers-DL9Qq-3z.mjs.map +1 -0
  21. package/dist/useUploadistaClient-WVuo8jYH.mjs +2 -0
  22. package/dist/useUploadistaClient-WVuo8jYH.mjs.map +1 -0
  23. package/package.json +5 -5
  24. package/src/components/flow/Flow.vue +127 -0
  25. package/src/components/flow/FlowCancel.vue +26 -0
  26. package/src/components/flow/FlowDropZone.vue +124 -0
  27. package/src/components/flow/FlowError.vue +47 -0
  28. package/src/components/flow/FlowInput.vue +86 -0
  29. package/src/components/flow/FlowInputDropZone.vue +129 -0
  30. package/src/components/flow/FlowInputPreview.vue +67 -0
  31. package/src/components/flow/FlowInputUrlField.vue +44 -0
  32. package/src/components/flow/FlowInputs.vue +34 -0
  33. package/src/components/flow/FlowProgress.vue +53 -0
  34. package/src/components/flow/FlowReset.vue +26 -0
  35. package/src/components/flow/FlowStatus.vue +55 -0
  36. package/src/components/flow/FlowSubmit.vue +27 -0
  37. package/src/components/flow/index.ts +101 -0
  38. package/src/components/flow/useFlowContext.ts +68 -0
  39. package/src/components/index.ts +3 -0
  40. package/src/providers/FlowManagerProvider.vue +4 -4
  41. package/src/providers/UploadistaProvider.vue +4 -1
  42. package/src/providers/index.ts +1 -0
  43. package/dist/components-Bhroc6MN.mjs +0 -2
  44. package/dist/components-Bhroc6MN.mjs.map +0 -1
  45. package/dist/composables-7rR8DrBp.mjs +0 -2
  46. package/dist/composables-7rR8DrBp.mjs.map +0 -1
  47. package/dist/index-Bemg9qdC.d.mts.map +0 -1
  48. package/dist/index-C9s0EqbD.d.mts +0 -183
  49. package/dist/index-C9s0EqbD.d.mts.map +0 -1
  50. package/dist/index-cDdde3bt.d.mts +0 -33
  51. package/dist/index-cDdde3bt.d.mts.map +0 -1
  52. package/dist/plugin-BC-8nlFO.mjs +0 -2
  53. package/dist/plugin-BC-8nlFO.mjs.map +0 -1
  54. package/dist/providers-kZkr_iMD.mjs +0 -2
  55. package/dist/providers-kZkr_iMD.mjs.map +0 -1
@@ -0,0 +1,787 @@
1
+ import { S as UseFlowReturn, T as DragDropState, c as UploadItem, o as MultiUploadOptions, v as FlowInputMetadata } from "./index-qvkAz1kU.mjs";
2
+ import * as vue10 from "vue";
3
+ import { TypedOutput } from "@uploadista/core/flow";
4
+ import { BrowserUploadInput, FlowUploadItem, UploadOptions } from "@uploadista/client-browser";
5
+ import { FlowUploadStatus } from "@uploadista/client-core";
6
+
7
+ //#region src/components/FlowUploadList.vue.d.ts
8
+
9
+ /**
10
+ * Props for the FlowUploadList component
11
+ * @property {FlowUploadItem[]} uploads - Array of flow upload items to display
12
+ * @property {Function} filter - Optional filter for which items to display
13
+ * @property {Function} sortBy - Optional sorting function for items (a, b) => number
14
+ */
15
+ interface FlowUploadListProps {
16
+ /**
17
+ * Array of flow upload items to display
18
+ */
19
+ uploads: FlowUploadItem<BrowserUploadInput>[];
20
+ /**
21
+ * Optional filter for which items to display
22
+ */
23
+ filter?: (item: FlowUploadItem<BrowserUploadInput>) => boolean;
24
+ /**
25
+ * Optional sorting function for items
26
+ */
27
+ sortBy?: (a: FlowUploadItem<BrowserUploadInput>, b: FlowUploadItem<BrowserUploadInput>) => number;
28
+ }
29
+ type __VLS_Slots$11 = {
30
+ item(props: {
31
+ item: FlowUploadItem<BrowserUploadInput>;
32
+ index: number;
33
+ isPending: boolean;
34
+ isUploading: boolean;
35
+ isSuccess: boolean;
36
+ isError: boolean;
37
+ isAborted: boolean;
38
+ formatFileSize: (bytes: number) => string;
39
+ }): any;
40
+ default?(props: {
41
+ items: FlowUploadItem<BrowserUploadInput>[];
42
+ itemsByStatus: {
43
+ pending: FlowUploadItem<BrowserUploadInput>[];
44
+ uploading: FlowUploadItem<BrowserUploadInput>[];
45
+ success: FlowUploadItem<BrowserUploadInput>[];
46
+ error: FlowUploadItem<BrowserUploadInput>[];
47
+ aborted: FlowUploadItem<BrowserUploadInput>[];
48
+ };
49
+ }): any;
50
+ };
51
+ declare const __VLS_base$11: vue10.DefineComponent<FlowUploadListProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowUploadListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
52
+ declare const __VLS_export$15: __VLS_WithSlots$14<typeof __VLS_base$11, __VLS_Slots$11>;
53
+ declare const _default: typeof __VLS_export$15;
54
+ type __VLS_WithSlots$14<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
59
+ //# sourceMappingURL=FlowUploadList.vue.d.ts.map
60
+ //#endregion
61
+ //#region src/components/UploadList.vue.d.ts
62
+ /**
63
+ * Props for the UploadList component
64
+ * @property {UploadItem[]} uploads - Array of upload items to display
65
+ * @property {Function} filter - Optional filter for which items to display
66
+ * @property {Function} sortBy - Optional sorting function for items (a, b) => number
67
+ */
68
+ interface UploadListProps {
69
+ /**
70
+ * Array of upload items to display
71
+ */
72
+ uploads: UploadItem[];
73
+ /**
74
+ * Optional filter for which items to display
75
+ */
76
+ filter?: (item: UploadItem) => boolean;
77
+ /**
78
+ * Optional sorting function for items
79
+ */
80
+ sortBy?: (a: UploadItem, b: UploadItem) => number;
81
+ }
82
+ type __VLS_Slots$10 = {
83
+ item(props: {
84
+ item: UploadItem;
85
+ index: number;
86
+ isUploading: boolean;
87
+ isSuccess: boolean;
88
+ isError: boolean;
89
+ formatFileSize: (bytes: number) => string;
90
+ }): any;
91
+ default?(props: {
92
+ items: UploadItem[];
93
+ itemsByStatus: {
94
+ idle: UploadItem[];
95
+ uploading: UploadItem[];
96
+ success: UploadItem[];
97
+ error: UploadItem[];
98
+ aborted: UploadItem[];
99
+ };
100
+ }): any;
101
+ };
102
+ declare const __VLS_base$10: vue10.DefineComponent<UploadListProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<UploadListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
103
+ declare const __VLS_export$14: __VLS_WithSlots$13<typeof __VLS_base$10, __VLS_Slots$10>;
104
+ declare const _default$1: typeof __VLS_export$14;
105
+ type __VLS_WithSlots$13<T, S> = T & {
106
+ new (): {
107
+ $slots: S;
108
+ };
109
+ };
110
+ //# sourceMappingURL=UploadList.vue.d.ts.map
111
+ //#endregion
112
+ //#region src/components/UploadZone.vue.d.ts
113
+ /**
114
+ * Props for the UploadZone component
115
+ * @property {string[]} accept - Accepted file types (MIME types or file extensions)
116
+ * @property {boolean} multiple - Whether to allow multiple files (default: true)
117
+ * @property {boolean} disabled - Whether the upload zone is disabled (default: false)
118
+ * @property {number} maxFileSize - Maximum file size in bytes
119
+ * @property {Function} validator - Custom validation function for files
120
+ * @property {MultiUploadOptions} multiUploadOptions - Multi-upload options (only used when multiple=true)
121
+ * @property {UploadOptions} uploadOptions - Single upload options (only used when multiple=false)
122
+ */
123
+ interface UploadZoneProps {
124
+ /**
125
+ * Accepted file types (MIME types or file extensions)
126
+ */
127
+ accept?: string[];
128
+ /**
129
+ * Whether to allow multiple files
130
+ */
131
+ multiple?: boolean;
132
+ /**
133
+ * Whether the upload zone is disabled
134
+ */
135
+ disabled?: boolean;
136
+ /**
137
+ * Maximum file size in bytes
138
+ */
139
+ maxFileSize?: number;
140
+ /**
141
+ * Custom validation function for files
142
+ */
143
+ validator?: (files: File[]) => string[] | null;
144
+ /**
145
+ * Multi-upload options (only used when multiple=true)
146
+ */
147
+ multiUploadOptions?: MultiUploadOptions;
148
+ /**
149
+ * Single upload options (only used when multiple=false)
150
+ */
151
+ uploadOptions?: UploadOptions;
152
+ }
153
+ type __VLS_Slots$9 = {
154
+ default(props: {
155
+ isDragging: boolean;
156
+ isOver: boolean;
157
+ isUploading: boolean;
158
+ errors: string[];
159
+ openFilePicker: () => void;
160
+ }): any;
161
+ };
162
+ declare const __VLS_base$9: vue10.DefineComponent<UploadZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {
163
+ "file-select": (files: File[]) => any;
164
+ "upload-start": (files: File[]) => any;
165
+ "validation-error": (errors: string[]) => any;
166
+ }, string, vue10.PublicProps, Readonly<UploadZoneProps> & Readonly<{
167
+ "onFile-select"?: ((files: File[]) => any) | undefined;
168
+ "onUpload-start"?: ((files: File[]) => any) | undefined;
169
+ "onValidation-error"?: ((errors: string[]) => any) | undefined;
170
+ }>, {
171
+ multiple: boolean;
172
+ disabled: boolean;
173
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
174
+ declare const __VLS_export$13: __VLS_WithSlots$12<typeof __VLS_base$9, __VLS_Slots$9>;
175
+ declare const _default$2: typeof __VLS_export$13;
176
+ type __VLS_WithSlots$12<T, S> = T & {
177
+ new (): {
178
+ $slots: S;
179
+ };
180
+ };
181
+ //# sourceMappingURL=UploadZone.vue.d.ts.map
182
+ //#endregion
183
+ //#region src/components/flow/Flow.vue.d.ts
184
+ /**
185
+ * Props for the Flow root component.
186
+ */
187
+ interface FlowProps {
188
+ /** Flow ID to execute */
189
+ flowId: string;
190
+ /** Storage ID for file uploads */
191
+ storageId: string;
192
+ /** Optional output node ID to wait for */
193
+ outputNodeId?: string;
194
+ /** Optional metadata to include with the flow execution */
195
+ metadata?: Record<string, string>;
196
+ }
197
+ /**
198
+ * Context value provided by the Flow component root.
199
+ * Contains all flow state and actions.
200
+ */
201
+ interface FlowContextValue {
202
+ /** Current upload state */
203
+ state: UseFlowReturn["state"];
204
+ /** Discovered input nodes metadata (null until discovery completes) */
205
+ inputMetadata: UseFlowReturn["inputMetadata"];
206
+ /** Current input values set via setInput() */
207
+ inputs: UseFlowReturn["inputs"];
208
+ /** Per-input execution state for multi-input flows */
209
+ inputStates: UseFlowReturn["inputStates"];
210
+ /** Set an input value for a specific node */
211
+ setInput: UseFlowReturn["setInput"];
212
+ /** Execute the flow with current inputs */
213
+ execute: UseFlowReturn["execute"];
214
+ /** Upload a single file through the flow */
215
+ upload: UseFlowReturn["upload"];
216
+ /** Abort the current upload */
217
+ abort: UseFlowReturn["abort"];
218
+ /** Pause the current upload */
219
+ pause: UseFlowReturn["pause"];
220
+ /** Reset the upload state and clear all inputs */
221
+ reset: UseFlowReturn["reset"];
222
+ /** Whether an upload or flow execution is in progress */
223
+ isUploading: UseFlowReturn["isUploading"];
224
+ /** Whether the file is currently being uploaded */
225
+ isUploadingFile: UseFlowReturn["isUploadingFile"];
226
+ /** Whether the flow is currently processing */
227
+ isProcessing: UseFlowReturn["isProcessing"];
228
+ /** Whether the hook is discovering flow inputs */
229
+ isDiscoveringInputs: UseFlowReturn["isDiscoveringInputs"];
230
+ }
231
+ declare var __VLS_1$8: {};
232
+ type __VLS_Slots$8 = {} & {
233
+ default?: (props: typeof __VLS_1$8) => any;
234
+ };
235
+ declare const __VLS_base$8: vue10.DefineComponent<FlowProps, FlowContextValue, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {
236
+ progress: (uploadId: string, bytesUploaded: number, totalBytes: number | null) => any;
237
+ success: (outputs: TypedOutput[]) => any;
238
+ error: (error: Error) => any;
239
+ abort: () => any;
240
+ flowComplete: (outputs: TypedOutput[]) => any;
241
+ }, string, vue10.PublicProps, Readonly<FlowProps> & Readonly<{
242
+ onProgress?: ((uploadId: string, bytesUploaded: number, totalBytes: number | null) => any) | undefined;
243
+ onSuccess?: ((outputs: TypedOutput[]) => any) | undefined;
244
+ onError?: ((error: Error) => any) | undefined;
245
+ onAbort?: (() => any) | undefined;
246
+ onFlowComplete?: ((outputs: TypedOutput[]) => any) | undefined;
247
+ }>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
248
+ declare const __VLS_export$12: __VLS_WithSlots$11<typeof __VLS_base$8, __VLS_Slots$8>;
249
+ declare const _default$3: typeof __VLS_export$12;
250
+ type __VLS_WithSlots$11<T, S> = T & {
251
+ new (): {
252
+ $slots: S;
253
+ };
254
+ };
255
+ //# sourceMappingURL=Flow.vue.d.ts.map
256
+ //#endregion
257
+ //#region src/components/flow/useFlowContext.d.ts
258
+ /**
259
+ * Injection key for the Flow context
260
+ */
261
+ declare const FLOW_CONTEXT_KEY = "flowContext";
262
+ /**
263
+ * Injection key for the FlowInput context
264
+ */
265
+ declare const FLOW_INPUT_CONTEXT_KEY = "flowInputContext";
266
+ /**
267
+ * Context value for a specific input node within a Flow.
268
+ */
269
+ interface FlowInputContextValue {
270
+ /** Input node ID */
271
+ nodeId: string;
272
+ /** Input metadata from flow discovery */
273
+ metadata: {
274
+ nodeId: string;
275
+ nodeName: string;
276
+ nodeDescription: string;
277
+ inputTypeId?: string;
278
+ required: boolean;
279
+ };
280
+ /** Current value for this input */
281
+ value: unknown;
282
+ /** Set the value for this input */
283
+ setValue: (value: unknown) => void;
284
+ /** Per-input execution state (if available) */
285
+ state: {
286
+ status: string;
287
+ progress: number;
288
+ error: Error | null;
289
+ } | undefined;
290
+ }
291
+ /**
292
+ * Hook to access flow context from within a Flow component.
293
+ * @throws Error if used outside of a Flow component
294
+ */
295
+ declare function useFlowContext(): FlowContextValue;
296
+ /**
297
+ * Hook to access flow input context from within a FlowInput component.
298
+ * @throws Error if used outside of a FlowInput component
299
+ */
300
+ declare function useFlowInputContext(): FlowInputContextValue;
301
+ //#endregion
302
+ //#region src/components/flow/FlowDropZone.vue.d.ts
303
+ /**
304
+ * Props for FlowDropZone component.
305
+ */
306
+ interface FlowDropZoneProps {
307
+ /** Accepted file types (e.g., "image/*", ".pdf") */
308
+ accept?: string;
309
+ /** Maximum file size in bytes */
310
+ maxFileSize?: number;
311
+ }
312
+ declare const inputRef$1: vue10.Ref<HTMLInputElement | null, HTMLInputElement | null>;
313
+ /**
314
+ * Slot props provided to the default slot.
315
+ */
316
+ interface FlowDropZoneSlotProps {
317
+ /** Whether files are being dragged over */
318
+ isDragging: boolean;
319
+ /** Whether drag is over the zone */
320
+ isOver: boolean;
321
+ /** Upload progress (0-100) */
322
+ progress: number;
323
+ /** Current flow status */
324
+ status: string;
325
+ /** Current drag-drop state */
326
+ dragDropState: DragDropState;
327
+ /** Open file picker programmatically */
328
+ openFilePicker: () => void;
329
+ /** Drag event handlers to spread on the container */
330
+ dragHandlers: {
331
+ onDragenter: (e: DragEvent) => void;
332
+ onDragover: (e: DragEvent) => void;
333
+ onDragleave: (e: DragEvent) => void;
334
+ onDrop: (e: DragEvent) => void;
335
+ };
336
+ /** Input props for the hidden file input */
337
+ inputProps: {
338
+ type: "file";
339
+ multiple: boolean;
340
+ accept: string | undefined;
341
+ };
342
+ /** Input change handler */
343
+ onInputChange: (e: Event) => void;
344
+ /** Ref for the file input element */
345
+ inputRef: typeof inputRef$1;
346
+ }
347
+ declare var __VLS_1$7: {
348
+ /** Whether files are being dragged over */
349
+ isDragging: boolean;
350
+ /** Whether drag is over the zone */
351
+ isOver: boolean;
352
+ /** Upload progress (0-100) */
353
+ progress: number;
354
+ /** Current flow status */
355
+ status: string;
356
+ /** Current drag-drop state */
357
+ dragDropState: DragDropState;
358
+ /** Open file picker programmatically */
359
+ openFilePicker: () => void;
360
+ /** Drag event handlers to spread on the container */
361
+ dragHandlers: {
362
+ onDragenter: (e: DragEvent) => void;
363
+ onDragover: (e: DragEvent) => void;
364
+ onDragleave: (e: DragEvent) => void;
365
+ onDrop: (e: DragEvent) => void;
366
+ };
367
+ /** Input props for the hidden file input */
368
+ inputProps: {
369
+ type: "file";
370
+ multiple: boolean;
371
+ accept: string | undefined;
372
+ };
373
+ /** Input change handler */
374
+ onInputChange: (e: Event) => void;
375
+ /** Ref for the file input element */
376
+ inputRef: typeof inputRef$1;
377
+ };
378
+ type __VLS_Slots$7 = {} & {
379
+ default?: (props: typeof __VLS_1$7) => any;
380
+ };
381
+ declare const __VLS_base$7: vue10.DefineComponent<FlowDropZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowDropZoneProps> & Readonly<{}>, {
382
+ accept: string;
383
+ maxFileSize: number;
384
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
385
+ declare const __VLS_export$11: __VLS_WithSlots$10<typeof __VLS_base$7, __VLS_Slots$7>;
386
+ declare const _default$4: typeof __VLS_export$11;
387
+ type __VLS_WithSlots$10<T, S> = T & {
388
+ new (): {
389
+ $slots: S;
390
+ };
391
+ };
392
+ //# sourceMappingURL=FlowDropZone.vue.d.ts.map
393
+ //#endregion
394
+ //#region src/components/flow/FlowInputs.vue.d.ts
395
+ /**
396
+ * Slot props provided to the default slot.
397
+ */
398
+ interface FlowInputsSlotProps {
399
+ /** Discovered input metadata */
400
+ inputs: FlowInputMetadata[];
401
+ /** Whether inputs are still being discovered */
402
+ isLoading: boolean;
403
+ }
404
+ declare var __VLS_1$6: {
405
+ /** Discovered input metadata */
406
+ inputs: FlowInputMetadata[];
407
+ /** Whether inputs are still being discovered */
408
+ isLoading: boolean;
409
+ };
410
+ type __VLS_Slots$6 = {} & {
411
+ default?: (props: typeof __VLS_1$6) => any;
412
+ };
413
+ declare const __VLS_base$6: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
414
+ declare const __VLS_export$10: __VLS_WithSlots$9<typeof __VLS_base$6, __VLS_Slots$6>;
415
+ declare const _default$5: typeof __VLS_export$10;
416
+ type __VLS_WithSlots$9<T, S> = T & {
417
+ new (): {
418
+ $slots: S;
419
+ };
420
+ };
421
+ //# sourceMappingURL=FlowInputs.vue.d.ts.map
422
+ //#endregion
423
+ //#region src/components/flow/FlowInput.vue.d.ts
424
+ /**
425
+ * Props for FlowInput component.
426
+ */
427
+ interface FlowInputProps {
428
+ /** Input node ID */
429
+ nodeId: string;
430
+ }
431
+ /**
432
+ * Slot props provided to the default slot.
433
+ */
434
+ interface FlowInputSlotProps {
435
+ /** Input node ID */
436
+ nodeId: string;
437
+ /** Input metadata from flow discovery */
438
+ metadata: FlowInputContextValue["metadata"] | undefined;
439
+ /** Current value for this input */
440
+ value: unknown;
441
+ /** Set the value for this input */
442
+ setValue: (value: unknown) => void;
443
+ /** Per-input execution state (if available) */
444
+ state: FlowInputContextValue["state"];
445
+ }
446
+ declare var __VLS_1$5: {
447
+ /** Input node ID */
448
+ nodeId: string;
449
+ /** Input metadata from flow discovery */
450
+ metadata: FlowInputContextValue["metadata"] | undefined;
451
+ /** Current value for this input */
452
+ value: unknown;
453
+ /** Set the value for this input */
454
+ setValue: (value: unknown) => void;
455
+ /** Per-input execution state (if available) */
456
+ state: FlowInputContextValue["state"];
457
+ };
458
+ type __VLS_Slots$5 = {} & {
459
+ default?: (props: typeof __VLS_1$5) => any;
460
+ };
461
+ declare const __VLS_base$5: vue10.DefineComponent<FlowInputProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
462
+ declare const __VLS_export$9: __VLS_WithSlots$8<typeof __VLS_base$5, __VLS_Slots$5>;
463
+ declare const _default$6: typeof __VLS_export$9;
464
+ type __VLS_WithSlots$8<T, S> = T & {
465
+ new (): {
466
+ $slots: S;
467
+ };
468
+ };
469
+ //# sourceMappingURL=FlowInput.vue.d.ts.map
470
+ //#endregion
471
+ //#region src/components/flow/FlowInputDropZone.vue.d.ts
472
+ /**
473
+ * Props for FlowInputDropZone component.
474
+ */
475
+ interface FlowInputDropZoneProps {
476
+ /** Accepted file types (e.g., "image/*", ".pdf") */
477
+ accept?: string;
478
+ /** Maximum file size in bytes */
479
+ maxFileSize?: number;
480
+ }
481
+ declare const inputRef: vue10.Ref<HTMLInputElement | null, HTMLInputElement | null>;
482
+ /**
483
+ * Slot props provided to the default slot.
484
+ */
485
+ interface FlowInputDropZoneSlotProps {
486
+ /** Whether files are being dragged over */
487
+ isDragging: boolean;
488
+ /** Whether drag is over the zone */
489
+ isOver: boolean;
490
+ /** Current value for this input */
491
+ value: unknown;
492
+ /** Per-input progress (if available) */
493
+ progress: number;
494
+ /** Per-input status (if available) */
495
+ status: string;
496
+ /** Current drag-drop state */
497
+ dragDropState: DragDropState;
498
+ /** Open file picker programmatically */
499
+ openFilePicker: () => void;
500
+ /** Drag event handlers to spread on the container */
501
+ dragHandlers: {
502
+ onDragenter: (e: DragEvent) => void;
503
+ onDragover: (e: DragEvent) => void;
504
+ onDragleave: (e: DragEvent) => void;
505
+ onDrop: (e: DragEvent) => void;
506
+ };
507
+ /** Input props for the hidden file input */
508
+ inputProps: {
509
+ type: "file";
510
+ multiple: boolean;
511
+ accept: string | undefined;
512
+ };
513
+ /** Input change handler */
514
+ onInputChange: (e: Event) => void;
515
+ /** Ref for the file input element */
516
+ inputRef: typeof inputRef;
517
+ }
518
+ declare var __VLS_1$4: {
519
+ /** Whether files are being dragged over */
520
+ isDragging: boolean;
521
+ /** Whether drag is over the zone */
522
+ isOver: boolean;
523
+ /** Current value for this input */
524
+ value: unknown;
525
+ /** Per-input progress (if available) */
526
+ progress: number;
527
+ /** Per-input status (if available) */
528
+ status: string;
529
+ /** Current drag-drop state */
530
+ dragDropState: DragDropState;
531
+ /** Open file picker programmatically */
532
+ openFilePicker: () => void;
533
+ /** Drag event handlers to spread on the container */
534
+ dragHandlers: {
535
+ onDragenter: (e: DragEvent) => void;
536
+ onDragover: (e: DragEvent) => void;
537
+ onDragleave: (e: DragEvent) => void;
538
+ onDrop: (e: DragEvent) => void;
539
+ };
540
+ /** Input props for the hidden file input */
541
+ inputProps: {
542
+ type: "file";
543
+ multiple: boolean;
544
+ accept: string | undefined;
545
+ };
546
+ /** Input change handler */
547
+ onInputChange: (e: Event) => void;
548
+ /** Ref for the file input element */
549
+ inputRef: typeof inputRef;
550
+ };
551
+ type __VLS_Slots$4 = {} & {
552
+ default?: (props: typeof __VLS_1$4) => any;
553
+ };
554
+ declare const __VLS_base$4: vue10.DefineComponent<FlowInputDropZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputDropZoneProps> & Readonly<{}>, {
555
+ accept: string;
556
+ maxFileSize: number;
557
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
558
+ declare const __VLS_export$8: __VLS_WithSlots$7<typeof __VLS_base$4, __VLS_Slots$4>;
559
+ declare const _default$7: typeof __VLS_export$8;
560
+ type __VLS_WithSlots$7<T, S> = T & {
561
+ new (): {
562
+ $slots: S;
563
+ };
564
+ };
565
+ //# sourceMappingURL=FlowInputDropZone.vue.d.ts.map
566
+ //#endregion
567
+ //#region src/components/flow/FlowInputUrlField.vue.d.ts
568
+ /**
569
+ * Props for FlowInputUrlField component.
570
+ */
571
+ interface FlowInputUrlFieldProps {
572
+ /** Placeholder text */
573
+ placeholder?: string;
574
+ }
575
+ declare const _default$8: typeof __VLS_export$7;
576
+ declare const __VLS_export$7: vue10.DefineComponent<FlowInputUrlFieldProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputUrlFieldProps> & Readonly<{}>, {
577
+ placeholder: string;
578
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
579
+ //# sourceMappingURL=FlowInputUrlField.vue.d.ts.map
580
+ //#endregion
581
+ //#region src/components/flow/FlowInputPreview.vue.d.ts
582
+ /**
583
+ * Slot props provided to the default slot.
584
+ */
585
+ interface FlowInputPreviewSlotProps {
586
+ /** Current value */
587
+ value: unknown;
588
+ /** Whether value is a File */
589
+ isFile: boolean;
590
+ /** Whether value is a URL string */
591
+ isUrl: boolean;
592
+ /** File name (if value is File) */
593
+ fileName: string | null;
594
+ /** File size in bytes (if value is File) */
595
+ fileSize: number | null;
596
+ /** Clear the input value */
597
+ clear: () => void;
598
+ }
599
+ declare var __VLS_1$3: {
600
+ /** Current value */
601
+ value: unknown;
602
+ /** Whether value is a File */
603
+ isFile: boolean;
604
+ /** Whether value is a URL string */
605
+ isUrl: boolean;
606
+ /** File name (if value is File) */
607
+ fileName: string | null;
608
+ /** File size in bytes (if value is File) */
609
+ fileSize: number | null;
610
+ /** Clear the input value */
611
+ clear: () => void;
612
+ };
613
+ type __VLS_Slots$3 = {} & {
614
+ default?: (props: typeof __VLS_1$3) => any;
615
+ };
616
+ declare const __VLS_base$3: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
617
+ declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$3, __VLS_Slots$3>;
618
+ declare const _default$9: typeof __VLS_export$6;
619
+ type __VLS_WithSlots$6<T, S> = T & {
620
+ new (): {
621
+ $slots: S;
622
+ };
623
+ };
624
+ //# sourceMappingURL=FlowInputPreview.vue.d.ts.map
625
+ //#endregion
626
+ //#region src/components/flow/FlowProgress.vue.d.ts
627
+ /**
628
+ * Slot props provided to the default slot.
629
+ */
630
+ interface FlowProgressSlotProps {
631
+ /** Progress percentage (0-100) */
632
+ progress: number;
633
+ /** Bytes uploaded so far */
634
+ bytesUploaded: number;
635
+ /** Total bytes to upload (null if unknown) */
636
+ totalBytes: number | null;
637
+ /** Current status */
638
+ status: FlowUploadStatus;
639
+ }
640
+ declare var __VLS_1$2: {
641
+ /** Progress percentage (0-100) */
642
+ progress: number;
643
+ /** Bytes uploaded so far */
644
+ bytesUploaded: number;
645
+ /** Total bytes to upload (null if unknown) */
646
+ totalBytes: number | null;
647
+ /** Current status */
648
+ status: FlowUploadStatus;
649
+ };
650
+ type __VLS_Slots$2 = {} & {
651
+ default?: (props: typeof __VLS_1$2) => any;
652
+ };
653
+ declare const __VLS_base$2: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
654
+ declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$2, __VLS_Slots$2>;
655
+ declare const _default$10: typeof __VLS_export$5;
656
+ type __VLS_WithSlots$5<T, S> = T & {
657
+ new (): {
658
+ $slots: S;
659
+ };
660
+ };
661
+ //# sourceMappingURL=FlowProgress.vue.d.ts.map
662
+ //#endregion
663
+ //#region src/components/flow/FlowStatus.vue.d.ts
664
+ /**
665
+ * Slot props provided to the default slot.
666
+ */
667
+ interface FlowStatusSlotProps {
668
+ /** Current status */
669
+ status: FlowUploadStatus;
670
+ /** Current node being processed (if any) */
671
+ currentNodeName: string | null;
672
+ /** Current node type (if any) */
673
+ currentNodeType: string | null;
674
+ /** Error (if status is error) */
675
+ error: Error | null;
676
+ /** Job ID (if started) */
677
+ jobId: string | null;
678
+ /** Whether flow has started */
679
+ flowStarted: boolean;
680
+ /** Flow outputs (if completed) */
681
+ flowOutputs: TypedOutput[] | null;
682
+ }
683
+ declare var __VLS_1$1: {
684
+ /** Current status */
685
+ status: FlowUploadStatus;
686
+ /** Current node being processed (if any) */
687
+ currentNodeName: string | null;
688
+ /** Current node type (if any) */
689
+ currentNodeType: string | null;
690
+ /** Error (if status is error) */
691
+ error: Error | null;
692
+ /** Job ID (if started) */
693
+ jobId: string | null;
694
+ /** Whether flow has started */
695
+ flowStarted: boolean;
696
+ /** Flow outputs (if completed) */
697
+ flowOutputs: TypedOutput[] | null;
698
+ };
699
+ type __VLS_Slots$1 = {} & {
700
+ default?: (props: typeof __VLS_1$1) => any;
701
+ };
702
+ declare const __VLS_base$1: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
703
+ declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$1, __VLS_Slots$1>;
704
+ declare const _default$11: typeof __VLS_export$4;
705
+ type __VLS_WithSlots$4<T, S> = T & {
706
+ new (): {
707
+ $slots: S;
708
+ };
709
+ };
710
+ //# sourceMappingURL=FlowStatus.vue.d.ts.map
711
+ //#endregion
712
+ //#region src/components/flow/FlowError.vue.d.ts
713
+ /**
714
+ * Slot props provided to the default slot.
715
+ */
716
+ interface FlowErrorSlotProps {
717
+ /** Error object (null if no error) */
718
+ error: Error | null;
719
+ /** Whether there is an error */
720
+ hasError: boolean;
721
+ /** Error message */
722
+ message: string | null;
723
+ /** Reset the flow */
724
+ reset: () => void;
725
+ }
726
+ declare var __VLS_1: {
727
+ /** Error object (null if no error) */
728
+ error: Error | null;
729
+ /** Whether there is an error */
730
+ hasError: boolean;
731
+ /** Error message */
732
+ message: string | null;
733
+ /** Reset the flow */
734
+ reset: () => void;
735
+ };
736
+ type __VLS_Slots = {} & {
737
+ default?: (props: typeof __VLS_1) => any;
738
+ };
739
+ declare const __VLS_base: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
740
+ declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base, __VLS_Slots>;
741
+ declare const _default$12: typeof __VLS_export$3;
742
+ type __VLS_WithSlots$3<T, S> = T & {
743
+ new (): {
744
+ $slots: S;
745
+ };
746
+ };
747
+ //# sourceMappingURL=FlowError.vue.d.ts.map
748
+ //#endregion
749
+ //#region src/components/flow/FlowSubmit.vue.d.ts
750
+ declare const _default$13: typeof __VLS_export$2;
751
+ declare const __VLS_export$2: __VLS_WithSlots$2<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
752
+ default?: (props: {}) => any;
753
+ }>;
754
+ type __VLS_WithSlots$2<T, S> = T & {
755
+ new (): {
756
+ $slots: S;
757
+ };
758
+ };
759
+ //# sourceMappingURL=FlowSubmit.vue.d.ts.map
760
+ //#endregion
761
+ //#region src/components/flow/FlowCancel.vue.d.ts
762
+ declare const _default$14: typeof __VLS_export$1;
763
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
764
+ default?: (props: {}) => any;
765
+ }>;
766
+ type __VLS_WithSlots$1<T, S> = T & {
767
+ new (): {
768
+ $slots: S;
769
+ };
770
+ };
771
+ //# sourceMappingURL=FlowCancel.vue.d.ts.map
772
+ //#endregion
773
+ //#region src/components/flow/FlowReset.vue.d.ts
774
+ declare const _default$15: typeof __VLS_export;
775
+ declare const __VLS_export: __VLS_WithSlots<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
776
+ default?: (props: {}) => any;
777
+ }>;
778
+ type __VLS_WithSlots<T, S> = T & {
779
+ new (): {
780
+ $slots: S;
781
+ };
782
+ };
783
+ //# sourceMappingURL=FlowReset.vue.d.ts.map
784
+
785
+ //#endregion
786
+ export { FlowContextValue as A, FlowDropZoneSlotProps as C, FlowInputContextValue as D, FLOW_INPUT_CONTEXT_KEY as E, _default as F, _default$3 as M, _default$2 as N, useFlowContext as O, _default$1 as P, FlowDropZoneProps as S, FLOW_CONTEXT_KEY as T, FlowInputProps as _, _default$12 as a, FlowInputsSlotProps as b, FlowProgressSlotProps as c, _default$9 as d, FlowInputUrlFieldProps as f, _default$7 as g, FlowInputDropZoneSlotProps as h, FlowErrorSlotProps as i, FlowProps as j, useFlowInputContext as k, _default$10 as l, FlowInputDropZoneProps as m, _default$14 as n, FlowStatusSlotProps as o, _default$8 as p, _default$13 as r, _default$11 as s, _default$15 as t, FlowInputPreviewSlotProps as u, FlowInputSlotProps as v, _default$4 as w, _default$5 as x, _default$6 as y };
787
+ //# sourceMappingURL=index-Ci1I0jRB.d.mts.map