@getpara/core-sdk 2.0.0-alpha.55 → 2.0.0-alpha.57
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.
package/dist/cjs/ParaCore.js
CHANGED
|
@@ -853,12 +853,12 @@ const _ParaCore = class _ParaCore {
|
|
|
853
853
|
const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
854
854
|
apiKey: this.ctx.apiKey,
|
|
855
855
|
partnerId: partner == null ? void 0 : partner.id,
|
|
856
|
-
portalFont: ((_b = opts.portalTheme) == null ? void 0 : _b.font) || (
|
|
856
|
+
portalFont: ((_b = opts.portalTheme) == null ? void 0 : _b.font) || ((_c = this.portalTheme) == null ? void 0 : _c.font) || (partner == null ? void 0 : partner.font),
|
|
857
857
|
portalBorderRadius: ((_d = opts.portalTheme) == null ? void 0 : _d.borderRadius) || ((_e = this.portalTheme) == null ? void 0 : _e.borderRadius),
|
|
858
|
-
portalThemeMode: ((_f = opts.portalTheme) == null ? void 0 : _f.mode) || (
|
|
859
|
-
portalAccentColor: ((_h = opts.portalTheme) == null ? void 0 : _h.accentColor) || (
|
|
860
|
-
portalForegroundColor: ((_j = opts.portalTheme) == null ? void 0 : _j.foregroundColor) || (
|
|
861
|
-
portalBackgroundColor: ((_l = opts.portalTheme) == null ? void 0 : _l.backgroundColor) || (
|
|
858
|
+
portalThemeMode: ((_f = opts.portalTheme) == null ? void 0 : _f.mode) || ((_g = this.portalTheme) == null ? void 0 : _g.mode) || (partner == null ? void 0 : partner.themeMode),
|
|
859
|
+
portalAccentColor: ((_h = opts.portalTheme) == null ? void 0 : _h.accentColor) || ((_i = this.portalTheme) == null ? void 0 : _i.accentColor) || (partner == null ? void 0 : partner.accentColor),
|
|
860
|
+
portalForegroundColor: ((_j = opts.portalTheme) == null ? void 0 : _j.foregroundColor) || ((_k = this.portalTheme) == null ? void 0 : _k.foregroundColor) || (partner == null ? void 0 : partner.foregroundColor),
|
|
861
|
+
portalBackgroundColor: ((_l = opts.portalTheme) == null ? void 0 : _l.backgroundColor) || ((_m = this.portalTheme) == null ? void 0 : _m.backgroundColor) || (partner == null ? void 0 : partner.backgroundColor) || this.portalBackgroundColor,
|
|
862
862
|
portalPrimaryButtonColor: this.portalPrimaryButtonColor,
|
|
863
863
|
portalTextColor: this.portalTextColor,
|
|
864
864
|
portalPrimaryButtonTextColor: this.portalPrimaryButtonTextColor,
|
|
@@ -3294,6 +3294,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3294
3294
|
if (serverAuthState.stage === "login" || serverAuthState.stage === "done") {
|
|
3295
3295
|
throw new Error("Account already exists.");
|
|
3296
3296
|
}
|
|
3297
|
+
yield this.touchSession(true);
|
|
3297
3298
|
return __privateMethod(this, _ParaCore_instances, prepareAuthState_fn).call(this, serverAuthState, urlOptions);
|
|
3298
3299
|
});
|
|
3299
3300
|
}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -43,7 +43,7 @@ __export(constants_exports, {
|
|
|
43
43
|
SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(constants_exports);
|
|
46
|
-
const PARA_CORE_VERSION = "2.0.0-alpha.
|
|
46
|
+
const PARA_CORE_VERSION = "2.0.0-alpha.57";
|
|
47
47
|
const PREFIX = "@CAPSULE/";
|
|
48
48
|
const PARA_PREFIX = "@PARA/";
|
|
49
49
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
package/dist/esm/ParaCore.js
CHANGED
|
@@ -817,12 +817,12 @@ const _ParaCore = class _ParaCore {
|
|
|
817
817
|
const params = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
818
818
|
apiKey: this.ctx.apiKey,
|
|
819
819
|
partnerId: partner == null ? void 0 : partner.id,
|
|
820
|
-
portalFont: ((_b = opts.portalTheme) == null ? void 0 : _b.font) || (
|
|
820
|
+
portalFont: ((_b = opts.portalTheme) == null ? void 0 : _b.font) || ((_c = this.portalTheme) == null ? void 0 : _c.font) || (partner == null ? void 0 : partner.font),
|
|
821
821
|
portalBorderRadius: ((_d = opts.portalTheme) == null ? void 0 : _d.borderRadius) || ((_e = this.portalTheme) == null ? void 0 : _e.borderRadius),
|
|
822
|
-
portalThemeMode: ((_f = opts.portalTheme) == null ? void 0 : _f.mode) || (
|
|
823
|
-
portalAccentColor: ((_h = opts.portalTheme) == null ? void 0 : _h.accentColor) || (
|
|
824
|
-
portalForegroundColor: ((_j = opts.portalTheme) == null ? void 0 : _j.foregroundColor) || (
|
|
825
|
-
portalBackgroundColor: ((_l = opts.portalTheme) == null ? void 0 : _l.backgroundColor) || (
|
|
822
|
+
portalThemeMode: ((_f = opts.portalTheme) == null ? void 0 : _f.mode) || ((_g = this.portalTheme) == null ? void 0 : _g.mode) || (partner == null ? void 0 : partner.themeMode),
|
|
823
|
+
portalAccentColor: ((_h = opts.portalTheme) == null ? void 0 : _h.accentColor) || ((_i = this.portalTheme) == null ? void 0 : _i.accentColor) || (partner == null ? void 0 : partner.accentColor),
|
|
824
|
+
portalForegroundColor: ((_j = opts.portalTheme) == null ? void 0 : _j.foregroundColor) || ((_k = this.portalTheme) == null ? void 0 : _k.foregroundColor) || (partner == null ? void 0 : partner.foregroundColor),
|
|
825
|
+
portalBackgroundColor: ((_l = opts.portalTheme) == null ? void 0 : _l.backgroundColor) || ((_m = this.portalTheme) == null ? void 0 : _m.backgroundColor) || (partner == null ? void 0 : partner.backgroundColor) || this.portalBackgroundColor,
|
|
826
826
|
portalPrimaryButtonColor: this.portalPrimaryButtonColor,
|
|
827
827
|
portalTextColor: this.portalTextColor,
|
|
828
828
|
portalPrimaryButtonTextColor: this.portalPrimaryButtonTextColor,
|
|
@@ -3258,6 +3258,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3258
3258
|
if (serverAuthState.stage === "login" || serverAuthState.stage === "done") {
|
|
3259
3259
|
throw new Error("Account already exists.");
|
|
3260
3260
|
}
|
|
3261
|
+
yield this.touchSession(true);
|
|
3261
3262
|
return __privateMethod(this, _ParaCore_instances, prepareAuthState_fn).call(this, serverAuthState, urlOptions);
|
|
3262
3263
|
});
|
|
3263
3264
|
}
|
package/dist/esm/constants.js
CHANGED
package/dist/types/ParaCore.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare abstract class ParaCore implements CoreInterface {
|
|
|
124
124
|
portalPrimaryButtonTextColor?: string;
|
|
125
125
|
/**
|
|
126
126
|
* Theme to use for the portal
|
|
127
|
-
*
|
|
127
|
+
* WARNING: This theme will override portal options set within the developer portal.
|
|
128
128
|
*/
|
|
129
129
|
portalTheme?: Theme;
|
|
130
130
|
/**
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.57",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@celo/utils": "^8.0.2",
|
|
6
6
|
"@cosmjs/encoding": "^0.32.4",
|
|
7
7
|
"@ethereumjs/util": "^9.1.0",
|
|
8
|
-
"@getpara/user-management-client": "2.0.0-alpha.
|
|
8
|
+
"@getpara/user-management-client": "2.0.0-alpha.57",
|
|
9
9
|
"@noble/hashes": "^1.5.0",
|
|
10
10
|
"base64url": "^3.0.1",
|
|
11
11
|
"libphonenumber-js": "^1.11.7",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist",
|
|
28
28
|
"package.json"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "6af8b61e587b4c2f3cd0f8d8accc2f0878667552",
|
|
31
31
|
"main": "dist/cjs/index.js",
|
|
32
32
|
"module": "dist/esm/index.js",
|
|
33
33
|
"scripts": {
|