@useparagon/connect 2.5.1-experimental.1 → 2.5.1-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.
@@ -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,6 +479,10 @@ 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[];
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.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",