@depay/widgets 4.3.0 → 4.4.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.
- package/dist/cjs/index.bundle.js +4395 -1219
- package/dist/cjs/index.js +65 -69
- package/dist/es/index.bundle.js +4395 -1219
- package/dist/es/index.js +15 -19
- package/dist/umd/index.bundle.js +4395 -1219
- package/dist/umd/index.js +57 -61
- package/package.json +14 -14
package/dist/es/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { useState, useContext, useEffect } from 'react';
|
|
2
|
-
import { NavigateStackContext, ReactDialogStack } from 'depay
|
|
3
|
-
import { getWallet, wallets } from 'depay
|
|
2
|
+
import { NavigateStackContext, ReactDialogStack } from '@depay/react-dialog-stack';
|
|
3
|
+
import { getWallet, wallets } from '@depay/web3-wallets';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
|
-
import { ReactShadowDOM } from 'depay
|
|
5
|
+
import { ReactShadowDOM } from '@depay/react-shadow-dom';
|
|
6
6
|
import { ethers } from 'ethers';
|
|
7
|
-
import { CONSTANTS } from 'depay
|
|
7
|
+
import { CONSTANTS } from '@depay/web3-constants';
|
|
8
8
|
import { Decimal } from 'decimal.js';
|
|
9
|
-
import { route } from 'depay
|
|
10
|
-
import { Token } from 'depay
|
|
11
|
-
import { Currency } from 'depay
|
|
12
|
-
import {
|
|
13
|
-
import { route as route$1 } from 'depay
|
|
9
|
+
import { route } from '@depay/web3-exchanges';
|
|
10
|
+
import { Token } from '@depay/web3-tokens';
|
|
11
|
+
import { Currency } from '@depay/local-currency';
|
|
12
|
+
import { setProviderEndpoints, provider } from '@depay/web3-client';
|
|
13
|
+
import { route as route$1 } from '@depay/web3-payments';
|
|
14
14
|
import Slider from 'react-rangeslider';
|
|
15
|
-
import { TokenImage } from 'depay
|
|
16
|
-
import { Blockchain } from 'depay
|
|
15
|
+
import { TokenImage } from '@depay/react-token-image';
|
|
16
|
+
import { Blockchain } from '@depay/web3-blockchains';
|
|
17
17
|
|
|
18
18
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
19
19
|
try {
|
|
@@ -1377,8 +1377,7 @@ function ReactDialogStyle (styles) {
|
|
|
1377
1377
|
let background =
|
|
1378
1378
|
typeof styles === 'object' && styles.background ? styles.background : 'rgba(0,0,0,0.4)';
|
|
1379
1379
|
|
|
1380
|
-
return
|
|
1381
|
-
`
|
|
1380
|
+
return `
|
|
1382
1381
|
.ReactDialog {
|
|
1383
1382
|
bottom: 0;
|
|
1384
1383
|
display: table;
|
|
@@ -1437,12 +1436,9 @@ function ReactDialogStyle (styles) {
|
|
|
1437
1436
|
top: -5vh;
|
|
1438
1437
|
}
|
|
1439
1438
|
`
|
|
1440
|
-
)
|
|
1441
1439
|
}
|
|
1442
1440
|
|
|
1443
|
-
const _jsxFileName = "/
|
|
1444
|
-
|
|
1445
|
-
|
|
1441
|
+
const _jsxFileName = "/home/runner/work/react-dialog/react-dialog/src/components/Dialog.jsx";
|
|
1446
1442
|
class Dialog extends React__default['default'].Component {
|
|
1447
1443
|
constructor(props) {
|
|
1448
1444
|
super(props);
|
|
@@ -1504,7 +1500,7 @@ class Dialog extends React__default['default'].Component {
|
|
|
1504
1500
|
}
|
|
1505
1501
|
}
|
|
1506
1502
|
|
|
1507
|
-
const _jsxFileName$1 = "/
|
|
1503
|
+
const _jsxFileName$1 = "/home/runner/work/react-dialog/react-dialog/src/index.jsx";
|
|
1508
1504
|
class ReactDialog extends React__default['default'].Component {
|
|
1509
1505
|
constructor(props) {
|
|
1510
1506
|
super(props);
|
|
@@ -2086,7 +2082,7 @@ var ConfigurationProvider = (function (props) {
|
|
|
2086
2082
|
useEffect(function () {
|
|
2087
2083
|
if (props.configuration.providers != undefined) {
|
|
2088
2084
|
Object.entries(props.configuration.providers).forEach(function (entry) {
|
|
2089
|
-
|
|
2085
|
+
setProviderEndpoints(entry[0], entry[1]);
|
|
2090
2086
|
});
|
|
2091
2087
|
}
|
|
2092
2088
|
}, [props.configuration]);
|