@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.4 to 5.2.5
import type { JRPCEngineEndCallback, JRPCEngineNextCallback, JRPCRequest, JRPCResponse } from "@toruslabs/openlogin-jrpc"; | ||
import type { OPENLOGIN_NETWORK_TYPE, WhiteLabelData } from "@toruslabs/openlogin-utils"; | ||
import type { BaseState, CommunicationWalletProviderState, PAYMENT_PROVIDER_TYPE, PaymentParams, UserInfo } from "../interfaces"; | ||
import type { BaseState, CommunicationWalletProviderState, PAYMENT_PROVIDER_TYPE, PaymentParams, UserInfo, WindowBlockAlertParams } from "../interfaces"; | ||
import type { ProviderConfig } from "../Network/INetworkController"; | ||
@@ -18,6 +18,2 @@ export declare const BUTTON_POSITION: { | ||
export type CONFIRMATION_STRATEGY_TYPE = (typeof CONFIRMATION_STRATEGY)[keyof typeof CONFIRMATION_STRATEGY]; | ||
export interface WindowBlockAlertParams { | ||
windowId: string; | ||
finalUrl: string; | ||
} | ||
export interface BaseEmbedControllerState extends BaseState { | ||
@@ -24,0 +20,0 @@ isIFrameFullScreen: boolean; |
@@ -53,2 +53,6 @@ /// <reference types="node" /> | ||
} | ||
export interface WindowBlockAlertParams { | ||
windowId: string; | ||
finalUrl: string; | ||
} | ||
export declare const LOGIN_PROVIDER: { | ||
@@ -55,0 +59,0 @@ GOOGLE: string; |
import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
import { BROADCAST_CHANNELS_MSGS_TYPE } from "../enums"; | ||
import { BaseConfig, BaseState, IWindow } from "../interfaces"; | ||
import { BaseConfig, BaseState, IWindow, WindowBlockAlertParams } from "../interfaces"; | ||
import { ProviderConfig } from "../Network/INetworkController"; | ||
@@ -23,5 +23,3 @@ export interface StreamWindowConfig extends BaseConfig { | ||
*/ | ||
handleWindowBlockAlert(params: { | ||
windowId: string; | ||
}): Promise<null>; | ||
handleWindowBlockAlert(params: WindowBlockAlertParams): Promise<null>; | ||
} | ||
@@ -28,0 +26,0 @@ export interface StreamWindowState extends BaseState { |
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "5.2.4", | ||
"version": "5.2.5", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -26,4 +26,4 @@ "license": "ISC", | ||
"@toruslabs/http-helpers": "^6.0.0", | ||
"@toruslabs/openlogin-jrpc": "^6.1.0", | ||
"@toruslabs/openlogin-utils": "^6.1.0", | ||
"@toruslabs/openlogin-jrpc": "^6.2.1", | ||
"@toruslabs/openlogin-utils": "^6.2.0", | ||
"async-mutex": "^0.4.0", | ||
@@ -67,3 +67,3 @@ "bignumber.js": "^9.1.2", | ||
}, | ||
"gitHead": "ba1822a15bde6956656816382b23866ef6f0b66e" | ||
"gitHead": "b4ca58d3d56115563d15ffe691d919625eaaaae8" | ||
} |
import type { JRPCEngineEndCallback, JRPCEngineNextCallback, JRPCRequest, JRPCResponse } from "@toruslabs/openlogin-jrpc"; | ||
import type { OPENLOGIN_NETWORK_TYPE, WhiteLabelData } from "@toruslabs/openlogin-utils"; | ||
import type { BaseState, CommunicationWalletProviderState, PAYMENT_PROVIDER_TYPE, PaymentParams, UserInfo } from "../interfaces"; | ||
import type { | ||
BaseState, | ||
CommunicationWalletProviderState, | ||
PAYMENT_PROVIDER_TYPE, | ||
PaymentParams, | ||
UserInfo, | ||
WindowBlockAlertParams, | ||
} from "../interfaces"; | ||
import type { ProviderConfig } from "../Network/INetworkController"; | ||
@@ -23,7 +30,2 @@ | ||
export interface WindowBlockAlertParams { | ||
windowId: string; | ||
finalUrl: string; | ||
} | ||
export interface BaseEmbedControllerState extends BaseState { | ||
@@ -30,0 +32,0 @@ isIFrameFullScreen: boolean; |
@@ -67,2 +67,7 @@ import { OpenloginUserInfo } from "@toruslabs/openlogin-utils"; | ||
export interface WindowBlockAlertParams { | ||
windowId: string; | ||
finalUrl: string; | ||
} | ||
export const LOGIN_PROVIDER = { | ||
@@ -69,0 +74,0 @@ GOOGLE: "google", |
import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
import { BROADCAST_CHANNELS_MSGS_TYPE } from "../enums"; | ||
import { BaseConfig, BaseState, IWindow } from "../interfaces"; | ||
import { BaseConfig, BaseState, IWindow, WindowBlockAlertParams } from "../interfaces"; | ||
import { ProviderConfig } from "../Network/INetworkController"; | ||
@@ -27,3 +27,3 @@ | ||
*/ | ||
handleWindowBlockAlert(params: { windowId: string }): Promise<null>; | ||
handleWindowBlockAlert(params: WindowBlockAlertParams): Promise<null>; | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -44,3 +44,3 @@ import { BroadcastChannel } from "@toruslabs/broadcast-channel"; | ||
// there might be multiple block alerts at a time. so, we don't set iframe to close after handling this here | ||
this.config.handleWindowBlockAlert({ windowId: this.state.windowId }).then(resolve).catch(reject); | ||
this.config.handleWindowBlockAlert({ windowId: this.state.windowId, finalUrl: this.state.url.href }).then(resolve).catch(reject); | ||
}); | ||
@@ -47,0 +47,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4013068
12152