@springmicro/auth 0.2.0 → 0.3.0

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.
@@ -1,4 +1,4 @@
1
- import { _ as Be, 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 h, a4 as z, a5 as p, a6 as M, a7 as c, a8 as Y, a9 as y, aa as ae, ab as A, ac as ie, ad as S, 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 De, an as R, ao as ue, ap as Me, aq as qe, ar as $t, as as We, at as P, au as be, av as ge, aw as L, ax as _e, ay as ce, az as Jt, aA as fe, aB as we, aC as At, aD as Kt, aE as j, aF as Ae, aG as Ne, aH as Ee, aI as Fe, aJ as ke, aK as Tt, aL as xt, aM as en, aN as Ve, aO as ze, aP as Mt, aQ as tn, aR as nn, aS as rn, aT as St, aU as on, aV as de, aW as Ie, aX as $e, aY as ln, aZ as je, a_ as an, a$ as sn, b0 as It, b1 as Pt, b2 as cn, b3 as dn, b4 as Oe, b5 as un, b6 as Ze, b7 as fn, b8 as Re, b9 as Pe, ba as Ge, bb as pn, bc as Le, bd as Ue, be as vn, bf as mn, bg as Xe, bh as hn } from "./Web3Auth-bM2cUiiC.js";
1
+ import { _ as Be, 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 h, a4 as z, a5 as p, a6 as M, a7 as c, a8 as Y, a9 as y, aa as ae, ab as A, ac as ie, ad as S, 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 De, an as R, ao as ue, ap as Me, aq as qe, ar as $t, as as We, at as P, au as be, av as ge, aw as L, ax as _e, ay as ce, az as Jt, aA as fe, aB as we, aC as At, aD as Kt, aE as j, aF as Ae, aG as Ne, aH as Ee, aI as Fe, aJ as ke, aK as Tt, aL as xt, aM as en, aN as Ve, aO as ze, aP as Mt, aQ as tn, aR as nn, aS as rn, aT as St, aU as on, aV as de, aW as Ie, aX as $e, aY as ln, aZ as je, a_ as an, a$ as sn, b0 as It, b1 as Pt, b2 as cn, b3 as dn, b4 as Oe, b5 as un, b6 as Ze, b7 as fn, b8 as Re, b9 as Pe, ba as Ge, bb as pn, bc as Le, bd as Ue, be as vn, bf as mn, bg as Xe, bh as hn } from "./Web3Auth-C5tucK1E.js";
2
2
  var gn = function(e) {
3
3
  Be(t, e);
4
4
  function t(n, r) {
@@ -1,4 +1,4 @@
1
- import { $ as R, a0 as N, a1 as M, a2 as O, ao as me, a6 as _, a9 as w, aa as A, ab as T, ac as G, ad as C, ae as Y, af as _e, ag as we, ah as $, a3 as h, a5 as m, aC as Ce, aj as F, a4 as L, b9 as B, ak as D, a7 as g, a8 as S, aA as be, bi as ze, bj as Te, bk as je, aF as xe, aW as Le, aI as Pe, aY as Se, al as H, aQ as Z, aT as Ee, bl as Ie, bm as ye, aX as Re, aB as Ne, bn as J, bo as W, ay as V, aJ as he, ap as Me, aq as ge, bp as Oe, ai as ke, bq as Q, br as U, an as I, bs as X, aw as E, aE as K, bt as ee, bu as $e, bv as te, bw as P, av as Fe, aZ as q, bx as De } from "./Web3Auth-bM2cUiiC.js";
1
+ import { $ as R, a0 as N, a1 as M, a2 as O, ao as me, a6 as _, a9 as w, aa as A, ab as T, ac as G, ad as C, ae as Y, af as _e, ag as we, ah as $, a3 as h, a5 as m, aC as Ce, aj as F, a4 as L, b9 as B, ak as D, a7 as g, a8 as S, aA as be, bi as ze, bj as Te, bk as je, aF as xe, aW as Le, aI as Pe, aY as Se, al as H, aQ as Z, aT as Ee, bl as Ie, bm as ye, aX as Re, aB as Ne, bn as J, bo as W, ay as V, aJ as he, ap as Me, aq as ge, bp as Oe, ai as ke, bq as Q, br as U, an as I, bs as X, aw as E, aE as K, bt as ee, bu as $e, bv as te, bw as P, av as Fe, aZ as q, bx as De } from "./Web3Auth-C5tucK1E.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 = ye } = n;
4
4
  return {
@@ -1,4 +1,4 @@
1
- import { s as lu, g as gp, a as mp } from "./index-DhlCF-kH.js";
1
+ import { s as lu, g as gp, a as mp } from "./index-Boi-WcMK.js";
2
2
  import uu 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) {
@@ -20946,7 +20946,7 @@ const D1 = (e) => D1(), p8 = (e) => {
20946
20946
  const t = typeof e == "number" ? e.toString() : e;
20947
20947
  return h8(t);
20948
20948
  }, g0 = (e) => Hf(e), Dc = (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`, m8 = async (e) => {
20949
- const t = await import("./index-CWOsToua.js"), { id: r, label: n, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
20949
+ const t = await import("./index-C4uVsW-I.js"), { id: r, label: n, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
20950
20950
  switch (r) {
20951
20951
  case "0x89": {
20952
20952
  const { polygon: u } = t;
@@ -21009,7 +21009,7 @@ const D1 = (e) => D1(), p8 = (e) => {
21009
21009
  return u;
21010
21010
  }
21011
21011
  default: {
21012
- const { extractChain: u, defineChain: l } = await import("./index-DsVRaLEN.js"), f = u({
21012
+ const { extractChain: u, defineChain: l } = await import("./index-DOUI-2vv.js"), f = u({
21013
21013
  chains: Object.values(t),
21014
21014
  id: Lu(r, "number")
21015
21015
  });
@@ -24191,7 +24191,7 @@ async function _S(e) {
24191
24191
  const t = await U8(e.id);
24192
24192
  if (!t)
24193
24193
  return null;
24194
- const { createPublicClient: r, http: n } = await import("./index-DsVRaLEN.js"), i = r({
24194
+ const { createPublicClient: r, http: n } = await import("./index-DOUI-2vv.js"), i = r({
24195
24195
  chain: t,
24196
24196
  transport: n()
24197
24197
  });
@@ -24520,7 +24520,7 @@ const Za = async (e, t) => {
24520
24520
  const r = t.rpcUrl;
24521
24521
  return !t.secondaryTokens || !t.secondaryTokens.length || !r ? [] : await Promise.all(t.secondaryTokens.map(async (i) => {
24522
24522
  try {
24523
- const { createPublicClient: o, http: a } = await import("./index-DsVRaLEN.js"), s = await m8(t), u = o({
24523
+ const { createPublicClient: o, http: a } = await import("./index-DOUI-2vv.js"), s = await m8(t), u = o({
24524
24524
  chain: s,
24525
24525
  transport: a(t.providerConnectionInfo && t.providerConnectionInfo.url ? t.providerConnectionInfo.url : r)
24526
24526
  }), l = {
@@ -29769,7 +29769,7 @@ function t9(e, t, r) {
29769
29769
  bottomLeft: `
29770
29770
  bottom: var(--${B}-position-bottom, 0);
29771
29771
  left: var(--${B}-position-left, 0);`
29772
- }), T = l.enabled ? import("./Index-652aeb8c-CnQjaQIW.js").then((B) => B.default) : Promise.resolve(null), j = c.enabled ? import("./Index-c419311f-C4ismbFI.js").then((B) => B.default) : Promise.resolve(null), L = l.enabled && y && y.accountCenter, S = (B, I, M, x) => {
29772
+ }), T = l.enabled ? import("./Index-652aeb8c-Cr1mbyJJ.js").then((B) => B.default) : Promise.resolve(null), j = c.enabled ? import("./Index-c419311f-DolmVisI.js").then((B) => B.default) : Promise.resolve(null), L = l.enabled && y && y.accountCenter, S = (B, I, M, x) => {
29773
29773
  const $ = B.attachShadow({ mode: "open" });
29774
29774
  let P = document.querySelector("onboard-v2").shadowRoot.styleSheets;
29775
29775
  const F = new CSSStyleSheet();
@@ -30015,7 +30015,7 @@ function l9(e) {
30015
30015
  return ks;
30016
30016
  }
30017
30017
  const u9 = (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, f9 = async () => {
30018
- const { InterVar: e } = await import("./index-CSySSnNv.js"), t = document.createElement("style");
30018
+ const { InterVar: e } = await import("./index-DzOmdGpF.js"), t = document.createElement("style");
30019
30019
  t.innerHTML = `
30020
30020
  ${e}
30021
30021
  `, document.body.appendChild(t);
@@ -32016,7 +32016,7 @@ function ZC() {
32016
32016
  label: "Frontier",
32017
32017
  getIcon: async () => (await import("./icon-C_O4nprO.js")).default,
32018
32018
  getInterface: async () => {
32019
- const { createEIP1193Provider: e } = await import("./index-CSySSnNv.js"), t = window.hasOwnProperty("ethereum");
32019
+ const { createEIP1193Provider: e } = await import("./index-DzOmdGpF.js"), t = window.hasOwnProperty("ethereum");
32020
32020
  let r;
32021
32021
  if (t && window.ethereum.isFrontier)
32022
32022
  r = e(window.ethereum);
@@ -32277,7 +32277,7 @@ function rI({ supportedWalletType: e = "all", darkMode: t = !1, enableMobileWall
32277
32277
  getIcon: async () => (await import("./icon-DbgmZCnU.js")).default,
32278
32278
  getInterface: async ({ chains: i, appMetadata: o }) => {
32279
32279
  (r || n || t) && console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");
32280
- const { name: a, icon: s } = o || {}, { default: u } = await import("./index-UIY0HLkp.js").then((T) => T.i), l = u.default ? u.default : u, { isHex: f, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-CSySSnNv.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, y = i.map(({ id: T }) => d(T, "number")), m = new l({
32280
+ const { name: a, icon: s } = o || {}, { default: u } = await import("./index-YKlm7xSx.js").then((T) => T.i), l = u.default ? u.default : u, { isHex: f, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-DzOmdGpF.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, y = i.map(({ id: T }) => d(T, "number")), m = new l({
32281
32281
  appName: a || "",
32282
32282
  appLogoUrl: g,
32283
32283
  appChainIds: y
@@ -32312,7 +32312,7 @@ function nI(e) {
32312
32312
  label: "Safe",
32313
32313
  getIcon: async () => (await import("./icon-2Zqy7pqQ.js")).default,
32314
32314
  getInterface: async () => {
32315
- const { default: n } = await import("./index-C6mFEZgd.js").then((h) => h.i), { SafeAppProvider: i } = await import("./index-6lyEypQV.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-CSySSnNv.js"), a = (
32315
+ const { default: n } = await import("./index-CLfsMiG4.js"), { SafeAppProvider: i } = await import("./index-DPq81SIn.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-DzOmdGpF.js"), a = (
32316
32316
  // @ts-ignore
32317
32317
  n.default || n
32318
32318
  ), s = {
@@ -3005,10 +3005,10 @@ function Qe(t, e) {
3005
3005
  });
3006
3006
  }
3007
3007
  function Bt(t, e, o) {
3008
- e.type === "MetaMask" ? import("./Web3Auth-bM2cUiiC.js").then((r) => r.bR).then((r) => {
3008
+ e.type === "MetaMask" ? import("./Web3Auth-C5tucK1E.js").then((r) => r.bR).then((r) => {
3009
3009
  const a = r.authViaMetaMask;
3010
3010
  a(t, e, o);
3011
- }) : e.type === "Web3Onboard" && import("./Web3Auth-bM2cUiiC.js").then((r) => r.bR).then((r) => {
3011
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-C5tucK1E.js").then((r) => r.bR).then((r) => {
3012
3012
  const a = r.authViaWeb3Onboard;
3013
3013
  a(t, e, o);
3014
3014
  });
@@ -1,5 +1,5 @@
1
- import { a4 as e, Q as G, D as J, R as V, V as ee, a7 as X, a as q, Z, i as k, I as E, X as te, a6 as de, a9 as me, K as ae, F as ue, o as be, J as he, z as ke, a5 as xe } from "./number-CgDDPrEe.js";
2
- import { h as i, q as o, e as W, B as u, f as fe, g as R, t as K, G as ye } from "./Web3Auth-bM2cUiiC.js";
1
+ import { ac as e, $ as G, D as J, a0 as V, a2 as ee, af as X, a as q, a5 as Z, i as k, I as E, a3 as te, ae as de, ah as me, X as ae, F as ue, o as be, V as he, z as ke, ad as xe } from "./number-UhidYs-H.js";
2
+ import { h as i, q as o, e as W, B as u, f as fe, g as R, t as K, G as ye } from "./Web3Auth-C5tucK1E.js";
3
3
  const et = /* @__PURE__ */ e({
4
4
  id: 787,
5
5
  name: "Acala",