@pipedream/connect-react 1.0.0-preview.3 → 1.0.0-preview.30
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/README.md +5 -0
- package/dist/connect-react.es.js +15861 -11714
- package/dist/connect-react.umd.d.ts +198 -67
- package/dist/connect-react.umd.js +44 -17
- package/package.json +5 -4
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { Account } from '@pipedream/sdk';
|
|
2
1
|
import { AccountsRequestResponse } from '@pipedream/sdk';
|
|
3
|
-
import { AppRequestResponse } from '@pipedream/sdk';
|
|
4
2
|
import { AppResponse } from '@pipedream/sdk';
|
|
5
|
-
import { AppResponse as AppResponse_2 } from '@pipedream/sdk/browser';
|
|
6
|
-
import { AppsRequestResponse } from '@pipedream/sdk/browser';
|
|
7
3
|
import { BrowserClient } from '@pipedream/sdk/browser';
|
|
8
4
|
import { ClassNamesConfig } from 'react-select';
|
|
9
5
|
import { Component } from 'react';
|
|
10
6
|
import { ComponentProps } from 'react';
|
|
11
7
|
import { ComponentRequestResponse } from '@pipedream/sdk';
|
|
12
|
-
import { ComponentsRequestResponse } from '@pipedream/sdk/browser';
|
|
13
8
|
import { ConfigurableProp } from '@pipedream/sdk';
|
|
14
9
|
import { ConfigurablePropAlert } from '@pipedream/sdk';
|
|
15
10
|
import { ConfigurablePropApp } from '@pipedream/sdk';
|
|
@@ -18,8 +13,9 @@ import { ConfiguredProps } from '@pipedream/sdk';
|
|
|
18
13
|
import { Context } from 'react';
|
|
19
14
|
import { CSSProperties } from 'react';
|
|
20
15
|
import { FC } from 'react';
|
|
21
|
-
import { FetchStatus } from '@tanstack/
|
|
16
|
+
import { FetchStatus } from '@tanstack/query-core';
|
|
22
17
|
import { GetAccountOpts } from '@pipedream/sdk';
|
|
18
|
+
import { GetAppResponse } from '@pipedream/sdk';
|
|
23
19
|
import { GetAppsOpts } from '@pipedream/sdk';
|
|
24
20
|
import { GetComponentOpts } from '@pipedream/sdk';
|
|
25
21
|
import { GroupBase } from 'react-select';
|
|
@@ -27,16 +23,14 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
27
23
|
import { JSXElementConstructor } from 'react';
|
|
28
24
|
import { Props } from 'react-select';
|
|
29
25
|
import { PropValue } from '@pipedream/sdk';
|
|
30
|
-
import { QueryObserverResult } from '@tanstack/
|
|
26
|
+
import { QueryObserverResult } from '@tanstack/query-core';
|
|
31
27
|
import { ReactNode } from 'react';
|
|
32
|
-
import { RefetchOptions } from '@tanstack/
|
|
28
|
+
import { RefetchOptions } from '@tanstack/query-core';
|
|
33
29
|
import { SelectComponentsConfig } from 'react-select';
|
|
34
30
|
import { StylesConfig } from 'react-select';
|
|
35
31
|
import { Theme as Theme_2 } from 'react-select';
|
|
36
32
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
37
|
-
import { UseSuspenseQueryOptions } from '@tanstack/react-query';
|
|
38
33
|
import { V1Component } from '@pipedream/sdk';
|
|
39
|
-
import { V1Component as V1Component_2 } from '@pipedream/sdk/browser';
|
|
40
34
|
|
|
41
35
|
export declare function Alert({ prop }: AlertProps): JSX_2.Element;
|
|
42
36
|
|
|
@@ -49,6 +43,10 @@ export declare type BaseReactSelectProps<Option, IsMulti extends boolean, Group
|
|
|
49
43
|
styles?: StylesConfig;
|
|
50
44
|
};
|
|
51
45
|
|
|
46
|
+
declare type ButtonProps = {
|
|
47
|
+
onChange: () => void;
|
|
48
|
+
};
|
|
49
|
+
|
|
52
50
|
export declare type Colors = {
|
|
53
51
|
primary: string;
|
|
54
52
|
primary75: string;
|
|
@@ -85,7 +83,10 @@ declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps
|
|
|
85
83
|
propNames?: string[];
|
|
86
84
|
onSubmit?: (ctx: FormContext<T>) => void | Promise<void>;
|
|
87
85
|
onUpdateConfiguredProps?: (v: U) => void;
|
|
86
|
+
onUpdateDynamicProps?: (dp: DynamicProps<T>) => void;
|
|
88
87
|
hideOptionalProps?: boolean;
|
|
88
|
+
sdkResponse?: unknown | undefined;
|
|
89
|
+
enableDebugging?: boolean;
|
|
89
90
|
};
|
|
90
91
|
|
|
91
92
|
export declare type ComponentLibrary = typeof defaultComponents;
|
|
@@ -109,7 +110,7 @@ declare type ControlProps<T extends ConfigurableProps, U extends ConfigurablePro
|
|
|
109
110
|
form: FormContext<T>;
|
|
110
111
|
};
|
|
111
112
|
|
|
112
|
-
export declare function ControlSelect<T>({ isCreatable, options, selectProps, }: ControlSelectProps<T>): JSX_2.Element;
|
|
113
|
+
export declare function ControlSelect<T>({ isCreatable, options, selectProps, showLoadMoreButton, onLoadMore, }: ControlSelectProps<T>): JSX_2.Element;
|
|
113
114
|
|
|
114
115
|
declare type ControlSelectProps<T> = {
|
|
115
116
|
isCreatable?: boolean;
|
|
@@ -118,6 +119,8 @@ declare type ControlSelectProps<T> = {
|
|
|
118
119
|
value: T;
|
|
119
120
|
}[];
|
|
120
121
|
selectProps?: Props;
|
|
122
|
+
showLoadMoreButton?: boolean;
|
|
123
|
+
onLoadMore?: () => void;
|
|
121
124
|
};
|
|
122
125
|
|
|
123
126
|
export declare function ControlSubmit(props: ControlSubmitProps): JSX_2.Element;
|
|
@@ -158,6 +161,7 @@ export declare type CustomizableProps = {
|
|
|
158
161
|
label: ComponentProps<typeof Label>;
|
|
159
162
|
optionalFields: ComponentProps<typeof ComponentForm>;
|
|
160
163
|
optionalFieldButton: ComponentProps<typeof OptionalFieldButton>;
|
|
164
|
+
loadMoreButton: ComponentProps<typeof LoadMoreButton>;
|
|
161
165
|
};
|
|
162
166
|
|
|
163
167
|
export declare type Customization = {
|
|
@@ -215,6 +219,7 @@ export declare const defaultComponents: {
|
|
|
215
219
|
Errors: typeof Errors;
|
|
216
220
|
Label: typeof Label;
|
|
217
221
|
OptionalFieldButton: (props: OptionalFieldButtonProps) => JSX_2.Element;
|
|
222
|
+
Button: (props: ButtonProps) => JSX_2.Element;
|
|
218
223
|
};
|
|
219
224
|
|
|
220
225
|
export declare const defaultTheme: Theme;
|
|
@@ -229,7 +234,7 @@ declare type DescriptionProps<T extends ConfigurableProps, U extends Configurabl
|
|
|
229
234
|
|
|
230
235
|
export declare type DynamicProps<T extends ConfigurableProps> = {
|
|
231
236
|
id: string;
|
|
232
|
-
|
|
237
|
+
configurableProps: T;
|
|
233
238
|
};
|
|
234
239
|
|
|
235
240
|
export declare class ErrorBoundary extends Component<Props_2> {
|
|
@@ -245,7 +250,6 @@ export declare class ErrorBoundary extends Component<Props_2> {
|
|
|
245
250
|
export declare function Errors<T extends ConfigurableProps, U extends ConfigurableProp>(props: ErrorsProps<T, U>): JSX_2.Element | null;
|
|
246
251
|
|
|
247
252
|
declare type ErrorsProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
248
|
-
errors: string[];
|
|
249
253
|
field: FormFieldContext<U>;
|
|
250
254
|
form: FormContext<T>;
|
|
251
255
|
};
|
|
@@ -268,16 +272,22 @@ export declare type FormContext<T extends ConfigurableProps> = {
|
|
|
268
272
|
configuredProps: ConfiguredProps<T>;
|
|
269
273
|
dynamicProps?: DynamicProps<T>;
|
|
270
274
|
dynamicPropsQueryIsFetching?: boolean;
|
|
275
|
+
errors: Record<string, string[]>;
|
|
276
|
+
sdkErrors: SdkError[];
|
|
277
|
+
fields: Record<string, FormFieldContext<ConfigurableProp>>;
|
|
271
278
|
id: string;
|
|
272
279
|
isValid: boolean;
|
|
273
280
|
optionalPropIsEnabled: (prop: ConfigurableProp) => boolean;
|
|
274
281
|
optionalPropSetEnabled: (prop: ConfigurableProp, enabled: boolean) => void;
|
|
275
282
|
props: ComponentFormProps<T>;
|
|
283
|
+
propsNeedConfiguring: string[];
|
|
276
284
|
queryDisabledIdx?: number;
|
|
285
|
+
registerField: <T extends ConfigurableProp>(field: FormFieldContext<T>) => void;
|
|
277
286
|
setConfiguredProp: (idx: number, value: unknown) => void;
|
|
278
287
|
setSubmitting: (submitting: boolean) => void;
|
|
279
288
|
submitting: boolean;
|
|
280
289
|
userId: string;
|
|
290
|
+
enableDebugging?: boolean;
|
|
281
291
|
};
|
|
282
292
|
|
|
283
293
|
export declare const FormContext: Context<FormContext<any> | undefined>;
|
|
@@ -297,6 +307,8 @@ export declare type FormFieldContext<T extends ConfigurableProp> = {
|
|
|
297
307
|
value: PropValue<T["type"]> | undefined;
|
|
298
308
|
onChange: (value: PropValue<T["type"]> | undefined) => void;
|
|
299
309
|
extra: FormFieldContextExtra<T>;
|
|
310
|
+
errors: Record<string, string[]>;
|
|
311
|
+
enableDebugging?: boolean;
|
|
300
312
|
};
|
|
301
313
|
|
|
302
314
|
export declare const FormFieldContext: Context<FormFieldContext<any> | undefined>;
|
|
@@ -326,6 +338,8 @@ declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp>
|
|
|
326
338
|
form: FormContext<T>;
|
|
327
339
|
};
|
|
328
340
|
|
|
341
|
+
declare const LoadMoreButton: (props: ButtonProps) => JSX_2.Element;
|
|
342
|
+
|
|
329
343
|
export declare function mergeTheme(target: Theme, ...sources: (PartialTheme | undefined)[]): Theme;
|
|
330
344
|
|
|
331
345
|
export declare const OptionalFieldButton: (props: OptionalFieldButtonProps) => JSX_2.Element;
|
|
@@ -359,6 +373,11 @@ declare type RemoteOptionsContainerProps = {
|
|
|
359
373
|
queryEnabled?: boolean;
|
|
360
374
|
};
|
|
361
375
|
|
|
376
|
+
declare type SdkError = {
|
|
377
|
+
name: string;
|
|
378
|
+
message: string;
|
|
379
|
+
};
|
|
380
|
+
|
|
362
381
|
export declare function SelectApp({ value, onChange, }: SelectAppProps): JSX_2.Element;
|
|
363
382
|
|
|
364
383
|
declare type SelectAppProps = {
|
|
@@ -388,6 +407,8 @@ export declare type Shadows = {
|
|
|
388
407
|
dropdown: string;
|
|
389
408
|
};
|
|
390
409
|
|
|
410
|
+
export declare const skippablePropTypes: string[];
|
|
411
|
+
|
|
391
412
|
export declare type Theme = {
|
|
392
413
|
borderRadius?: number | string;
|
|
393
414
|
colors: Partial<Colors>;
|
|
@@ -409,7 +430,7 @@ export declare const unstyledTheme: Theme;
|
|
|
409
430
|
export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
410
431
|
useQueryOpts?: Omit<UseQueryOptions<AccountsRequestResponse>, "queryKey" | "queryFn">;
|
|
411
432
|
}) => {
|
|
412
|
-
accounts:
|
|
433
|
+
accounts: any;
|
|
413
434
|
data: AccountsRequestResponse;
|
|
414
435
|
error: Error;
|
|
415
436
|
isError: true;
|
|
@@ -436,7 +457,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
436
457
|
fetchStatus: FetchStatus;
|
|
437
458
|
promise: Promise<AccountsRequestResponse>;
|
|
438
459
|
} | {
|
|
439
|
-
accounts:
|
|
460
|
+
accounts: any;
|
|
440
461
|
data: AccountsRequestResponse;
|
|
441
462
|
error: null;
|
|
442
463
|
isError: false;
|
|
@@ -463,7 +484,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
463
484
|
fetchStatus: FetchStatus;
|
|
464
485
|
promise: Promise<AccountsRequestResponse>;
|
|
465
486
|
} | {
|
|
466
|
-
accounts:
|
|
487
|
+
accounts: any;
|
|
467
488
|
data: undefined;
|
|
468
489
|
error: Error;
|
|
469
490
|
isError: true;
|
|
@@ -490,7 +511,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
490
511
|
fetchStatus: FetchStatus;
|
|
491
512
|
promise: Promise<AccountsRequestResponse>;
|
|
492
513
|
} | {
|
|
493
|
-
accounts:
|
|
514
|
+
accounts: any;
|
|
494
515
|
data: undefined;
|
|
495
516
|
error: null;
|
|
496
517
|
isError: false;
|
|
@@ -517,7 +538,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
517
538
|
fetchStatus: FetchStatus;
|
|
518
539
|
promise: Promise<AccountsRequestResponse>;
|
|
519
540
|
} | {
|
|
520
|
-
accounts:
|
|
541
|
+
accounts: any;
|
|
521
542
|
data: undefined;
|
|
522
543
|
error: null;
|
|
523
544
|
isError: false;
|
|
@@ -549,20 +570,125 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
549
570
|
* Get details about an app
|
|
550
571
|
*/
|
|
551
572
|
export declare const useApp: (slug: string, opts?: {
|
|
552
|
-
useQueryOpts?: Omit<
|
|
573
|
+
useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn">;
|
|
553
574
|
}) => {
|
|
554
|
-
app:
|
|
555
|
-
|
|
575
|
+
app: any;
|
|
576
|
+
data: GetAppResponse;
|
|
577
|
+
error: Error;
|
|
578
|
+
isError: true;
|
|
579
|
+
isPending: false;
|
|
580
|
+
isLoading: false;
|
|
581
|
+
isLoadingError: false;
|
|
582
|
+
isRefetchError: true;
|
|
583
|
+
isSuccess: false;
|
|
584
|
+
status: "error";
|
|
585
|
+
dataUpdatedAt: number;
|
|
586
|
+
errorUpdatedAt: number;
|
|
587
|
+
failureCount: number;
|
|
588
|
+
failureReason: Error | null;
|
|
589
|
+
errorUpdateCount: number;
|
|
590
|
+
isFetched: boolean;
|
|
591
|
+
isFetchedAfterMount: boolean;
|
|
556
592
|
isFetching: boolean;
|
|
593
|
+
isInitialLoading: boolean;
|
|
594
|
+
isPaused: boolean;
|
|
595
|
+
isPlaceholderData: boolean;
|
|
596
|
+
isRefetching: boolean;
|
|
597
|
+
isStale: boolean;
|
|
598
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
599
|
+
fetchStatus: FetchStatus;
|
|
600
|
+
promise: Promise<GetAppResponse>;
|
|
601
|
+
} | {
|
|
602
|
+
app: any;
|
|
603
|
+
data: GetAppResponse;
|
|
604
|
+
error: null;
|
|
605
|
+
isError: false;
|
|
606
|
+
isPending: false;
|
|
557
607
|
isLoading: false;
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
608
|
+
isLoadingError: false;
|
|
609
|
+
isRefetchError: false;
|
|
610
|
+
isSuccess: true;
|
|
611
|
+
status: "success";
|
|
612
|
+
dataUpdatedAt: number;
|
|
613
|
+
errorUpdatedAt: number;
|
|
614
|
+
failureCount: number;
|
|
615
|
+
failureReason: Error | null;
|
|
616
|
+
errorUpdateCount: number;
|
|
617
|
+
isFetched: boolean;
|
|
618
|
+
isFetchedAfterMount: boolean;
|
|
619
|
+
isFetching: boolean;
|
|
620
|
+
isInitialLoading: boolean;
|
|
621
|
+
isPaused: boolean;
|
|
622
|
+
isPlaceholderData: boolean;
|
|
623
|
+
isRefetching: boolean;
|
|
624
|
+
isStale: boolean;
|
|
625
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
626
|
+
fetchStatus: FetchStatus;
|
|
627
|
+
promise: Promise<GetAppResponse>;
|
|
628
|
+
} | {
|
|
629
|
+
app: any;
|
|
630
|
+
data: undefined;
|
|
631
|
+
error: Error;
|
|
632
|
+
isError: true;
|
|
562
633
|
isPending: false;
|
|
634
|
+
isLoading: false;
|
|
635
|
+
isLoadingError: true;
|
|
636
|
+
isRefetchError: false;
|
|
637
|
+
isSuccess: false;
|
|
638
|
+
status: "error";
|
|
639
|
+
dataUpdatedAt: number;
|
|
640
|
+
errorUpdatedAt: number;
|
|
641
|
+
failureCount: number;
|
|
642
|
+
failureReason: Error | null;
|
|
643
|
+
errorUpdateCount: number;
|
|
644
|
+
isFetched: boolean;
|
|
645
|
+
isFetchedAfterMount: boolean;
|
|
646
|
+
isFetching: boolean;
|
|
647
|
+
isInitialLoading: boolean;
|
|
648
|
+
isPaused: boolean;
|
|
649
|
+
isPlaceholderData: boolean;
|
|
650
|
+
isRefetching: boolean;
|
|
651
|
+
isStale: boolean;
|
|
652
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
653
|
+
fetchStatus: FetchStatus;
|
|
654
|
+
promise: Promise<GetAppResponse>;
|
|
655
|
+
} | {
|
|
656
|
+
app: any;
|
|
657
|
+
data: undefined;
|
|
658
|
+
error: null;
|
|
659
|
+
isError: false;
|
|
660
|
+
isPending: true;
|
|
661
|
+
isLoading: true;
|
|
662
|
+
isLoadingError: false;
|
|
663
|
+
isRefetchError: false;
|
|
664
|
+
isSuccess: false;
|
|
665
|
+
status: "pending";
|
|
666
|
+
dataUpdatedAt: number;
|
|
667
|
+
errorUpdatedAt: number;
|
|
668
|
+
failureCount: number;
|
|
669
|
+
failureReason: Error | null;
|
|
670
|
+
errorUpdateCount: number;
|
|
671
|
+
isFetched: boolean;
|
|
672
|
+
isFetchedAfterMount: boolean;
|
|
673
|
+
isFetching: boolean;
|
|
674
|
+
isInitialLoading: boolean;
|
|
675
|
+
isPaused: boolean;
|
|
676
|
+
isPlaceholderData: boolean;
|
|
677
|
+
isRefetching: boolean;
|
|
678
|
+
isStale: boolean;
|
|
679
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
680
|
+
fetchStatus: FetchStatus;
|
|
681
|
+
promise: Promise<GetAppResponse>;
|
|
682
|
+
} | {
|
|
683
|
+
app: any;
|
|
684
|
+
data: undefined;
|
|
685
|
+
error: null;
|
|
686
|
+
isError: false;
|
|
687
|
+
isPending: true;
|
|
563
688
|
isLoadingError: false;
|
|
564
|
-
isRefetchError:
|
|
565
|
-
isSuccess:
|
|
689
|
+
isRefetchError: false;
|
|
690
|
+
isSuccess: false;
|
|
691
|
+
status: "pending";
|
|
566
692
|
dataUpdatedAt: number;
|
|
567
693
|
errorUpdatedAt: number;
|
|
568
694
|
failureCount: number;
|
|
@@ -570,19 +696,24 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
570
696
|
errorUpdateCount: number;
|
|
571
697
|
isFetched: boolean;
|
|
572
698
|
isFetchedAfterMount: boolean;
|
|
699
|
+
isFetching: boolean;
|
|
700
|
+
isLoading: boolean;
|
|
573
701
|
isInitialLoading: boolean;
|
|
574
702
|
isPaused: boolean;
|
|
703
|
+
isPlaceholderData: boolean;
|
|
575
704
|
isRefetching: boolean;
|
|
576
705
|
isStale: boolean;
|
|
706
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
577
707
|
fetchStatus: FetchStatus;
|
|
708
|
+
promise: Promise<GetAppResponse>;
|
|
578
709
|
};
|
|
579
710
|
|
|
580
711
|
/**
|
|
581
712
|
* Get list of apps that can be authenticated
|
|
582
713
|
*/
|
|
583
714
|
export declare const useApps: (input?: GetAppsOpts) => {
|
|
584
|
-
apps:
|
|
585
|
-
data:
|
|
715
|
+
apps: any;
|
|
716
|
+
data: any;
|
|
586
717
|
error: Error;
|
|
587
718
|
isError: true;
|
|
588
719
|
isPending: false;
|
|
@@ -604,12 +735,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
604
735
|
isPlaceholderData: boolean;
|
|
605
736
|
isRefetching: boolean;
|
|
606
737
|
isStale: boolean;
|
|
607
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
738
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
608
739
|
fetchStatus: FetchStatus;
|
|
609
|
-
promise: Promise<
|
|
740
|
+
promise: Promise<any>;
|
|
610
741
|
} | {
|
|
611
|
-
apps:
|
|
612
|
-
data:
|
|
742
|
+
apps: any;
|
|
743
|
+
data: any;
|
|
613
744
|
error: null;
|
|
614
745
|
isError: false;
|
|
615
746
|
isPending: false;
|
|
@@ -631,11 +762,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
631
762
|
isPlaceholderData: boolean;
|
|
632
763
|
isRefetching: boolean;
|
|
633
764
|
isStale: boolean;
|
|
634
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
765
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
635
766
|
fetchStatus: FetchStatus;
|
|
636
|
-
promise: Promise<
|
|
767
|
+
promise: Promise<any>;
|
|
637
768
|
} | {
|
|
638
|
-
apps:
|
|
769
|
+
apps: any;
|
|
639
770
|
data: undefined;
|
|
640
771
|
error: Error;
|
|
641
772
|
isError: true;
|
|
@@ -658,11 +789,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
658
789
|
isPlaceholderData: boolean;
|
|
659
790
|
isRefetching: boolean;
|
|
660
791
|
isStale: boolean;
|
|
661
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
792
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
662
793
|
fetchStatus: FetchStatus;
|
|
663
|
-
promise: Promise<
|
|
794
|
+
promise: Promise<any>;
|
|
664
795
|
} | {
|
|
665
|
-
apps:
|
|
796
|
+
apps: any;
|
|
666
797
|
data: undefined;
|
|
667
798
|
error: null;
|
|
668
799
|
isError: false;
|
|
@@ -685,11 +816,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
685
816
|
isPlaceholderData: boolean;
|
|
686
817
|
isRefetching: boolean;
|
|
687
818
|
isStale: boolean;
|
|
688
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
819
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
689
820
|
fetchStatus: FetchStatus;
|
|
690
|
-
promise: Promise<
|
|
821
|
+
promise: Promise<any>;
|
|
691
822
|
} | {
|
|
692
|
-
apps:
|
|
823
|
+
apps: any;
|
|
693
824
|
data: undefined;
|
|
694
825
|
error: null;
|
|
695
826
|
isError: false;
|
|
@@ -712,9 +843,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
712
843
|
isPlaceholderData: boolean;
|
|
713
844
|
isRefetching: boolean;
|
|
714
845
|
isStale: boolean;
|
|
715
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
846
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
716
847
|
fetchStatus: FetchStatus;
|
|
717
|
-
promise: Promise<
|
|
848
|
+
promise: Promise<any>;
|
|
718
849
|
};
|
|
719
850
|
|
|
720
851
|
/**
|
|
@@ -725,7 +856,7 @@ export declare const useComponent: ({ key }: {
|
|
|
725
856
|
}, opts?: {
|
|
726
857
|
useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
|
|
727
858
|
}) => {
|
|
728
|
-
component:
|
|
859
|
+
component: any;
|
|
729
860
|
data: ComponentRequestResponse;
|
|
730
861
|
error: Error;
|
|
731
862
|
isError: true;
|
|
@@ -752,7 +883,7 @@ export declare const useComponent: ({ key }: {
|
|
|
752
883
|
fetchStatus: FetchStatus;
|
|
753
884
|
promise: Promise<ComponentRequestResponse>;
|
|
754
885
|
} | {
|
|
755
|
-
component:
|
|
886
|
+
component: any;
|
|
756
887
|
data: ComponentRequestResponse;
|
|
757
888
|
error: null;
|
|
758
889
|
isError: false;
|
|
@@ -779,7 +910,7 @@ export declare const useComponent: ({ key }: {
|
|
|
779
910
|
fetchStatus: FetchStatus;
|
|
780
911
|
promise: Promise<ComponentRequestResponse>;
|
|
781
912
|
} | {
|
|
782
|
-
component:
|
|
913
|
+
component: any;
|
|
783
914
|
data: undefined;
|
|
784
915
|
error: Error;
|
|
785
916
|
isError: true;
|
|
@@ -806,7 +937,7 @@ export declare const useComponent: ({ key }: {
|
|
|
806
937
|
fetchStatus: FetchStatus;
|
|
807
938
|
promise: Promise<ComponentRequestResponse>;
|
|
808
939
|
} | {
|
|
809
|
-
component:
|
|
940
|
+
component: any;
|
|
810
941
|
data: undefined;
|
|
811
942
|
error: null;
|
|
812
943
|
isError: false;
|
|
@@ -833,7 +964,7 @@ export declare const useComponent: ({ key }: {
|
|
|
833
964
|
fetchStatus: FetchStatus;
|
|
834
965
|
promise: Promise<ComponentRequestResponse>;
|
|
835
966
|
} | {
|
|
836
|
-
component:
|
|
967
|
+
component: any;
|
|
837
968
|
data: undefined;
|
|
838
969
|
error: null;
|
|
839
970
|
isError: false;
|
|
@@ -865,8 +996,8 @@ export declare const useComponent: ({ key }: {
|
|
|
865
996
|
* Get list of components
|
|
866
997
|
*/
|
|
867
998
|
export declare const useComponents: (input?: GetComponentOpts) => {
|
|
868
|
-
components:
|
|
869
|
-
data:
|
|
999
|
+
components: any;
|
|
1000
|
+
data: any;
|
|
870
1001
|
error: Error;
|
|
871
1002
|
isError: true;
|
|
872
1003
|
isPending: false;
|
|
@@ -888,12 +1019,12 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
888
1019
|
isPlaceholderData: boolean;
|
|
889
1020
|
isRefetching: boolean;
|
|
890
1021
|
isStale: boolean;
|
|
891
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1022
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
892
1023
|
fetchStatus: FetchStatus;
|
|
893
|
-
promise: Promise<
|
|
1024
|
+
promise: Promise<any>;
|
|
894
1025
|
} | {
|
|
895
|
-
components:
|
|
896
|
-
data:
|
|
1026
|
+
components: any;
|
|
1027
|
+
data: any;
|
|
897
1028
|
error: null;
|
|
898
1029
|
isError: false;
|
|
899
1030
|
isPending: false;
|
|
@@ -915,11 +1046,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
915
1046
|
isPlaceholderData: boolean;
|
|
916
1047
|
isRefetching: boolean;
|
|
917
1048
|
isStale: boolean;
|
|
918
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1049
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
919
1050
|
fetchStatus: FetchStatus;
|
|
920
|
-
promise: Promise<
|
|
1051
|
+
promise: Promise<any>;
|
|
921
1052
|
} | {
|
|
922
|
-
components:
|
|
1053
|
+
components: any;
|
|
923
1054
|
data: undefined;
|
|
924
1055
|
error: Error;
|
|
925
1056
|
isError: true;
|
|
@@ -942,11 +1073,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
942
1073
|
isPlaceholderData: boolean;
|
|
943
1074
|
isRefetching: boolean;
|
|
944
1075
|
isStale: boolean;
|
|
945
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1076
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
946
1077
|
fetchStatus: FetchStatus;
|
|
947
|
-
promise: Promise<
|
|
1078
|
+
promise: Promise<any>;
|
|
948
1079
|
} | {
|
|
949
|
-
components:
|
|
1080
|
+
components: any;
|
|
950
1081
|
data: undefined;
|
|
951
1082
|
error: null;
|
|
952
1083
|
isError: false;
|
|
@@ -969,11 +1100,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
969
1100
|
isPlaceholderData: boolean;
|
|
970
1101
|
isRefetching: boolean;
|
|
971
1102
|
isStale: boolean;
|
|
972
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1103
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
973
1104
|
fetchStatus: FetchStatus;
|
|
974
|
-
promise: Promise<
|
|
1105
|
+
promise: Promise<any>;
|
|
975
1106
|
} | {
|
|
976
|
-
components:
|
|
1107
|
+
components: any;
|
|
977
1108
|
data: undefined;
|
|
978
1109
|
error: null;
|
|
979
1110
|
isError: false;
|
|
@@ -996,9 +1127,9 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
996
1127
|
isPlaceholderData: boolean;
|
|
997
1128
|
isRefetching: boolean;
|
|
998
1129
|
isStale: boolean;
|
|
999
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1130
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1000
1131
|
fetchStatus: FetchStatus;
|
|
1001
|
-
promise: Promise<
|
|
1132
|
+
promise: Promise<any>;
|
|
1002
1133
|
};
|
|
1003
1134
|
|
|
1004
1135
|
export declare function useCustomize(): Customization;
|
|
@@ -1007,6 +1138,6 @@ export declare const useFormContext: () => FormContext<any>;
|
|
|
1007
1138
|
|
|
1008
1139
|
export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
|
|
1009
1140
|
|
|
1010
|
-
export declare const useFrontendClient: () =>
|
|
1141
|
+
export declare const useFrontendClient: () => any;
|
|
1011
1142
|
|
|
1012
1143
|
export { }
|