@depay/widgets 7.5.1 → 7.7.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/esm/index.js CHANGED
@@ -21218,7 +21218,8 @@ var PaymentTrackingProvider = (function (props) {
21218
21218
  sender: transaction.from.toLowerCase(),
21219
21219
  nonce: transaction.nonce,
21220
21220
  after_block: afterBlock,
21221
- to_token: paymentRoute.toToken.address
21221
+ to_token: paymentRoute.toToken.address,
21222
+ to_amount: paymentRoute.toAmount.toString()
21222
21223
  }).then(function (response) {
21223
21224
  if (response.status != 200) {
21224
21225
  retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
@@ -21251,7 +21252,11 @@ var PaymentTrackingProvider = (function (props) {
21251
21252
  setTimeout(function () {
21252
21253
  props.document.location.href = data.forward_to;
21253
21254
  }, 100);
21255
+ } else {
21256
+ setClosable(true);
21254
21257
  }
21258
+ })["catch"](function () {
21259
+ setClosable(true);
21255
21260
  });
21256
21261
  clearInterval(pollingInterval);
21257
21262
  setRelease(true);
@@ -21608,12 +21613,12 @@ var preflight$2 = /*#__PURE__*/function () {
21608
21613
 
21609
21614
  var Donation = /*#__PURE__*/function () {
21610
21615
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
21611
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, fee, closable, integration, container, document, unmount;
21616
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, container, document, unmount;
21612
21617
  return regenerator.wrap(function _callee2$(_context2) {
21613
21618
  while (1) {
21614
21619
  switch (_context2.prev = _context2.next) {
21615
21620
  case 0:
21616
- 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, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
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;
21617
21622
  requireReactVersion();
21618
21623
  _context2.prev = 2;
21619
21624
  _context2.next = 5;
@@ -21640,6 +21645,7 @@ var Donation = /*#__PURE__*/function () {
21640
21645
  accept: accept,
21641
21646
  currency: currency,
21642
21647
  event: event,
21648
+ track: track,
21643
21649
  fee: fee,
21644
21650
  sent: sent,
21645
21651
  confirmed: confirmed,