@pipedream/connect-react 2.4.0 → 2.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/dist/connect-react.es.js +1629 -1620
- package/dist/connect-react.umd.d.ts +9 -7
- package/dist/connect-react.umd.js +11 -11
- package/package.json +2 -2
|
@@ -8,8 +8,6 @@ import { ComponentProps } from 'react';
|
|
|
8
8
|
import { ComponentsListRequest } from '@pipedream/sdk';
|
|
9
9
|
import { ConfigurableProp } from '@pipedream/sdk';
|
|
10
10
|
import { ConfigurablePropAlert } from '@pipedream/sdk';
|
|
11
|
-
import { ConfigurablePropApp } from '@pipedream/sdk';
|
|
12
|
-
import { ConfigurablePropBoolean } from '@pipedream/sdk';
|
|
13
11
|
import { ConfigurableProps } from '@pipedream/sdk';
|
|
14
12
|
import { ConfiguredProps } from '@pipedream/sdk';
|
|
15
13
|
import { Context } from 'react';
|
|
@@ -190,11 +188,11 @@ export declare type CustomComponentsConfig<T, U extends boolean, V extends Group
|
|
|
190
188
|
|
|
191
189
|
export declare type CustomizableProps = {
|
|
192
190
|
componentForm: ComponentProps<typeof ComponentForm>;
|
|
193
|
-
connectButton: ComponentProps<typeof ControlApp> & FormFieldContext<
|
|
191
|
+
connectButton: ComponentProps<typeof ControlApp> & FormFieldContext<ConfigurableProp.App>;
|
|
194
192
|
controlAny: ComponentProps<typeof ControlAny> & FormFieldContext<ConfigurableProp>;
|
|
195
|
-
controlApp: ComponentProps<typeof ControlApp> & FormFieldContext<
|
|
193
|
+
controlApp: ComponentProps<typeof ControlApp> & FormFieldContext<ConfigurableProp.App>;
|
|
196
194
|
controlArray: ComponentProps<typeof ControlArray> & FormFieldContext<ConfigurableProp>;
|
|
197
|
-
controlBoolean: ComponentProps<typeof ControlBoolean> & FormFieldContext<
|
|
195
|
+
controlBoolean: ComponentProps<typeof ControlBoolean> & FormFieldContext<ConfigurableProp.Boolean>;
|
|
198
196
|
controlHttpRequest: ComponentProps<typeof ControlHttpRequest> & FormFieldContext<ConfigurableProp>;
|
|
199
197
|
controlInput: ComponentProps<typeof ControlInput> & FormFieldContext<ConfigurableProp>;
|
|
200
198
|
controlObject: ComponentProps<typeof ControlObject> & FormFieldContext<ConfigurableProp>;
|
|
@@ -372,7 +370,7 @@ export declare type FormFieldContext<T extends ConfigurableProp> = {
|
|
|
372
370
|
|
|
373
371
|
export declare const FormFieldContext: Context<FormFieldContext<any> | undefined>;
|
|
374
372
|
|
|
375
|
-
export declare type FormFieldContextExtra<T extends ConfigurableProp> = T extends
|
|
373
|
+
export declare type FormFieldContextExtra<T extends ConfigurableProp> = T extends ConfigurableProp.App ? {
|
|
376
374
|
app?: App;
|
|
377
375
|
} : object;
|
|
378
376
|
|
|
@@ -456,7 +454,7 @@ declare type SelectAppProps = {
|
|
|
456
454
|
appsOptions?: Omit<AppsListRequest, "q">;
|
|
457
455
|
};
|
|
458
456
|
|
|
459
|
-
export declare function SelectComponent({ app, componentType, value, onChange, }: SelectComponentProps): JSX_2.Element;
|
|
457
|
+
export declare function SelectComponent({ app, componentType, value, onChange, componentsOptions, }: SelectComponentProps): JSX_2.Element;
|
|
460
458
|
|
|
461
459
|
declare type SelectComponentProps = {
|
|
462
460
|
app?: Partial<App> & {
|
|
@@ -467,6 +465,10 @@ declare type SelectComponentProps = {
|
|
|
467
465
|
key: string;
|
|
468
466
|
};
|
|
469
467
|
onChange?: (component?: Component) => void;
|
|
468
|
+
/**
|
|
469
|
+
* Additional options for fetching components (e.g., registry)
|
|
470
|
+
*/
|
|
471
|
+
componentsOptions?: Omit<ComponentsListRequest, "app" | "componentType">;
|
|
470
472
|
};
|
|
471
473
|
|
|
472
474
|
export declare type Shadows = {
|