@useparagon/connect 2.2.9-experimental-18987.2 → 2.2.9-experimental.2

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.
@@ -177,6 +177,12 @@ export type CustomDropdownField = {
177
177
  };
178
178
  export type CustomDropdownOptions = {
179
179
  loadOptions: (cursor: string | undefined, search: string | undefined) => LoadCustomDropdownOptionsResult;
180
+ /**
181
+ * If true, the dropdown options will be reloaded every time the dropdown is opened.
182
+ * Useful for dependent dropdowns where options depend on other input values.
183
+ * @default false
184
+ */
185
+ refreshOnOpen?: boolean;
180
186
  };
181
187
  export type DynamicMappingField = {
182
188
  label: string;
@@ -131,12 +131,12 @@ export interface IConnectSDK {
131
131
  */
132
132
  _oauthErrorCallback(errorMessage: string, event?: MessageEvent): Promise<void>;
133
133
  /**
134
- * TODO(UI/UX): Document this
135
- * TODO(UI/UX): Create type
136
- * Destroys an existing configuration using the provided instance ID.
134
+ * Load custom dropdown options with pagination and search support.
137
135
  *
138
- * @param {string} cursor - An object containing the necessary parameters.
139
- * @returns {Promise<void>} - A promise that resolves when the configuration is successfully destroyed.
136
+ * @param {string} key - The key identifier for the dropdown.
137
+ * @param {string} cursor - Optional cursor for pagination.
138
+ * @param {string} search - Optional search term to filter options.
139
+ * @returns {LoadCustomDropdownOptionsResult} - A promise that resolves to the dropdown options.
140
140
  */
141
141
  _loadCustomDropdownOptions(key: string, cursor?: string | undefined, search?: string | undefined): LoadCustomDropdownOptionsResult;
142
142
  /**
@@ -460,6 +460,10 @@ export type FilePickerOptions = {
460
460
  enableSharedDrives?: boolean;
461
461
  };
462
462
  box?: {
463
+ /**
464
+ * If true, the UI elements will be rendered in a scoped iframe to avoid conflicts with global styles defined by Box.
465
+ */
466
+ scopeCSS?: boolean;
463
467
  container?: string;
464
468
  maxSelectable?: number;
465
469
  canUpload?: boolean;
@@ -28,6 +28,12 @@ export declare function generateMatrix<T extends Record<string, any>>(input: {
28
28
  [k in keyof T]: T[k][];
29
29
  }, limit?: number): T[];
30
30
  export declare function sleep(milliseconds: number): Promise<void>;
31
+ /**
32
+ * Normalizes a plain object for comparison by sorting keys (key-order independent).
33
+ * Only handles objects; does not accept or recurse into arrays.
34
+ */
35
+ export declare function normalizeForMetaCompare(value: Record<string, unknown>): Record<string, unknown>;
36
+ export declare function areObjectsEqual(a: Record<string, unknown>, b: Record<string, unknown>): boolean;
31
37
  export declare const uuidPattern: RegExp;
32
38
  export declare function isUUID(value: string | unknown): boolean;
33
39
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.2.9-experimental-18987.2",
3
+ "version": "2.2.9-experimental.2",
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",