@pipedream/connect-react 1.0.0-preview.1 → 1.0.0-preview.10
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 +4700 -5637
- package/dist/connect-react.umd.d.ts +80 -78
- package/dist/connect-react.umd.js +15 -29
- package/package.json +4 -3
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { Account } from '@pipedream/sdk';
|
|
2
1
|
import { AccountsRequestResponse } from '@pipedream/sdk';
|
|
3
|
-
import { AppInfo } from '@pipedream/sdk';
|
|
4
2
|
import { AppRequestResponse } from '@pipedream/sdk';
|
|
5
3
|
import { AppResponse } from '@pipedream/sdk';
|
|
6
|
-
import { AppResponse as AppResponse_2 } from '@pipedream/sdk/browser';
|
|
7
|
-
import { AppsRequestResponse } from '@pipedream/sdk/browser';
|
|
8
4
|
import { BrowserClient } from '@pipedream/sdk/browser';
|
|
9
5
|
import { ClassNamesConfig } from 'react-select';
|
|
10
6
|
import { Component } from 'react';
|
|
11
7
|
import { ComponentProps } from 'react';
|
|
12
8
|
import { ComponentRequestResponse } from '@pipedream/sdk';
|
|
13
|
-
import { ComponentsRequestResponse } from '@pipedream/sdk/browser';
|
|
14
9
|
import { ConfigurableProp } from '@pipedream/sdk';
|
|
15
10
|
import { ConfigurablePropAlert } from '@pipedream/sdk';
|
|
16
11
|
import { ConfigurablePropApp } from '@pipedream/sdk';
|
|
@@ -19,7 +14,7 @@ import { ConfiguredProps } from '@pipedream/sdk';
|
|
|
19
14
|
import { Context } from 'react';
|
|
20
15
|
import { CSSProperties } from 'react';
|
|
21
16
|
import { FC } from 'react';
|
|
22
|
-
import { FetchStatus } from '@tanstack/
|
|
17
|
+
import { FetchStatus } from '@tanstack/query-core';
|
|
23
18
|
import { GetAccountOpts } from '@pipedream/sdk';
|
|
24
19
|
import { GetAppsOpts } from '@pipedream/sdk';
|
|
25
20
|
import { GetComponentOpts } from '@pipedream/sdk';
|
|
@@ -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
|
|
|
@@ -44,6 +38,11 @@ declare type AlertProps = {
|
|
|
44
38
|
prop: ConfigurablePropAlert;
|
|
45
39
|
};
|
|
46
40
|
|
|
41
|
+
export declare function appPropError(opts: {
|
|
42
|
+
value: any;
|
|
43
|
+
app: AppResponse | undefined;
|
|
44
|
+
}): string | undefined;
|
|
45
|
+
|
|
47
46
|
export declare type BaseReactSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = {
|
|
48
47
|
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
49
48
|
styles?: StylesConfig;
|
|
@@ -71,26 +70,26 @@ export declare type Colors = {
|
|
|
71
70
|
|
|
72
71
|
export declare function ComponentForm<T extends ConfigurableProps>(props: ComponentFormProps<T>): JSX_2.Element;
|
|
73
72
|
|
|
74
|
-
export declare function ComponentFormContainer(props: ComponentFormContainerProps): JSX_2.Element;
|
|
73
|
+
export declare function ComponentFormContainer<T extends ConfigurableProps>(props: ComponentFormContainerProps<T>): JSX_2.Element;
|
|
75
74
|
|
|
76
|
-
declare type ComponentFormContainerProps = Omit<ComponentFormProps
|
|
75
|
+
declare type ComponentFormContainerProps<T extends ConfigurableProps> = Omit<ComponentFormProps<T>, "component"> & {
|
|
77
76
|
componentKey: string;
|
|
78
77
|
};
|
|
79
78
|
|
|
80
|
-
declare type ComponentFormProps<T extends ConfigurableProps
|
|
79
|
+
declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps<T>> = {
|
|
81
80
|
userId: string;
|
|
82
81
|
component: V1Component<T>;
|
|
83
|
-
configuredProps?:
|
|
82
|
+
configuredProps?: U;
|
|
84
83
|
disableQueryDisabling?: boolean;
|
|
85
84
|
propNames?: string[];
|
|
86
85
|
onSubmit?: (ctx: FormContext<T>) => void | Promise<void>;
|
|
87
|
-
onUpdateConfiguredProps?: (v:
|
|
86
|
+
onUpdateConfiguredProps?: (v: U) => void;
|
|
88
87
|
hideOptionalProps?: boolean;
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
export declare type ComponentLibrary = typeof defaultComponents;
|
|
92
91
|
|
|
93
|
-
export declare function Control<T extends ConfigurableProp>(props: ControlProps<T>): JSX_2.Element;
|
|
92
|
+
export declare function Control<T extends ConfigurableProps, U extends ConfigurableProp>(props: ControlProps<T, U>): JSX_2.Element;
|
|
94
93
|
|
|
95
94
|
export declare function ControlAny(): JSX_2.Element;
|
|
96
95
|
|
|
@@ -104,9 +103,9 @@ export declare function ControlBoolean(): JSX_2.Element;
|
|
|
104
103
|
|
|
105
104
|
export declare function ControlInput(): JSX_2.Element;
|
|
106
105
|
|
|
107
|
-
declare type ControlProps<T extends ConfigurableProp> = {
|
|
108
|
-
field: FormFieldContext<
|
|
109
|
-
form: FormContext
|
|
106
|
+
declare type ControlProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
107
|
+
field: FormFieldContext<U>;
|
|
108
|
+
form: FormContext<T>;
|
|
110
109
|
};
|
|
111
110
|
|
|
112
111
|
export declare function ControlSelect<T>({ isCreatable, options, selectProps, }: ControlSelectProps<T>): JSX_2.Element;
|
|
@@ -219,17 +218,17 @@ export declare const defaultComponents: {
|
|
|
219
218
|
|
|
220
219
|
export declare const defaultTheme: Theme;
|
|
221
220
|
|
|
222
|
-
export declare function Description<T extends ConfigurableProp>(props: DescriptionProps<T>): JSX_2.Element | null;
|
|
221
|
+
export declare function Description<T extends ConfigurableProps, U extends ConfigurableProp>(props: DescriptionProps<T, U>): JSX_2.Element | null;
|
|
223
222
|
|
|
224
|
-
declare type DescriptionProps<T extends ConfigurableProp> = {
|
|
223
|
+
declare type DescriptionProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
225
224
|
markdown?: string;
|
|
226
|
-
field: FormFieldContext<
|
|
227
|
-
form: FormContext
|
|
225
|
+
field: FormFieldContext<U>;
|
|
226
|
+
form: FormContext<T>;
|
|
228
227
|
};
|
|
229
228
|
|
|
230
229
|
export declare type DynamicProps<T extends ConfigurableProps> = {
|
|
231
230
|
id: string;
|
|
232
|
-
|
|
231
|
+
configurableProps: T;
|
|
233
232
|
};
|
|
234
233
|
|
|
235
234
|
export declare class ErrorBoundary extends Component<Props_2> {
|
|
@@ -268,12 +267,15 @@ export declare type FormContext<T extends ConfigurableProps> = {
|
|
|
268
267
|
configuredProps: ConfiguredProps<T>;
|
|
269
268
|
dynamicProps?: DynamicProps<T>;
|
|
270
269
|
dynamicPropsQueryIsFetching?: boolean;
|
|
270
|
+
fields: Record<string, FormFieldContext<ConfigurableProp>>;
|
|
271
271
|
id: string;
|
|
272
272
|
isValid: boolean;
|
|
273
273
|
optionalPropIsEnabled: (prop: ConfigurableProp) => boolean;
|
|
274
274
|
optionalPropSetEnabled: (prop: ConfigurableProp, enabled: boolean) => void;
|
|
275
275
|
props: ComponentFormProps<T>;
|
|
276
|
+
propsNeedConfiguring: string[];
|
|
276
277
|
queryDisabledIdx?: number;
|
|
278
|
+
registerField: <T extends ConfigurableProp>(field: FormFieldContext<T>) => void;
|
|
277
279
|
setConfiguredProp: (idx: number, value: unknown) => void;
|
|
278
280
|
setSubmitting: (submitting: boolean) => void;
|
|
279
281
|
submitting: boolean;
|
|
@@ -302,7 +304,7 @@ export declare type FormFieldContext<T extends ConfigurableProp> = {
|
|
|
302
304
|
export declare const FormFieldContext: Context<FormFieldContext<any> | undefined>;
|
|
303
305
|
|
|
304
306
|
export declare type FormFieldContextExtra<T extends ConfigurableProp> = T extends ConfigurablePropApp ? {
|
|
305
|
-
app?:
|
|
307
|
+
app?: AppResponse;
|
|
306
308
|
} : Record<string, never>;
|
|
307
309
|
|
|
308
310
|
export declare const FrontendClientProvider: FC<FrontendClientProviderProps>;
|
|
@@ -318,12 +320,12 @@ export declare function InternalComponentForm(): JSX_2.Element;
|
|
|
318
320
|
|
|
319
321
|
export declare function InternalField<T extends ConfigurableProp>({ prop, idx, }: FieldInternalProps<T>): JSX_2.Element;
|
|
320
322
|
|
|
321
|
-
export declare function Label<T extends ConfigurableProp>(props: LabelProps<T>): JSX_2.Element;
|
|
323
|
+
export declare function Label<T extends ConfigurableProps, U extends ConfigurableProp>(props: LabelProps<T, U>): JSX_2.Element;
|
|
322
324
|
|
|
323
|
-
declare type LabelProps<T extends ConfigurableProp> = {
|
|
325
|
+
declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp> = {
|
|
324
326
|
text: string;
|
|
325
|
-
field: FormFieldContext<
|
|
326
|
-
form: FormContext
|
|
327
|
+
field: FormFieldContext<U>;
|
|
328
|
+
form: FormContext<T>;
|
|
327
329
|
};
|
|
328
330
|
|
|
329
331
|
export declare function mergeTheme(target: Theme, ...sources: (PartialTheme | undefined)[]): Theme;
|
|
@@ -409,7 +411,7 @@ export declare const unstyledTheme: Theme;
|
|
|
409
411
|
export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
410
412
|
useQueryOpts?: Omit<UseQueryOptions<AccountsRequestResponse>, "queryKey" | "queryFn">;
|
|
411
413
|
}) => {
|
|
412
|
-
accounts:
|
|
414
|
+
accounts: any;
|
|
413
415
|
data: AccountsRequestResponse;
|
|
414
416
|
error: Error;
|
|
415
417
|
isError: true;
|
|
@@ -436,7 +438,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
436
438
|
fetchStatus: FetchStatus;
|
|
437
439
|
promise: Promise<AccountsRequestResponse>;
|
|
438
440
|
} | {
|
|
439
|
-
accounts:
|
|
441
|
+
accounts: any;
|
|
440
442
|
data: AccountsRequestResponse;
|
|
441
443
|
error: null;
|
|
442
444
|
isError: false;
|
|
@@ -463,7 +465,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
463
465
|
fetchStatus: FetchStatus;
|
|
464
466
|
promise: Promise<AccountsRequestResponse>;
|
|
465
467
|
} | {
|
|
466
|
-
accounts:
|
|
468
|
+
accounts: any;
|
|
467
469
|
data: undefined;
|
|
468
470
|
error: Error;
|
|
469
471
|
isError: true;
|
|
@@ -490,7 +492,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
490
492
|
fetchStatus: FetchStatus;
|
|
491
493
|
promise: Promise<AccountsRequestResponse>;
|
|
492
494
|
} | {
|
|
493
|
-
accounts:
|
|
495
|
+
accounts: any;
|
|
494
496
|
data: undefined;
|
|
495
497
|
error: null;
|
|
496
498
|
isError: false;
|
|
@@ -517,7 +519,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
517
519
|
fetchStatus: FetchStatus;
|
|
518
520
|
promise: Promise<AccountsRequestResponse>;
|
|
519
521
|
} | {
|
|
520
|
-
accounts:
|
|
522
|
+
accounts: any;
|
|
521
523
|
data: undefined;
|
|
522
524
|
error: null;
|
|
523
525
|
isError: false;
|
|
@@ -551,7 +553,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
551
553
|
export declare const useApp: (slug: string, opts?: {
|
|
552
554
|
useQueryOpts?: Omit<UseQueryOptions<AppRequestResponse>, "queryKey" | "queryFn">;
|
|
553
555
|
}) => {
|
|
554
|
-
app:
|
|
556
|
+
app: any;
|
|
555
557
|
data: AppRequestResponse;
|
|
556
558
|
error: Error;
|
|
557
559
|
isError: true;
|
|
@@ -578,7 +580,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
578
580
|
fetchStatus: FetchStatus;
|
|
579
581
|
promise: Promise<AppRequestResponse>;
|
|
580
582
|
} | {
|
|
581
|
-
app:
|
|
583
|
+
app: any;
|
|
582
584
|
data: AppRequestResponse;
|
|
583
585
|
error: null;
|
|
584
586
|
isError: false;
|
|
@@ -605,7 +607,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
605
607
|
fetchStatus: FetchStatus;
|
|
606
608
|
promise: Promise<AppRequestResponse>;
|
|
607
609
|
} | {
|
|
608
|
-
app:
|
|
610
|
+
app: any;
|
|
609
611
|
data: undefined;
|
|
610
612
|
error: Error;
|
|
611
613
|
isError: true;
|
|
@@ -632,7 +634,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
632
634
|
fetchStatus: FetchStatus;
|
|
633
635
|
promise: Promise<AppRequestResponse>;
|
|
634
636
|
} | {
|
|
635
|
-
app:
|
|
637
|
+
app: any;
|
|
636
638
|
data: undefined;
|
|
637
639
|
error: null;
|
|
638
640
|
isError: false;
|
|
@@ -659,7 +661,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
659
661
|
fetchStatus: FetchStatus;
|
|
660
662
|
promise: Promise<AppRequestResponse>;
|
|
661
663
|
} | {
|
|
662
|
-
app:
|
|
664
|
+
app: any;
|
|
663
665
|
data: undefined;
|
|
664
666
|
error: null;
|
|
665
667
|
isError: false;
|
|
@@ -691,8 +693,8 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
691
693
|
* Get list of apps that can be authenticated
|
|
692
694
|
*/
|
|
693
695
|
export declare const useApps: (input?: GetAppsOpts) => {
|
|
694
|
-
apps:
|
|
695
|
-
data:
|
|
696
|
+
apps: any;
|
|
697
|
+
data: any;
|
|
696
698
|
error: Error;
|
|
697
699
|
isError: true;
|
|
698
700
|
isPending: false;
|
|
@@ -714,12 +716,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
714
716
|
isPlaceholderData: boolean;
|
|
715
717
|
isRefetching: boolean;
|
|
716
718
|
isStale: boolean;
|
|
717
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
719
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
718
720
|
fetchStatus: FetchStatus;
|
|
719
|
-
promise: Promise<
|
|
721
|
+
promise: Promise<any>;
|
|
720
722
|
} | {
|
|
721
|
-
apps:
|
|
722
|
-
data:
|
|
723
|
+
apps: any;
|
|
724
|
+
data: any;
|
|
723
725
|
error: null;
|
|
724
726
|
isError: false;
|
|
725
727
|
isPending: false;
|
|
@@ -741,11 +743,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
741
743
|
isPlaceholderData: boolean;
|
|
742
744
|
isRefetching: boolean;
|
|
743
745
|
isStale: boolean;
|
|
744
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
746
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
745
747
|
fetchStatus: FetchStatus;
|
|
746
|
-
promise: Promise<
|
|
748
|
+
promise: Promise<any>;
|
|
747
749
|
} | {
|
|
748
|
-
apps:
|
|
750
|
+
apps: any;
|
|
749
751
|
data: undefined;
|
|
750
752
|
error: Error;
|
|
751
753
|
isError: true;
|
|
@@ -768,11 +770,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
768
770
|
isPlaceholderData: boolean;
|
|
769
771
|
isRefetching: boolean;
|
|
770
772
|
isStale: boolean;
|
|
771
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
773
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
772
774
|
fetchStatus: FetchStatus;
|
|
773
|
-
promise: Promise<
|
|
775
|
+
promise: Promise<any>;
|
|
774
776
|
} | {
|
|
775
|
-
apps:
|
|
777
|
+
apps: any;
|
|
776
778
|
data: undefined;
|
|
777
779
|
error: null;
|
|
778
780
|
isError: false;
|
|
@@ -795,11 +797,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
795
797
|
isPlaceholderData: boolean;
|
|
796
798
|
isRefetching: boolean;
|
|
797
799
|
isStale: boolean;
|
|
798
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
800
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
799
801
|
fetchStatus: FetchStatus;
|
|
800
|
-
promise: Promise<
|
|
802
|
+
promise: Promise<any>;
|
|
801
803
|
} | {
|
|
802
|
-
apps:
|
|
804
|
+
apps: any;
|
|
803
805
|
data: undefined;
|
|
804
806
|
error: null;
|
|
805
807
|
isError: false;
|
|
@@ -822,9 +824,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
822
824
|
isPlaceholderData: boolean;
|
|
823
825
|
isRefetching: boolean;
|
|
824
826
|
isStale: boolean;
|
|
825
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
827
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
826
828
|
fetchStatus: FetchStatus;
|
|
827
|
-
promise: Promise<
|
|
829
|
+
promise: Promise<any>;
|
|
828
830
|
};
|
|
829
831
|
|
|
830
832
|
/**
|
|
@@ -835,7 +837,7 @@ export declare const useComponent: ({ key }: {
|
|
|
835
837
|
}, opts?: {
|
|
836
838
|
useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
|
|
837
839
|
}) => {
|
|
838
|
-
component:
|
|
840
|
+
component: any;
|
|
839
841
|
data: ComponentRequestResponse;
|
|
840
842
|
error: Error;
|
|
841
843
|
isError: true;
|
|
@@ -862,7 +864,7 @@ export declare const useComponent: ({ key }: {
|
|
|
862
864
|
fetchStatus: FetchStatus;
|
|
863
865
|
promise: Promise<ComponentRequestResponse>;
|
|
864
866
|
} | {
|
|
865
|
-
component:
|
|
867
|
+
component: any;
|
|
866
868
|
data: ComponentRequestResponse;
|
|
867
869
|
error: null;
|
|
868
870
|
isError: false;
|
|
@@ -889,7 +891,7 @@ export declare const useComponent: ({ key }: {
|
|
|
889
891
|
fetchStatus: FetchStatus;
|
|
890
892
|
promise: Promise<ComponentRequestResponse>;
|
|
891
893
|
} | {
|
|
892
|
-
component:
|
|
894
|
+
component: any;
|
|
893
895
|
data: undefined;
|
|
894
896
|
error: Error;
|
|
895
897
|
isError: true;
|
|
@@ -916,7 +918,7 @@ export declare const useComponent: ({ key }: {
|
|
|
916
918
|
fetchStatus: FetchStatus;
|
|
917
919
|
promise: Promise<ComponentRequestResponse>;
|
|
918
920
|
} | {
|
|
919
|
-
component:
|
|
921
|
+
component: any;
|
|
920
922
|
data: undefined;
|
|
921
923
|
error: null;
|
|
922
924
|
isError: false;
|
|
@@ -943,7 +945,7 @@ export declare const useComponent: ({ key }: {
|
|
|
943
945
|
fetchStatus: FetchStatus;
|
|
944
946
|
promise: Promise<ComponentRequestResponse>;
|
|
945
947
|
} | {
|
|
946
|
-
component:
|
|
948
|
+
component: any;
|
|
947
949
|
data: undefined;
|
|
948
950
|
error: null;
|
|
949
951
|
isError: false;
|
|
@@ -975,8 +977,8 @@ export declare const useComponent: ({ key }: {
|
|
|
975
977
|
* Get list of components
|
|
976
978
|
*/
|
|
977
979
|
export declare const useComponents: (input?: GetComponentOpts) => {
|
|
978
|
-
components:
|
|
979
|
-
data:
|
|
980
|
+
components: any;
|
|
981
|
+
data: any;
|
|
980
982
|
error: Error;
|
|
981
983
|
isError: true;
|
|
982
984
|
isPending: false;
|
|
@@ -998,12 +1000,12 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
998
1000
|
isPlaceholderData: boolean;
|
|
999
1001
|
isRefetching: boolean;
|
|
1000
1002
|
isStale: boolean;
|
|
1001
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1003
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1002
1004
|
fetchStatus: FetchStatus;
|
|
1003
|
-
promise: Promise<
|
|
1005
|
+
promise: Promise<any>;
|
|
1004
1006
|
} | {
|
|
1005
|
-
components:
|
|
1006
|
-
data:
|
|
1007
|
+
components: any;
|
|
1008
|
+
data: any;
|
|
1007
1009
|
error: null;
|
|
1008
1010
|
isError: false;
|
|
1009
1011
|
isPending: false;
|
|
@@ -1025,11 +1027,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1025
1027
|
isPlaceholderData: boolean;
|
|
1026
1028
|
isRefetching: boolean;
|
|
1027
1029
|
isStale: boolean;
|
|
1028
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1030
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1029
1031
|
fetchStatus: FetchStatus;
|
|
1030
|
-
promise: Promise<
|
|
1032
|
+
promise: Promise<any>;
|
|
1031
1033
|
} | {
|
|
1032
|
-
components:
|
|
1034
|
+
components: any;
|
|
1033
1035
|
data: undefined;
|
|
1034
1036
|
error: Error;
|
|
1035
1037
|
isError: true;
|
|
@@ -1052,11 +1054,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1052
1054
|
isPlaceholderData: boolean;
|
|
1053
1055
|
isRefetching: boolean;
|
|
1054
1056
|
isStale: boolean;
|
|
1055
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1057
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1056
1058
|
fetchStatus: FetchStatus;
|
|
1057
|
-
promise: Promise<
|
|
1059
|
+
promise: Promise<any>;
|
|
1058
1060
|
} | {
|
|
1059
|
-
components:
|
|
1061
|
+
components: any;
|
|
1060
1062
|
data: undefined;
|
|
1061
1063
|
error: null;
|
|
1062
1064
|
isError: false;
|
|
@@ -1079,11 +1081,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1079
1081
|
isPlaceholderData: boolean;
|
|
1080
1082
|
isRefetching: boolean;
|
|
1081
1083
|
isStale: boolean;
|
|
1082
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1084
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1083
1085
|
fetchStatus: FetchStatus;
|
|
1084
|
-
promise: Promise<
|
|
1086
|
+
promise: Promise<any>;
|
|
1085
1087
|
} | {
|
|
1086
|
-
components:
|
|
1088
|
+
components: any;
|
|
1087
1089
|
data: undefined;
|
|
1088
1090
|
error: null;
|
|
1089
1091
|
isError: false;
|
|
@@ -1106,9 +1108,9 @@ export declare const useComponents: (input?: GetComponentOpts) => {
|
|
|
1106
1108
|
isPlaceholderData: boolean;
|
|
1107
1109
|
isRefetching: boolean;
|
|
1108
1110
|
isStale: boolean;
|
|
1109
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1111
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
|
|
1110
1112
|
fetchStatus: FetchStatus;
|
|
1111
|
-
promise: Promise<
|
|
1113
|
+
promise: Promise<any>;
|
|
1112
1114
|
};
|
|
1113
1115
|
|
|
1114
1116
|
export declare function useCustomize(): Customization;
|
|
@@ -1117,6 +1119,6 @@ export declare const useFormContext: () => FormContext<any>;
|
|
|
1117
1119
|
|
|
1118
1120
|
export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
|
|
1119
1121
|
|
|
1120
|
-
export declare const useFrontendClient: () =>
|
|
1122
|
+
export declare const useFrontendClient: () => any;
|
|
1121
1123
|
|
|
1122
1124
|
export { }
|