@pipedream/connect-react 1.4.0 → 1.6.0
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 +29 -1
- package/dist/connect-react.es.js +2647 -2656
- package/dist/connect-react.umd.d.ts +122 -104
- package/dist/connect-react.umd.js +14 -14
- package/package.json +5 -3
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Account } from '@pipedream/sdk';
|
|
2
|
+
import { App } from '@pipedream/sdk';
|
|
3
|
+
import { App as App_2 } from '@pipedream/sdk/browser';
|
|
2
4
|
import { AppResponse } from '@pipedream/sdk';
|
|
3
5
|
import { BrowserClient } from '@pipedream/sdk/browser';
|
|
4
6
|
import { ClassNamesConfig } from 'react-select';
|
|
@@ -15,9 +17,13 @@ import { CSSProperties } from 'react';
|
|
|
15
17
|
import { FC } from 'react';
|
|
16
18
|
import { FetchStatus } from '@tanstack/query-core';
|
|
17
19
|
import { GetAccountOpts } from '@pipedream/sdk';
|
|
20
|
+
import { GetAccountsResponse } from '@pipedream/sdk';
|
|
18
21
|
import { GetAppResponse } from '@pipedream/sdk';
|
|
19
22
|
import { GetAppsOpts } from '@pipedream/sdk';
|
|
23
|
+
import { GetAppsResponse } from '@pipedream/sdk/browser';
|
|
24
|
+
import { GetComponentResponse } from '@pipedream/sdk';
|
|
20
25
|
import { GetComponentsOpts } from '@pipedream/sdk';
|
|
26
|
+
import { GetComponentsResponse } from '@pipedream/sdk/browser';
|
|
21
27
|
import { GroupBase } from 'react-select';
|
|
22
28
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
23
29
|
import { JSXElementConstructor } from 'react';
|
|
@@ -26,11 +32,13 @@ import { PropValue } from '@pipedream/sdk';
|
|
|
26
32
|
import { QueryObserverResult } from '@tanstack/query-core';
|
|
27
33
|
import { ReactNode } from 'react';
|
|
28
34
|
import { RefetchOptions } from '@tanstack/query-core';
|
|
35
|
+
import { ReloadComponentPropsResponse } from '@pipedream/sdk';
|
|
29
36
|
import { SelectComponentsConfig } from 'react-select';
|
|
30
37
|
import { StylesConfig } from 'react-select';
|
|
31
38
|
import { Theme as Theme_2 } from 'react-select';
|
|
32
39
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
33
40
|
import { V1Component } from '@pipedream/sdk';
|
|
41
|
+
import { V1Component as V1Component_2 } from '@pipedream/sdk/browser';
|
|
34
42
|
|
|
35
43
|
export declare function Alert({ prop }: AlertProps): JSX_2.Element;
|
|
36
44
|
|
|
@@ -38,9 +46,9 @@ declare type AlertProps = {
|
|
|
38
46
|
prop: ConfigurablePropAlert;
|
|
39
47
|
};
|
|
40
48
|
|
|
41
|
-
export declare type BaseReactSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = {
|
|
49
|
+
export declare type BaseReactSelectProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = {
|
|
42
50
|
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
43
|
-
styles?: StylesConfig
|
|
51
|
+
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
declare type ButtonProps = {
|
|
@@ -73,7 +81,13 @@ export declare function ComponentFormContainer<T extends ConfigurableProps>(prop
|
|
|
73
81
|
|
|
74
82
|
declare type ComponentFormContainerProps<T extends ConfigurableProps> = Omit<ComponentFormProps<T>, "component"> & {
|
|
75
83
|
componentKey: string;
|
|
76
|
-
}
|
|
84
|
+
} & ({
|
|
85
|
+
externalUserId: string;
|
|
86
|
+
userId?: never;
|
|
87
|
+
} | {
|
|
88
|
+
userId: string;
|
|
89
|
+
externalUserId?: never;
|
|
90
|
+
});
|
|
77
91
|
|
|
78
92
|
declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps<T>> = {
|
|
79
93
|
/**
|
|
@@ -90,9 +104,9 @@ declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps
|
|
|
90
104
|
propNames?: string[];
|
|
91
105
|
onSubmit?: (ctx: FormContext<T>) => void | Promise<void>;
|
|
92
106
|
onUpdateConfiguredProps?: (v: U) => void;
|
|
93
|
-
onUpdateDynamicProps?: (dp: DynamicProps
|
|
107
|
+
onUpdateDynamicProps?: (dp: DynamicProps) => void;
|
|
94
108
|
hideOptionalProps?: boolean;
|
|
95
|
-
sdkResponse?:
|
|
109
|
+
sdkResponse?: U;
|
|
96
110
|
enableDebugging?: boolean;
|
|
97
111
|
/**
|
|
98
112
|
* OAuth app ID configuration for specific apps.
|
|
@@ -117,7 +131,7 @@ export declare function ControlAny(): JSX_2.Element;
|
|
|
117
131
|
export declare function ControlApp({ app }: ControlAppProps): JSX_2.Element;
|
|
118
132
|
|
|
119
133
|
declare type ControlAppProps = {
|
|
120
|
-
app:
|
|
134
|
+
app: App;
|
|
121
135
|
};
|
|
122
136
|
|
|
123
137
|
declare function ControlArray(): JSX_2.Element;
|
|
@@ -133,25 +147,23 @@ declare type ControlProps<T extends ConfigurableProps, U extends ConfigurablePro
|
|
|
133
147
|
form: FormContext<T>;
|
|
134
148
|
};
|
|
135
149
|
|
|
136
|
-
export declare function ControlSelect<T>({ isCreatable, options, selectProps, showLoadMoreButton, onLoadMore, }: ControlSelectProps<T>): JSX_2.Element;
|
|
150
|
+
export declare function ControlSelect<T>({ isCreatable, options, selectProps, showLoadMoreButton, onLoadMore, components: componentsOverride, }: ControlSelectProps<T>): JSX_2.Element;
|
|
137
151
|
|
|
138
152
|
declare type ControlSelectProps<T> = {
|
|
139
153
|
isCreatable?: boolean;
|
|
140
|
-
options:
|
|
141
|
-
|
|
142
|
-
value: T;
|
|
143
|
-
}[];
|
|
144
|
-
selectProps?: Props;
|
|
154
|
+
options: LabelValueOption<T>[];
|
|
155
|
+
selectProps?: Props<LabelValueOption<T>, boolean>;
|
|
145
156
|
showLoadMoreButton?: boolean;
|
|
146
157
|
onLoadMore?: () => void;
|
|
158
|
+
components?: Props<LabelValueOption<T>, boolean>["components"];
|
|
147
159
|
};
|
|
148
160
|
|
|
149
161
|
export declare function ControlSql(): JSX_2.Element;
|
|
150
162
|
|
|
151
|
-
export declare function ControlSubmit(props: ControlSubmitProps): JSX_2.Element;
|
|
163
|
+
export declare function ControlSubmit<T extends ConfigurableProps>(props: ControlSubmitProps<T>): JSX_2.Element;
|
|
152
164
|
|
|
153
|
-
declare type ControlSubmitProps = {
|
|
154
|
-
form: FormContext
|
|
165
|
+
declare type ControlSubmitProps<T extends ConfigurableProps> = {
|
|
166
|
+
form: FormContext<T>;
|
|
155
167
|
};
|
|
156
168
|
|
|
157
169
|
export declare type CustomClassNamesConfig = {
|
|
@@ -200,10 +212,10 @@ export declare type Customization = {
|
|
|
200
212
|
theme: Theme;
|
|
201
213
|
select: {
|
|
202
214
|
getClassNamePrefix: <Key extends keyof ReactSelectComponents>(name: Key) => string;
|
|
203
|
-
getClassNames: <Key extends keyof ReactSelectComponents>(name: Key) => ClassNamesConfig
|
|
204
|
-
getComponents: <Key extends keyof ReactSelectComponents>(name: Key, baseComponents?: SelectComponentsConfig<
|
|
205
|
-
getStyles: <Key extends keyof ReactSelectComponents>(name: Key, baseStyles?: StylesConfig) => StylesConfig
|
|
206
|
-
getProps: <Key extends keyof ReactSelectComponents>(name: Key, baseProps?: BaseReactSelectProps<
|
|
215
|
+
getClassNames: <Key extends keyof ReactSelectComponents, Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(name: Key) => ClassNamesConfig<Option, IsMulti, Group>;
|
|
216
|
+
getComponents: <Key extends keyof ReactSelectComponents, Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(name: Key, baseComponents?: SelectComponentsConfig<Option, IsMulti, Group>) => SelectComponentsConfig<Option, IsMulti, Group>;
|
|
217
|
+
getStyles: <Key extends keyof ReactSelectComponents, Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(name: Key, baseStyles?: StylesConfig<Option, IsMulti, Group>) => StylesConfig<Option, IsMulti, Group>;
|
|
218
|
+
getProps: <Key extends keyof ReactSelectComponents, Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(name: Key, baseProps?: BaseReactSelectProps<Option, IsMulti, Group>) => Partial<Props<Option, IsMulti, Group>>;
|
|
207
219
|
theme: Theme_2;
|
|
208
220
|
};
|
|
209
221
|
};
|
|
@@ -265,10 +277,7 @@ declare type DescriptionProps<T extends ConfigurableProps, U extends Configurabl
|
|
|
265
277
|
form: FormContext<T>;
|
|
266
278
|
};
|
|
267
279
|
|
|
268
|
-
|
|
269
|
-
id: string;
|
|
270
|
-
configurableProps: T;
|
|
271
|
-
};
|
|
280
|
+
declare type DynamicProps = ReloadComponentPropsResponse["dynamicProps"];
|
|
272
281
|
|
|
273
282
|
export declare class ErrorBoundary extends Component<Props_2> {
|
|
274
283
|
state: {
|
|
@@ -295,7 +304,7 @@ declare type FieldInternalProps<T extends ConfigurableProp> = {
|
|
|
295
304
|
};
|
|
296
305
|
|
|
297
306
|
declare type FieldProps<T extends ConfigurableProp> = {
|
|
298
|
-
form: FormContext
|
|
307
|
+
form: FormContext<T[]>;
|
|
299
308
|
field: FormFieldContext<T>;
|
|
300
309
|
};
|
|
301
310
|
|
|
@@ -303,7 +312,7 @@ export declare type FormContext<T extends ConfigurableProps> = {
|
|
|
303
312
|
component: V1Component<T>;
|
|
304
313
|
configurableProps: T;
|
|
305
314
|
configuredProps: ConfiguredProps<T>;
|
|
306
|
-
dynamicProps?: DynamicProps
|
|
315
|
+
dynamicProps?: DynamicProps;
|
|
307
316
|
dynamicPropsQueryIsFetching?: boolean;
|
|
308
317
|
errors: Record<string, string[]>;
|
|
309
318
|
sdkErrors: SdkError[];
|
|
@@ -350,8 +359,8 @@ export declare type FormFieldContext<T extends ConfigurableProp> = {
|
|
|
350
359
|
export declare const FormFieldContext: Context<FormFieldContext<any> | undefined>;
|
|
351
360
|
|
|
352
361
|
export declare type FormFieldContextExtra<T extends ConfigurableProp> = T extends ConfigurablePropApp ? {
|
|
353
|
-
app?:
|
|
354
|
-
} :
|
|
362
|
+
app?: App;
|
|
363
|
+
} : object;
|
|
355
364
|
|
|
356
365
|
export declare const FrontendClientProvider: FC<FrontendClientProviderProps>;
|
|
357
366
|
|
|
@@ -374,6 +383,11 @@ declare type LabelProps<T extends ConfigurableProps, U extends ConfigurableProp>
|
|
|
374
383
|
form: FormContext<T>;
|
|
375
384
|
};
|
|
376
385
|
|
|
386
|
+
declare type LabelValueOption<T> = {
|
|
387
|
+
label: string;
|
|
388
|
+
value: T;
|
|
389
|
+
};
|
|
390
|
+
|
|
377
391
|
declare const LoadMoreButton: (props: ButtonProps) => JSX_2.Element;
|
|
378
392
|
|
|
379
393
|
export declare function mergeTheme(target: Theme, ...sources: (PartialTheme | undefined)[]): Theme;
|
|
@@ -414,13 +428,17 @@ declare type SdkError = {
|
|
|
414
428
|
message: string;
|
|
415
429
|
};
|
|
416
430
|
|
|
417
|
-
export declare function SelectApp({ value, onChange, }: SelectAppProps): JSX_2.Element;
|
|
431
|
+
export declare function SelectApp({ value, onChange, appsOptions, }: SelectAppProps): JSX_2.Element;
|
|
418
432
|
|
|
419
433
|
declare type SelectAppProps = {
|
|
420
434
|
value?: Partial<AppResponse> & {
|
|
421
435
|
name_slug: string;
|
|
422
436
|
};
|
|
423
437
|
onChange?: (app?: AppResponse) => void;
|
|
438
|
+
/**
|
|
439
|
+
* Additional options for fetching apps (sorting, filtering, etc.)
|
|
440
|
+
*/
|
|
441
|
+
appsOptions?: Omit<GetAppsOpts, "q">;
|
|
424
442
|
};
|
|
425
443
|
|
|
426
444
|
export declare function SelectComponent({ app, componentType, value, onChange, }: SelectComponentProps): JSX_2.Element;
|
|
@@ -464,10 +482,10 @@ export declare const unstyledTheme: Theme;
|
|
|
464
482
|
* Retrieves the list of accounts associated with the project.
|
|
465
483
|
*/
|
|
466
484
|
export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
467
|
-
useQueryOpts?: Omit<UseQueryOptions<
|
|
485
|
+
useQueryOpts?: Omit<UseQueryOptions<GetAccountsResponse>, "queryKey" | "queryFn">;
|
|
468
486
|
}) => {
|
|
469
|
-
accounts:
|
|
470
|
-
data:
|
|
487
|
+
accounts: Account[];
|
|
488
|
+
data: GetAccountsResponse;
|
|
471
489
|
error: Error;
|
|
472
490
|
isError: true;
|
|
473
491
|
isPending: false;
|
|
@@ -489,12 +507,12 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
489
507
|
isPlaceholderData: boolean;
|
|
490
508
|
isRefetching: boolean;
|
|
491
509
|
isStale: boolean;
|
|
492
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
510
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
|
|
493
511
|
fetchStatus: FetchStatus;
|
|
494
|
-
promise: Promise<
|
|
512
|
+
promise: Promise<GetAccountsResponse>;
|
|
495
513
|
} | {
|
|
496
|
-
accounts:
|
|
497
|
-
data:
|
|
514
|
+
accounts: Account[];
|
|
515
|
+
data: GetAccountsResponse;
|
|
498
516
|
error: null;
|
|
499
517
|
isError: false;
|
|
500
518
|
isPending: false;
|
|
@@ -516,11 +534,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
516
534
|
isPlaceholderData: boolean;
|
|
517
535
|
isRefetching: boolean;
|
|
518
536
|
isStale: boolean;
|
|
519
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
537
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
|
|
520
538
|
fetchStatus: FetchStatus;
|
|
521
|
-
promise: Promise<
|
|
539
|
+
promise: Promise<GetAccountsResponse>;
|
|
522
540
|
} | {
|
|
523
|
-
accounts:
|
|
541
|
+
accounts: Account[];
|
|
524
542
|
data: undefined;
|
|
525
543
|
error: Error;
|
|
526
544
|
isError: true;
|
|
@@ -543,11 +561,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
543
561
|
isPlaceholderData: boolean;
|
|
544
562
|
isRefetching: boolean;
|
|
545
563
|
isStale: boolean;
|
|
546
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
564
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
|
|
547
565
|
fetchStatus: FetchStatus;
|
|
548
|
-
promise: Promise<
|
|
566
|
+
promise: Promise<GetAccountsResponse>;
|
|
549
567
|
} | {
|
|
550
|
-
accounts:
|
|
568
|
+
accounts: Account[];
|
|
551
569
|
data: undefined;
|
|
552
570
|
error: null;
|
|
553
571
|
isError: false;
|
|
@@ -570,11 +588,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
570
588
|
isPlaceholderData: boolean;
|
|
571
589
|
isRefetching: boolean;
|
|
572
590
|
isStale: boolean;
|
|
573
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
591
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
|
|
574
592
|
fetchStatus: FetchStatus;
|
|
575
|
-
promise: Promise<
|
|
593
|
+
promise: Promise<GetAccountsResponse>;
|
|
576
594
|
} | {
|
|
577
|
-
accounts:
|
|
595
|
+
accounts: Account[];
|
|
578
596
|
data: undefined;
|
|
579
597
|
error: null;
|
|
580
598
|
isError: false;
|
|
@@ -597,9 +615,9 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
597
615
|
isPlaceholderData: boolean;
|
|
598
616
|
isRefetching: boolean;
|
|
599
617
|
isStale: boolean;
|
|
600
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
618
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
|
|
601
619
|
fetchStatus: FetchStatus;
|
|
602
|
-
promise: Promise<
|
|
620
|
+
promise: Promise<GetAccountsResponse>;
|
|
603
621
|
};
|
|
604
622
|
|
|
605
623
|
/**
|
|
@@ -608,7 +626,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
|
|
|
608
626
|
export declare const useApp: (slug: string, opts?: {
|
|
609
627
|
useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn">;
|
|
610
628
|
}) => {
|
|
611
|
-
app:
|
|
629
|
+
app: App | undefined;
|
|
612
630
|
data: GetAppResponse;
|
|
613
631
|
error: Error;
|
|
614
632
|
isError: true;
|
|
@@ -635,7 +653,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
635
653
|
fetchStatus: FetchStatus;
|
|
636
654
|
promise: Promise<GetAppResponse>;
|
|
637
655
|
} | {
|
|
638
|
-
app:
|
|
656
|
+
app: App | undefined;
|
|
639
657
|
data: GetAppResponse;
|
|
640
658
|
error: null;
|
|
641
659
|
isError: false;
|
|
@@ -662,7 +680,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
662
680
|
fetchStatus: FetchStatus;
|
|
663
681
|
promise: Promise<GetAppResponse>;
|
|
664
682
|
} | {
|
|
665
|
-
app:
|
|
683
|
+
app: App | undefined;
|
|
666
684
|
data: undefined;
|
|
667
685
|
error: Error;
|
|
668
686
|
isError: true;
|
|
@@ -689,7 +707,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
689
707
|
fetchStatus: FetchStatus;
|
|
690
708
|
promise: Promise<GetAppResponse>;
|
|
691
709
|
} | {
|
|
692
|
-
app:
|
|
710
|
+
app: App | undefined;
|
|
693
711
|
data: undefined;
|
|
694
712
|
error: null;
|
|
695
713
|
isError: false;
|
|
@@ -716,7 +734,7 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
716
734
|
fetchStatus: FetchStatus;
|
|
717
735
|
promise: Promise<GetAppResponse>;
|
|
718
736
|
} | {
|
|
719
|
-
app:
|
|
737
|
+
app: App | undefined;
|
|
720
738
|
data: undefined;
|
|
721
739
|
error: null;
|
|
722
740
|
isError: false;
|
|
@@ -748,8 +766,8 @@ export declare const useApp: (slug: string, opts?: {
|
|
|
748
766
|
* Get list of apps that can be authenticated
|
|
749
767
|
*/
|
|
750
768
|
export declare const useApps: (input?: GetAppsOpts) => {
|
|
751
|
-
apps:
|
|
752
|
-
data:
|
|
769
|
+
apps: App_2[];
|
|
770
|
+
data: GetAppsResponse;
|
|
753
771
|
error: Error;
|
|
754
772
|
isError: true;
|
|
755
773
|
isPending: false;
|
|
@@ -771,12 +789,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
771
789
|
isPlaceholderData: boolean;
|
|
772
790
|
isRefetching: boolean;
|
|
773
791
|
isStale: boolean;
|
|
774
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
792
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
775
793
|
fetchStatus: FetchStatus;
|
|
776
|
-
promise: Promise<
|
|
794
|
+
promise: Promise<GetAppsResponse>;
|
|
777
795
|
} | {
|
|
778
|
-
apps:
|
|
779
|
-
data:
|
|
796
|
+
apps: App_2[];
|
|
797
|
+
data: GetAppsResponse;
|
|
780
798
|
error: null;
|
|
781
799
|
isError: false;
|
|
782
800
|
isPending: false;
|
|
@@ -798,11 +816,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
798
816
|
isPlaceholderData: boolean;
|
|
799
817
|
isRefetching: boolean;
|
|
800
818
|
isStale: boolean;
|
|
801
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
819
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
802
820
|
fetchStatus: FetchStatus;
|
|
803
|
-
promise: Promise<
|
|
821
|
+
promise: Promise<GetAppsResponse>;
|
|
804
822
|
} | {
|
|
805
|
-
apps:
|
|
823
|
+
apps: App_2[];
|
|
806
824
|
data: undefined;
|
|
807
825
|
error: Error;
|
|
808
826
|
isError: true;
|
|
@@ -825,11 +843,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
825
843
|
isPlaceholderData: boolean;
|
|
826
844
|
isRefetching: boolean;
|
|
827
845
|
isStale: boolean;
|
|
828
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
846
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
829
847
|
fetchStatus: FetchStatus;
|
|
830
|
-
promise: Promise<
|
|
848
|
+
promise: Promise<GetAppsResponse>;
|
|
831
849
|
} | {
|
|
832
|
-
apps:
|
|
850
|
+
apps: App_2[];
|
|
833
851
|
data: undefined;
|
|
834
852
|
error: null;
|
|
835
853
|
isError: false;
|
|
@@ -852,11 +870,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
852
870
|
isPlaceholderData: boolean;
|
|
853
871
|
isRefetching: boolean;
|
|
854
872
|
isStale: boolean;
|
|
855
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
873
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
856
874
|
fetchStatus: FetchStatus;
|
|
857
|
-
promise: Promise<
|
|
875
|
+
promise: Promise<GetAppsResponse>;
|
|
858
876
|
} | {
|
|
859
|
-
apps:
|
|
877
|
+
apps: App_2[];
|
|
860
878
|
data: undefined;
|
|
861
879
|
error: null;
|
|
862
880
|
isError: false;
|
|
@@ -879,9 +897,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
|
|
|
879
897
|
isPlaceholderData: boolean;
|
|
880
898
|
isRefetching: boolean;
|
|
881
899
|
isStale: boolean;
|
|
882
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
900
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
|
|
883
901
|
fetchStatus: FetchStatus;
|
|
884
|
-
promise: Promise<
|
|
902
|
+
promise: Promise<GetAppsResponse>;
|
|
885
903
|
};
|
|
886
904
|
|
|
887
905
|
/**
|
|
@@ -892,8 +910,8 @@ export declare const useComponent: ({ key }: {
|
|
|
892
910
|
}, opts?: {
|
|
893
911
|
useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
|
|
894
912
|
}) => {
|
|
895
|
-
component: any;
|
|
896
|
-
data:
|
|
913
|
+
component: V1Component<any> | undefined;
|
|
914
|
+
data: GetComponentResponse;
|
|
897
915
|
error: Error;
|
|
898
916
|
isError: true;
|
|
899
917
|
isPending: false;
|
|
@@ -915,12 +933,12 @@ export declare const useComponent: ({ key }: {
|
|
|
915
933
|
isPlaceholderData: boolean;
|
|
916
934
|
isRefetching: boolean;
|
|
917
935
|
isStale: boolean;
|
|
918
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
936
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
|
|
919
937
|
fetchStatus: FetchStatus;
|
|
920
|
-
promise: Promise<
|
|
938
|
+
promise: Promise<GetComponentResponse>;
|
|
921
939
|
} | {
|
|
922
|
-
component: any;
|
|
923
|
-
data:
|
|
940
|
+
component: V1Component<any> | undefined;
|
|
941
|
+
data: GetComponentResponse;
|
|
924
942
|
error: null;
|
|
925
943
|
isError: false;
|
|
926
944
|
isPending: false;
|
|
@@ -942,11 +960,11 @@ export declare const useComponent: ({ key }: {
|
|
|
942
960
|
isPlaceholderData: boolean;
|
|
943
961
|
isRefetching: boolean;
|
|
944
962
|
isStale: boolean;
|
|
945
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
963
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
|
|
946
964
|
fetchStatus: FetchStatus;
|
|
947
|
-
promise: Promise<
|
|
965
|
+
promise: Promise<GetComponentResponse>;
|
|
948
966
|
} | {
|
|
949
|
-
component: any;
|
|
967
|
+
component: V1Component<any> | undefined;
|
|
950
968
|
data: undefined;
|
|
951
969
|
error: Error;
|
|
952
970
|
isError: true;
|
|
@@ -969,11 +987,11 @@ export declare const useComponent: ({ key }: {
|
|
|
969
987
|
isPlaceholderData: boolean;
|
|
970
988
|
isRefetching: boolean;
|
|
971
989
|
isStale: boolean;
|
|
972
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
990
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
|
|
973
991
|
fetchStatus: FetchStatus;
|
|
974
|
-
promise: Promise<
|
|
992
|
+
promise: Promise<GetComponentResponse>;
|
|
975
993
|
} | {
|
|
976
|
-
component: any;
|
|
994
|
+
component: V1Component<any> | undefined;
|
|
977
995
|
data: undefined;
|
|
978
996
|
error: null;
|
|
979
997
|
isError: false;
|
|
@@ -996,11 +1014,11 @@ export declare const useComponent: ({ key }: {
|
|
|
996
1014
|
isPlaceholderData: boolean;
|
|
997
1015
|
isRefetching: boolean;
|
|
998
1016
|
isStale: boolean;
|
|
999
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1017
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
|
|
1000
1018
|
fetchStatus: FetchStatus;
|
|
1001
|
-
promise: Promise<
|
|
1019
|
+
promise: Promise<GetComponentResponse>;
|
|
1002
1020
|
} | {
|
|
1003
|
-
component: any;
|
|
1021
|
+
component: V1Component<any> | undefined;
|
|
1004
1022
|
data: undefined;
|
|
1005
1023
|
error: null;
|
|
1006
1024
|
isError: false;
|
|
@@ -1023,17 +1041,17 @@ export declare const useComponent: ({ key }: {
|
|
|
1023
1041
|
isPlaceholderData: boolean;
|
|
1024
1042
|
isRefetching: boolean;
|
|
1025
1043
|
isStale: boolean;
|
|
1026
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1044
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
|
|
1027
1045
|
fetchStatus: FetchStatus;
|
|
1028
|
-
promise: Promise<
|
|
1046
|
+
promise: Promise<GetComponentResponse>;
|
|
1029
1047
|
};
|
|
1030
1048
|
|
|
1031
1049
|
/**
|
|
1032
1050
|
* Get list of components
|
|
1033
1051
|
*/
|
|
1034
1052
|
export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
1035
|
-
components: any;
|
|
1036
|
-
data:
|
|
1053
|
+
components: V1Component_2<any>[];
|
|
1054
|
+
data: GetComponentsResponse;
|
|
1037
1055
|
error: Error;
|
|
1038
1056
|
isError: true;
|
|
1039
1057
|
isPending: false;
|
|
@@ -1055,12 +1073,12 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
|
1055
1073
|
isPlaceholderData: boolean;
|
|
1056
1074
|
isRefetching: boolean;
|
|
1057
1075
|
isStale: boolean;
|
|
1058
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1076
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1059
1077
|
fetchStatus: FetchStatus;
|
|
1060
|
-
promise: Promise<
|
|
1078
|
+
promise: Promise<GetComponentsResponse>;
|
|
1061
1079
|
} | {
|
|
1062
|
-
components: any;
|
|
1063
|
-
data:
|
|
1080
|
+
components: V1Component_2<any>[];
|
|
1081
|
+
data: GetComponentsResponse;
|
|
1064
1082
|
error: null;
|
|
1065
1083
|
isError: false;
|
|
1066
1084
|
isPending: false;
|
|
@@ -1082,11 +1100,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
|
1082
1100
|
isPlaceholderData: boolean;
|
|
1083
1101
|
isRefetching: boolean;
|
|
1084
1102
|
isStale: boolean;
|
|
1085
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1103
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1086
1104
|
fetchStatus: FetchStatus;
|
|
1087
|
-
promise: Promise<
|
|
1105
|
+
promise: Promise<GetComponentsResponse>;
|
|
1088
1106
|
} | {
|
|
1089
|
-
components: any;
|
|
1107
|
+
components: V1Component_2<any>[];
|
|
1090
1108
|
data: undefined;
|
|
1091
1109
|
error: Error;
|
|
1092
1110
|
isError: true;
|
|
@@ -1109,11 +1127,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
|
1109
1127
|
isPlaceholderData: boolean;
|
|
1110
1128
|
isRefetching: boolean;
|
|
1111
1129
|
isStale: boolean;
|
|
1112
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1130
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1113
1131
|
fetchStatus: FetchStatus;
|
|
1114
|
-
promise: Promise<
|
|
1132
|
+
promise: Promise<GetComponentsResponse>;
|
|
1115
1133
|
} | {
|
|
1116
|
-
components: any;
|
|
1134
|
+
components: V1Component_2<any>[];
|
|
1117
1135
|
data: undefined;
|
|
1118
1136
|
error: null;
|
|
1119
1137
|
isError: false;
|
|
@@ -1136,11 +1154,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
|
1136
1154
|
isPlaceholderData: boolean;
|
|
1137
1155
|
isRefetching: boolean;
|
|
1138
1156
|
isStale: boolean;
|
|
1139
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1157
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1140
1158
|
fetchStatus: FetchStatus;
|
|
1141
|
-
promise: Promise<
|
|
1159
|
+
promise: Promise<GetComponentsResponse>;
|
|
1142
1160
|
} | {
|
|
1143
|
-
components: any;
|
|
1161
|
+
components: V1Component_2<any>[];
|
|
1144
1162
|
data: undefined;
|
|
1145
1163
|
error: null;
|
|
1146
1164
|
isError: false;
|
|
@@ -1163,9 +1181,9 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
|
|
|
1163
1181
|
isPlaceholderData: boolean;
|
|
1164
1182
|
isRefetching: boolean;
|
|
1165
1183
|
isStale: boolean;
|
|
1166
|
-
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<
|
|
1184
|
+
refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
|
|
1167
1185
|
fetchStatus: FetchStatus;
|
|
1168
|
-
promise: Promise<
|
|
1186
|
+
promise: Promise<GetComponentsResponse>;
|
|
1169
1187
|
};
|
|
1170
1188
|
|
|
1171
1189
|
export declare function useCustomize(): Customization;
|
|
@@ -1174,6 +1192,6 @@ export declare const useFormContext: () => FormContext<any>;
|
|
|
1174
1192
|
|
|
1175
1193
|
export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
|
|
1176
1194
|
|
|
1177
|
-
export declare const useFrontendClient: () =>
|
|
1195
|
+
export declare const useFrontendClient: () => BrowserClient;
|
|
1178
1196
|
|
|
1179
1197
|
export { }
|