@useparagon/connect 2.5.1-experimental.1 → 2.5.1-experimental.3

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.
@@ -436,6 +436,8 @@ export type EventInfo = {
436
436
  type: SDK_EVENT;
437
437
  integrationId: string;
438
438
  integrationType: string;
439
+ credentialId?: string;
440
+ credential?: IConnectCredential;
439
441
  workflowId?: string;
440
442
  workflowStateChange?: Partial<IntegrationWorkflowState>;
441
443
  };
@@ -477,11 +479,20 @@ export interface IFilePicker {
477
479
  * returns instance of the integration based on how file picker opens
478
480
  */
479
481
  getInstance(): unknown;
482
+ /**
483
+ * closes the file picker and cleans up listeners
484
+ */
485
+ close(): void;
480
486
  }
481
487
  export type FilePickerOptions = {
482
488
  allowedTypes?: string[];
483
489
  allowMultiSelect?: boolean;
484
490
  allowFolderSelect?: boolean;
491
+ /**
492
+ * Max items selectable in the native picker (Google Drive, SharePoint, OneDrive, Box).
493
+ * For Box, `integrationOptions.box.maxSelectable` takes precedence when set.
494
+ */
495
+ maxItems?: number;
485
496
  onOpen?: () => void;
486
497
  onClose?: () => void;
487
498
  onFileSelect?: (files: unknown) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.5.1-experimental.1",
3
+ "version": "2.5.1-experimental.3",
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",