@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/umd/index.js CHANGED
@@ -21213,7 +21213,8 @@
21213
21213
  sender: transaction.from.toLowerCase(),
21214
21214
  nonce: transaction.nonce,
21215
21215
  after_block: afterBlock,
21216
- to_token: paymentRoute.toToken.address
21216
+ to_token: paymentRoute.toToken.address,
21217
+ to_amount: paymentRoute.toAmount.toString()
21217
21218
  }).then(function (response) {
21218
21219
  if (response.status != 200) {
21219
21220
  retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
@@ -21246,7 +21247,11 @@
21246
21247
  setTimeout(function () {
21247
21248
  props.document.location.href = data.forward_to;
21248
21249
  }, 100);
21250
+ } else {
21251
+ setClosable(true);
21249
21252
  }
21253
+ })["catch"](function () {
21254
+ setClosable(true);
21250
21255
  });
21251
21256
  clearInterval(pollingInterval);
21252
21257
  setRelease(true);
@@ -21603,12 +21608,12 @@
21603
21608
 
21604
21609
  var Donation = /*#__PURE__*/function () {
21605
21610
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
21606
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, fee, closable, integration, container, document, unmount;
21611
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, container, document, unmount;
21607
21612
  return regenerator.wrap(function _callee2$(_context2) {
21608
21613
  while (1) {
21609
21614
  switch (_context2.prev = _context2.next) {
21610
21615
  case 0:
21611
- 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;
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, track = _ref3.track, fee = _ref3.fee, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
21612
21617
  requireReactVersion();
21613
21618
  _context2.prev = 2;
21614
21619
  _context2.next = 5;
@@ -21635,6 +21640,7 @@
21635
21640
  accept: accept,
21636
21641
  currency: currency,
21637
21642
  event: event,
21643
+ track: track,
21638
21644
  fee: fee,
21639
21645
  sent: sent,
21640
21646
  confirmed: confirmed,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "7.5.1",
4
+ "version": "7.7.0",
5
5
  "description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
6
6
  "main": "./dist/umd/index.js",
7
7
  "module": "./dist/esm/index.js",