@springmicro/auth 0.5.2 → 0.5.4
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/{Index-64ac63ff-CSMaEBDA.js → Index-64ac63ff-BCXnQfVb.js} +1 -1
- package/dist/{Index-6c094240-mSgidTC1.js → Index-6c094240-DYAqbl99.js} +1 -1
- package/dist/{Web3Auth-R27O2eCc.js → Web3Auth--YGIRlpi.js} +10 -10
- package/dist/{hashMessage-B7KFzddV.js → hashMessage-DVaouzH3.js} +1 -1
- package/dist/{index-D_yyUC2r.js → index-BqD_7DAd.js} +1032 -1062
- package/dist/{index-ChYsa81u.js → index-CYwANJTC.js} +2 -2
- package/dist/{index-Cp0Pai1C.js → index-C_JIrc2I.js} +1 -1
- package/dist/{index-C8xLRoDS.js → index-Dki94ql9.js} +1 -1
- package/dist/{index-ayOaYQgv.js → index-DpnM6mYu.js} +4 -4
- package/dist/{index-TsElTuix.js → index-OihqBtMt.js} +1 -1
- package/dist/{index-1HLXgKdW.js → index-UN50UbLN.js} +2 -2
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +37 -37
- package/dist/{number-D9Q-3_Cz.js → number-FGOy03eH.js} +1 -1
- package/package.json +2 -2
- package/src/components/forms/SendCodeInput.tsx +149 -149
- package/src/components/forms/SignUpFormItem.tsx +704 -704
- package/src/components/forms/util/application-api.ts +2 -4
- package/src/components/forms/util/user-api.ts +308 -307
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as I, Z as N, $ as M, a0 as O, am as me, a4 as _, a7 as w, a8 as G, a9 as T, aa as V, ab as C, ac as Y, ad as _e, ae as we, af as D, a1 as h, a3 as m, aA as Ce, ah as H, a2 as L, b7 as W, ai as $, a5 as g, a6 as S, ay as be, bg as ze, bh as Te, bi as je, aD as Le, aU as xe, aG as Pe, aW as Se, aj as F, aO as Z, aR as Re, bj as Ee, bk as ye, aV as Ie, az as Ne, bl as U, bm as B, aw as A, aH as he, an as Me, ao as ge, bn as Oe, ag as ke, bo as X, bp as J, al as E, bq as Q, au as R, aC as K, br as ee, bs as De, bt as te, bu as x, at as He, aX as q, bv as $e } from "./Web3Auth
|
|
1
|
+
import { Y as I, Z as N, $ as M, a0 as O, am as me, a4 as _, a7 as w, a8 as G, a9 as T, aa as V, ab as C, ac as Y, ad as _e, ae as we, af as D, a1 as h, a3 as m, aA as Ce, ah as H, a2 as L, b7 as W, ai as $, a5 as g, a6 as S, ay as be, bg as ze, bh as Te, bi as je, aD as Le, aU as xe, aG as Pe, aW as Se, aj as F, aO as Z, aR as Re, bj as Ee, bk as ye, aV as Ie, az as Ne, bl as U, bm as B, aw as A, aH as he, an as Me, ao as ge, bn as Oe, ag as ke, bo as X, bp as J, al as E, bq as Q, au as R, aC as K, br as ee, bs as De, bt as te, bu as x, at as He, aX as q, bv as $e } from "./Web3Auth--YGIRlpi.js";
|
|
2
2
|
function Fe(i, { from: e, to: t }, n = {}) {
|
|
3
3
|
const o = getComputedStyle(i), a = o.transform === "none" ? "" : o.transform, [f, l] = o.transformOrigin.split(" ").map(parseFloat), s = e.left + e.width * f / t.width - (t.left + f), r = e.top + e.height * l / t.height - (t.top + l), { delay: c = 0, duration: d = (u) => Math.sqrt(u) * 120, easing: v = ye } = n;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as He, J as Ht, K as Bt, L as Dt, M as Wt, N as Nt, O as Et, P as Ft, Q as Ot, R as Zt, T as Rt, U as Gt, V as Ut, W as Xt, X as Yt, Y as pe, Z as ve, $ as me, a0 as he, a1 as h, a2 as z, a3 as p, a4 as M, a5 as c, a6 as Y, a7 as y, a8 as ae, a9 as A, aa as ie, ab as S, ac as te, ad as ye, ae as Ce, af as ee, ag as Jt, ah as F, ai as O, aj as Z, ak as Be, al as R, am as ue, an as Me, ao as qe, ap as $t, aq as De, ar as P, as as be, at as ge, au as L, av as _e, aw as ce, ax as Kt, ay as fe, az as we, aA as At, aB as Qt, aC as j, aD as Ae, aE as We, aF as Ne, aG as Ee, aH as ke, aI as Tt, aJ as xt, aK as en, aL as Ve, aM as ze, aN as Mt, aO as tn, aP as nn, aQ as rn, aR as St, aS as on, aT as de, aU as Ie, aV as $e, aW as ln, aX as je, aY as an, aZ as sn, a_ as It, a$ as Pt, b0 as cn, b1 as dn, b2 as Fe, b3 as un, b4 as Oe, b5 as fn, b6 as Ze, b7 as Pe, b8 as Re, b9 as pn, ba as Le, bb as Ge, bc as vn, bd as mn, be as Ue, bf as hn } from "./Web3Auth
|
|
1
|
+
import { _ as He, J as Ht, K as Bt, L as Dt, M as Wt, N as Nt, O as Et, P as Ft, Q as Ot, R as Zt, T as Rt, U as Gt, V as Ut, W as Xt, X as Yt, Y as pe, Z as ve, $ as me, a0 as he, a1 as h, a2 as z, a3 as p, a4 as M, a5 as c, a6 as Y, a7 as y, a8 as ae, a9 as A, aa as ie, ab as S, ac as te, ad as ye, ae as Ce, af as ee, ag as Jt, ah as F, ai as O, aj as Z, ak as Be, al as R, am as ue, an as Me, ao as qe, ap as $t, aq as De, ar as P, as as be, at as ge, au as L, av as _e, aw as ce, ax as Kt, ay as fe, az as we, aA as At, aB as Qt, aC as j, aD as Ae, aE as We, aF as Ne, aG as Ee, aH as ke, aI as Tt, aJ as xt, aK as en, aL as Ve, aM as ze, aN as Mt, aO as tn, aP as nn, aQ as rn, aR as St, aS as on, aT as de, aU as Ie, aV as $e, aW as ln, aX as je, aY as an, aZ as sn, a_ as It, a$ as Pt, b0 as cn, b1 as dn, b2 as Fe, b3 as un, b4 as Oe, b5 as fn, b6 as Ze, b7 as Pe, b8 as Re, b9 as pn, ba as Le, bb as Ge, bc as vn, bd as mn, be as Ue, bf as hn } from "./Web3Auth--YGIRlpi.js";
|
|
2
2
|
var gn = function(e) {
|
|
3
3
|
He(t, e);
|
|
4
4
|
function t(n, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as pu, g as mp, a as yp } from "./index-
|
|
1
|
+
import { s as pu, g as mp, a as yp } from "./index-BqD_7DAd.js";
|
|
2
2
|
import gu from "i18next";
|
|
3
3
|
var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function _o(e) {
|
|
@@ -21308,7 +21308,7 @@ const py = (e) => py(), KE = (e) => {
|
|
|
21308
21308
|
const t = Uu(e, "bigint");
|
|
21309
21309
|
return hy(t);
|
|
21310
21310
|
}, VI = (e) => Zf(e), zc = (e, t) => t ? typeof t == "function" ? `Please <a href="#" onclick="${() => t()}">install</a> or enable to ${e} to continue` : `Please <a href="${t}" target="_blank">install</a> or enable to ${e} to continue` : `Please switch to ${e} to continue`, JE = async (e) => {
|
|
21311
|
-
const t = await import("./index-
|
|
21311
|
+
const t = await import("./index-CYwANJTC.js"), { id: r, label: n, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
|
|
21312
21312
|
switch (r) {
|
|
21313
21313
|
case "0x89": {
|
|
21314
21314
|
const { polygon: l } = t;
|
|
@@ -21371,7 +21371,7 @@ const py = (e) => py(), KE = (e) => {
|
|
|
21371
21371
|
return l;
|
|
21372
21372
|
}
|
|
21373
21373
|
default: {
|
|
21374
|
-
const { extractChain: l, defineChain: u } = await import("./index-
|
|
21374
|
+
const { extractChain: l, defineChain: u } = await import("./index-DpnM6mYu.js"), f = l({
|
|
21375
21375
|
chains: Object.values(t),
|
|
21376
21376
|
id: Uu(r, "number")
|
|
21377
21377
|
});
|
|
@@ -24450,7 +24450,7 @@ const Ya = async (e, t) => {
|
|
|
24450
24450
|
const r = t.rpcUrl;
|
|
24451
24451
|
return !t.secondaryTokens || !t.secondaryTokens.length || !r ? [] : await Promise.all(t.secondaryTokens.map(async (i) => {
|
|
24452
24452
|
try {
|
|
24453
|
-
const { createPublicClient: o, http: a } = await import("./index-
|
|
24453
|
+
const { createPublicClient: o, http: a } = await import("./index-DpnM6mYu.js"), s = await JE(t), l = o({
|
|
24454
24454
|
chain: s,
|
|
24455
24455
|
transport: a(t.providerConnectionInfo && t.providerConnectionInfo.url ? t.providerConnectionInfo.url : r)
|
|
24456
24456
|
}), u = {
|
|
@@ -24493,7 +24493,7 @@ async function K9(e) {
|
|
|
24493
24493
|
const t = await E7(e.id);
|
|
24494
24494
|
if (!t)
|
|
24495
24495
|
return null;
|
|
24496
|
-
const { createPublicClient: r, http: n } = await import("./index-
|
|
24496
|
+
const { createPublicClient: r, http: n } = await import("./index-DpnM6mYu.js"), i = r({
|
|
24497
24497
|
chain: t,
|
|
24498
24498
|
transport: n()
|
|
24499
24499
|
});
|
|
@@ -29806,7 +29806,7 @@ function OA(e, t, r) {
|
|
|
29806
29806
|
bottomLeft: `
|
|
29807
29807
|
bottom: var(--${O}-position-bottom, 0);
|
|
29808
29808
|
left: var(--${O}-position-left, 0);`
|
|
29809
|
-
}), $ = u.enabled ? import("./Index-6c094240-
|
|
29809
|
+
}), $ = u.enabled ? import("./Index-6c094240-DYAqbl99.js").then((O) => O.default) : Promise.resolve(null), M = c.enabled ? import("./Index-64ac63ff-BCXnQfVb.js").then((O) => O.default) : Promise.resolve(null), j = u.enabled && b && b.accountCenter, A = (O, I, P, S) => {
|
|
29810
29810
|
const T = O.attachShadow({ mode: "open" });
|
|
29811
29811
|
let R = document.querySelector("onboard-v2").shadowRoot.styleSheets;
|
|
29812
29812
|
const U = new CSSStyleSheet();
|
|
@@ -29952,7 +29952,7 @@ function $A(e) {
|
|
|
29952
29952
|
return Ms;
|
|
29953
29953
|
}
|
|
29954
29954
|
const kA = (e, t) => t || document.body && (getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal") || getComputedStyle(document.body).getPropertyValue("--w3o-font-family")) ? !0 : e ? !!(typeof e == "object" && e["--w3o-font-family"]) : !1, RA = async () => {
|
|
29955
|
-
const { InterVar: e } = await import("./index-
|
|
29955
|
+
const { InterVar: e } = await import("./index-OihqBtMt.js"), t = document.createElement("style");
|
|
29956
29956
|
t.innerHTML = `
|
|
29957
29957
|
${e}
|
|
29958
29958
|
`, document.body.appendChild(t);
|
|
@@ -31962,7 +31962,7 @@ function yI() {
|
|
|
31962
31962
|
label: "Frontier",
|
|
31963
31963
|
getIcon: async () => (await import("./icon-C_O4nprO.js")).default,
|
|
31964
31964
|
getInterface: async () => {
|
|
31965
|
-
const { createEIP1193Provider: e } = await import("./index-
|
|
31965
|
+
const { createEIP1193Provider: e } = await import("./index-OihqBtMt.js"), t = window.hasOwnProperty("ethereum");
|
|
31966
31966
|
let r;
|
|
31967
31967
|
if (t && window.ethereum.isFrontier)
|
|
31968
31968
|
r = e(window.ethereum);
|
|
@@ -32223,7 +32223,7 @@ function AI({ supportedWalletType: e = "all", darkMode: t = !1, enableMobileWall
|
|
|
32223
32223
|
getIcon: async () => (await import("./icon-DbgmZCnU.js")).default,
|
|
32224
32224
|
getInterface: async ({ chains: i, appMetadata: o }) => {
|
|
32225
32225
|
(r || n || t) && console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");
|
|
32226
|
-
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-
|
|
32226
|
+
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-Dki94ql9.js").then(($) => $.i), u = l.default ? l.default : l, { isHex: f, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-OihqBtMt.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, b = i.map(({ id: $ }) => d($, "number")), m = new u({
|
|
32227
32227
|
appName: a || "",
|
|
32228
32228
|
appLogoUrl: g,
|
|
32229
32229
|
appChainIds: b
|
|
@@ -32258,7 +32258,7 @@ function CI(e) {
|
|
|
32258
32258
|
label: "Safe",
|
|
32259
32259
|
getIcon: async () => (await import("./icon-2Zqy7pqQ.js")).default,
|
|
32260
32260
|
getInterface: async () => {
|
|
32261
|
-
const { default: n } = await import("./index-
|
|
32261
|
+
const { default: n } = await import("./index-C_JIrc2I.js"), { SafeAppProvider: i } = await import("./index-UN50UbLN.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-OihqBtMt.js"), a = (
|
|
32262
32262
|
// @ts-ignore
|
|
32263
32263
|
n.default || n
|
|
32264
32264
|
), s = {
|