@civic/common-gateway-react
Advanced tools
Comparing version 0.11.9-alpha.2 to 0.11.9-beta.0
@@ -55,3 +55,3 @@ "use strict"; | ||
const DEFAULT_REDIRECT_URL = 'https://getpass.civic.com'; | ||
const redirectUrlFromWindow = () => (window === null || window === void 0 ? void 0 : window.location.href) ? encodeURIComponent(window.location.href) : DEFAULT_REDIRECT_URL; | ||
const redirectUrlFromWindow = () => (global === null || global === void 0 ? void 0 : global.window) ? encodeURIComponent(window.location.href) : DEFAULT_REDIRECT_URL; | ||
const GatewayProvider = ({ children = null, wallet, chainImplementation, wrapper, logo, stage = 'prod', redirectUrl, gatekeeperNetwork, options = { autoShowModal: true }, ownerSigns, expiryMarginSeconds = 0, partnerAppId, }) => { | ||
@@ -58,0 +58,0 @@ if (options.logLevel && logger_1.default.setLogLevel) { |
@@ -26,3 +26,3 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; | ||
const DEFAULT_REDIRECT_URL = 'https://getpass.civic.com'; | ||
const redirectUrlFromWindow = () => (window === null || window === void 0 ? void 0 : window.location.href) ? encodeURIComponent(window.location.href) : DEFAULT_REDIRECT_URL; | ||
const redirectUrlFromWindow = () => (global === null || global === void 0 ? void 0 : global.window) ? encodeURIComponent(window.location.href) : DEFAULT_REDIRECT_URL; | ||
export const GatewayProvider = ({ children = null, wallet, chainImplementation, wrapper, logo, stage = 'prod', redirectUrl, gatekeeperNetwork, options = { autoShowModal: true }, ownerSigns, expiryMarginSeconds = 0, partnerAppId, }) => { | ||
@@ -29,0 +29,0 @@ if (options.logLevel && logger.setLogLevel) { |
{ | ||
"name": "@civic/common-gateway-react", | ||
"version": "0.11.9-alpha.2", | ||
"version": "0.11.9-beta.0", | ||
"main": "./dist/cjs/index.js", | ||
@@ -37,3 +37,3 @@ "module": "./dist/esm/index.js", | ||
}, | ||
"gitHead": "9ddadd06319c679b84bb554f301c294f2f9b4b27" | ||
"gitHead": "9f123c689371a4e42ed99db06e2b68e1be16688b" | ||
} |
524206