@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;
@@ -125,12 +125,12 @@ export interface IConnectSDK {
125
125
  */
126
126
  _oauthErrorCallback(errorMessage: string, event?: MessageEvent): Promise<void>;
127
127
  /**
128
- * TODO(UI/UX): Document this
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} cursor - An object containing the necessary parameters.
133
- * @returns {Promise<void>} - A promise that resolves when the configuration is successfully destroyed.
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.2.7-experimental-18875.2",
3
+ "version": "2.2.7",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",