@multiversx/sdk-dapp 2.22.2-alpha.2 → 2.22.2-alpha.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/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.d.ts +2 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.d.ts +2 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/__chunks__/chunk-D4RDPWQJ.js +2 -0
- package/__chunks__/{chunk-2Y3N6XSQ.js → chunk-G4GDOBSY.js} +2 -2
- package/__chunks__/{chunk-ADAHH7Z5.js → chunk-KBPU354O.js} +2 -2
- package/__chunks__/{chunk-4S2VLRSG.js → chunk-P5XHZJON.js} +2 -2
- package/__chunks__/chunk-VG2PILY2.js +2 -0
- package/__chunks__/chunk-WIEHPIS6.js +2 -0
- package/__chunks__/{chunk-MBUUJRF5.js → chunk-WWHZYYM6.js} +2 -2
- package/__chunks__/{chunk-LJTFQVN4.js → chunk-WZ7M5W6V.js} +2 -2
- package/__commonjs/UI/index.js +74 -74
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +20 -20
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +20 -20
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.d.ts +2 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow/index.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.d.ts +2 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +9 -9
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable/index.js +9 -9
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +22 -22
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +16 -16
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +16 -16
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +18 -18
- package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +18 -18
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +22 -22
- package/__commonjs/UI/ledger/index.js +20 -20
- package/__commonjs/UI/pages/UnlockPage/index.js +25 -25
- package/__commonjs/UI/pages/index.js +25 -25
- package/package.json +2 -3
- package/__chunks__/chunk-AUADXELD.js +0 -2
- package/__chunks__/chunk-FHAK6C6F.js +0 -2
- package/__chunks__/chunk-XKTZITKF.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiversx/sdk-dapp",
|
|
3
|
-
"version": "2.22.2-alpha.
|
|
3
|
+
"version": "2.22.2-alpha.4",
|
|
4
4
|
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
|
|
5
5
|
"author": "MultiversX",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"@typescript-eslint/parser": "5.14.0",
|
|
61
61
|
"axios-mock-adapter": "1.21.2",
|
|
62
62
|
"babel-loader": "8.3.0",
|
|
63
|
-
"better-sqlite3": "7.6.2",
|
|
64
63
|
"css-loader": "5.2.6",
|
|
65
64
|
"dotenv": "16.0.3",
|
|
66
65
|
"esbuild": "0.14.47",
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
"@multiversx/sdk-network-providers": "1.5.0",
|
|
152
151
|
"@multiversx/sdk-opera-provider": "1.0.0-alpha.1",
|
|
153
152
|
"@multiversx/sdk-wallet": "4.2.0",
|
|
154
|
-
"@multiversx/sdk-wallet-connect-provider": "4.0.4-alpha.
|
|
153
|
+
"@multiversx/sdk-wallet-connect-provider": "4.0.4-alpha.3",
|
|
155
154
|
"@multiversx/sdk-web-wallet-provider": "3.1.0",
|
|
156
155
|
"@reduxjs/toolkit": "1.8.2",
|
|
157
156
|
"axios": "0.24.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-VP4BEO6W.js";import{b as e}from"./chunk-YOLMHHFE.js";import{a as m}from"./chunk-AHO4UFCE.js";import{a as l}from"./chunk-KG4FUG77.js";import{m as o}from"./chunk-HBP5N4FR.js";o();import r from"react";import v from"classnames";var w=({address:s,index:t,balance:n,selectedAddress:d,onSelectAddress:p,className:g="dapp-ledger-address-row",ledgerModalTableSelectedItemClassName:a})=>{let b=y=>{let{checked:c}=y.target;c&&p({address:s,index:t})};return r.createElement("div",{className:v(e.ledgerAddressTableBodyItem,{[a!=null?a:""]:d===s,[e.ledgerAddressTableBodyItemSelected]:d===s},g)},r.createElement("div",{className:e.ledgerAddressTableBodyItemData},r.createElement("input",{type:"radio",id:`check_${t}`,"data-testid":`check_${t}`,onChange:b,role:"button",checked:d===s,className:e.ledgerAddressTableBodyItemDataInput}),r.createElement("label",{htmlFor:`check_${t}`,role:"button","data-testid":`label_${t}`,className:e.ledgerAddressTableBodyItemDataLabel},r.createElement("div",{className:e.ledgerAddressTableBodyItemDataValue},r.createElement(i,{text:s})))),r.createElement("div",{className:e.ledgerAddressTableBodyItemData},r.createElement(m,{value:n,egldLabel:l()})),r.createElement("div",{className:e.ledgerAddressTableBodyItemData},t))};export{w as a};
|
|
2
|
-
//# sourceMappingURL=chunk-FHAK6C6F.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-SA3HZA2H.js";import{b as s}from"./chunk-TGFIE7ZC.js";import{a as C}from"./chunk-FHAK6C6F.js";import{a as v}from"./chunk-S2TYOHJC.js";import{b as c}from"./chunk-K7EQVIHG.js";import{v as $}from"./chunk-5YFVFPXX.js";import{j as u,m as A}from"./chunk-HBP5N4FR.js";A();import e,{useEffect as B,useState as j}from"react";import{faChevronLeft as q,faChevronRight as J}from"@fortawesome/free-solid-svg-icons";import{FontAwesomeIcon as h}from"@fortawesome/react-fontawesome";import t from"classnames";$();var y=10,ie=({accounts:l,addressTableClassNames:S,className:M="dapp-ledger-address-table",customContentComponent:P,dataTestId:n="addressTableContainer",loading:i,onConfirmSelectedAddress:x,onGoToNextPage:L,onGoToPrevPage:w,onSelectAddress:N,selectedAddress:o,startIndex:r})=>{let{ledgerModalTitleClassName:E,ledgerModalSubtitleClassName:D,ledgerModalTableHeadClassName:H,ledgerModalTableItemClassName:W,ledgerModalButtonClassName:k,ledgerModalTableNavigationButtonClassName:T,ledgerModalTableSelectedItemClassName:F,ledgerModalTableNavigationButtonDisabledClassName:m}=S||{},[g,p]=j([]);B(()=>{if(l.length>0&&!i&&(!o&&r===0)){let _=l[0];N({address:_,index:0})}},[l,o,i,r]);let G=d=>u(void 0,null,function*(){try{let a=yield v(d);return{address:d,balance:a}}catch(a){throw console.error("error fetching balance",a),g}});if(B(()=>{let d=l.map(a=>G(a));p(l.map(a=>({address:a,balance:"..."}))),Promise.all(d).then(a=>{p(a)})},[l]),i)return e.createElement(f,null);let I=()=>{!o||x()},z=["Address","Balance","#"];return e.createElement("div",{className:t(s.ledgerAddressTableWrapper,M),"data-testid":n},e.createElement("div",{className:s.ledgerAddressTableTop},e.createElement("div",{className:t(s.ledgerAddressTableHeading,E),"data-testid":`${n}Title`},"Access your wallet"),e.createElement("p",{className:t(s.ledgerAddressTableDescription,D),"data-testid":`${n}SubTitle`},"Choose the wallet you want to access")),P,e.createElement("div",{className:s.ledgerAddressTable},e.createElement("div",{className:t(s.ledgerAddressTableHeader,H)},z.map(d=>e.createElement("div",{key:d,className:s.ledgerAddressTableHeaderItem},d))),e.createElement("div",{className:s.ledgerAddressTableBody},g&&g.map(({address:d,balance:a},b)=>e.createElement(C,{address:d,balance:a,key:b+r*y,index:b+r*y,selectedAddress:o,onSelectAddress:N,className:W,ledgerModalTableSelectedItemClassName:F})))),e.createElement("div",{className:s.ledgerAddressTableBottom},e.createElement("div",{className:s.ledgerAddressTableNavigation},e.createElement("button",{type:"button",onClick:w,"data-testid":"prevBtn",className:t(s.ledgerAddressTableNavigationButton,{[m!=null?m:""]:r===0,[s.ledgerAddressTableNavigationButtonDisabled]:r===0},T)},e.createElement(h,{size:"1x",icon:q}),e.createElement("span",{className:s.ledgerAddressTableNavigationButtonLabel},"Prev")),e.createElement("button",{type:"button",onClick:L,"data-testid":"nextBtn",className:t(s.ledgerAddressTableNavigationButton,{[s.ledgerAddressTableNavigationButtonDisabled]:l.length<10},T)},e.createElement("span",{className:s.ledgerAddressTableNavigationButtonLabel},"Next"),e.createElement(h,{size:"1x",icon:J}))),e.createElement("button",{disabled:!o,onClick:I,"data-testid":"confirmBtn",className:t(c.btn,c.btnPrimary,s.ledgerAddressTableButton,k)},"Access Wallet")))};export{ie as a};
|
|
2
|
-
//# sourceMappingURL=chunk-XKTZITKF.js.map
|