@useparagon/connect 1.0.16 → 1.0.17-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.
@@ -9,6 +9,7 @@ export declare const PARAGON_OVERFLOW_EMPTY_VALUE = "PARAGON_OVERFLOW_EMPTY_VALU
9
9
  export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
10
10
  root: HTMLIFrameElement | undefined;
11
11
  private rootLoaded;
12
+ _window: Window & typeof globalThis;
12
13
  /**
13
14
  * sometime DOMContentLoaded event firing twice
14
15
  * so it was creating two iframes see PARA-8749
@@ -173,6 +174,10 @@ export default class ConnectSDK extends SDKEventEmitter implements IConnectSDK {
173
174
  */
174
175
  getIntegrationMetadata(): IIntegrationMetadata[];
175
176
  getIntegrationMetadata(integrationKey: string): IIntegrationMetadata;
177
+ /**
178
+ * Closing the portal by invoking this method
179
+ */
180
+ closePortal(): void;
176
181
  /**
177
182
  * trigger connect endpoint trigger workflow
178
183
  * @param workflowId
@@ -17,4 +17,4 @@ export type OAuthFlowOptions = {
17
17
  * @param param0
18
18
  * @returns
19
19
  */
20
- export declare const startOAuthFlow: ({ context, integration, endUserSuppliedValues, authParams, isPreviewMode, installOptions, }: OAuthFlowOptions) => Promise<void>;
20
+ export declare const startOAuthFlow: ({ context, integration, endUserSuppliedValues, authParams, isPreviewMode, installOptions, }: OAuthFlowOptions) => Promise<Window | null | undefined>;