@multiversx/sdk-dapp 2.14.5 → 2.14.6
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/__chunks__/chunk-6Y5U4ZR3.js +2 -0
- package/__chunks__/chunk-NLQTR5RL.js +2 -0
- package/__chunks__/{chunk-F4RR2MI3.js → chunk-UFXJJAIO.js} +2 -2
- package/__chunks__/{chunk-QFV655NJ.js → chunk-WRDH76HG.js} +2 -2
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/wrappers/AppInitializer.d.ts +8 -4
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.d.ts +2 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/package.json +1 -1
- package/wrappers/AppInitializer.d.ts +8 -4
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.d.ts +2 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-CVKAF7GU.js +0 -2
- package/__chunks__/chunk-RGTMLNLV.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as f}from"./chunk-WOUYL4LT.js";import{a as F}from"./chunk-WMJYYAXE.js";import{c as h,d as E}from"./chunk-2VK6P4O6.js";import{a as b}from"./chunk-EIVAH6FT.js";import{g as x}from"./chunk-CWKDQAE3.js";import{a as D}from"./chunk-OFOMMPSJ.js";import{a as B}from"./chunk-RJ7L3LSO.js";import{b as S}from"./chunk-I5CZZRD7.js";import{i as P,k as j}from"./chunk-TL7TEZ2W.js";import{c as u,f as q}from"./chunk-BQV5LZAR.js";import{a as T,l as g}from"./chunk-CTECXHBH.js";import{a as r,j as m,m as v}from"./chunk-HBP5N4FR.js";v();import{useEffect as d,useState as H}from"react";import{Address as J}from"@multiversx/sdk-core/out";g();B();j();q();var M=({customNetworkConfig:i={},environment:t,dappConfig:e})=>{let[p,a]=H(!1),l=F(),A=E(x),o=e==null?void 0:e.logoutRoute,{address:c,publicKey:y}=l,s=h();function K(){return m(this,null,function*(){let z=!(i!=null&&i.skipFetchFromServer),R=i==null?void 0:i.apiAddress,n=T[t]||{},U=r(r({},n),i);if(z){let G=n==null?void 0:n.apiAddress,I=yield b(R||G);if(I!=null){let W=r(r(r({},n),I),i);s(u(W));return}}s(u(U))})}function L(){return m(this,null,function*(){s(S(e)),s(P(o)),yield K(),a(!0)})}return d(()=>{c&&new J(c).hex()!==y&&f(o)},[c,y,o]),d(()=>{L()},[i,t,e]),d(()=>{l.address&&A&&f(o)},[A,l.address,o]),{initialized:p}};function ti({customNetworkConfig:i={},children:t,environment:e,dappConfig:p}){let{initialized:a}=M({customNetworkConfig:i,environment:e,dappConfig:p});return D()?a?t:null:t}export{M as a,ti as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6Y5U4ZR3.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m}from"./chunk-SF7YQV6K.js";import{d as t}from"./chunk-2VK6P4O6.js";import{c as s,f as l}from"./chunk-CWKDQAE3.js";import{i as u}from"./chunk-HGWCS4DV.js";import{a as d}from"./chunk-OFOMMPSJ.js";import{b as c,c as h}from"./chunk-XRCJ5PNU.js";import{m as i}from"./chunk-HBP5N4FR.js";i();import a from"react";h();var P=({children:f,routes:g,pathName:o,unlockRoute:e,onRedirect:n})=>{let p=t(s),R=t(u),r=t(l),L=()=>d()?window.location.pathname:"",A=m(g,o!=null?o:L())&&!p&&r==null;return R||r?null:A?(n?n(e):c(e),null):a.createElement(a.Fragment,null,f)};export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NLQTR5RL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as v}from"./chunk-IPLHIKSY.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as v}from"./chunk-IPLHIKSY.js";import{b as l}from"./chunk-6Y5U4ZR3.js";import{c as f}from"./chunk-ET5PWW6U.js";import{a}from"./chunk-XMD5LLYN.js";import{b as e}from"./chunk-KXQXYJIC.js";import{a as s}from"./chunk-2VK6P4O6.js";import{a as m,c as p}from"./chunk-2FXGMQ3S.js";import{a as c}from"./chunk-MFMZQYRN.js";import{m as i}from"./chunk-HBP5N4FR.js";i();import o from"react";import{Provider as E}from"react-redux";import{PersistGate as T}from"redux-persist/integration/react";c();var j=({children:u,customNetworkConfig:P={},externalProvider:t,environment:n,customComponents:d,dappConfig:r,enableBatchTransactions:C})=>{if(!n)throw new Error("missing environment flag");return t!=null?e(t):r!=null&&r.shouldUseWebViewProvider&&e(f),o.createElement(E,{context:s,store:m},o.createElement(T,{persistor:p,loading:null},()=>o.createElement(l,{environment:n,customNetworkConfig:P,dappConfig:r},o.createElement(a,null),o.createElement(v,{customComponents:d,enableBatchTransactions:C}),u)))};export{j as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UFXJJAIO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-UFXJJAIO.js";import{a as d}from"./chunk-GFEGGQCU.js";import{a as e,b as o,m as t}from"./chunk-HBP5N4FR.js";t();d();import r from"react";import{render as p}from"@testing-library/react";import{createMemoryHistory as y}from"history";var x=({children:n,route:m="/"})=>{let s=y({initialEntries:[m]});return o(e({},p(r.createElement(i,{environment:"devnet"},r.createElement(r.Fragment,null,n)))),{history:s})};export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WRDH76HG.js.map
|