@pipedream/connect-react 1.0.0-preview.1 → 1.0.0-preview.11
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/connect-react.es.js +4785 -5651
- package/dist/connect-react.umd.d.ts +90 -92
- package/dist/connect-react.umd.js +15 -29
- package/package.json +4 -3
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { Account } from '@pipedream/sdk';
|
|
2
1
|
import { AccountsRequestResponse } from '@pipedream/sdk';
|
|
3
|
-
import { AppInfo } from '@pipedream/sdk';
|
|
4
|
-
import { AppRequestResponse } from '@pipedream/sdk';
|
|
5
2
|
import { AppResponse } from '@pipedream/sdk';
|
|
6
|
-
import { AppResponse as AppResponse_2 } from '@pipedream/sdk/browser';
|
|
7
|
-
import { AppsRequestResponse } from '@pipedream/sdk/browser';
|
|
8
3
|
import { BrowserClient } from '@pipedream/sdk/browser';
|
|
9
4
|
import { ClassNamesConfig } from 'react-select';
|
|
10
5
|
import { Component } from 'react';
|
|
11
6
|
import { ComponentProps } from 'react';
|
|
12
7
|
import { ComponentRequestResponse } from '@pipedream/sdk';
|
|
13
|
-
import { ComponentsRequestResponse } from '@pipedream/sdk/browser';
|
|
14
8
|
import { ConfigurableProp } from '@pipedream/sdk';
|
|
15
9
|
import { ConfigurablePropAlert } from '@pipedream/sdk';
|
|
16
10
|
import { ConfigurablePropApp } from '@pipedream/sdk';
|
|
@@ -19,8 +13,9 @@ import { ConfiguredProps } from '@pipedream/sdk';
|
|
|
19
13
|
import { Context } from 'react';
|
|
20
14
|
import { CSSProperties } from 'react';
|
|
21
15
|
import { FC } from 'react';
|
|
22
|
-
import { FetchStatus } from '@tanstack/
|
|
16
|
+
import { FetchStatus } from '@tanstack/query-core';
|
|
23
17
|
import { GetAccountOpts } from '@pipedream/sdk';
|
|
18
|
+
import { GetAppResponse } from '@pipedream/sdk';
|
|
24
19
|
import { GetAppsOpts } from '@pipedream/sdk';
|
|
25
20
|
import { GetComponentOpts } from '@pipedream/sdk';
|
|
26
21
|
import { GroupBase } from 'react-select';
|
|
@@ -28,15 +23,14 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
28
23
|
import { JSXElementConstructor } from 'react';
|
|
29
24
|
import { Props } from 'react-select';
|
|
30
25
|
import { PropValue } from '@pipedream/sdk';
|
|
31
|
-
import { QueryObserverResult } from '@tanstack/
|
|
26
|
+
import { QueryObserverResult } from '@tanstack/query-core';
|
|
32
27
|
import { ReactNode } from 'react';
|
|
33
|
-
import { RefetchOptions } from '@tanstack/
|
|
28
|
+
import { RefetchOptions } from '@tanstack/query-core';
|
|
34
29
|
import { SelectComponentsConfig } from 'react-select';
|
|
35
30
|
import { StylesConfig } from 'react-select';
|
|
36
31
|
import { Theme as Theme_2 } from 'react-select';
|
|
37
32
|
import { UseQueryOptions } 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
|
|
|
@@ -71,26 +65,26 @@ export declare type Colors = {
|
|
|
71
65
|
|
|
72
66
|
export declare function ComponentForm<T extends ConfigurableProps>(props: ComponentFormProps<T>): JSX_2.Element;
|
|
73
67
|
|
|
74
|
-
export declare function ComponentFormContainer(props: ComponentFormContainerProps): JSX_2.Element;
|
|
68
|
+
export declare function ComponentFormContainer<T extends ConfigurableProps>(props: ComponentFormContainerProps<T>): JSX_2.Element;
|
|
75
69
|
|
|
76
|
-
declare type ComponentFormContainerProps = Omit<ComponentFormProps
|
|
70
|
+
declare type ComponentFormContainerProps<T extends ConfigurableProps> = Omit<ComponentFormProps<T>, "component"> & {
|
|
77
71
|
componentKey: string;
|
|
78
72
|
};
|
|
79
73
|
|
|
80
|
-
declare type ComponentFormProps<T extends ConfigurableProps
|
|
74
|
+
declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps<T>> = {
|
|
81
75
|
userId: string;
|
|
82
76
|
component: V1Component<T>;
|
|
83
|
-
configuredProps?:
|
|
77
|
+
configuredProps?: U;
|
|
84
78
|
disableQueryDisabling?: boolean;
|
|
85
79
|
propNames?: string[];
|
|
86
80
|
onSubmit?: (ctx: FormContext<T>) => void | Promise<void>;
|
|
87
|
-
onUpdateConfiguredProps?: (v:
|
|
81
|
+
onUpdateConfiguredProps?: (v: U) => void;
|
|
88
82
|
hideOptionalProps?: boolean;
|
|
89
83
|
};
|
|
90
84
|
|
|
91
85
|
export declare type ComponentLibrary = typeof defaultComponents;
|
|
92
86
|
|
|
93
|
-
export declare function Control<T extends ConfigurableProp>(props: ControlProps<T>): JSX_2.Element;
|
|
87
|
+
export declare function Control<T extends ConfigurableProps, U extends ConfigurableProp>(props: ControlProps<T, U>): JSX_2.Element;
|
|
94
88
|
|
|
95
89
|
export declare function ControlAny(): JSX_2.Element;
|
|
96
90
|
|
|
@@ -104,9 +98,9 @@ export declare function ControlBoolean(): JSX_2.Element;
|
|
|
104
98
|
|
|
105
99
|
export declare function ControlInput(): JSX_2.Element;
|
|
106
100
|
|
|
107
|
-
declare type ControlProps<T extends ConfigurableProp> = {
|
|
108
|
-
field: FormFieldContext<
|
|
109
|
-
form: FormContext
|
|
101
|
+
declare type ControlProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
102
|
+
field: FormFieldContext<U>;
|
|
103
|
+
form: FormContext<T>;
|
|
110
104
|
};
|
|
111
105
|
|
|
112
106
|
export declare function ControlSelect<T>({ isCreatable, options, selectProps, }: ControlSelectProps<T>): JSX_2.Element;
|
|
@@ -219,17 +213,17 @@ export declare const defaultComponents: {
|
|
|
219
213
|
|
|
220
214
|
export declare const defaultTheme: Theme;
|
|
221
215
|
|
|
222
|
-
export declare function Description<T extends ConfigurableProp>(props: DescriptionProps<T>): JSX_2.Element | null;
|
|
216
|
+
export declare function Description<T extends ConfigurableProps, U extends ConfigurableProp>(props: DescriptionProps<T, U>): JSX_2.Element | null;
|
|
223
217
|
|
|
224
|
-
declare type DescriptionProps<T extends ConfigurableProp> = {
|
|
218
|
+
declare type DescriptionProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
225
219
|
markdown?: string;
|
|
226
|
-
field: FormFieldContext<
|
|
227
|
-
form: FormContext
|
|
220
|
+
field: FormFieldContext<U>;
|
|
221
|
+
form: FormContext<T>;
|
|
228
222
|
};
|
|
229
223
|
|
|
230
224
|
export declare type DynamicProps<T extends ConfigurableProps> = {
|
|
231
225
|
id: string;
|
|
232
|
-
|
|
226
|
+
configurableProps: T;
|
|
233
227
|
};
|
|
234
228
|
|
|
235
229
|
export declare class ErrorBoundary extends Component<Props_2> {
|
|
@@ -268,12 +262,16 @@ export declare type FormContext<T extends ConfigurableProps> = {
|
|
|
268
262
|
configuredProps: ConfiguredProps<T>;
|
|
269
263
|
dynamicProps?: DynamicProps<T>;
|
|
270
264
|
dynamicPropsQueryIsFetching?: boolean;
|
|
265
|
+
errors: Record<string, string[]>;
|
|
266
|
+
fields: Record<string, FormFieldContext<ConfigurableProp>>;
|
|
271
267
|
id: string;
|
|
272
268
|
isValid: boolean;
|
|
273
269
|
optionalPropIsEnabled: (prop: ConfigurableProp) => boolean;
|
|
274
270
|
optionalPropSetEnabled: (prop: ConfigurableProp, enabled: boolean) => void;
|
|
275
271
|
props: ComponentFormProps<T>;
|
|
272
|
+
propsNeedConfiguring: string[];
|
|
276
273
|
queryDisabledIdx?: number;
|
|
274
|
+
registerField: <T extends ConfigurableProp>(field: FormFieldContext<T>) => void;
|
|
277
275
|
setConfiguredProp: (idx: number, value: unknown) => void;
|
|
278
276
|
setSubmitting: (submitting: boolean) => void;
|
|
279
277
|
submitting: boolean;
|
|
@@ -302,7 +300,7 @@ export declare type FormFieldContext<T extends ConfigurableProp> = {
|
|
|
302
300
|
export declare const FormFieldContext: Context<FormFieldContext<any> | undefined>;
|
|
303
301
|
|
|
304
302
|
export declare type FormFieldContextExtra<T extends ConfigurableProp> = T extends ConfigurablePropApp ? {
|
|
305
|
-
app?:
|
|
303
|
+
app?: AppResponse;
|
|
306
304
|
} : Record<string, never>;
|
|
307
305
|
|
|
308
306
|
export declare const FrontendClientProvider: FC<FrontendClientProviderProps>;
|
|
@@ -318,12 +316,12 @@ export declare function InternalComponentForm(): JSX_2.Element;
|
|
|
318
316
|
|
|
319
317
|
export declare function InternalField<T extends ConfigurableProp>({ prop, idx, }: FieldInternalProps<T>): JSX_2.Element;
|
|
320
318
|
|
|
321
|
-
export declare function Label<T extends ConfigurableProp>(props: LabelProps<T>): JSX_2.Element;
|
|
319
|
+
export declare function Label<T extends ConfigurableProps, U extends ConfigurableProp>(props: LabelProps<T, U>): JSX_2.Element;
|
|
322
320
|
|
|
323
|
-
declare type LabelProps<T extends ConfigurableProp> = {
|
|
321
|
+
declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
324
322
|
text: string;
|
|
325
|
-
field: FormFieldContext<
|
|
326
|
-
form: FormContext
|
|
323
|
+
field: FormFieldContext<U>;
|
|
324
|
+
form: FormContext<T>;
|
|
327
325
|
};
|
|
328
326
|
|
|
329
327
|
export declare function mergeTheme(target: Theme, ...sources: (PartialTheme | undefined)[]): Theme;
|
|
@@ -409,7 +407,7 @@ export declare const unstyledTheme: Theme;
|
|
|
409
407
|
export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
410
408
|
useQueryOpts?: Omit<UseQueryOptions<AccountsRequestResponse>, "queryKey" | "queryFn">;
|
|
411
409
|
}) => {
|
|
412
|
-
accounts:
|
|
410
|
+
accounts: any;
|
|
413
411
|
data: AccountsRequestResponse;
|
|
414
412
|
error: Error;
|
|
415
413
|
isError: true;
|
|
@@ -436,7 +434,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
436
434
|
fetchStatus: FetchStatus;
|
|
437
435
|
promise: Promise<AccountsRequestResponse>;
|
|
438
436
|
} | {
|
|
439
|
-
accounts:
|
|
437
|
+
accounts: any;
|
|
440
438
|
data: AccountsRequestResponse;
|
|
441
439
|
error: null;
|
|
442
440
|
isError: false;
|
|
@@ -463,7 +461,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
463
461
|
fetchStatus: FetchStatus;
|
|
464
462
|
promise: Promise<AccountsRequestResponse>;
|
|
465
463
|
} | {
|
|
466
|
-
accounts:
|
|
464
|
+
accounts: any;
|
|
467
465
|
data: undefined;
|
|
468
466
|
error: Error;
|
|
469
467
|
isError: true;
|
|
@@ -490,7 +488,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
490
488
|
fetchStatus: FetchStatus;
|
|
491
489
|
promise: Promise<AccountsRequestResponse>;
|
|
492
490
|
} | {
|
|
493
|
-
accounts:
|
|
491
|
+
accounts: any;
|
|
494
492
|
data: undefined;
|
|
495
493
|
error: null;
|
|
496
494
|
isError: false;
|
|
@@ -517,7 +515,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
517
515
|
fetchStatus: FetchStatus;
|
|
518
516
|
promise: Promise<AccountsRequestResponse>;
|
|
519
517
|
} | {
|
|
520
|
-
accounts:
|
|
518
|
+
accounts: any;
|
|
521
519
|
data: undefined;
|
|
522
520
|
error: null;
|
|
523
521
|
isError: false;
|
|
@@ -549,10 +547,10 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
549
547
|
* Get details about an app
|
|
550
548
|
*/
|
|
551
549
|
export declare const useApp: (slug: string, opts?: {
|
|
552
|
-
useQueryOpts?: Omit<UseQueryOptions<
|
|
550
|
+
useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn">;
|
|
553
551
|
}) => {
|
|
554
|
-
app:
|
|
555
|
-
data:
|
|
552
|
+
app: any;
|
|
553
|
+
data: GetAppResponse;
|
|
556
554
|
error: Error;
|
|
557
555
|
isError: true;
|
|
558
556
|
isPending: false;
|
|
@@ -574,12 +572,12 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
574
572
|
isPlaceholderData: boolean;
|
|
575
573
|
isRefetching: boolean;
|
|
576
574
|
isStale: boolean;
|
|
577
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
575
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
578
576
|
fetchStatus: FetchStatus;
|
|
579
|
-
promise: Promise<
|
|
577
|
+
promise: Promise<GetAppResponse>;
|
|
580
578
|
} | {
|
|
581
|
-
app:
|
|
582
|
-
data:
|
|
579
|
+
app: any;
|
|
580
|
+
data: GetAppResponse;
|
|
583
581
|
error: null;
|
|
584
582
|
isError: false;
|
|
585
583
|
isPending: false;
|
|
@@ -601,11 +599,11 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
601
599
|
isPlaceholderData: boolean;
|
|
602
600
|
isRefetching: boolean;
|
|
603
601
|
isStale: boolean;
|
|
604
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
602
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
605
603
|
fetchStatus: FetchStatus;
|
|
606
|
-
promise: Promise<
|
|
604
|
+
promise: Promise<GetAppResponse>;
|
|
607
605
|
} | {
|
|
608
|
-
app:
|
|
606
|
+
app: any;
|
|
609
607
|
data: undefined;
|
|
610
608
|
error: Error;
|
|
611
609
|
isError: true;
|
|
@@ -628,11 +626,11 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
628
626
|
isPlaceholderData: boolean;
|
|
629
627
|
isRefetching: boolean;
|
|
630
628
|
isStale: boolean;
|
|
631
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
629
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
632
630
|
fetchStatus: FetchStatus;
|
|
633
|
-
promise: Promise<
|
|
631
|
+
promise: Promise<GetAppResponse>;
|
|
634
632
|
} | {
|
|
635
|
-
app:
|
|
633
|
+
app: any;
|
|
636
634
|
data: undefined;
|
|
637
635
|
error: null;
|
|
638
636
|
isError: false;
|
|
@@ -655,11 +653,11 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
655
653
|
isPlaceholderData: boolean;
|
|
656
654
|
isRefetching: boolean;
|
|
657
655
|
isStale: boolean;
|
|
658
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
656
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
659
657
|
fetchStatus: FetchStatus;
|
|
660
|
-
promise: Promise<
|
|
658
|
+
promise: Promise<GetAppResponse>;
|
|
661
659
|
} | {
|
|
662
|
-
app:
|
|
660
|
+
app: any;
|
|
663
661
|
data: undefined;
|
|
664
662
|
error: null;
|
|
665
663
|
isError: false;
|
|
@@ -682,17 +680,17 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
682
680
|
isPlaceholderData: boolean;
|
|
683
681
|
isRefetching: boolean;
|
|
684
682
|
isStale: boolean;
|
|
685
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
683
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppResponse, Error>>;
|
|
686
684
|
fetchStatus: FetchStatus;
|
|
687
|
-
promise: Promise<
|
|
685
|
+
promise: Promise<GetAppResponse>;
|
|
688
686
|
};
|
|
689
687
|
|
|
690
688
|
/**
|
|
691
689
|
* Get list of apps that can be authenticated
|
|
692
690
|
*/
|
|
693
691
|
export declare const useApps: (input?: GetAppsOpts) => {
|
|
694
|
-
apps:
|
|
695
|
-
data:
|
|
692
|
+
apps: any;
|
|
693
|
+
data: any;
|
|
696
694
|
error: Error;
|
|
697
695
|
isError: true;
|
|
698
696
|
isPending: false;
|
|
@@ -714,12 +712,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
714
712
|
isPlaceholderData: boolean;
|
|
715
713
|
isRefetching: boolean;
|
|
716
714
|
isStale: boolean;
|
|
717
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
715
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
718
716
|
fetchStatus: FetchStatus;
|
|
719
|
-
promise: Promise<
|
|
717
|
+
promise: Promise<any>;
|
|
720
718
|
} | {
|
|
721
|
-
apps:
|
|
722
|
-
data:
|
|
719
|
+
apps: any;
|
|
720
|
+
data: any;
|
|
723
721
|
error: null;
|
|
724
722
|
isError: false;
|
|
725
723
|
isPending: false;
|
|
@@ -741,11 +739,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
741
739
|
isPlaceholderData: boolean;
|
|
742
740
|
isRefetching: boolean;
|
|
743
741
|
isStale: boolean;
|
|
744
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
742
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
745
743
|
fetchStatus: FetchStatus;
|
|
746
|
-
promise: Promise<
|
|
744
|
+
promise: Promise<any>;
|
|
747
745
|
} | {
|
|
748
|
-
apps:
|
|
746
|
+
apps: any;
|
|
749
747
|
data: undefined;
|
|
750
748
|
error: Error;
|
|
751
749
|
isError: true;
|
|
@@ -768,11 +766,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
768
766
|
isPlaceholderData: boolean;
|
|
769
767
|
isRefetching: boolean;
|
|
770
768
|
isStale: boolean;
|
|
771
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
769
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
772
770
|
fetchStatus: FetchStatus;
|
|
773
|
-
promise: Promise<
|
|
771
|
+
promise: Promise<any>;
|
|
774
772
|
} | {
|
|
775
|
-
apps:
|
|
773
|
+
apps: any;
|
|
776
774
|
data: undefined;
|
|
777
775
|
error: null;
|
|
778
776
|
isError: false;
|
|
@@ -795,11 +793,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
795
793
|
isPlaceholderData: boolean;
|
|
796
794
|
isRefetching: boolean;
|
|
797
795
|
isStale: boolean;
|
|
798
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
796
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
799
797
|
fetchStatus: FetchStatus;
|
|
800
|
-
promise: Promise<
|
|
798
|
+
promise: Promise<any>;
|
|
801
799
|
} | {
|
|
802
|
-
apps:
|
|
800
|
+
apps: any;
|
|
803
801
|
data: undefined;
|
|
804
802
|
error: null;
|
|
805
803
|
isError: false;
|
|
@@ -822,9 +820,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
822
820
|
isPlaceholderData: boolean;
|
|
823
821
|
isRefetching: boolean;
|
|
824
822
|
isStale: boolean;
|
|
825
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
823
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
826
824
|
fetchStatus: FetchStatus;
|
|
827
|
-
promise: Promise<
|
|
825
|
+
promise: Promise<any>;
|
|
828
826
|
};
|
|
829
827
|
|
|
830
828
|
/**
|
|
@@ -835,7 +833,7 @@ export declare const useComponent: ({ key }: {
|
|
|
835
833
|
}, opts?: {
|
|
836
834
|
useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
|
|
837
835
|
}) => {
|
|
838
|
-
component:
|
|
836
|
+
component: any;
|
|
839
837
|
data: ComponentRequestResponse;
|
|
840
838
|
error: Error;
|
|
841
839
|
isError: true;
|
|
@@ -862,7 +860,7 @@ export declare const useComponent: ({ key }: {
|
|
|
862
860
|
fetchStatus: FetchStatus;
|
|
863
861
|
promise: Promise<ComponentRequestResponse>;
|
|
864
862
|
} | {
|
|
865
|
-
component:
|
|
863
|
+
component: any;
|
|
866
864
|
data: ComponentRequestResponse;
|
|
867
865
|
error: null;
|
|
868
866
|
isError: false;
|
|
@@ -889,7 +887,7 @@ export declare const useComponent: ({ key }: {
|
|
|
889
887
|
fetchStatus: FetchStatus;
|
|
890
888
|
promise: Promise<ComponentRequestResponse>;
|
|
891
889
|
} | {
|
|
892
|
-
component:
|
|
890
|
+
component: any;
|
|
893
891
|
data: undefined;
|
|
894
892
|
error: Error;
|
|
895
893
|
isError: true;
|
|
@@ -916,7 +914,7 @@ export declare const useComponent: ({ key }: {
|
|
|
916
914
|
fetchStatus: FetchStatus;
|
|
917
915
|
promise: Promise<ComponentRequestResponse>;
|
|
918
916
|
} | {
|
|
919
|
-
component:
|
|
917
|
+
component: any;
|
|
920
918
|
data: undefined;
|
|
921
919
|
error: null;
|
|
922
920
|
isError: false;
|
|
@@ -943,7 +941,7 @@ export declare const useComponent: ({ key }: {
|
|
|
943
941
|
fetchStatus: FetchStatus;
|
|
944
942
|
promise: Promise<ComponentRequestResponse>;
|
|
945
943
|
} | {
|
|
946
|
-
component:
|
|
944
|
+
component: any;
|
|
947
945
|
data: undefined;
|
|
948
946
|
error: null;
|
|
949
947
|
isError: false;
|
|
@@ -975,8 +973,8 @@ export declare const useComponent: ({ key }: {
|
|
|
975
973
|
* Get list of components
|
|
976
974
|
*/
|
|
977
975
|
export declare const useComponents: (input?: GetComponentOpts) => {
|
|
978
|
-
components:
|
|
979
|
-
data:
|
|
976
|
+
components: any;
|
|
977
|
+
data: any;
|
|
980
978
|
error: Error;
|
|
981
979
|
isError: true;
|
|
982
980
|
isPending: false;
|
|
@@ -998,12 +996,12 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
998
996
|
isPlaceholderData: boolean;
|
|
999
997
|
isRefetching: boolean;
|
|
1000
998
|
isStale: boolean;
|
|
1001
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
999
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1002
1000
|
fetchStatus: FetchStatus;
|
|
1003
|
-
promise: Promise<
|
|
1001
|
+
promise: Promise<any>;
|
|
1004
1002
|
} | {
|
|
1005
|
-
components:
|
|
1006
|
-
data:
|
|
1003
|
+
components: any;
|
|
1004
|
+
data: any;
|
|
1007
1005
|
error: null;
|
|
1008
1006
|
isError: false;
|
|
1009
1007
|
isPending: false;
|
|
@@ -1025,11 +1023,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1025
1023
|
isPlaceholderData: boolean;
|
|
1026
1024
|
isRefetching: boolean;
|
|
1027
1025
|
isStale: boolean;
|
|
1028
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1026
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1029
1027
|
fetchStatus: FetchStatus;
|
|
1030
|
-
promise: Promise<
|
|
1028
|
+
promise: Promise<any>;
|
|
1031
1029
|
} | {
|
|
1032
|
-
components:
|
|
1030
|
+
components: any;
|
|
1033
1031
|
data: undefined;
|
|
1034
1032
|
error: Error;
|
|
1035
1033
|
isError: true;
|
|
@@ -1052,11 +1050,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1052
1050
|
isPlaceholderData: boolean;
|
|
1053
1051
|
isRefetching: boolean;
|
|
1054
1052
|
isStale: boolean;
|
|
1055
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1053
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1056
1054
|
fetchStatus: FetchStatus;
|
|
1057
|
-
promise: Promise<
|
|
1055
|
+
promise: Promise<any>;
|
|
1058
1056
|
} | {
|
|
1059
|
-
components:
|
|
1057
|
+
components: any;
|
|
1060
1058
|
data: undefined;
|
|
1061
1059
|
error: null;
|
|
1062
1060
|
isError: false;
|
|
@@ -1079,11 +1077,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1079
1077
|
isPlaceholderData: boolean;
|
|
1080
1078
|
isRefetching: boolean;
|
|
1081
1079
|
isStale: boolean;
|
|
1082
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1080
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1083
1081
|
fetchStatus: FetchStatus;
|
|
1084
|
-
promise: Promise<
|
|
1082
|
+
promise: Promise<any>;
|
|
1085
1083
|
} | {
|
|
1086
|
-
components:
|
|
1084
|
+
components: any;
|
|
1087
1085
|
data: undefined;
|
|
1088
1086
|
error: null;
|
|
1089
1087
|
isError: false;
|
|
@@ -1106,9 +1104,9 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1106
1104
|
isPlaceholderData: boolean;
|
|
1107
1105
|
isRefetching: boolean;
|
|
1108
1106
|
isStale: boolean;
|
|
1109
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1107
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1110
1108
|
fetchStatus: FetchStatus;
|
|
1111
|
-
promise: Promise<
|
|
1109
|
+
promise: Promise<any>;
|
|
1112
1110
|
};
|
|
1113
1111
|
|
|
1114
1112
|
export declare function useCustomize(): Customization;
|
|
@@ -1117,6 +1115,6 @@ export declare const useFormContext: () => FormContext<any>;
|
|
|
1117
1115
|
|
|
1118
1116
|
export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
|
|
1119
1117
|
|
|
1120
|
-
export declare const useFrontendClient: () =>
|
|
1118
|
+
export declare const useFrontendClient: () => any;
|
|
1121
1119
|
|
|
1122
1120
|
export { }
|