@springmicro/auth 0.7.20 → 0.7.22
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-1e31d199-BXGGyb0l.js → Index-1e31d199-BKxhThhF.js} +1 -1
- package/dist/{Index-6078f122-DGZJdnAZ.js → Index-6078f122-DZtwh1V7.js} +1 -1
- package/dist/{Web3Auth-DG8Yz_cD.js → Web3Auth-CYZ2tXRd.js} +12 -14
- package/dist/hashTypedData-DSWDPZpk.js +2035 -0
- package/dist/{index-BYJic99M.js → index-BQclNTiM.js} +33 -33
- package/dist/index-C_5temok.js +15181 -0
- package/dist/{index-C8R4klyg.js → index-D43Guca7.js} +27 -27
- package/dist/{index-BXvsDp0W.js → index-DEONFj0_.js} +933 -1157
- package/dist/{index-B51q7F_W.js → index-DcaYmCtZ.js} +1419 -1384
- package/dist/index-k1B2fiIe.js +384 -0
- package/dist/{index-hDobpv7u.js → index-nqI1BAVh.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +279 -313
- package/dist/native-BXgFvfgl.js +15 -0
- package/dist/number-D7MFtzNG.js +1752 -0
- package/dist/{parseEther-C7cmMVOE.js → parseEther-B1tMovDx.js} +1 -1
- package/dist/sha256-D3FUdNrs.js +178 -0
- package/dist/utils-DbgAoL44.js +119 -0
- package/package.json +2 -2
- package/dist/hmac-CW2mnXa8.js +0 -47
- package/dist/index-Bfb6JoQf.js +0 -21225
- package/dist/index-CBbDq4vF.js +0 -13520
- package/dist/index-DbQi7wFl.js +0 -547
- package/dist/number-DvQcSzeP.js +0 -1512
- package/dist/sha256-C90UGNQg.js +0 -326
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as He, L as Ht, M as Bt, N as Dt, O as Wt, P as Nt, Q as Et, R as Ft, T as Ot, U as Zt, V as Rt, W as Gt, X as Ut, Y as Xt, Z as Yt, $ as pe, a0 as ve, a1 as me, a2 as he, a3 as M, a4 as A, a5 as y, a6 as ae, a7 as ie, a8 as S, a9 as c, aa as Y, ab as h, ac as z, ad as p, ae as te, af as ye, ag as Ce, ah as ee, ai as Qt, aj as F, ak as O, al as Z, am as R, an as Be, ao as ue, ap as Jt, aq as $t, ar as be, as as ze, at as qe, au as fe, av as de, aw as ge, ax as ke, ay as Kt, az as Ae, aA as Ie, aB as j, aC as L, aD as _e, aE as je, aF as De, aG as P, aH as We, aI as Ne, aJ as Ee, aK as At, aL as xt, aM as ce, aN as en, aO as we, aP as Tt, aQ as tn, aR as nn, aS as Mt, aT as rn, aU as $e, aV as St, aW as on, aX as ln, aY as an, aZ as Me, a_ as sn, a$ as It, b0 as cn, b1 as Pt, b2 as dn, b3 as Fe, b4 as un, b5 as Oe, b6 as fn, b7 as Pe, b8 as Ze, b9 as pn, ba as Re, bb as Le, bc as Ge, bd as vn, be as mn, bf as hn, bg as Ue, bh as Ve } from "./Web3Auth-
|
|
1
|
+
import { _ as He, L as Ht, M as Bt, N as Dt, O as Wt, P as Nt, Q as Et, R as Ft, T as Ot, U as Zt, V as Rt, W as Gt, X as Ut, Y as Xt, Z as Yt, $ as pe, a0 as ve, a1 as me, a2 as he, a3 as M, a4 as A, a5 as y, a6 as ae, a7 as ie, a8 as S, a9 as c, aa as Y, ab as h, ac as z, ad as p, ae as te, af as ye, ag as Ce, ah as ee, ai as Qt, aj as F, ak as O, al as Z, am as R, an as Be, ao as ue, ap as Jt, aq as $t, ar as be, as as ze, at as qe, au as fe, av as de, aw as ge, ax as ke, ay as Kt, az as Ae, aA as Ie, aB as j, aC as L, aD as _e, aE as je, aF as De, aG as P, aH as We, aI as Ne, aJ as Ee, aK as At, aL as xt, aM as ce, aN as en, aO as we, aP as Tt, aQ as tn, aR as nn, aS as Mt, aT as rn, aU as $e, aV as St, aW as on, aX as ln, aY as an, aZ as Me, a_ as sn, a$ as It, b0 as cn, b1 as Pt, b2 as dn, b3 as Fe, b4 as un, b5 as Oe, b6 as fn, b7 as Pe, b8 as Ze, b9 as pn, ba as Re, bb as Le, bc as Ge, bd as vn, be as mn, bf as hn, bg as Ue, bh as Ve } from "./Web3Auth-CYZ2tXRd.js";
|
|
2
2
|
var gn = function(e) {
|
|
3
3
|
He(t, e);
|
|
4
4
|
function t(n, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as R, a0 as M, a1 as N, a2 as O, a3 as _, a4 as T, a5 as w, a6 as A, a7 as G, a8 as C, ao as me, ap as U, ae as Z, af as _e, ag as we, ah as $, aK as Ce, ad as m, ab as h, aS as ze, aj as D, ay as Te, az as je, aA as xe, aJ as Le, bi as Pe, bj as Se, b7 as B, ak as F, a9 as g, aa as S, au as be, al as H, ac as x, am as I, bk as Y, bl as W, ax as ye, aM as V, bm as Ee, ai as he, bn as J, bo as Q, bp as X, aw as Ie, aB as K, aC as E, bq as ee, br as te, bs as Re, bt as L, aE as q, bu as Me, bv as ge, aU as Ne, bw as Oe, bh as ke, bx as $e, aZ as De, aO as Fe } from "./Web3Auth-
|
|
1
|
+
import { $ as R, a0 as M, a1 as N, a2 as O, a3 as _, a4 as T, a5 as w, a6 as A, a7 as G, a8 as C, ao as me, ap as U, ae as Z, af as _e, ag as we, ah as $, aK as Ce, ad as m, ab as h, aS as ze, aj as D, ay as Te, az as je, aA as xe, aJ as Le, bi as Pe, bj as Se, b7 as B, ak as F, a9 as g, aa as S, au as be, al as H, ac as x, am as I, bk as Y, bl as W, ax as ye, aM as V, bm as Ee, ai as he, bn as J, bo as Q, bp as X, aw as Ie, aB as K, aC as E, bq as ee, br as te, bs as Re, bt as L, aE as q, bu as Me, bv as ge, aU as Ne, bw as Oe, bh as ke, bx as $e, aZ as De, aO as Fe } from "./Web3Auth-CYZ2tXRd.js";
|
|
2
2
|
function He(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 = ge } = n;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as _l, g as Eh, a as xh } from "./index-
|
|
1
|
+
import { s as _l, g as Eh, a as xh } from "./index-BQclNTiM.js";
|
|
2
2
|
import El 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 yo(e) {
|
|
@@ -20582,7 +20582,7 @@ const hg = (e) => hg(), U5 = (e) => {
|
|
|
20582
20582
|
const t = Zl(e, "bigint");
|
|
20583
20583
|
return dg(t);
|
|
20584
20584
|
}, Wx = (e) => $u(e), Lc = (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`, $5 = async (e) => {
|
|
20585
|
-
const t = await import("./index-
|
|
20585
|
+
const t = await import("./index-D43Guca7.js"), { id: n, label: r, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
|
|
20586
20586
|
switch (n) {
|
|
20587
20587
|
case "0x89": {
|
|
20588
20588
|
const { polygon: l } = t;
|
|
@@ -20645,7 +20645,7 @@ const hg = (e) => hg(), U5 = (e) => {
|
|
|
20645
20645
|
return l;
|
|
20646
20646
|
}
|
|
20647
20647
|
default: {
|
|
20648
|
-
const { extractChain: l, defineChain: f } = await import("./index-
|
|
20648
|
+
const { extractChain: l, defineChain: f } = await import("./index-DcaYmCtZ.js"), u = l({
|
|
20649
20649
|
chains: Object.values(t),
|
|
20650
20650
|
id: Zl(n, "number")
|
|
20651
20651
|
});
|
|
@@ -23725,7 +23725,7 @@ const za = async (e, t) => {
|
|
|
23725
23725
|
const n = t.rpcUrl;
|
|
23726
23726
|
return !t.secondaryTokens || !t.secondaryTokens.length || !n ? [] : await Promise.all(t.secondaryTokens.map(async (i) => {
|
|
23727
23727
|
try {
|
|
23728
|
-
const { createPublicClient: o, http: a } = await import("./index-
|
|
23728
|
+
const { createPublicClient: o, http: a } = await import("./index-DcaYmCtZ.js"), s = await $5(t), l = o({
|
|
23729
23729
|
chain: s,
|
|
23730
23730
|
transport: a(t.providerConnectionInfo && t.providerConnectionInfo.url ? t.providerConnectionInfo.url : n)
|
|
23731
23731
|
}), f = {
|
|
@@ -23768,7 +23768,7 @@ async function U4(e) {
|
|
|
23768
23768
|
const t = await h_(e.id);
|
|
23769
23769
|
if (!t)
|
|
23770
23770
|
return null;
|
|
23771
|
-
const { createPublicClient: n, http: r } = await import("./index-
|
|
23771
|
+
const { createPublicClient: n, http: r } = await import("./index-DcaYmCtZ.js"), i = n({
|
|
23772
23772
|
chain: t,
|
|
23773
23773
|
transport: r()
|
|
23774
23774
|
});
|
|
@@ -29095,7 +29095,7 @@ function v7(e, t, n) {
|
|
|
29095
29095
|
bottomLeft: `
|
|
29096
29096
|
bottom: var(--${O}-position-bottom, 0);
|
|
29097
29097
|
left: var(--${O}-position-left, 0);`
|
|
29098
|
-
}), k = f.enabled ? import("./Index-1e31d199-
|
|
29098
|
+
}), k = f.enabled ? import("./Index-1e31d199-BKxhThhF.js").then((O) => O.default) : Promise.resolve(null), M = c.enabled ? import("./Index-6078f122-DZtwh1V7.js").then((O) => O.default) : Promise.resolve(null), P = f.enabled && y && y.accountCenter, x = (O, A, F, B) => {
|
|
29099
29099
|
const I = O.attachShadow({ mode: "open" });
|
|
29100
29100
|
let L = document.querySelector("onboard-v2").shadowRoot.styleSheets;
|
|
29101
29101
|
const W = new CSSStyleSheet();
|
|
@@ -29241,7 +29241,7 @@ function E7(e) {
|
|
|
29241
29241
|
return Bs;
|
|
29242
29242
|
}
|
|
29243
29243
|
const x7 = (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, C7 = async () => {
|
|
29244
|
-
const { InterVar: e } = await import("./index-
|
|
29244
|
+
const { InterVar: e } = await import("./index-nqI1BAVh.js"), t = document.createElement("style");
|
|
29245
29245
|
t.innerHTML = `
|
|
29246
29246
|
${e}
|
|
29247
29247
|
`, document.body.appendChild(t);
|
|
@@ -31251,7 +31251,7 @@ function cx() {
|
|
|
31251
31251
|
label: "Frontier",
|
|
31252
31252
|
getIcon: async () => (await import("./icon-C_O4nprO.js")).default,
|
|
31253
31253
|
getInterface: async () => {
|
|
31254
|
-
const { createEIP1193Provider: e } = await import("./index-
|
|
31254
|
+
const { createEIP1193Provider: e } = await import("./index-nqI1BAVh.js"), t = window.hasOwnProperty("ethereum");
|
|
31255
31255
|
let n;
|
|
31256
31256
|
if (t && window.ethereum.isFrontier)
|
|
31257
31257
|
n = e(window.ethereum);
|
|
@@ -31512,7 +31512,7 @@ function mx({ supportedWalletType: e = "all", darkMode: t = !1, enableMobileWall
|
|
|
31512
31512
|
getIcon: async () => (await import("./icon-DbgmZCnU.js")).default,
|
|
31513
31513
|
getInterface: async ({ chains: i, appMetadata: o }) => {
|
|
31514
31514
|
(n || r || t) && console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");
|
|
31515
|
-
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-
|
|
31515
|
+
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-DEONFj0_.js"), f = l.default ? l.default : l, { isHex: u, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-nqI1BAVh.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, y = i.map(({ id: k }) => d(k, "number")), m = new f({
|
|
31516
31516
|
appName: a || "",
|
|
31517
31517
|
appLogoUrl: g,
|
|
31518
31518
|
appChainIds: y
|
|
@@ -31547,7 +31547,7 @@ function bx(e) {
|
|
|
31547
31547
|
label: "Safe",
|
|
31548
31548
|
getIcon: async () => (await import("./icon-2Zqy7pqQ.js")).default,
|
|
31549
31549
|
getInterface: async () => {
|
|
31550
|
-
const { default: r } = await import("./index-
|
|
31550
|
+
const { default: r } = await import("./index-k1B2fiIe.js"), { SafeAppProvider: i } = await import("./index-C_5temok.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-nqI1BAVh.js"), a = (
|
|
31551
31551
|
// @ts-ignore
|
|
31552
31552
|
r.default || r
|
|
31553
31553
|
), s = {
|
|
@@ -31946,10 +31946,8 @@ export {
|
|
|
31946
31946
|
yo as bK,
|
|
31947
31947
|
ze as bL,
|
|
31948
31948
|
zs as bM,
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
H0 as bP,
|
|
31952
|
-
pC as bQ,
|
|
31949
|
+
H0 as bN,
|
|
31950
|
+
pC as bO,
|
|
31953
31951
|
nC as ba,
|
|
31954
31952
|
Zx as bb,
|
|
31955
31953
|
bo as bc,
|