@superinterface/react 5.0.0-beta.2 → 5.0.0-beta.3
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/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +26724 -27443
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -69
- package/dist/index.d.ts +49 -69
- package/dist/index.js +26723 -27443
- package/dist/index.js.map +1 -1
- package/dist/jsx.d.cjs +49 -0
- package/dist/jsx.d.cjs.map +1 -0
- package/dist/jsx.d.d.cts +8 -0
- package/dist/jsx.d.d.ts +8 -0
- package/dist/jsx.d.js +1 -0
- package/dist/jsx.d.js.map +1 -0
- package/dist/server.cjs +4 -8
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +4 -8
- package/dist/server.js.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare const Thread: {
|
|
|
57
57
|
Message: ({ message, className, style }: {
|
|
58
58
|
message: SerializedMessage;
|
|
59
59
|
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
-
NextPageSkeleton: () => react_jsx_runtime.JSX.Element
|
|
60
|
+
NextPageSkeleton: () => react_jsx_runtime.JSX.Element;
|
|
61
61
|
Content: () => react_jsx_runtime.JSX.Element;
|
|
62
62
|
};
|
|
63
63
|
MessageForm: {
|
|
@@ -88,7 +88,7 @@ declare const Thread: {
|
|
|
88
88
|
}) => react_jsx_runtime.JSX.Element;
|
|
89
89
|
};
|
|
90
90
|
Files: {
|
|
91
|
-
Preview: (props: StyleProps) => react_jsx_runtime.JSX.Element
|
|
91
|
+
Preview: (props: StyleProps) => react_jsx_runtime.JSX.Element;
|
|
92
92
|
Control: (props: StyleProps) => react_jsx_runtime.JSX.Element;
|
|
93
93
|
};
|
|
94
94
|
};
|
|
@@ -125,7 +125,7 @@ declare const useMessages: () => {
|
|
|
125
125
|
dataUpdatedAt: number;
|
|
126
126
|
errorUpdatedAt: number;
|
|
127
127
|
failureCount: number;
|
|
128
|
-
failureReason: Error
|
|
128
|
+
failureReason: Error;
|
|
129
129
|
errorUpdateCount: number;
|
|
130
130
|
isFetched: boolean;
|
|
131
131
|
isFetchedAfterMount: boolean;
|
|
@@ -134,6 +134,7 @@ declare const useMessages: () => {
|
|
|
134
134
|
isPaused: boolean;
|
|
135
135
|
isRefetching: boolean;
|
|
136
136
|
isStale: boolean;
|
|
137
|
+
isEnabled: boolean;
|
|
137
138
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
138
139
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
139
140
|
promise: Promise<InfiniteData<TQueryFnData, unknown>>;
|
|
@@ -160,7 +161,7 @@ declare const useMessages: () => {
|
|
|
160
161
|
dataUpdatedAt: number;
|
|
161
162
|
errorUpdatedAt: number;
|
|
162
163
|
failureCount: number;
|
|
163
|
-
failureReason: Error
|
|
164
|
+
failureReason: Error;
|
|
164
165
|
errorUpdateCount: number;
|
|
165
166
|
isFetched: boolean;
|
|
166
167
|
isFetchedAfterMount: boolean;
|
|
@@ -169,6 +170,7 @@ declare const useMessages: () => {
|
|
|
169
170
|
isPaused: boolean;
|
|
170
171
|
isRefetching: boolean;
|
|
171
172
|
isStale: boolean;
|
|
173
|
+
isEnabled: boolean;
|
|
172
174
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
173
175
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
174
176
|
promise: Promise<InfiniteData<TQueryFnData, unknown>>;
|
|
@@ -202,7 +204,7 @@ declare const useLatestMessage: () => {
|
|
|
202
204
|
dataUpdatedAt: number;
|
|
203
205
|
errorUpdatedAt: number;
|
|
204
206
|
failureCount: number;
|
|
205
|
-
failureReason: Error
|
|
207
|
+
failureReason: Error;
|
|
206
208
|
errorUpdateCount: number;
|
|
207
209
|
isFetched: boolean;
|
|
208
210
|
isFetchedAfterMount: boolean;
|
|
@@ -211,6 +213,7 @@ declare const useLatestMessage: () => {
|
|
|
211
213
|
isPaused: boolean;
|
|
212
214
|
isRefetching: boolean;
|
|
213
215
|
isStale: boolean;
|
|
216
|
+
isEnabled: boolean;
|
|
214
217
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
215
218
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
216
219
|
promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
|
|
@@ -238,7 +241,7 @@ declare const useLatestMessage: () => {
|
|
|
238
241
|
dataUpdatedAt: number;
|
|
239
242
|
errorUpdatedAt: number;
|
|
240
243
|
failureCount: number;
|
|
241
|
-
failureReason: Error
|
|
244
|
+
failureReason: Error;
|
|
242
245
|
errorUpdateCount: number;
|
|
243
246
|
isFetched: boolean;
|
|
244
247
|
isFetchedAfterMount: boolean;
|
|
@@ -247,6 +250,7 @@ declare const useLatestMessage: () => {
|
|
|
247
250
|
isPaused: boolean;
|
|
248
251
|
isRefetching: boolean;
|
|
249
252
|
isStale: boolean;
|
|
253
|
+
isEnabled: boolean;
|
|
250
254
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
251
255
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
252
256
|
promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
|
|
@@ -357,7 +361,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
357
361
|
dataUpdatedAt: number;
|
|
358
362
|
errorUpdatedAt: number;
|
|
359
363
|
failureCount: number;
|
|
360
|
-
failureReason: Error
|
|
364
|
+
failureReason: Error;
|
|
361
365
|
errorUpdateCount: number;
|
|
362
366
|
isFetched: boolean;
|
|
363
367
|
isFetchedAfterMount: boolean;
|
|
@@ -366,6 +370,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
366
370
|
isPaused: boolean;
|
|
367
371
|
isRefetching: boolean;
|
|
368
372
|
isStale: boolean;
|
|
373
|
+
isEnabled: boolean;
|
|
369
374
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
370
375
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
371
376
|
promise: Promise<any>;
|
|
@@ -384,7 +389,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
384
389
|
dataUpdatedAt: number;
|
|
385
390
|
errorUpdatedAt: number;
|
|
386
391
|
failureCount: number;
|
|
387
|
-
failureReason: Error
|
|
392
|
+
failureReason: Error;
|
|
388
393
|
errorUpdateCount: number;
|
|
389
394
|
isFetched: boolean;
|
|
390
395
|
isFetchedAfterMount: boolean;
|
|
@@ -393,6 +398,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
393
398
|
isPaused: boolean;
|
|
394
399
|
isRefetching: boolean;
|
|
395
400
|
isStale: boolean;
|
|
401
|
+
isEnabled: boolean;
|
|
396
402
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
397
403
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
398
404
|
promise: Promise<any>;
|
|
@@ -411,7 +417,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
411
417
|
dataUpdatedAt: number;
|
|
412
418
|
errorUpdatedAt: number;
|
|
413
419
|
failureCount: number;
|
|
414
|
-
failureReason: Error
|
|
420
|
+
failureReason: Error;
|
|
415
421
|
errorUpdateCount: number;
|
|
416
422
|
isFetched: boolean;
|
|
417
423
|
isFetchedAfterMount: boolean;
|
|
@@ -420,6 +426,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
420
426
|
isPaused: boolean;
|
|
421
427
|
isRefetching: boolean;
|
|
422
428
|
isStale: boolean;
|
|
429
|
+
isEnabled: boolean;
|
|
423
430
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
424
431
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
425
432
|
promise: Promise<any>;
|
|
@@ -438,7 +445,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
438
445
|
dataUpdatedAt: number;
|
|
439
446
|
errorUpdatedAt: number;
|
|
440
447
|
failureCount: number;
|
|
441
|
-
failureReason: Error
|
|
448
|
+
failureReason: Error;
|
|
442
449
|
errorUpdateCount: number;
|
|
443
450
|
isFetched: boolean;
|
|
444
451
|
isFetchedAfterMount: boolean;
|
|
@@ -447,6 +454,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
447
454
|
isPaused: boolean;
|
|
448
455
|
isRefetching: boolean;
|
|
449
456
|
isStale: boolean;
|
|
457
|
+
isEnabled: boolean;
|
|
450
458
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
451
459
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
452
460
|
promise: Promise<any>;
|
|
@@ -464,7 +472,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
464
472
|
dataUpdatedAt: number;
|
|
465
473
|
errorUpdatedAt: number;
|
|
466
474
|
failureCount: number;
|
|
467
|
-
failureReason: Error
|
|
475
|
+
failureReason: Error;
|
|
468
476
|
errorUpdateCount: number;
|
|
469
477
|
isFetched: boolean;
|
|
470
478
|
isFetchedAfterMount: boolean;
|
|
@@ -474,6 +482,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
474
482
|
isPaused: boolean;
|
|
475
483
|
isRefetching: boolean;
|
|
476
484
|
isStale: boolean;
|
|
485
|
+
isEnabled: boolean;
|
|
477
486
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
478
487
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
479
488
|
promise: Promise<any>;
|
|
@@ -492,7 +501,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
492
501
|
dataUpdatedAt: number;
|
|
493
502
|
errorUpdatedAt: number;
|
|
494
503
|
failureCount: number;
|
|
495
|
-
failureReason: Error
|
|
504
|
+
failureReason: Error;
|
|
496
505
|
errorUpdateCount: number;
|
|
497
506
|
isFetched: boolean;
|
|
498
507
|
isFetchedAfterMount: boolean;
|
|
@@ -501,6 +510,7 @@ declare const useAssistant: ({ assistantId, }: Args$7) => {
|
|
|
501
510
|
isPaused: boolean;
|
|
502
511
|
isRefetching: boolean;
|
|
503
512
|
isStale: boolean;
|
|
513
|
+
isEnabled: boolean;
|
|
504
514
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
505
515
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
506
516
|
promise: Promise<any>;
|
|
@@ -524,7 +534,7 @@ declare const ThreadDialog: {
|
|
|
524
534
|
(props: StyleProps): react_jsx_runtime.JSX.Element;
|
|
525
535
|
Root: ({ children, className, style, }: {
|
|
526
536
|
children: React.ReactNode;
|
|
527
|
-
} & StyleProps) => react_jsx_runtime.JSX.Element
|
|
537
|
+
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
528
538
|
Messages: ({ className, style, }: StyleProps) => react_jsx_runtime.JSX.Element;
|
|
529
539
|
FormContainer: ({ children, className, style, }: {
|
|
530
540
|
children: React.ReactNode;
|
|
@@ -560,7 +570,7 @@ declare const AudioThreadDialog: {
|
|
|
560
570
|
(props: StyleProps): react_jsx_runtime.JSX.Element;
|
|
561
571
|
Root: ({ children, className, style, }: {
|
|
562
572
|
children: React.ReactNode;
|
|
563
|
-
} & StyleProps) => react_jsx_runtime.JSX.Element
|
|
573
|
+
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
564
574
|
Messages: ({ className, style, }: StyleProps) => react_jsx_runtime.JSX.Element;
|
|
565
575
|
FormContainer: ({ children, className, style, }: {
|
|
566
576
|
children: React.ReactNode;
|
|
@@ -571,13 +581,14 @@ declare const AudioThreadDialog: {
|
|
|
571
581
|
type Args$6 = {
|
|
572
582
|
children: React.ReactNode;
|
|
573
583
|
play?: (args: PlayArgs) => void;
|
|
584
|
+
onEnd?: () => void;
|
|
574
585
|
audioRuntime?: AudioRuntime;
|
|
575
586
|
} & StyleProps;
|
|
576
587
|
|
|
577
588
|
type Args$5 = Omit<Args$6, 'children'>;
|
|
578
589
|
declare const AudioThread: {
|
|
579
590
|
(props: Args$5): react_jsx_runtime.JSX.Element;
|
|
580
|
-
Root: ({ children, play, className, style, ...rest }: Args$6) => react_jsx_runtime.JSX.Element;
|
|
591
|
+
Root: ({ children, play, onEnd, className, style, ...rest }: Args$6) => react_jsx_runtime.JSX.Element;
|
|
581
592
|
Visualization: {
|
|
582
593
|
(props: StyleProps): react_jsx_runtime.JSX.Element;
|
|
583
594
|
Root: ({ children, ...rest }: {
|
|
@@ -611,15 +622,17 @@ declare const useAudioThreadContext: () => {
|
|
|
611
622
|
audioRuntime: AudioRuntime | null;
|
|
612
623
|
};
|
|
613
624
|
|
|
614
|
-
declare const useTtsAudioRuntime: ({ play, }: {
|
|
625
|
+
declare const useTtsAudioRuntime: ({ play, onEnd: passedOnEnd, }: {
|
|
615
626
|
play?: (args: PlayArgs) => void;
|
|
627
|
+
onEnd?: () => void;
|
|
616
628
|
}) => {
|
|
617
629
|
ttsAudioRuntime: AudioRuntime;
|
|
618
630
|
};
|
|
619
631
|
|
|
620
|
-
declare const TtsAudioRuntimeProvider: ({ children, play, }: {
|
|
632
|
+
declare const TtsAudioRuntimeProvider: ({ children, play, onEnd, }: {
|
|
621
633
|
children: React.ReactNode;
|
|
622
634
|
play?: (args: PlayArgs) => void;
|
|
635
|
+
onEnd?: () => void;
|
|
623
636
|
}) => react_jsx_runtime.JSX.Element;
|
|
624
637
|
|
|
625
638
|
declare const useWebrtcAudioRuntime: () => {
|
|
@@ -630,20 +643,20 @@ declare const useWebrtcAudioRuntime: () => {
|
|
|
630
643
|
resume: () => Promise<void>;
|
|
631
644
|
stop: () => Promise<void>;
|
|
632
645
|
isPending: boolean;
|
|
633
|
-
visualizationAnalyser: AnalyserNode
|
|
646
|
+
visualizationAnalyser: AnalyserNode;
|
|
634
647
|
rawStatus: "paused" | "idle" | "recording" | "stopped";
|
|
635
648
|
};
|
|
636
649
|
assistant: {
|
|
637
650
|
play: () => Promise<void>;
|
|
638
651
|
pause: () => Promise<void>;
|
|
639
652
|
stop: () => Promise<void>;
|
|
640
|
-
visualizationAnalyser: AnalyserNode
|
|
653
|
+
visualizationAnalyser: AnalyserNode;
|
|
641
654
|
playing: boolean;
|
|
642
655
|
paused: boolean;
|
|
643
656
|
isPending: boolean;
|
|
644
657
|
isReady: boolean;
|
|
645
658
|
isAudioPlayed: boolean;
|
|
646
|
-
rawStatus:
|
|
659
|
+
rawStatus: any;
|
|
647
660
|
};
|
|
648
661
|
};
|
|
649
662
|
};
|
|
@@ -657,7 +670,7 @@ declare const Gui: () => react_jsx_runtime.JSX.Element;
|
|
|
657
670
|
declare const Suggestions: {
|
|
658
671
|
({ children, className, style, }: {
|
|
659
672
|
children: React.ReactNode;
|
|
660
|
-
} & StyleProps): react_jsx_runtime.JSX.Element
|
|
673
|
+
} & StyleProps): react_jsx_runtime.JSX.Element;
|
|
661
674
|
Item: {
|
|
662
675
|
({ suggestion, isDisabled, className, style, }: {
|
|
663
676
|
suggestion: string;
|
|
@@ -693,7 +706,7 @@ declare const useMarkdownContext: () => MarkdownContextType;
|
|
|
693
706
|
declare const SourceAnnotation: ({ children, ...rest }: {
|
|
694
707
|
children: React.ReactNode;
|
|
695
708
|
["data-annotation"]: string;
|
|
696
|
-
}) => react_jsx_runtime.JSX.Element
|
|
709
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
697
710
|
|
|
698
711
|
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
699
712
|
|
|
@@ -728,7 +741,7 @@ declare const useComponents: () => {
|
|
|
728
741
|
RunStep: {
|
|
729
742
|
({ runStep, className, style, }: {
|
|
730
743
|
runStep: SerializedRunStep;
|
|
731
|
-
} & StyleProps): react_jsx_runtime.JSX.Element
|
|
744
|
+
} & StyleProps): react_jsx_runtime.JSX.Element;
|
|
732
745
|
ToolCalls: {
|
|
733
746
|
({ stepDetails, runStep, className, style, }: {
|
|
734
747
|
stepDetails: openai_resources_beta_threads_runs_steps.ToolCallsStepDetails;
|
|
@@ -797,7 +810,7 @@ declare const useComponents: () => {
|
|
|
797
810
|
};
|
|
798
811
|
MessageAttachments: ({ message, }: {
|
|
799
812
|
message: SerializedMessage;
|
|
800
|
-
}) => react_jsx_runtime.JSX.Element
|
|
813
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
801
814
|
StartingSkeleton: {
|
|
802
815
|
({ children, }: {
|
|
803
816
|
children?: React.ReactNode;
|
|
@@ -816,7 +829,7 @@ type Args$3 = {
|
|
|
816
829
|
runStep: SerializedRunStep;
|
|
817
830
|
} & StyleProps;
|
|
818
831
|
declare const RunStep: {
|
|
819
|
-
({ runStep, className, style, }: Args$3): react_jsx_runtime.JSX.Element
|
|
832
|
+
({ runStep, className, style, }: Args$3): react_jsx_runtime.JSX.Element;
|
|
820
833
|
ToolCalls: {
|
|
821
834
|
({ stepDetails, runStep, className, style, }: {
|
|
822
835
|
stepDetails: openai_resources_beta_threads_runs_steps.ToolCallsStepDetails;
|
|
@@ -891,101 +904,68 @@ declare const useCreateFile: ({ onError, }?: {
|
|
|
891
904
|
isPending: false;
|
|
892
905
|
isSuccess: false;
|
|
893
906
|
status: "idle";
|
|
894
|
-
mutate: _tanstack_react_query.UseMutateFunction<any, any,
|
|
895
|
-
[key: string]: any;
|
|
896
|
-
content: string;
|
|
897
|
-
}, any>;
|
|
907
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, any, any>;
|
|
898
908
|
reset: () => void;
|
|
899
909
|
context: any;
|
|
900
910
|
failureCount: number;
|
|
901
911
|
failureReason: any;
|
|
902
912
|
isPaused: boolean;
|
|
903
913
|
submittedAt: number;
|
|
904
|
-
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any,
|
|
905
|
-
[key: string]: any;
|
|
906
|
-
content: string;
|
|
907
|
-
}, any>;
|
|
914
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
908
915
|
} | {
|
|
909
916
|
createFile: (...args: any[]) => Promise<any>;
|
|
910
917
|
data: undefined;
|
|
911
|
-
variables:
|
|
912
|
-
[key: string]: any;
|
|
913
|
-
content: string;
|
|
914
|
-
};
|
|
918
|
+
variables: any;
|
|
915
919
|
error: null;
|
|
916
920
|
isError: false;
|
|
917
921
|
isIdle: false;
|
|
918
922
|
isPending: true;
|
|
919
923
|
isSuccess: false;
|
|
920
924
|
status: "pending";
|
|
921
|
-
mutate: _tanstack_react_query.UseMutateFunction<any, any,
|
|
922
|
-
[key: string]: any;
|
|
923
|
-
content: string;
|
|
924
|
-
}, any>;
|
|
925
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, any, any>;
|
|
925
926
|
reset: () => void;
|
|
926
927
|
context: any;
|
|
927
928
|
failureCount: number;
|
|
928
929
|
failureReason: any;
|
|
929
930
|
isPaused: boolean;
|
|
930
931
|
submittedAt: number;
|
|
931
|
-
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any,
|
|
932
|
-
[key: string]: any;
|
|
933
|
-
content: string;
|
|
934
|
-
}, any>;
|
|
932
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
935
933
|
} | {
|
|
936
934
|
createFile: (...args: any[]) => Promise<any>;
|
|
937
935
|
data: undefined;
|
|
938
936
|
error: any;
|
|
939
|
-
variables:
|
|
940
|
-
[key: string]: any;
|
|
941
|
-
content: string;
|
|
942
|
-
};
|
|
937
|
+
variables: any;
|
|
943
938
|
isError: true;
|
|
944
939
|
isIdle: false;
|
|
945
940
|
isPending: false;
|
|
946
941
|
isSuccess: false;
|
|
947
942
|
status: "error";
|
|
948
|
-
mutate: _tanstack_react_query.UseMutateFunction<any, any,
|
|
949
|
-
[key: string]: any;
|
|
950
|
-
content: string;
|
|
951
|
-
}, any>;
|
|
943
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, any, any>;
|
|
952
944
|
reset: () => void;
|
|
953
945
|
context: any;
|
|
954
946
|
failureCount: number;
|
|
955
947
|
failureReason: any;
|
|
956
948
|
isPaused: boolean;
|
|
957
949
|
submittedAt: number;
|
|
958
|
-
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any,
|
|
959
|
-
[key: string]: any;
|
|
960
|
-
content: string;
|
|
961
|
-
}, any>;
|
|
950
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
962
951
|
} | {
|
|
963
952
|
createFile: (...args: any[]) => Promise<any>;
|
|
964
953
|
data: any;
|
|
965
954
|
error: null;
|
|
966
|
-
variables:
|
|
967
|
-
[key: string]: any;
|
|
968
|
-
content: string;
|
|
969
|
-
};
|
|
955
|
+
variables: any;
|
|
970
956
|
isError: false;
|
|
971
957
|
isIdle: false;
|
|
972
958
|
isPending: false;
|
|
973
959
|
isSuccess: true;
|
|
974
960
|
status: "success";
|
|
975
|
-
mutate: _tanstack_react_query.UseMutateFunction<any, any,
|
|
976
|
-
[key: string]: any;
|
|
977
|
-
content: string;
|
|
978
|
-
}, any>;
|
|
961
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, any, any>;
|
|
979
962
|
reset: () => void;
|
|
980
963
|
context: any;
|
|
981
964
|
failureCount: number;
|
|
982
965
|
failureReason: any;
|
|
983
966
|
isPaused: boolean;
|
|
984
967
|
submittedAt: number;
|
|
985
|
-
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any,
|
|
986
|
-
[key: string]: any;
|
|
987
|
-
content: string;
|
|
988
|
-
}, any>;
|
|
968
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
989
969
|
};
|
|
990
970
|
|
|
991
971
|
declare const useChangeFilesField: () => {
|