@useparagon/connect 2.2.7-experimental-18875.2 → 2.2.7
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.
|
@@ -175,6 +175,12 @@ export type CustomDropdownField = {
|
|
|
175
175
|
};
|
|
176
176
|
export type CustomDropdownOptions = {
|
|
177
177
|
loadOptions: (cursor: string | undefined, search: string | undefined) => LoadCustomDropdownOptionsResult;
|
|
178
|
+
/**
|
|
179
|
+
* If true, the dropdown options will be reloaded every time the dropdown is opened.
|
|
180
|
+
* Useful for dependent dropdowns where options depend on other input values.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
refreshOnOpen?: boolean;
|
|
178
184
|
};
|
|
179
185
|
export type DynamicMappingField = {
|
|
180
186
|
label: string;
|
package/dist/src/types/sdk.d.ts
CHANGED
|
@@ -125,12 +125,12 @@ export interface IConnectSDK {
|
|
|
125
125
|
*/
|
|
126
126
|
_oauthErrorCallback(errorMessage: string, event?: MessageEvent): Promise<void>;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
129
|
-
* TODO(UI/UX): Create type
|
|
130
|
-
* Destroys an existing configuration using the provided instance ID.
|
|
128
|
+
* Load custom dropdown options with pagination and search support.
|
|
131
129
|
*
|
|
132
|
-
* @param {string}
|
|
133
|
-
* @
|
|
130
|
+
* @param {string} key - The key identifier for the dropdown.
|
|
131
|
+
* @param {string} cursor - Optional cursor for pagination.
|
|
132
|
+
* @param {string} search - Optional search term to filter options.
|
|
133
|
+
* @returns {LoadCustomDropdownOptionsResult} - A promise that resolves to the dropdown options.
|
|
134
134
|
*/
|
|
135
135
|
_loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
|
|
136
136
|
/**
|