@pipedream/connect-react 1.3.3 → 1.5.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 +57 -2
- package/dist/connect-react.es.js +1774 -1767
- package/dist/connect-react.umd.d.ts +12 -1
- package/dist/connect-react.umd.js +10 -10
- package/package.json +2 -2
|
@@ -94,6 +94,12 @@ declare type ComponentFormProps<T extends ConfigurableProps, U = ConfiguredProps
|
|
|
94
94
|
hideOptionalProps?: boolean;
|
|
95
95
|
sdkResponse?: unknown | undefined;
|
|
96
96
|
enableDebugging?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* OAuth app ID configuration for specific apps.
|
|
99
|
+
* Maps app name slugs to their corresponding OAuth app IDs.
|
|
100
|
+
* Example: { 'github': 'oa_xxxxxxx', 'google_sheets': 'oa_xxxxxxx' }
|
|
101
|
+
*/
|
|
102
|
+
oauthAppConfig?: Record<string, string>;
|
|
97
103
|
} & ({
|
|
98
104
|
externalUserId: string;
|
|
99
105
|
userId?: never;
|
|
@@ -317,6 +323,7 @@ export declare type FormContext<T extends ConfigurableProps> = {
|
|
|
317
323
|
/** @deprecated Use externalUserId instead */
|
|
318
324
|
userId: string;
|
|
319
325
|
enableDebugging?: boolean;
|
|
326
|
+
oauthAppConfig?: Record<string, string>;
|
|
320
327
|
};
|
|
321
328
|
|
|
322
329
|
export declare const FormContext: Context<FormContext<any> | undefined>;
|
|
@@ -407,13 +414,17 @@ declare type SdkError = {
|
|
|
407
414
|
message: string;
|
|
408
415
|
};
|
|
409
416
|
|
|
410
|
-
export declare function SelectApp({ value, onChange, }: SelectAppProps): JSX_2.Element;
|
|
417
|
+
export declare function SelectApp({ value, onChange, appsOptions, }: SelectAppProps): JSX_2.Element;
|
|
411
418
|
|
|
412
419
|
declare type SelectAppProps = {
|
|
413
420
|
value?: Partial<AppResponse> & {
|
|
414
421
|
name_slug: string;
|
|
415
422
|
};
|
|
416
423
|
onChange?: (app?: AppResponse) => void;
|
|
424
|
+
/**
|
|
425
|
+
* Additional options for fetching apps (sorting, filtering, etc.)
|
|
426
|
+
*/
|
|
427
|
+
appsOptions?: Omit<GetAppsOpts, "q">;
|
|
417
428
|
};
|
|
418
429
|
|
|
419
430
|
export declare function SelectComponent({ app, componentType, value, onChange, }: SelectComponentProps): JSX_2.Element;
|