@depay/widgets 7.5.2 → 7.8.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
@@ -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) {
@@ -21212,13 +21211,17 @@ var PaymentTrackingProvider = (function (props) {
21212
21211
  };
21213
21212
 
21214
21213
  var startTracking = function startTracking(transaction, afterBlock, paymentRoute, attempt) {
21214
+ var _paymentRoute$feeAmou;
21215
+
21215
21216
  callTracking({
21216
21217
  blockchain: transaction.blockchain,
21217
21218
  transaction: transaction.id.toLowerCase(),
21218
21219
  sender: transaction.from.toLowerCase(),
21219
21220
  nonce: transaction.nonce,
21220
21221
  after_block: afterBlock,
21221
- to_token: paymentRoute.toToken.address
21222
+ to_token: paymentRoute.toToken.address,
21223
+ to_amount: paymentRoute.toAmount.toString(),
21224
+ fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
21222
21225
  }).then(function (response) {
21223
21226
  if (response.status != 200) {
21224
21227
  retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
@@ -21612,12 +21615,12 @@ var preflight$2 = /*#__PURE__*/function () {
21612
21615
 
21613
21616
  var Donation = /*#__PURE__*/function () {
21614
21617
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
21615
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, fee, closable, integration, container, document, unmount;
21618
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, track, fee, closable, integration, container, document, unmount;
21616
21619
  return regenerator.wrap(function _callee2$(_context2) {
21617
21620
  while (1) {
21618
21621
  switch (_context2.prev = _context2.next) {
21619
21622
  case 0:
21620
- 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;
21623
+ 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;
21621
21624
  requireReactVersion();
21622
21625
  _context2.prev = 2;
21623
21626
  _context2.next = 5;
@@ -21644,6 +21647,7 @@ var Donation = /*#__PURE__*/function () {
21644
21647
  accept: accept,
21645
21648
  currency: currency,
21646
21649
  event: event,
21650
+ track: track,
21647
21651
  fee: fee,
21648
21652
  sent: sent,
21649
21653
  confirmed: confirmed,