@web3jskit/walletkit 0.6.2 → 0.6.3

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/CHANGELOG.zh.md +50 -0
  3. package/README.md +17 -8
  4. package/README.zh.md +17 -8
  5. package/dist/{btcConnector-DyocBque.mjs → btcConnector-B-FBz618.mjs} +2 -2
  6. package/dist/{btcConnector-Ip851Zzx.js → btcConnector-BmBSGGDG.js} +1 -1
  7. package/dist/{btcConnector-ZZavkQAJ.mjs → btcConnector-CoDLrD-5.mjs} +2 -2
  8. package/dist/{btcConnector-CLm-gxx3.js → btcConnector-D6hRNl6J.js} +1 -1
  9. package/dist/core/connectors/connectorLoader.d.ts +1 -1
  10. package/dist/core/connectors/connectorLoader.d.ts.map +1 -1
  11. package/dist/core/connectors/createConnector.entry.d.ts +2 -0
  12. package/dist/core/connectors/createConnector.entry.d.ts.map +1 -0
  13. package/dist/core/connectors/createEvmConnectors.entry.d.ts +2 -0
  14. package/dist/core/connectors/createEvmConnectors.entry.d.ts.map +1 -0
  15. package/dist/createConnector.entry-C2ezrrEW.js +1 -0
  16. package/dist/createConnector.entry-CxyXzv78.mjs +4 -0
  17. package/dist/{createConnectors-BlSjbXr8.mjs → createConnectors-ADoTab9F.mjs} +79 -87
  18. package/dist/{createConnectors-C90GnGoD.mjs → createConnectors-DPb4fTuL.mjs} +174 -179
  19. package/dist/{createConnectors-DdVhGwOT.js → createConnectors-DvITc7A3.js} +2 -2
  20. package/dist/{createConnectors-C-XiQWnC.js → createConnectors-DzepxSHv.js} +3 -3
  21. package/dist/createEvmConnectors.entry-BEhiyNyg.mjs +4 -0
  22. package/dist/createEvmConnectors.entry-CgqSuemU.js +1 -0
  23. package/dist/{deepLinkConnector-GKwdlwJL.js → deepLinkConnector-1KSnxkrX.js} +1 -1
  24. package/dist/{deepLinkConnector-DH_Atv4n.js → deepLinkConnector-7KRiFI0W.js} +1 -1
  25. package/dist/{deepLinkConnector-DofAIemy.mjs → deepLinkConnector-AI0VLF-8.mjs} +1 -1
  26. package/dist/{deepLinkConnector-TxdCVtow.js → deepLinkConnector-B-M6QX4q.js} +1 -1
  27. package/dist/{deepLinkConnector-CtbmZOxo.js → deepLinkConnector-BeJUryP4.js} +1 -1
  28. package/dist/{deepLinkConnector-BTFq-fy4.mjs → deepLinkConnector-BpalZdJ0.mjs} +4 -4
  29. package/dist/{deepLinkConnector-8wywxaVw.mjs → deepLinkConnector-CO4p3xsf.mjs} +1 -1
  30. package/dist/{deepLinkConnector-BXBQDnmz.js → deepLinkConnector-ChrORWtA.js} +1 -1
  31. package/dist/{deepLinkConnector-CamW__vG.js → deepLinkConnector-D8rPZCzr.js} +1 -1
  32. package/dist/{deepLinkConnector-DndXk3_X.mjs → deepLinkConnector-DFrTWxB5.mjs} +1 -1
  33. package/dist/{deepLinkConnector-C_FpxXyQ.js → deepLinkConnector-DQYRdy1s.js} +1 -1
  34. package/dist/{deepLinkConnector-wZignBF4.mjs → deepLinkConnector-DxnaAx50.mjs} +1 -1
  35. package/dist/{deepLinkConnector-BoPREuPE.mjs → deepLinkConnector-OWmd-F6h.mjs} +1 -1
  36. package/dist/{deepLinkConnector-BNSwMCcK.mjs → deepLinkConnector-XCaUTjHC.mjs} +1 -1
  37. package/dist/{index-BYAhc19j.js → index-B7a9zLt1.js} +1 -1
  38. package/dist/{index-DcP0pe9L.mjs → index-BJQl8aKg.mjs} +15 -15
  39. package/dist/index-BNUh90Ws.js +44 -0
  40. package/dist/{index-Ca5U0KJA.mjs → index-BWBZ1f0K.mjs} +31 -31
  41. package/dist/{index-CYV63koi.js → index-C9mc2-wq.js} +1 -1
  42. package/dist/{index-Dyta9O3j.mjs → index-CAgSlROt.mjs} +9 -9
  43. package/dist/{index-D5CDP-Ja.mjs → index-g3j_3V8c.mjs} +1 -1
  44. package/dist/index.css +1 -1
  45. package/dist/index.esm.js +10 -10
  46. package/dist/index.js +1 -1
  47. package/dist/index.umd.js +15 -20
  48. package/dist/index2.css +1 -1
  49. package/dist/index3.css +1 -1
  50. package/dist/{silentConnect-BtDOIOBH.js → silentConnect-Dkz3iVLs.js} +1 -1
  51. package/dist/{silentConnect-Dwh-OCFz.mjs → silentConnect-Dl9do7n_.mjs} +2 -2
  52. package/dist/{tronConnector-1MzggiY6.mjs → tronConnector-BSEWGw1J.mjs} +2 -2
  53. package/dist/{tronConnector-CaAskj-A.mjs → tronConnector-BmK6mYOf.mjs} +2 -2
  54. package/dist/{tronConnector-D1XjDmX5.mjs → tronConnector-CzhOONmt.mjs} +2 -2
  55. package/dist/{tronConnector-CK8B1kxW.js → tronConnector-DBUzHKbS.js} +1 -1
  56. package/dist/{tronConnector-C2XAKGru.js → tronConnector-D_DSkWfc.js} +1 -1
  57. package/dist/{tronConnector-in2hmjSs.js → tronConnector-Dgq9lokx.js} +1 -1
  58. package/package.json +4 -2
  59. package/dist/index-Bo_G8w5V.js +0 -44
  60. /package/dist/{index-Dqp1KqTh.js → index-DuT-f-Zv.js} +0 -0
@@ -2172,13 +2172,15 @@ function Pr() {
2172
2172
  } : null;
2173
2173
  }
2174
2174
  async function Wh(e, t) {
2175
- return (await import("./createConnectors-BlSjbXr8.mjs").then((i) => i.a)).createConnector(e, t);
2175
+ const n = (await import("./createConnector.entry-CxyXzv78.mjs")).default;
2176
+ return n(e, t);
2176
2177
  }
2177
2178
  async function _h() {
2178
- return (await import("./createConnectors-C90GnGoD.mjs").then((t) => t.b)).createConnectors();
2179
+ const e = (await import("./createEvmConnectors.entry-BEhiyNyg.mjs")).default;
2180
+ return e();
2179
2181
  }
2180
2182
  async function $h(e, t) {
2181
- return (await import("./silentConnect-Dwh-OCFz.mjs")).default(e, t);
2183
+ return (await import("./silentConnect-Dl9do7n_.mjs")).default(e, t);
2182
2184
  }
2183
2185
  function vs(e, t) {
2184
2186
  const n = e.exec(t);
@@ -3602,12 +3604,10 @@ async function Qh(e, t) {
3602
3604
  });
3603
3605
  }
3604
3606
  async function Va() {
3605
- const { createConnector: e } = await import("./createConnectors-BlSjbXr8.mjs").then((t) => t.a);
3606
- return e;
3607
+ return (await import("./createConnector.entry-CxyXzv78.mjs")).default;
3607
3608
  }
3608
3609
  async function Ka() {
3609
- const { createConnectors: e } = await import("./createConnectors-C90GnGoD.mjs").then((t) => t.b);
3610
- return e;
3610
+ return (await import("./createEvmConnectors.entry-BEhiyNyg.mjs")).default;
3611
3611
  }
3612
3612
  function Ja({
3613
3613
  hydrated: e,
@@ -6021,7 +6021,7 @@ const Nh = () => {
6021
6021
  if (e === void 0)
6022
6022
  throw new Error("useTheme must be used within a ThemeProvider");
6023
6023
  return e;
6024
- }, Ah = li(() => import("./index-DcP0pe9L.mjs")), Sh = li(() => import("./index-Dyta9O3j.mjs")), Fh = ({
6024
+ }, Ah = li(() => import("./index-BJQl8aKg.mjs")), Sh = li(() => import("./index-CAgSlROt.mjs")), Fh = ({
6025
6025
  children: e,
6026
6026
  theme: t = "light",
6027
6027
  language: n,
@@ -6153,29 +6153,29 @@ export {
6153
6153
  qo as U,
6154
6154
  Fh as W,
6155
6155
  Fo as a,
6156
- Pr as b,
6157
- zr as c,
6158
- Gn as d,
6159
- Yn as e,
6160
- Bt as f,
6161
- Zn as g,
6162
- Ni as h,
6163
- Rh as i,
6164
- To as j,
6165
- Xi as k,
6166
- Vn as l,
6167
- Qh as m,
6168
- mt as n,
6169
- Bh as o,
6170
- on as p,
6171
- Uh as q,
6172
- Yh as r,
6173
- Li as s,
6174
- Va as t,
6156
+ en as b,
6157
+ Xi as c,
6158
+ Vn as d,
6159
+ zr as e,
6160
+ Bh as f,
6161
+ Pr as g,
6162
+ on as h,
6163
+ Uh as i,
6164
+ Zn as j,
6165
+ jh as k,
6166
+ Va as l,
6167
+ Yn as m,
6168
+ Er as n,
6169
+ Gn as o,
6170
+ Rh as p,
6171
+ Bt as q,
6172
+ Ni as r,
6173
+ mt as s,
6174
+ Li as t,
6175
6175
  Yt as u,
6176
- jh as v,
6176
+ Yh as v,
6177
6177
  Xn as w,
6178
- Ch as x,
6179
- Er as y,
6180
- en as z
6178
+ Qh as x,
6179
+ To as y,
6180
+ Ch as z
6181
6181
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("react"),T=require("./index-Dqp1KqTh.js"),l=require("./index-Bo_G8w5V.js"),g=require("./walletName-mwS8Jhxj.js"),B="_modalContent_1q71y_1",$="_body_1q71y_5",R="_section_1q71y_11",M="_title_1q71y_17",L="_walletGrid_1q71y_25",O="_footer_1q71y_51",E="_poweredBy_1q71y_55",U="_connecting_1q71y_62",K="_content_1q71y_70",A="_walletIcon_1q71y_77",D="_iconContainer_1q71y_80",G="_status_1q71y_98",P="_subtitle_1q71y_111",z="_spinner_1q71y_119",H="_inner_1q71y_127",a={modalContent:B,body:$,section:R,title:M,walletGrid:L,footer:O,poweredBy:E,connecting:U,content:K,walletIcon:A,iconContainer:D,status:G,subtitle:P,spinner:z,inner:H},F=1e3*60*60*24,W=e=>e.connectorType===l.ConnectorType.Installed||e.connectorType===l.ConnectorType.Run,J=e=>g.normalizeWalletKey(e)==="browserwallet",Q=(e,s,c=Date.now())=>!(s!=null&&s.name)||!s.timestamp||s.timestamp<=c-F||g.normalizeWalletKey(e.name)!==g.normalizeWalletKey(s.name)?!1:W(e),q=e=>J(e.name)?2:e.isRecent?0:W(e)?1:3,V=(e,s)=>{const c=e.filter(Boolean);for(const i of c)i.isRecent=Q(i,s);return c.sort((i,n)=>q(i)-q(n))},X="_walletItem_11u8p_1",Y="_content_11u8p_16",Z="_icon_11u8p_22",ee="_name_11u8p_42",te="_badge_11u8p_49",se="_installed_11u8p_62",ne="_recent_11u8p_67",le="_disabled_11u8p_72",ae="_skeleton_11u8p_76",o={walletItem:X,content:Y,icon:Z,name:ee,badge:te,installed:se,recent:ne,disabled:le,skeleton:ae},oe=({connector:e,onConnect:s,onError:c})=>{const{connectStatus:i,currentChainType:n,currentConnector:u,isConnecting:C,setRecentConnector:d}=l.useWalletKit(),{allowSwitchWallet:y}=_.useContext(l.ChainContext),{t:m}=l.useTranslation(),p=_.useMemo(()=>y?!1:(u==null?void 0:u.chainType)===n&&i==="connected",[y,i,u,n]),h=async()=>{try{if((e==null?void 0:e.connectorType)===l.ConnectorType.More){const x=l.checkIsMobile();e!=null&&e.deepLink&&x&&!l.detectWalletBrowser()?console.log("deepLink"):(console.log("not deepLink",e),x?e!=null&&e.downloadUrl?window.open(e.downloadUrl,"_blank"):console.log("no downloadUrl",e):e!=null&&e.extension?window.open(e.extension,"_blank"):console.log("no extension",e))}if(p||C)return;const w=await e.connect();d({name:e.name,timestamp:Date.now()}),typeof s=="function"&&s(w)}catch(w){c==null||c(w)}},f=["run","installed"].includes(e.connectorType),j=l.formatWalletDisplayName(e.name);return t.jsxs("div",{className:`${o.walletItem} ${p?o.disabled:""}`,onClick:h,children:[t.jsxs("div",{className:o.content,children:[t.jsx("div",{className:o.icon,children:t.jsx("img",{src:e.icon,alt:j,width:32,height:32})}),t.jsx("span",{className:o.name,children:j})]}),e.isRecent&&t.jsx("div",{className:`${o.badge} ${o.recent}`,children:m("recent")}),f&&!e.isRecent&&t.jsx("div",{className:`${o.badge} ${o.installed}`,children:m("installed")})]})},ie=({showBadge:e=!0})=>t.jsxs("div",{className:`${o.walletItem} ${o.skeleton}`,"aria-hidden":!0,children:[t.jsxs("div",{className:o.content,children:[t.jsx("div",{className:o.icon}),t.jsx("span",{className:o.name})]}),e?t.jsx("div",{className:`${o.badge} ${o.installed}`}):null]}),ce=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",children:t.jsx("path",{d:"M23 43C34.0457 43 43 34.0457 43 23C43 11.9543 34.0457 3 23 3C11.9543 3 3 11.9543 3 23",stroke:"currentColor",strokeWidth:"6"})}),re=6,de=4,me=(e,s=e)=>Array.from({length:e},(c,i)=>t.jsx(ie,{showBadge:i<s},i)),_e=({productName:e})=>{const{t:s}=l.useTranslation(),{currentChainType:c,supportWallets:i,isConnecting:n,setIsConnecting:u,recentConnector:C}=l.useWalletKit(),{connectModalData:d}=l.useModalStore(),[y,m]=_.useState([]),[p,h]=_.useState(!0),f=_.useMemo(()=>!!d,[d]);_.useEffect(()=>{if(!f){m([]),h(!1);return}let r=!1;return(async()=>{h(!0),m([]);try{const v=await(await l.loadCreateConnector())(c,i||[]);r||m((Array.isArray(v)?v:[]).filter(Boolean))}catch(b){console.error("Failed to load wallet connectors",b),r||m([])}finally{r||h(!1)}})(),()=>{r=!0}},[f,c,i]);const j=r=>{d==null||d.onConnect(r)},w=()=>{var r;(r=l.useModalStore.getState().connectModalData)==null||r.onError(l.UserRejectError),n&&u(!1)},x=_.useMemo(()=>V(y,C),[y,C]),N=l.isHiBroBrowser(),I=N||!p&&x.length<=1,S=N?1:re,k=N?1:de;return t.jsx(T.Modal,{isOpen:f,onClose:w,title:String(s(n?"connecting":"connect")),compact:I,children:t.jsxs("div",{className:a.modalContent,children:[n&&typeof n=="object"?t.jsx("div",{className:a.connecting,children:t.jsxs("div",{className:a.content,children:[t.jsx("div",{className:a.walletIcon,children:t.jsx("div",{className:a.iconContainer,children:t.jsx("img",{src:n==null?void 0:n.icon,alt:l.formatWalletDisplayName(n==null?void 0:n.name)})})}),t.jsxs("div",{className:a.status,children:[t.jsx("h3",{className:a.title,children:s("openingWallet",{name:l.formatWalletDisplayName(n==null?void 0:n.name)})}),t.jsx("div",{className:a.subtitle,children:s("confirmConnection")})]}),t.jsx("div",{className:a.spinner,children:t.jsx("div",{className:a.inner,children:t.jsx(ce,{})})})]})}):t.jsx("div",{className:a.body,"aria-busy":p,children:t.jsxs("div",{className:a.section,children:[t.jsx("h3",{className:a.title,children:s("popularWallets")}),t.jsx("div",{className:a.walletGrid,children:p?me(S,k):x.map(r=>t.jsx(oe,{connector:r,onConnect:j,onError:d==null?void 0:d.onError},r.name))})]})}),e&&t.jsx("div",{className:a.footer,children:t.jsx("p",{className:a.poweredBy,children:s("poweredBy",{productName:e})})})]})})};exports.default=_e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("react"),T=require("./index-DuT-f-Zv.js"),l=require("./index-BNUh90Ws.js"),g=require("./walletName-mwS8Jhxj.js"),B="_modalContent_1q71y_1",$="_body_1q71y_5",R="_section_1q71y_11",M="_title_1q71y_17",L="_walletGrid_1q71y_25",O="_footer_1q71y_51",E="_poweredBy_1q71y_55",U="_connecting_1q71y_62",K="_content_1q71y_70",A="_walletIcon_1q71y_77",D="_iconContainer_1q71y_80",G="_status_1q71y_98",P="_subtitle_1q71y_111",z="_spinner_1q71y_119",H="_inner_1q71y_127",a={modalContent:B,body:$,section:R,title:M,walletGrid:L,footer:O,poweredBy:E,connecting:U,content:K,walletIcon:A,iconContainer:D,status:G,subtitle:P,spinner:z,inner:H},F=1e3*60*60*24,W=e=>e.connectorType===l.ConnectorType.Installed||e.connectorType===l.ConnectorType.Run,J=e=>g.normalizeWalletKey(e)==="browserwallet",Q=(e,s,c=Date.now())=>!(s!=null&&s.name)||!s.timestamp||s.timestamp<=c-F||g.normalizeWalletKey(e.name)!==g.normalizeWalletKey(s.name)?!1:W(e),q=e=>J(e.name)?2:e.isRecent?0:W(e)?1:3,V=(e,s)=>{const c=e.filter(Boolean);for(const i of c)i.isRecent=Q(i,s);return c.sort((i,n)=>q(i)-q(n))},X="_walletItem_11u8p_1",Y="_content_11u8p_16",Z="_icon_11u8p_22",ee="_name_11u8p_42",te="_badge_11u8p_49",se="_installed_11u8p_62",ne="_recent_11u8p_67",le="_disabled_11u8p_72",ae="_skeleton_11u8p_76",o={walletItem:X,content:Y,icon:Z,name:ee,badge:te,installed:se,recent:ne,disabled:le,skeleton:ae},oe=({connector:e,onConnect:s,onError:c})=>{const{connectStatus:i,currentChainType:n,currentConnector:u,isConnecting:C,setRecentConnector:d}=l.useWalletKit(),{allowSwitchWallet:y}=_.useContext(l.ChainContext),{t:m}=l.useTranslation(),p=_.useMemo(()=>y?!1:(u==null?void 0:u.chainType)===n&&i==="connected",[y,i,u,n]),h=async()=>{try{if((e==null?void 0:e.connectorType)===l.ConnectorType.More){const x=l.checkIsMobile();e!=null&&e.deepLink&&x&&!l.detectWalletBrowser()?console.log("deepLink"):(console.log("not deepLink",e),x?e!=null&&e.downloadUrl?window.open(e.downloadUrl,"_blank"):console.log("no downloadUrl",e):e!=null&&e.extension?window.open(e.extension,"_blank"):console.log("no extension",e))}if(p||C)return;const w=await e.connect();d({name:e.name,timestamp:Date.now()}),typeof s=="function"&&s(w)}catch(w){c==null||c(w)}},f=["run","installed"].includes(e.connectorType),j=l.formatWalletDisplayName(e.name);return t.jsxs("div",{className:`${o.walletItem} ${p?o.disabled:""}`,onClick:h,children:[t.jsxs("div",{className:o.content,children:[t.jsx("div",{className:o.icon,children:t.jsx("img",{src:e.icon,alt:j,width:32,height:32})}),t.jsx("span",{className:o.name,children:j})]}),e.isRecent&&t.jsx("div",{className:`${o.badge} ${o.recent}`,children:m("recent")}),f&&!e.isRecent&&t.jsx("div",{className:`${o.badge} ${o.installed}`,children:m("installed")})]})},ie=({showBadge:e=!0})=>t.jsxs("div",{className:`${o.walletItem} ${o.skeleton}`,"aria-hidden":!0,children:[t.jsxs("div",{className:o.content,children:[t.jsx("div",{className:o.icon}),t.jsx("span",{className:o.name})]}),e?t.jsx("div",{className:`${o.badge} ${o.installed}`}):null]}),ce=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",children:t.jsx("path",{d:"M23 43C34.0457 43 43 34.0457 43 23C43 11.9543 34.0457 3 23 3C11.9543 3 3 11.9543 3 23",stroke:"currentColor",strokeWidth:"6"})}),re=6,de=4,me=(e,s=e)=>Array.from({length:e},(c,i)=>t.jsx(ie,{showBadge:i<s},i)),_e=({productName:e})=>{const{t:s}=l.useTranslation(),{currentChainType:c,supportWallets:i,isConnecting:n,setIsConnecting:u,recentConnector:C}=l.useWalletKit(),{connectModalData:d}=l.useModalStore(),[y,m]=_.useState([]),[p,h]=_.useState(!0),f=_.useMemo(()=>!!d,[d]);_.useEffect(()=>{if(!f){m([]),h(!1);return}let r=!1;return(async()=>{h(!0),m([]);try{const v=await(await l.loadCreateConnector())(c,i||[]);r||m((Array.isArray(v)?v:[]).filter(Boolean))}catch(b){console.error("Failed to load wallet connectors",b),r||m([])}finally{r||h(!1)}})(),()=>{r=!0}},[f,c,i]);const j=r=>{d==null||d.onConnect(r)},w=()=>{var r;(r=l.useModalStore.getState().connectModalData)==null||r.onError(l.UserRejectError),n&&u(!1)},x=_.useMemo(()=>V(y,C),[y,C]),N=l.isHiBroBrowser(),I=N||!p&&x.length<=1,S=N?1:re,k=N?1:de;return t.jsx(T.Modal,{isOpen:f,onClose:w,title:String(s(n?"connecting":"connect")),compact:I,children:t.jsxs("div",{className:a.modalContent,children:[n&&typeof n=="object"?t.jsx("div",{className:a.connecting,children:t.jsxs("div",{className:a.content,children:[t.jsx("div",{className:a.walletIcon,children:t.jsx("div",{className:a.iconContainer,children:t.jsx("img",{src:n==null?void 0:n.icon,alt:l.formatWalletDisplayName(n==null?void 0:n.name)})})}),t.jsxs("div",{className:a.status,children:[t.jsx("h3",{className:a.title,children:s("openingWallet",{name:l.formatWalletDisplayName(n==null?void 0:n.name)})}),t.jsx("div",{className:a.subtitle,children:s("confirmConnection")})]}),t.jsx("div",{className:a.spinner,children:t.jsx("div",{className:a.inner,children:t.jsx(ce,{})})})]})}):t.jsx("div",{className:a.body,"aria-busy":p,children:t.jsxs("div",{className:a.section,children:[t.jsx("h3",{className:a.title,children:s("popularWallets")}),t.jsx("div",{className:a.walletGrid,children:p?me(S,k):x.map(r=>t.jsx(oe,{connector:r,onConnect:j,onError:d==null?void 0:d.onError},r.name))})]})}),e&&t.jsx("div",{className:a.footer,children:t.jsx("p",{className:a.poweredBy,children:s("poweredBy",{productName:e})})})]})})};exports.default=_e;
@@ -1,7 +1,7 @@
1
- import "./index2.css";
1
+ import "./index3.css";
2
2
  import { jsxs as u, jsx as n } from "react/jsx-runtime";
3
- import { M as g, a as v } from "./index-D5CDP-Ja.mjs";
4
- import { g as b, l as h, u as y, p as w, v as x } from "./index-Ca5U0KJA.mjs";
3
+ import { M as g, a as v } from "./index-g3j_3V8c.mjs";
4
+ import { j as b, d as h, u as y, h as w, k as x } from "./index-BWBZ1f0K.mjs";
5
5
  import { useState as _, useEffect as D } from "react";
6
6
  const H = () => /* @__PURE__ */ u("svg", { fill: "none", height: "16", viewBox: "0 0 17 16", width: "17", xmlns: "http://www.w3.org/2000/svg", children: [
7
7
  /* @__PURE__ */ n("title", { children: "Copy" }),
@@ -62,7 +62,7 @@ function V(a) {
62
62
  var e = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
63
63
  return a.replace(/#{\s*key\s*}/g, e);
64
64
  }
65
- function E(a, e) {
65
+ function k(a, e) {
66
66
  var t, l, r, d, s, o, f = !1;
67
67
  e || (e = {}), t = e.debug || !1;
68
68
  try {
@@ -92,17 +92,17 @@ function E(a, e) {
92
92
  }
93
93
  return f;
94
94
  }
95
- var k = E;
96
- const L = /* @__PURE__ */ b(k), A = "_container_119qo_1", R = "_avatarBox_119qo_7", q = "_avatar_119qo_7", B = "_accountInfo_119qo_19", U = "_address_119qo_23", Z = "_btnGroup_119qo_34", G = "_button_119qo_43", P = "_btnIcon_119qo_57", j = "_btnText_119qo_60", c = {
95
+ var E = k;
96
+ const L = /* @__PURE__ */ b(E), A = "_container_119qo_1", R = "_avatarBox_119qo_7", q = "_avatar_119qo_7", B = "_accountInfo_119qo_19", U = "_address_119qo_23", Z = "_btnGroup_119qo_34", j = "_button_119qo_43", G = "_btnIcon_119qo_57", P = "_btnText_119qo_60", c = {
97
97
  container: A,
98
98
  avatarBox: R,
99
99
  avatar: q,
100
100
  accountInfo: B,
101
101
  address: U,
102
102
  btnGroup: Z,
103
- button: G,
104
- btnIcon: P,
105
- btnText: j
103
+ button: j,
104
+ btnIcon: G,
105
+ btnText: P
106
106
  }, $ = () => {
107
107
  const { t: a } = h(), { walletAddress: e, avatar: t, setAvatar: l, currentConnector: r } = y(), [d, s] = _(!1), { closeWalletInfoModal: o, isShowWalletInfoModal: f } = w();
108
108
  D(() => {
@@ -1,4 +1,4 @@
1
- import "./index3.css";
1
+ import "./index.css";
2
2
  import { jsx as e, jsxs as i, Fragment as v } from "react/jsx-runtime";
3
3
  import { useRef as w, useEffect as h } from "react";
4
4
  import { createPortal as y } from "react-dom";
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- ._modalContent_1q71y_1{display:flex;flex-direction:column}._body_1q71y_5{max-height:min(380px,calc(100vh - 220px));overflow:auto;padding:0 12px;margin:0 -12px}._body_1q71y_5 ._section_1q71y_11{margin-bottom:24px}._body_1q71y_5 ._section_1q71y_11:last-child{margin-bottom:0}._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:400;color:var(--walletkit-text-color-secondary);margin:0 0 12px;padding:0 12px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25{display:grid;grid-template-columns:1fr 1fr;gap:8px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25>:only-child{grid-column:1 / -1}._body_1q71y_5::-webkit-scrollbar{width:6px}._body_1q71y_5::-webkit-scrollbar-thumb{height:6px;border-radius:10px;background:#0000001a}._body_1q71y_5::-webkit-scrollbar-track{width:6px;margin:0 2px;background-color:transparent}@supports (height: 100dvh){._body_1q71y_5{max-height:min(380px,calc(100dvh - 220px))}}._footer_1q71y_51{margin-top:32px;text-align:center}._footer_1q71y_51 ._poweredBy_1q71y_55{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:500;color:#94969b;margin:0}._connecting_1q71y_62{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:34px 0}._connecting_1q71y_62 ._content_1q71y_70{display:flex;flex-direction:column;align-items:center;gap:32px;text-align:center}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77{position:relative}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80{width:128px;height:128px;border-radius:16px;background:var(--walletkit-background-color-list);display:flex;align-items:center;justify-content:center;font-size:48px;color:#09131f;position:relative;overflow:hidden}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80 img{width:48px;height:48px;border-radius:8px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98{display:flex;flex-direction:column;gap:12px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:20px;font-weight:500;color:var(--walletkit-text-color);margin:0;line-height:1.2}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._subtitle_1q71y_111{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;font-weight:400;color:var(--walletkit-text-color-secondary);margin:0;line-height:1.2}._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119{width:46px;height:46px;position:relative;display:flex;align-items:center;justify-content:center}._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119 ._inner_1q71y_127{color:var(--walletkit-text-color);width:46px;height:46px;animation:_spin_1q71y_119 1s linear infinite}@keyframes _spin_1q71y_119{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:500px){._body_1q71y_5{max-height:min(400px,calc(100vh - 170px));padding:0 8px 0 18px;margin:0 -8px}._body_1q71y_5 ._section_1q71y_11{margin-bottom:20px}._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17{font-size:14px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25{grid-template-columns:1fr}._footer_1q71y_51 ._poweredBy_1q71y_55{font-size:12px}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80{width:96px;height:96px;font-size:36px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17{font-size:18px}}@supports (height: 100dvh){@media(max-width:500px){._body_1q71y_5{max-height:min(400px,calc(100dvh - 170px))}}}._walletItem_11u8p_1{background:var(--walletkit-background-color-list);border-radius:8px;padding:16px;cursor:pointer;transition:all .2s ease-in-out;position:relative;min-height:64px;display:flex;align-items:center;justify-content:space-between}._walletItem_11u8p_1:hover{transform:translateY(-1px)}._walletItem_11u8p_1 ._content_11u8p_16{display:flex;align-items:center;gap:8px;flex:1}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22{width:32px;height:32px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;flex-shrink:0}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22 img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block}._walletItem_11u8p_1 ._content_11u8p_16 ._name_11u8p_42{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:500;color:var(--walletkit-text-color);line-height:1.5}._walletItem_11u8p_1 ._badge_11u8p_49{position:absolute;top:-4px;right:-4px;padding:5px 8px;border-radius:4px;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;border:1px solid}._walletItem_11u8p_1 ._badge_11u8p_49._installed_11u8p_62{background:var(--walletkit-background-color-light);color:var(--walletkit-text-color);border-color:var(--walletkit-border-color-light)}._walletItem_11u8p_1 ._badge_11u8p_49._recent_11u8p_67{background:#b3ecf9;color:#105681;border-color:#88ddf4}._walletItem_11u8p_1._disabled_11u8p_72{opacity:.5;pointer-events:none}._walletItem_11u8p_1._skeleton_11u8p_76{cursor:default;pointer-events:none}._walletItem_11u8p_1._skeleton_11u8p_76:hover{transform:none}._walletItem_11u8p_1._skeleton_11u8p_76 ._icon_11u8p_22,._walletItem_11u8p_1._skeleton_11u8p_76 ._name_11u8p_42,._walletItem_11u8p_1._skeleton_11u8p_76 ._badge_11u8p_49{background-color:var(--walletkit-border-color);animation:_walletItemPulse_11u8p_1 1.2s ease-in-out infinite}._walletItem_11u8p_1._skeleton_11u8p_76 ._name_11u8p_42{display:inline-block;width:88px;height:16px;border-radius:4px}._walletItem_11u8p_1._skeleton_11u8p_76 ._badge_11u8p_49{width:64px;height:22px;border-color:transparent;background:var(--walletkit-border-color)}@keyframes _walletItemPulse_11u8p_1{0%,to{opacity:.38}50%{opacity:.72}}@media(max-width:500px){._walletItem_11u8p_1{padding:16px 12px}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22{width:40px;height:40px}}
1
+ ._backdrop_1y3tp_1{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--walletkit-modal-background-color);-webkit-backdrop-filter:var(--walletkit-modal-background-filter);backdrop-filter:var(--walletkit-modal-background-filter);display:flex;align-items:center;justify-content:center;z-index:1000}._modal_1y3tp_14{background:var(--walletkit-background-color);border-radius:24px;box-shadow:0 40px 80px #0000000d;border:8px solid var(--walletkit-background-color);max-width:500px;width:100%;max-height:min(80vh,calc(100% - 24px));overflow:hidden;position:relative;transition:all .3s ease-in-out;padding:0 12px 12px;display:flex;flex-direction:column}@supports (height: 100dvh){._modal_1y3tp_14{max-height:min(80dvh,calc(100% - 24px))}}@media(max-width:500px){._backdrop_1y3tp_1{align-items:flex-end;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}._modal_1y3tp_14{max-width:100%;border-radius:24px 24px 0 0;border-width:4px;max-height:calc(100% - env(safe-area-inset-top,0px));padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))}._compact_1y3tp_47{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}}@supports (height: 100dvh){@media(max-width:500px){._modal_1y3tp_14{max-height:calc(100dvh - env(safe-area-inset-top,0px))}}}._header_132o6_1{display:flex;align-items:center;justify-content:space-between;padding:32px 12px}._header_132o6_1 ._title_132o6_7{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:32px;font-weight:700;color:var(--walletkit-text-color);margin:0;line-height:1;transition:color .3s ease-in-out}._modal_132o6_16._connecting_132o6_16 ._header_132o6_1 ._title_132o6_7{color:#09131f}._header_132o6_1 ._close_132o6_19{cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:40px;transition:all .2s;color:var(--walletkit-text-color);transform-origin:50% 50%;background-color:var(--walletkit-background-color-light);z-index:1;border-radius:20px;border:2px solid #fff;background:linear-gradient(264deg,#ffffff80 3.24%,#fffc 96.39%);box-shadow:0 0 40px 20px #00000008}._header_132o6_1 ._close_132o6_19:hover{background-color:var(--walletkit-background-color-light);transform:rotate(180deg);transition:all .2s}._header_132o6_1 ._close_132o6_19:focus-visible{outline:2px solid var(--walletkit-primary-color);outline-offset:2px}._header_132o6_1 ._close_132o6_19 ._icon_132o6_45{font-size:24px;color:var(--walletkit-text-color);font-weight:300;transform:rotate(45deg);line-height:1}[data-theme=dark] ._close_132o6_19{border:2px solid rgba(255,255,255,.05);background:linear-gradient(264deg,#ffffff0d 3.24%,#ffffff14 96.39%);box-shadow:0 20px 40px #0000000d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@media(max-width:500px){._header_132o6_1{padding:12px 12px 20px}._header_132o6_1 ._title_132o6_7{font-size:24px}}
package/dist/index.esm.js CHANGED
@@ -1,26 +1,26 @@
1
- import { C as t, I as s, f as o, a as r, E as l, A as n, S as c, T as p, B as u, W as i, c as m, F as C, G as T, D as W, b as d, H as S, J as g, m as h, r as w, L as k, K as v, u as K, w as B } from "./index-Ca5U0KJA.mjs";
1
+ import { C as t, I as s, q as o, a as l, E as r, A as n, S as c, T as p, B as u, W as i, e as C, F as m, G as T, D as W, g as d, H as g, J as S, x as h, v, L as w, K as k, u as K, w as B } from "./index-BWBZ1f0K.mjs";
2
2
  export {
3
3
  t as ChainType,
4
4
  s as ConnectButton,
5
5
  o as ConnectStatus,
6
- r as ConnectorType,
7
- l as EvmNetworks,
6
+ l as ConnectorType,
7
+ r as EvmNetworks,
8
8
  n as SupportWallet,
9
9
  c as SupportWallets,
10
10
  p as ThemeToggle,
11
11
  u as TronNetworks,
12
12
  i as WalletKitProvider,
13
- m as checkIsMobile,
14
- C as createConnector,
13
+ C as checkIsMobile,
14
+ m as createConnector,
15
15
  T as createEvmConnectors,
16
16
  W as decodePhantomDeepLink,
17
17
  d as detectWalletBrowser,
18
- S as evmSilentConnect,
19
- g as getWalletKit,
18
+ g as evmSilentConnect,
19
+ S as getWalletKit,
20
20
  h as multicallRpc,
21
- w as readContractRpc,
22
- k as supportedLanguages,
23
- v as useTheme,
21
+ v as readContractRpc,
22
+ w as supportedLanguages,
23
+ k as useTheme,
24
24
  K as useWalletKit,
25
25
  B as walletHelperStore
26
26
  };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Bo_G8w5V.js");exports.ChainType=e.ChainType;exports.ConnectButton=e.ConnectButton;exports.ConnectStatus=e.ConnectStatus;exports.ConnectorType=e.ConnectorType;exports.EvmNetworks=e.EvmNetworks;exports.SupportWallet=e.SupportWallet;exports.SupportWallets=e.SupportWallets;exports.ThemeToggle=e.ThemeToggle;exports.TronNetworks=e.TronNetworks;exports.WalletKitProvider=e.WalletKitProvider;exports.checkIsMobile=e.checkIsMobile;exports.createConnector=e.createConnector;exports.createEvmConnectors=e.createEvmConnectors;exports.decodePhantomDeepLink=e.decodePhantomDeepLink;exports.detectWalletBrowser=e.detectWalletBrowser;exports.evmSilentConnect=e.evmSilentConnect;exports.getWalletKit=e.getWalletKit;exports.multicallRpc=e.multicallRpc;exports.readContractRpc=e.readContractRpc;exports.supportedLanguages=e.supportedLanguages;exports.useTheme=e.useTheme;exports.useWalletKit=e.useWalletKit;exports.walletHelperStore=e.walletHelperStore;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BNUh90Ws.js");exports.ChainType=e.ChainType;exports.ConnectButton=e.ConnectButton;exports.ConnectStatus=e.ConnectStatus;exports.ConnectorType=e.ConnectorType;exports.EvmNetworks=e.EvmNetworks;exports.SupportWallet=e.SupportWallet;exports.SupportWallets=e.SupportWallets;exports.ThemeToggle=e.ThemeToggle;exports.TronNetworks=e.TronNetworks;exports.WalletKitProvider=e.WalletKitProvider;exports.checkIsMobile=e.checkIsMobile;exports.createConnector=e.createConnector;exports.createEvmConnectors=e.createEvmConnectors;exports.decodePhantomDeepLink=e.decodePhantomDeepLink;exports.detectWalletBrowser=e.detectWalletBrowser;exports.evmSilentConnect=e.evmSilentConnect;exports.getWalletKit=e.getWalletKit;exports.multicallRpc=e.multicallRpc;exports.readContractRpc=e.readContractRpc;exports.supportedLanguages=e.supportedLanguages;exports.useTheme=e.useTheme;exports.useWalletKit=e.useWalletKit;exports.walletHelperStore=e.walletHelperStore;
package/dist/index.umd.js CHANGED
@@ -4107,12 +4107,12 @@
4107
4107
  return null;
4108
4108
  }
4109
4109
  async function createConnector$1(chainType, supportList) {
4110
- const module2 = await Promise.resolve().then(() => createConnectors);
4111
- return module2.createConnector(chainType, supportList);
4110
+ const create2 = (await Promise.resolve().then(() => createConnector_entry)).default;
4111
+ return create2(chainType, supportList);
4112
4112
  }
4113
4113
  async function createEvmConnectors() {
4114
- const module2 = await Promise.resolve().then(() => createConnectors$2);
4115
- return module2.createConnectors();
4114
+ const create2 = (await Promise.resolve().then(() => createEvmConnectors_entry)).default;
4115
+ return create2();
4116
4116
  }
4117
4117
  async function evmSilentConnect$1(wallet, networkId) {
4118
4118
  const module2 = await Promise.resolve().then(() => silentConnect);
@@ -6008,12 +6008,10 @@
6008
6008
  return deepDecodeResult;
6009
6009
  }
6010
6010
  async function loadCreateConnector() {
6011
- const { createConnector: createConnector2 } = await Promise.resolve().then(() => createConnectors);
6012
- return createConnector2;
6011
+ return (await Promise.resolve().then(() => createConnector_entry)).default;
6013
6012
  }
6014
6013
  async function loadCreateEvmConnectors() {
6015
- const { createConnectors: createConnectors2 } = await Promise.resolve().then(() => createConnectors$2);
6016
- return createConnectors2;
6014
+ return (await Promise.resolve().then(() => createEvmConnectors_entry)).default;
6017
6015
  }
6018
6016
  function connectorInitializationMode({
6019
6017
  hydrated,
@@ -12180,7 +12178,7 @@
12180
12178
  });
12181
12179
  }
12182
12180
  }
12183
- async function createConnectors$1() {
12181
+ async function createConnectors() {
12184
12182
  const mipd = typeof window !== "undefined" ? createStore() : void 0;
12185
12183
  const connectors = createStore$1(() => {
12186
12184
  const collection = [];
@@ -12210,10 +12208,6 @@
12210
12208
  });
12211
12209
  return [...connectors.getState()];
12212
12210
  }
12213
- const createConnectors$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12214
- __proto__: null,
12215
- createConnectors: createConnectors$1
12216
- }, Symbol.toStringTag, { value: "Module" }));
12217
12211
  const INVALID_TO_STRING_VALUES = /* @__PURE__ */ new Set(["[object Object]", "undefined", "null"]);
12218
12212
  const normalizeAddressCandidate = (value) => {
12219
12213
  if (!value) return void 0;
@@ -13150,7 +13144,7 @@
13150
13144
  };
13151
13145
  async function discoverInstalled(chainType) {
13152
13146
  if (chainType === ChainType.EVM) {
13153
- return createConnectors$1();
13147
+ return createConnectors();
13154
13148
  }
13155
13149
  if (chainType === ChainType.SOL) {
13156
13150
  return discoverSolWallets();
@@ -13207,7 +13201,7 @@
13207
13201
  const browserWallet2 = window.ethereum ? createBrowserWallet(chainType) : null;
13208
13202
  let evmConnectors = [];
13209
13203
  try {
13210
- evmConnectors = await createConnectors$1();
13204
+ evmConnectors = await createConnectors();
13211
13205
  } catch (error) {
13212
13206
  console.error("Failed to discover injected EVM wallets", error);
13213
13207
  }
@@ -13255,12 +13249,13 @@
13255
13249
  ];
13256
13250
  return finish([...installed2, browserWallet, ...rest]);
13257
13251
  }
13258
- const createConnectors = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13252
+ const createConnector_entry = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13253
+ __proto__: null,
13254
+ default: createConnector
13255
+ }, Symbol.toStringTag, { value: "Module" }));
13256
+ const createEvmConnectors_entry = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13259
13257
  __proto__: null,
13260
- createConnector,
13261
- discoverInstalled,
13262
- getBitcoinProvider,
13263
- normalizeWalletKey
13258
+ default: createConnectors
13264
13259
  }, Symbol.toStringTag, { value: "Module" }));
13265
13260
  const evmSilentConnect = async (wallet, netWorkId) => {
13266
13261
  const connectors = await createConnector(ChainType.EVM);
package/dist/index2.css CHANGED
@@ -1 +1 @@
1
- ._container_119qo_1{display:flex;flex-direction:column;align-items:center;text-align:center}._container_119qo_1 ._avatarBox_119qo_7{margin-top:-28px;font-size:41px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:74px;height:74px;line-height:74px;border-radius:50%;-webkit-user-select:none;user-select:none;cursor:pointer}._container_119qo_1 ._accountInfo_119qo_19{margin-top:12px;color:var(--walletkit-text-color)}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:18px;font-weight:800;line-height:24px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:14px;font-weight:600;line-height:18px;color:var(--walletkit-text-color-secondary)}._container_119qo_1 ._btnGroup_119qo_34{display:flex;gap:8px;margin-top:16px;width:100%;justify-content:center;padding:0 16px 16px;box-sizing:border-box}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43{padding:8px;color:var(--walletkit-text-color);width:100%;display:flex;flex-direction:column;align-items:center;cursor:pointer;border-radius:12px;background-color:var(--walletkit-background-color-light)}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43:hover{background-color:var(--walletkit-background-color-list)}._container_119qo_1 ._btnGroup_119qo_34 ._btnIcon_119qo_57{height:18px}._container_119qo_1 ._btnGroup_119qo_34 ._btnText_119qo_60{font-size:13px;font-weight:600;line-height:18px}@media(max-width:768px){._container_119qo_1 ._avatarBox_119qo_7{margin-top:-4px;font-size:45px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:82px;height:82px;line-height:82px}._container_119qo_1 ._accountInfo_119qo_19{margin-top:16px}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:20px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:16px;line-height:20px}}
1
+ ._modalContent_1q71y_1{display:flex;flex-direction:column}._body_1q71y_5{max-height:min(380px,calc(100vh - 220px));overflow:auto;padding:0 12px;margin:0 -12px}._body_1q71y_5 ._section_1q71y_11{margin-bottom:24px}._body_1q71y_5 ._section_1q71y_11:last-child{margin-bottom:0}._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:400;color:var(--walletkit-text-color-secondary);margin:0 0 12px;padding:0 12px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25{display:grid;grid-template-columns:1fr 1fr;gap:8px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25>:only-child{grid-column:1 / -1}._body_1q71y_5::-webkit-scrollbar{width:6px}._body_1q71y_5::-webkit-scrollbar-thumb{height:6px;border-radius:10px;background:#0000001a}._body_1q71y_5::-webkit-scrollbar-track{width:6px;margin:0 2px;background-color:transparent}@supports (height: 100dvh){._body_1q71y_5{max-height:min(380px,calc(100dvh - 220px))}}._footer_1q71y_51{margin-top:32px;text-align:center}._footer_1q71y_51 ._poweredBy_1q71y_55{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:500;color:#94969b;margin:0}._connecting_1q71y_62{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:34px 0}._connecting_1q71y_62 ._content_1q71y_70{display:flex;flex-direction:column;align-items:center;gap:32px;text-align:center}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77{position:relative}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80{width:128px;height:128px;border-radius:16px;background:var(--walletkit-background-color-list);display:flex;align-items:center;justify-content:center;font-size:48px;color:#09131f;position:relative;overflow:hidden}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80 img{width:48px;height:48px;border-radius:8px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98{display:flex;flex-direction:column;gap:12px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:20px;font-weight:500;color:var(--walletkit-text-color);margin:0;line-height:1.2}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._subtitle_1q71y_111{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;font-weight:400;color:var(--walletkit-text-color-secondary);margin:0;line-height:1.2}._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119{width:46px;height:46px;position:relative;display:flex;align-items:center;justify-content:center}._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119 ._inner_1q71y_127{color:var(--walletkit-text-color);width:46px;height:46px;animation:_spin_1q71y_119 1s linear infinite}@keyframes _spin_1q71y_119{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:500px){._body_1q71y_5{max-height:min(400px,calc(100vh - 170px));padding:0 8px 0 18px;margin:0 -8px}._body_1q71y_5 ._section_1q71y_11{margin-bottom:20px}._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17{font-size:14px}._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25{grid-template-columns:1fr}._footer_1q71y_51 ._poweredBy_1q71y_55{font-size:12px}._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80{width:96px;height:96px;font-size:36px}._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17{font-size:18px}}@supports (height: 100dvh){@media(max-width:500px){._body_1q71y_5{max-height:min(400px,calc(100dvh - 170px))}}}._walletItem_11u8p_1{background:var(--walletkit-background-color-list);border-radius:8px;padding:16px;cursor:pointer;transition:all .2s ease-in-out;position:relative;min-height:64px;display:flex;align-items:center;justify-content:space-between}._walletItem_11u8p_1:hover{transform:translateY(-1px)}._walletItem_11u8p_1 ._content_11u8p_16{display:flex;align-items:center;gap:8px;flex:1}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22{width:32px;height:32px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;flex-shrink:0}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22 img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block}._walletItem_11u8p_1 ._content_11u8p_16 ._name_11u8p_42{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:500;color:var(--walletkit-text-color);line-height:1.5}._walletItem_11u8p_1 ._badge_11u8p_49{position:absolute;top:-4px;right:-4px;padding:5px 8px;border-radius:4px;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;border:1px solid}._walletItem_11u8p_1 ._badge_11u8p_49._installed_11u8p_62{background:var(--walletkit-background-color-light);color:var(--walletkit-text-color);border-color:var(--walletkit-border-color-light)}._walletItem_11u8p_1 ._badge_11u8p_49._recent_11u8p_67{background:#b3ecf9;color:#105681;border-color:#88ddf4}._walletItem_11u8p_1._disabled_11u8p_72{opacity:.5;pointer-events:none}._walletItem_11u8p_1._skeleton_11u8p_76{cursor:default;pointer-events:none}._walletItem_11u8p_1._skeleton_11u8p_76:hover{transform:none}._walletItem_11u8p_1._skeleton_11u8p_76 ._icon_11u8p_22,._walletItem_11u8p_1._skeleton_11u8p_76 ._name_11u8p_42,._walletItem_11u8p_1._skeleton_11u8p_76 ._badge_11u8p_49{background-color:var(--walletkit-border-color);animation:_walletItemPulse_11u8p_1 1.2s ease-in-out infinite}._walletItem_11u8p_1._skeleton_11u8p_76 ._name_11u8p_42{display:inline-block;width:88px;height:16px;border-radius:4px}._walletItem_11u8p_1._skeleton_11u8p_76 ._badge_11u8p_49{width:64px;height:22px;border-color:transparent;background:var(--walletkit-border-color)}@keyframes _walletItemPulse_11u8p_1{0%,to{opacity:.38}50%{opacity:.72}}@media(max-width:500px){._walletItem_11u8p_1{padding:16px 12px}._walletItem_11u8p_1 ._content_11u8p_16 ._icon_11u8p_22{width:40px;height:40px}}
package/dist/index3.css CHANGED
@@ -1 +1 @@
1
- ._backdrop_1y3tp_1{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--walletkit-modal-background-color);-webkit-backdrop-filter:var(--walletkit-modal-background-filter);backdrop-filter:var(--walletkit-modal-background-filter);display:flex;align-items:center;justify-content:center;z-index:1000}._modal_1y3tp_14{background:var(--walletkit-background-color);border-radius:24px;box-shadow:0 40px 80px #0000000d;border:8px solid var(--walletkit-background-color);max-width:500px;width:100%;max-height:min(80vh,calc(100% - 24px));overflow:hidden;position:relative;transition:all .3s ease-in-out;padding:0 12px 12px;display:flex;flex-direction:column}@supports (height: 100dvh){._modal_1y3tp_14{max-height:min(80dvh,calc(100% - 24px))}}@media(max-width:500px){._backdrop_1y3tp_1{align-items:flex-end;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}._modal_1y3tp_14{max-width:100%;border-radius:24px 24px 0 0;border-width:4px;max-height:calc(100% - env(safe-area-inset-top,0px));padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))}._compact_1y3tp_47{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}}@supports (height: 100dvh){@media(max-width:500px){._modal_1y3tp_14{max-height:calc(100dvh - env(safe-area-inset-top,0px))}}}._header_132o6_1{display:flex;align-items:center;justify-content:space-between;padding:32px 12px}._header_132o6_1 ._title_132o6_7{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:32px;font-weight:700;color:var(--walletkit-text-color);margin:0;line-height:1;transition:color .3s ease-in-out}._modal_132o6_16._connecting_132o6_16 ._header_132o6_1 ._title_132o6_7{color:#09131f}._header_132o6_1 ._close_132o6_19{cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:40px;transition:all .2s;color:var(--walletkit-text-color);transform-origin:50% 50%;background-color:var(--walletkit-background-color-light);z-index:1;border-radius:20px;border:2px solid #fff;background:linear-gradient(264deg,#ffffff80 3.24%,#fffc 96.39%);box-shadow:0 0 40px 20px #00000008}._header_132o6_1 ._close_132o6_19:hover{background-color:var(--walletkit-background-color-light);transform:rotate(180deg);transition:all .2s}._header_132o6_1 ._close_132o6_19:focus-visible{outline:2px solid var(--walletkit-primary-color);outline-offset:2px}._header_132o6_1 ._close_132o6_19 ._icon_132o6_45{font-size:24px;color:var(--walletkit-text-color);font-weight:300;transform:rotate(45deg);line-height:1}[data-theme=dark] ._close_132o6_19{border:2px solid rgba(255,255,255,.05);background:linear-gradient(264deg,#ffffff0d 3.24%,#ffffff14 96.39%);box-shadow:0 20px 40px #0000000d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@media(max-width:500px){._header_132o6_1{padding:12px 12px 20px}._header_132o6_1 ._title_132o6_7{font-size:24px}}
1
+ ._container_119qo_1{display:flex;flex-direction:column;align-items:center;text-align:center}._container_119qo_1 ._avatarBox_119qo_7{margin-top:-28px;font-size:41px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:74px;height:74px;line-height:74px;border-radius:50%;-webkit-user-select:none;user-select:none;cursor:pointer}._container_119qo_1 ._accountInfo_119qo_19{margin-top:12px;color:var(--walletkit-text-color)}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:18px;font-weight:800;line-height:24px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:14px;font-weight:600;line-height:18px;color:var(--walletkit-text-color-secondary)}._container_119qo_1 ._btnGroup_119qo_34{display:flex;gap:8px;margin-top:16px;width:100%;justify-content:center;padding:0 16px 16px;box-sizing:border-box}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43{padding:8px;color:var(--walletkit-text-color);width:100%;display:flex;flex-direction:column;align-items:center;cursor:pointer;border-radius:12px;background-color:var(--walletkit-background-color-light)}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43:hover{background-color:var(--walletkit-background-color-list)}._container_119qo_1 ._btnGroup_119qo_34 ._btnIcon_119qo_57{height:18px}._container_119qo_1 ._btnGroup_119qo_34 ._btnText_119qo_60{font-size:13px;font-weight:600;line-height:18px}@media(max-width:768px){._container_119qo_1 ._avatarBox_119qo_7{margin-top:-4px;font-size:45px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:82px;height:82px;line-height:82px}._container_119qo_1 ._accountInfo_119qo_19{margin-top:16px}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:20px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:16px;line-height:20px}}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-Bo_G8w5V.js"),c=require("./createConnectors-DdVhGwOT.js"),a=async(e,o)=>{const t=(await c.createConnector(n.ChainType.EVM)).find(r=>r.name.replace(" ","_")===e);if(!t)throw new Error(`Connector not found for wallet: ${e}`);n.walletHelperStore.getState().setCurrentNetwork(o),t.connect()};exports.default=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-BNUh90Ws.js"),c=require("./createConnectors-DvITc7A3.js"),a=async(e,o)=>{const t=(await c.createConnector(n.ChainType.EVM)).find(r=>r.name.replace(" ","_")===e);if(!t)throw new Error(`Connector not found for wallet: ${e}`);n.walletHelperStore.getState().setCurrentNetwork(o),t.connect()};exports.default=a;
@@ -1,5 +1,5 @@
1
- import { C as r, w as c } from "./index-Ca5U0KJA.mjs";
2
- import { c as a } from "./createConnectors-BlSjbXr8.mjs";
1
+ import { C as r, w as c } from "./index-BWBZ1f0K.mjs";
2
+ import { c as a } from "./createConnectors-ADoTab9F.mjs";
3
3
  const C = async (e, n) => {
4
4
  const t = (await a(r.EVM)).find((o) => o.name.replace(" ", "_") === e);
5
5
  if (!t)
@@ -1,5 +1,5 @@
1
- import { x as F, g as de, a as L } from "./index-Ca5U0KJA.mjs";
2
- import { T as le, C as me } from "./createConnectors-BlSjbXr8.mjs";
1
+ import { z as F, j as de, a as L } from "./index-BWBZ1f0K.mjs";
2
+ import { T as le, C as me } from "./createConnectors-ADoTab9F.mjs";
3
3
  var $ = {};
4
4
  const he = "1.2.4", pe = {
5
5
  title: "JSON-RPC API",
@@ -1,5 +1,5 @@
1
- import { a as t } from "./index-Ca5U0KJA.mjs";
2
- import { T as c } from "./createConnectors-BlSjbXr8.mjs";
1
+ import { a as t } from "./index-BWBZ1f0K.mjs";
2
+ import { T as c } from "./createConnectors-ADoTab9F.mjs";
3
3
  var s = /* @__PURE__ */ ((o) => (o.mainnet = "0x2b6653dc", o.nile = "0xcd8690dc", o.shasta = "0x94a9059e", o))(s || {});
4
4
  class d extends c {
5
5
  constructor(e) {
@@ -1,5 +1,5 @@
1
- import { a as e } from "./index-Ca5U0KJA.mjs";
2
- import { T as s } from "./createConnectors-BlSjbXr8.mjs";
1
+ import { a as e } from "./index-BWBZ1f0K.mjs";
2
+ import { T as s } from "./createConnectors-ADoTab9F.mjs";
3
3
  const u = () => {
4
4
  if (typeof window > "u") return !1;
5
5
  const r = window.bitkeep;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-Bo_G8w5V.js"),c=require("./createConnectors-DdVhGwOT.js"),o=()=>{if(typeof window>"u")return!1;const e=window.bitkeep;return e?"tronLink"in e||"tron"in e:!1},i=()=>{if(typeof window>"u")return null;const e=window.bitkeep,n=(e==null?void 0:e.tronLink)??(e==null?void 0:e.tron)??null;return n?n.tronWeb||!(e!=null&&e.tronWeb)?n:new Proxy(n,{get(s,r,u){return r==="tronWeb"?e.tronWeb:Reflect.get(s,r,u)}}):null};class d extends c.TronConnector{constructor(n){super(n),this.getProvider=()=>(this.provider||(this.provider=i()),this.provider||{}),this.connectorType=o()?t.ConnectorType.Installed:t.ConnectorType.More}}exports.default=d;exports.getBitgetTronProvider=i;exports.hasBitgetTronInjection=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BNUh90Ws.js"),c=require("./createConnectors-DvITc7A3.js"),o=()=>{if(typeof window>"u")return!1;const e=window.bitkeep;return e?"tronLink"in e||"tron"in e:!1},i=()=>{if(typeof window>"u")return null;const e=window.bitkeep,n=(e==null?void 0:e.tronLink)??(e==null?void 0:e.tron)??null;return n?n.tronWeb||!(e!=null&&e.tronWeb)?n:new Proxy(n,{get(s,r,u){return r==="tronWeb"?e.tronWeb:Reflect.get(s,r,u)}}):null};class d extends c.TronConnector{constructor(n){super(n),this.getProvider=()=>(this.provider||(this.provider=i()),this.provider||{}),this.connectorType=o()?t.ConnectorType.Installed:t.ConnectorType.More}}exports.default=d;exports.getBitgetTronProvider=i;exports.hasBitgetTronInjection=o;