@pipedream/connect-react 1.5.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.
@@ -1,4 +1,6 @@
1
- import { AccountsRequestResponse } from '@pipedream/sdk';
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<T>) => void;
107
+ onUpdateDynamicProps?: (dp: DynamicProps) => void;
94
108
  hideOptionalProps?: boolean;
95
- sdkResponse?: unknown | undefined;
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: AppResponse;
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
- label: string;
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<any, any, any>) => SelectComponentsConfig<any, any, any>;
205
- getStyles: <Key extends keyof ReactSelectComponents>(name: Key, baseStyles?: StylesConfig) => StylesConfig;
206
- getProps: <Key extends keyof ReactSelectComponents>(name: Key, baseProps?: BaseReactSelectProps<any, any, any>) => Props;
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
- export declare type DynamicProps<T extends ConfigurableProps> = {
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<T>;
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?: AppResponse;
354
- } : Record<string, never>;
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;
@@ -468,10 +482,10 @@ export declare const unstyledTheme: Theme;
468
482
  * Retrieves the list of accounts associated with the project.
469
483
  */
470
484
  export declare const useAccounts: (input: GetAccountOpts, opts?: {
471
- useQueryOpts?: Omit<UseQueryOptions<AccountsRequestResponse>, "queryKey" | "queryFn">;
485
+ useQueryOpts?: Omit<UseQueryOptions<GetAccountsResponse>, "queryKey" | "queryFn">;
472
486
  }) => {
473
- accounts: any;
474
- data: AccountsRequestResponse;
487
+ accounts: Account[];
488
+ data: GetAccountsResponse;
475
489
  error: Error;
476
490
  isError: true;
477
491
  isPending: false;
@@ -493,12 +507,12 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
493
507
  isPlaceholderData: boolean;
494
508
  isRefetching: boolean;
495
509
  isStale: boolean;
496
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AccountsRequestResponse, Error>>;
510
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
497
511
  fetchStatus: FetchStatus;
498
- promise: Promise<AccountsRequestResponse>;
512
+ promise: Promise<GetAccountsResponse>;
499
513
  } | {
500
- accounts: any;
501
- data: AccountsRequestResponse;
514
+ accounts: Account[];
515
+ data: GetAccountsResponse;
502
516
  error: null;
503
517
  isError: false;
504
518
  isPending: false;
@@ -520,11 +534,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
520
534
  isPlaceholderData: boolean;
521
535
  isRefetching: boolean;
522
536
  isStale: boolean;
523
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AccountsRequestResponse, Error>>;
537
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
524
538
  fetchStatus: FetchStatus;
525
- promise: Promise<AccountsRequestResponse>;
539
+ promise: Promise<GetAccountsResponse>;
526
540
  } | {
527
- accounts: any;
541
+ accounts: Account[];
528
542
  data: undefined;
529
543
  error: Error;
530
544
  isError: true;
@@ -547,11 +561,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
547
561
  isPlaceholderData: boolean;
548
562
  isRefetching: boolean;
549
563
  isStale: boolean;
550
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AccountsRequestResponse, Error>>;
564
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
551
565
  fetchStatus: FetchStatus;
552
- promise: Promise<AccountsRequestResponse>;
566
+ promise: Promise<GetAccountsResponse>;
553
567
  } | {
554
- accounts: any;
568
+ accounts: Account[];
555
569
  data: undefined;
556
570
  error: null;
557
571
  isError: false;
@@ -574,11 +588,11 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
574
588
  isPlaceholderData: boolean;
575
589
  isRefetching: boolean;
576
590
  isStale: boolean;
577
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AccountsRequestResponse, Error>>;
591
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
578
592
  fetchStatus: FetchStatus;
579
- promise: Promise<AccountsRequestResponse>;
593
+ promise: Promise<GetAccountsResponse>;
580
594
  } | {
581
- accounts: any;
595
+ accounts: Account[];
582
596
  data: undefined;
583
597
  error: null;
584
598
  isError: false;
@@ -601,9 +615,9 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
601
615
  isPlaceholderData: boolean;
602
616
  isRefetching: boolean;
603
617
  isStale: boolean;
604
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AccountsRequestResponse, Error>>;
618
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAccountsResponse, Error>>;
605
619
  fetchStatus: FetchStatus;
606
- promise: Promise<AccountsRequestResponse>;
620
+ promise: Promise<GetAccountsResponse>;
607
621
  };
608
622
 
609
623
  /**
@@ -612,7 +626,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
612
626
  export declare const useApp: (slug: string, opts?: {
613
627
  useQueryOpts?: Omit<UseQueryOptions<GetAppResponse>, "queryKey" | "queryFn">;
614
628
  }) => {
615
- app: any;
629
+ app: App | undefined;
616
630
  data: GetAppResponse;
617
631
  error: Error;
618
632
  isError: true;
@@ -639,7 +653,7 @@ export declare const useApp: (slug: string, opts?: {
639
653
  fetchStatus: FetchStatus;
640
654
  promise: Promise<GetAppResponse>;
641
655
  } | {
642
- app: any;
656
+ app: App | undefined;
643
657
  data: GetAppResponse;
644
658
  error: null;
645
659
  isError: false;
@@ -666,7 +680,7 @@ export declare const useApp: (slug: string, opts?: {
666
680
  fetchStatus: FetchStatus;
667
681
  promise: Promise<GetAppResponse>;
668
682
  } | {
669
- app: any;
683
+ app: App | undefined;
670
684
  data: undefined;
671
685
  error: Error;
672
686
  isError: true;
@@ -693,7 +707,7 @@ export declare const useApp: (slug: string, opts?: {
693
707
  fetchStatus: FetchStatus;
694
708
  promise: Promise<GetAppResponse>;
695
709
  } | {
696
- app: any;
710
+ app: App | undefined;
697
711
  data: undefined;
698
712
  error: null;
699
713
  isError: false;
@@ -720,7 +734,7 @@ export declare const useApp: (slug: string, opts?: {
720
734
  fetchStatus: FetchStatus;
721
735
  promise: Promise<GetAppResponse>;
722
736
  } | {
723
- app: any;
737
+ app: App | undefined;
724
738
  data: undefined;
725
739
  error: null;
726
740
  isError: false;
@@ -752,8 +766,8 @@ export declare const useApp: (slug: string, opts?: {
752
766
  * Get list of apps that can be authenticated
753
767
  */
754
768
  export declare const useApps: (input?: GetAppsOpts) => {
755
- apps: any;
756
- data: any;
769
+ apps: App_2[];
770
+ data: GetAppsResponse;
757
771
  error: Error;
758
772
  isError: true;
759
773
  isPending: false;
@@ -775,12 +789,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
775
789
  isPlaceholderData: boolean;
776
790
  isRefetching: boolean;
777
791
  isStale: boolean;
778
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
792
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
779
793
  fetchStatus: FetchStatus;
780
- promise: Promise<any>;
794
+ promise: Promise<GetAppsResponse>;
781
795
  } | {
782
- apps: any;
783
- data: any;
796
+ apps: App_2[];
797
+ data: GetAppsResponse;
784
798
  error: null;
785
799
  isError: false;
786
800
  isPending: false;
@@ -802,11 +816,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
802
816
  isPlaceholderData: boolean;
803
817
  isRefetching: boolean;
804
818
  isStale: boolean;
805
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
819
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
806
820
  fetchStatus: FetchStatus;
807
- promise: Promise<any>;
821
+ promise: Promise<GetAppsResponse>;
808
822
  } | {
809
- apps: any;
823
+ apps: App_2[];
810
824
  data: undefined;
811
825
  error: Error;
812
826
  isError: true;
@@ -829,11 +843,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
829
843
  isPlaceholderData: boolean;
830
844
  isRefetching: boolean;
831
845
  isStale: boolean;
832
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
846
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
833
847
  fetchStatus: FetchStatus;
834
- promise: Promise<any>;
848
+ promise: Promise<GetAppsResponse>;
835
849
  } | {
836
- apps: any;
850
+ apps: App_2[];
837
851
  data: undefined;
838
852
  error: null;
839
853
  isError: false;
@@ -856,11 +870,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
856
870
  isPlaceholderData: boolean;
857
871
  isRefetching: boolean;
858
872
  isStale: boolean;
859
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
873
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
860
874
  fetchStatus: FetchStatus;
861
- promise: Promise<any>;
875
+ promise: Promise<GetAppsResponse>;
862
876
  } | {
863
- apps: any;
877
+ apps: App_2[];
864
878
  data: undefined;
865
879
  error: null;
866
880
  isError: false;
@@ -883,9 +897,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
883
897
  isPlaceholderData: boolean;
884
898
  isRefetching: boolean;
885
899
  isStale: boolean;
886
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
900
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetAppsResponse, Error>>;
887
901
  fetchStatus: FetchStatus;
888
- promise: Promise<any>;
902
+ promise: Promise<GetAppsResponse>;
889
903
  };
890
904
 
891
905
  /**
@@ -896,8 +910,8 @@ export declare const useComponent: ({ key }: {
896
910
  }, opts?: {
897
911
  useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
898
912
  }) => {
899
- component: any;
900
- data: ComponentRequestResponse;
913
+ component: V1Component<any> | undefined;
914
+ data: GetComponentResponse;
901
915
  error: Error;
902
916
  isError: true;
903
917
  isPending: false;
@@ -919,12 +933,12 @@ export declare const useComponent: ({ key }: {
919
933
  isPlaceholderData: boolean;
920
934
  isRefetching: boolean;
921
935
  isStale: boolean;
922
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentRequestResponse, Error>>;
936
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
923
937
  fetchStatus: FetchStatus;
924
- promise: Promise<ComponentRequestResponse>;
938
+ promise: Promise<GetComponentResponse>;
925
939
  } | {
926
- component: any;
927
- data: ComponentRequestResponse;
940
+ component: V1Component<any> | undefined;
941
+ data: GetComponentResponse;
928
942
  error: null;
929
943
  isError: false;
930
944
  isPending: false;
@@ -946,11 +960,11 @@ export declare const useComponent: ({ key }: {
946
960
  isPlaceholderData: boolean;
947
961
  isRefetching: boolean;
948
962
  isStale: boolean;
949
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentRequestResponse, Error>>;
963
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
950
964
  fetchStatus: FetchStatus;
951
- promise: Promise<ComponentRequestResponse>;
965
+ promise: Promise<GetComponentResponse>;
952
966
  } | {
953
- component: any;
967
+ component: V1Component<any> | undefined;
954
968
  data: undefined;
955
969
  error: Error;
956
970
  isError: true;
@@ -973,11 +987,11 @@ export declare const useComponent: ({ key }: {
973
987
  isPlaceholderData: boolean;
974
988
  isRefetching: boolean;
975
989
  isStale: boolean;
976
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentRequestResponse, Error>>;
990
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
977
991
  fetchStatus: FetchStatus;
978
- promise: Promise<ComponentRequestResponse>;
992
+ promise: Promise<GetComponentResponse>;
979
993
  } | {
980
- component: any;
994
+ component: V1Component<any> | undefined;
981
995
  data: undefined;
982
996
  error: null;
983
997
  isError: false;
@@ -1000,11 +1014,11 @@ export declare const useComponent: ({ key }: {
1000
1014
  isPlaceholderData: boolean;
1001
1015
  isRefetching: boolean;
1002
1016
  isStale: boolean;
1003
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentRequestResponse, Error>>;
1017
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
1004
1018
  fetchStatus: FetchStatus;
1005
- promise: Promise<ComponentRequestResponse>;
1019
+ promise: Promise<GetComponentResponse>;
1006
1020
  } | {
1007
- component: any;
1021
+ component: V1Component<any> | undefined;
1008
1022
  data: undefined;
1009
1023
  error: null;
1010
1024
  isError: false;
@@ -1027,17 +1041,17 @@ export declare const useComponent: ({ key }: {
1027
1041
  isPlaceholderData: boolean;
1028
1042
  isRefetching: boolean;
1029
1043
  isStale: boolean;
1030
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentRequestResponse, Error>>;
1044
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentResponse, Error>>;
1031
1045
  fetchStatus: FetchStatus;
1032
- promise: Promise<ComponentRequestResponse>;
1046
+ promise: Promise<GetComponentResponse>;
1033
1047
  };
1034
1048
 
1035
1049
  /**
1036
1050
  * Get list of components
1037
1051
  */
1038
1052
  export declare const useComponents: (input?: GetComponentsOpts) => {
1039
- components: any;
1040
- data: any;
1053
+ components: V1Component_2<any>[];
1054
+ data: GetComponentsResponse;
1041
1055
  error: Error;
1042
1056
  isError: true;
1043
1057
  isPending: false;
@@ -1059,12 +1073,12 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
1059
1073
  isPlaceholderData: boolean;
1060
1074
  isRefetching: boolean;
1061
1075
  isStale: boolean;
1062
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1076
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
1063
1077
  fetchStatus: FetchStatus;
1064
- promise: Promise<any>;
1078
+ promise: Promise<GetComponentsResponse>;
1065
1079
  } | {
1066
- components: any;
1067
- data: any;
1080
+ components: V1Component_2<any>[];
1081
+ data: GetComponentsResponse;
1068
1082
  error: null;
1069
1083
  isError: false;
1070
1084
  isPending: false;
@@ -1086,11 +1100,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
1086
1100
  isPlaceholderData: boolean;
1087
1101
  isRefetching: boolean;
1088
1102
  isStale: boolean;
1089
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1103
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
1090
1104
  fetchStatus: FetchStatus;
1091
- promise: Promise<any>;
1105
+ promise: Promise<GetComponentsResponse>;
1092
1106
  } | {
1093
- components: any;
1107
+ components: V1Component_2<any>[];
1094
1108
  data: undefined;
1095
1109
  error: Error;
1096
1110
  isError: true;
@@ -1113,11 +1127,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
1113
1127
  isPlaceholderData: boolean;
1114
1128
  isRefetching: boolean;
1115
1129
  isStale: boolean;
1116
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1130
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
1117
1131
  fetchStatus: FetchStatus;
1118
- promise: Promise<any>;
1132
+ promise: Promise<GetComponentsResponse>;
1119
1133
  } | {
1120
- components: any;
1134
+ components: V1Component_2<any>[];
1121
1135
  data: undefined;
1122
1136
  error: null;
1123
1137
  isError: false;
@@ -1140,11 +1154,11 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
1140
1154
  isPlaceholderData: boolean;
1141
1155
  isRefetching: boolean;
1142
1156
  isStale: boolean;
1143
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1157
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
1144
1158
  fetchStatus: FetchStatus;
1145
- promise: Promise<any>;
1159
+ promise: Promise<GetComponentsResponse>;
1146
1160
  } | {
1147
- components: any;
1161
+ components: V1Component_2<any>[];
1148
1162
  data: undefined;
1149
1163
  error: null;
1150
1164
  isError: false;
@@ -1167,9 +1181,9 @@ export declare const useComponents: (input?: GetComponentsOpts) => {
1167
1181
  isPlaceholderData: boolean;
1168
1182
  isRefetching: boolean;
1169
1183
  isStale: boolean;
1170
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1184
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetComponentsResponse, Error>>;
1171
1185
  fetchStatus: FetchStatus;
1172
- promise: Promise<any>;
1186
+ promise: Promise<GetComponentsResponse>;
1173
1187
  };
1174
1188
 
1175
1189
  export declare function useCustomize(): Customization;
@@ -1178,6 +1192,6 @@ export declare const useFormContext: () => FormContext<any>;
1178
1192
 
1179
1193
  export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
1180
1194
 
1181
- export declare const useFrontendClient: () => any;
1195
+ export declare const useFrontendClient: () => BrowserClient;
1182
1196
 
1183
1197
  export { }