@depay/widgets 7.7.0 → 7.10.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/README.md +4 -1
- package/dist/esm/index.bundle.js +2 -2
- package/dist/esm/index.js +16 -8
- package/dist/umd/index.bundle.js +2 -2
- package/dist/umd/index.js +16 -8
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -840,7 +840,6 @@ var ConnectStack = (function (props) {
|
|
|
840
840
|
setWallet = _useState4[1];
|
|
841
841
|
|
|
842
842
|
var connect = function connect(wallet) {
|
|
843
|
-
console.log('CONNECT');
|
|
844
843
|
wallet.connect().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
845
844
|
var accounts;
|
|
846
845
|
return regenerator.wrap(function _callee$(_context) {
|
|
@@ -21089,6 +21088,7 @@ var PaymentTrackingProvider = (function (props) {
|
|
|
21089
21088
|
var _useContext2 = useContext(ConfigurationContext),
|
|
21090
21089
|
track = _useContext2.track,
|
|
21091
21090
|
integration = _useContext2.integration,
|
|
21091
|
+
link = _useContext2.link,
|
|
21092
21092
|
type = _useContext2.type;
|
|
21093
21093
|
|
|
21094
21094
|
var _useState = useState(),
|
|
@@ -21212,14 +21212,19 @@ var PaymentTrackingProvider = (function (props) {
|
|
|
21212
21212
|
};
|
|
21213
21213
|
|
|
21214
21214
|
var startTracking = function startTracking(transaction, afterBlock, paymentRoute, attempt) {
|
|
21215
|
+
var _paymentRoute$feeAmou;
|
|
21216
|
+
|
|
21215
21217
|
callTracking({
|
|
21216
21218
|
blockchain: transaction.blockchain,
|
|
21217
21219
|
transaction: transaction.id.toLowerCase(),
|
|
21218
21220
|
sender: transaction.from.toLowerCase(),
|
|
21219
21221
|
nonce: transaction.nonce,
|
|
21220
21222
|
after_block: afterBlock,
|
|
21223
|
+
from_token: paymentRoute.fromToken.address,
|
|
21224
|
+
from_amount: paymentRoute.fromAmount.toString(),
|
|
21221
21225
|
to_token: paymentRoute.toToken.address,
|
|
21222
|
-
to_amount: paymentRoute.toAmount.toString()
|
|
21226
|
+
to_amount: paymentRoute.toAmount.toString(),
|
|
21227
|
+
fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
|
|
21223
21228
|
}).then(function (response) {
|
|
21224
21229
|
if (response.status != 200) {
|
|
21225
21230
|
retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
|
|
@@ -21319,6 +21324,7 @@ var PaymentTrackingProvider = (function (props) {
|
|
|
21319
21324
|
sender_token_id: paymentRoute.fromToken.address,
|
|
21320
21325
|
sender_amount: ethers.utils.formatUnits(paymentRoute.fromAmount, paymentRoute.fromDecimals),
|
|
21321
21326
|
integration: integration,
|
|
21327
|
+
link: link,
|
|
21322
21328
|
type: type
|
|
21323
21329
|
},
|
|
21324
21330
|
fee_amount: paymentRoute.fee ? ethers.utils.formatUnits(paymentRoute.transaction.params.amounts[4], paymentRoute.toDecimals) : null,
|
|
@@ -21613,12 +21619,12 @@ var preflight$2 = /*#__PURE__*/function () {
|
|
|
21613
21619
|
|
|
21614
21620
|
var Donation = /*#__PURE__*/function () {
|
|
21615
21621
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
|
|
21616
|
-
var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, container, document, unmount;
|
|
21622
|
+
var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, link, container, document, unmount;
|
|
21617
21623
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
21618
21624
|
while (1) {
|
|
21619
21625
|
switch (_context2.prev = _context2.next) {
|
|
21620
21626
|
case 0:
|
|
21621
|
-
amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
|
|
21627
|
+
amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, link = _ref3.link, container = _ref3.container, document = _ref3.document;
|
|
21622
21628
|
requireReactVersion();
|
|
21623
21629
|
_context2.prev = 2;
|
|
21624
21630
|
_context2.next = 5;
|
|
@@ -21652,7 +21658,8 @@ var Donation = /*#__PURE__*/function () {
|
|
|
21652
21658
|
failed: failed,
|
|
21653
21659
|
blacklist: blacklist,
|
|
21654
21660
|
providers: providers,
|
|
21655
|
-
integration: integration
|
|
21661
|
+
integration: integration,
|
|
21662
|
+
link: link
|
|
21656
21663
|
}
|
|
21657
21664
|
}, /*#__PURE__*/React.createElement(UpdatableProvider, null, /*#__PURE__*/React.createElement(ClosableProvider, {
|
|
21658
21665
|
unmount: unmount,
|
|
@@ -22131,12 +22138,12 @@ var preflight$1 = /*#__PURE__*/function () {
|
|
|
22131
22138
|
|
|
22132
22139
|
var Payment = /*#__PURE__*/function () {
|
|
22133
22140
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
|
|
22134
|
-
var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, container, before, document, unmount;
|
|
22141
|
+
var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, link, container, before, document, unmount;
|
|
22135
22142
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
22136
22143
|
while (1) {
|
|
22137
22144
|
switch (_context2.prev = _context2.next) {
|
|
22138
22145
|
case 0:
|
|
22139
|
-
accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, before = _ref3.before, document = _ref3.document;
|
|
22146
|
+
accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, link = _ref3.link, container = _ref3.container, before = _ref3.before, document = _ref3.document;
|
|
22140
22147
|
requireReactVersion();
|
|
22141
22148
|
_context2.prev = 2;
|
|
22142
22149
|
_context2.next = 5;
|
|
@@ -22174,7 +22181,8 @@ var Payment = /*#__PURE__*/function () {
|
|
|
22174
22181
|
track: track,
|
|
22175
22182
|
fee: fee,
|
|
22176
22183
|
recover: recover,
|
|
22177
|
-
integration: integration
|
|
22184
|
+
integration: integration,
|
|
22185
|
+
link: link
|
|
22178
22186
|
}
|
|
22179
22187
|
}, /*#__PURE__*/React.createElement(UpdatableProvider, null, /*#__PURE__*/React.createElement(ClosableProvider, {
|
|
22180
22188
|
unmount: unmount,
|