@depay/widgets 5.0.3 → 5.0.4

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.
@@ -51698,6 +51698,9 @@ const sendTransaction$1 = async ({ transaction, wallet })=> {
51698
51698
  sentTransaction.wait(12).then(() => {
51699
51699
  transaction._ensured = true;
51700
51700
  if (transaction.ensured) transaction.ensured(transaction);
51701
+ }).catch((error)=>{
51702
+ transaction._failed = true;
51703
+ if(transaction.failed) transaction.failed(transaction, error);
51701
51704
  });
51702
51705
  } else {
51703
51706
  throw('Submitting transaction failed!')
@@ -51902,6 +51905,9 @@ const sendTransaction = async ({ transaction, wallet })=> {
51902
51905
  sentTransaction.wait(12).then(() => {
51903
51906
  transaction._ensured = true;
51904
51907
  if (transaction.ensured) transaction.ensured(transaction);
51908
+ }).catch((error)=>{
51909
+ transaction._failed = true;
51910
+ if(transaction.failed) transaction.failed(transaction, error);
51905
51911
  });
51906
51912
  }
51907
51913
  } else {
@@ -70838,24 +70844,11 @@ createCommonjsModule$4(function (module) {
70838
70844
  * LICENSE file in the root directory of this source tree.
70839
70845
  */
70840
70846
 
70841
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70842
-
70843
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
70844
-
70845
- /**
70846
- * Copyright (c) 2013-present, Facebook, Inc.
70847
- *
70848
- * This source code is licensed under the MIT license found in the
70849
- * LICENSE file in the root directory of this source tree.
70850
- */
70851
-
70852
-
70847
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70853
70848
 
70849
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
70854
70850
 
70855
-
70856
-
70857
-
70858
- Function.call.bind(Object.prototype.hasOwnProperty);
70851
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
70859
70852
 
70860
70853
  /**
70861
70854
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -70872,7 +70865,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
70872
70865
 
70873
70866
  var factoryWithThrowingShims = function() {
70874
70867
  function shim(props, propName, componentName, location, propFullName, secret) {
70875
- if (secret === ReactPropTypesSecret_1) {
70868
+ if (secret === ReactPropTypesSecret) {
70876
70869
  // It is still safe when called from React.
70877
70870
  return;
70878
70871
  }
@@ -70890,6 +70883,7 @@ var factoryWithThrowingShims = function() {
70890
70883
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
70891
70884
  var ReactPropTypes = {
70892
70885
  array: shim,
70886
+ bigint: shim,
70893
70887
  bool: shim,
70894
70888
  func: shim,
70895
70889
  number: shim,
@@ -70918,6 +70912,8 @@ var factoryWithThrowingShims = function() {
70918
70912
  return ReactPropTypes;
70919
70913
  };
70920
70914
 
70915
+ var require$$2 = factoryWithThrowingShims;
70916
+
70921
70917
  /**
70922
70918
  * Copyright (c) 2013-present, Facebook, Inc.
70923
70919
  *
@@ -70929,7 +70925,7 @@ var propTypes = createCommonjsModule$4(function (module) {
70929
70925
  {
70930
70926
  // By explicitly using `prop-types` you are opting into new production behavior.
70931
70927
  // http://fb.me/prop-types-in-prod
70932
- module.exports = factoryWithThrowingShims();
70928
+ module.exports = require$$2();
70933
70929
  }
70934
70930
  });
70935
70931
 
@@ -71893,6 +71889,8 @@ var utils = /*#__PURE__*/Object.defineProperty({
71893
71889
  clamp: clamp_1
71894
71890
  }, '__esModule', {value: true});
71895
71891
 
71892
+ var _propTypes = propTypes;
71893
+
71896
71894
  var _resizeObserverPolyfill = /*@__PURE__*/getAugmentedNamespace(ResizeObserver_es);
71897
71895
 
71898
71896
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@@ -71907,7 +71905,7 @@ var _react2 = _interopRequireDefault$1(react);
71907
71905
 
71908
71906
 
71909
71907
 
71910
- var _propTypes2 = _interopRequireDefault$1(propTypes);
71908
+ var _propTypes2 = _interopRequireDefault$1(_propTypes);
71911
71909
 
71912
71910
 
71913
71911
 
@@ -72423,7 +72421,7 @@ let TokenImage = function(props){
72423
72421
  const handleLoadError = (error)=> {
72424
72422
  if(source == 'trustwallet') {
72425
72423
  setSource('depay');
72426
- setSrc(`https://api.depay.pro/v1/images/tokens/${blockchain}/${address}`);
72424
+ setSrc(`https://integrate.depay.fi/tokens/${blockchain}/${address}/image`);
72427
72425
  } else {
72428
72426
  setSource('unknown');
72429
72427
  setSrc('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAGFBMVEVHcEz///////////////////////////8dS1W+AAAAB3RSTlMAHklzmMLqCsLrGwAAAQ9JREFUeNrtlrsOgkAQRRdFbDcae4IFrZEYazXRVitqQ2Hrk/19BVdX7XYuiQX3VDZzMsxrVYQQQkibGIyzLNHi8OHaVJRLWXgwMy8KLYnfGEchEFTxjp2/wHxRalBg9v4CNAXzwxYVXCSC2ypJstx+g6/ATaAdqImvoHxHzEVFcPGqWwtOnoLFx++6DGdgq9NnG+T0K8EVEPTqnrZbEKGCFO1CDs2BG2UZbpnABEwMJIA1IRSeZfdCgV8wsjdVnEBuLyKyBu51Fb+xpfhPRgdsgYqeM6DlQwQmoA62AvISgIsc2j0EaxgDL0ojx/CCCs4KPGYnVHCk4CEg7SbIKqbqfyeRAgoaERBCCCGESLgDeRfMNogh3QMAAAAASUVORK5CYII=');
@@ -51696,6 +51696,9 @@ const sendTransaction$1 = async ({ transaction, wallet })=> {
51696
51696
  sentTransaction.wait(12).then(() => {
51697
51697
  transaction._ensured = true;
51698
51698
  if (transaction.ensured) transaction.ensured(transaction);
51699
+ }).catch((error)=>{
51700
+ transaction._failed = true;
51701
+ if(transaction.failed) transaction.failed(transaction, error);
51699
51702
  });
51700
51703
  } else {
51701
51704
  throw('Submitting transaction failed!')
@@ -51900,6 +51903,9 @@ const sendTransaction = async ({ transaction, wallet })=> {
51900
51903
  sentTransaction.wait(12).then(() => {
51901
51904
  transaction._ensured = true;
51902
51905
  if (transaction.ensured) transaction.ensured(transaction);
51906
+ }).catch((error)=>{
51907
+ transaction._failed = true;
51908
+ if(transaction.failed) transaction.failed(transaction, error);
51903
51909
  });
51904
51910
  }
51905
51911
  } else {
@@ -70836,24 +70842,11 @@ createCommonjsModule$4(function (module) {
70836
70842
  * LICENSE file in the root directory of this source tree.
70837
70843
  */
70838
70844
 
70839
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70840
-
70841
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
70842
-
70843
- /**
70844
- * Copyright (c) 2013-present, Facebook, Inc.
70845
- *
70846
- * This source code is licensed under the MIT license found in the
70847
- * LICENSE file in the root directory of this source tree.
70848
- */
70849
-
70850
-
70845
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70851
70846
 
70847
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
70852
70848
 
70853
-
70854
-
70855
-
70856
- Function.call.bind(Object.prototype.hasOwnProperty);
70849
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
70857
70850
 
70858
70851
  /**
70859
70852
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -70870,7 +70863,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
70870
70863
 
70871
70864
  var factoryWithThrowingShims = function() {
70872
70865
  function shim(props, propName, componentName, location, propFullName, secret) {
70873
- if (secret === ReactPropTypesSecret_1) {
70866
+ if (secret === ReactPropTypesSecret) {
70874
70867
  // It is still safe when called from React.
70875
70868
  return;
70876
70869
  }
@@ -70888,6 +70881,7 @@ var factoryWithThrowingShims = function() {
70888
70881
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
70889
70882
  var ReactPropTypes = {
70890
70883
  array: shim,
70884
+ bigint: shim,
70891
70885
  bool: shim,
70892
70886
  func: shim,
70893
70887
  number: shim,
@@ -70916,6 +70910,8 @@ var factoryWithThrowingShims = function() {
70916
70910
  return ReactPropTypes;
70917
70911
  };
70918
70912
 
70913
+ var require$$2 = factoryWithThrowingShims;
70914
+
70919
70915
  /**
70920
70916
  * Copyright (c) 2013-present, Facebook, Inc.
70921
70917
  *
@@ -70927,7 +70923,7 @@ var propTypes = createCommonjsModule$4(function (module) {
70927
70923
  {
70928
70924
  // By explicitly using `prop-types` you are opting into new production behavior.
70929
70925
  // http://fb.me/prop-types-in-prod
70930
- module.exports = factoryWithThrowingShims();
70926
+ module.exports = require$$2();
70931
70927
  }
70932
70928
  });
70933
70929
 
@@ -71891,6 +71887,8 @@ var utils = /*#__PURE__*/Object.defineProperty({
71891
71887
  clamp: clamp_1
71892
71888
  }, '__esModule', {value: true});
71893
71889
 
71890
+ var _propTypes = propTypes;
71891
+
71894
71892
  var _resizeObserverPolyfill = /*@__PURE__*/getAugmentedNamespace(ResizeObserver_es);
71895
71893
 
71896
71894
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@@ -71905,7 +71903,7 @@ var _react2 = _interopRequireDefault$1(react);
71905
71903
 
71906
71904
 
71907
71905
 
71908
- var _propTypes2 = _interopRequireDefault$1(propTypes);
71906
+ var _propTypes2 = _interopRequireDefault$1(_propTypes);
71909
71907
 
71910
71908
 
71911
71909
 
@@ -72421,7 +72419,7 @@ let TokenImage = function(props){
72421
72419
  const handleLoadError = (error)=> {
72422
72420
  if(source == 'trustwallet') {
72423
72421
  setSource('depay');
72424
- setSrc(`https://api.depay.pro/v1/images/tokens/${blockchain}/${address}`);
72422
+ setSrc(`https://integrate.depay.fi/tokens/${blockchain}/${address}/image`);
72425
72423
  } else {
72426
72424
  setSource('unknown');
72427
72425
  setSrc('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAGFBMVEVHcEz///////////////////////////8dS1W+AAAAB3RSTlMAHklzmMLqCsLrGwAAAQ9JREFUeNrtlrsOgkAQRRdFbDcae4IFrZEYazXRVitqQ2Hrk/19BVdX7XYuiQX3VDZzMsxrVYQQQkibGIyzLNHi8OHaVJRLWXgwMy8KLYnfGEchEFTxjp2/wHxRalBg9v4CNAXzwxYVXCSC2ypJstx+g6/ATaAdqImvoHxHzEVFcPGqWwtOnoLFx++6DGdgq9NnG+T0K8EVEPTqnrZbEKGCFO1CDs2BG2UZbpnABEwMJIA1IRSeZfdCgV8wsjdVnEBuLyKyBu51Fb+xpfhPRgdsgYqeM6DlQwQmoA62AvISgIsc2j0EaxgDL0ojx/CCCs4KPGYnVHCk4CEg7SbIKqbqfyeRAgoaERBCCCGESLgDeRfMNogh3QMAAAAASUVORK5CYII=');
@@ -51702,6 +51702,9 @@
51702
51702
  sentTransaction.wait(12).then(() => {
51703
51703
  transaction._ensured = true;
51704
51704
  if (transaction.ensured) transaction.ensured(transaction);
51705
+ }).catch((error)=>{
51706
+ transaction._failed = true;
51707
+ if(transaction.failed) transaction.failed(transaction, error);
51705
51708
  });
51706
51709
  } else {
51707
51710
  throw('Submitting transaction failed!')
@@ -51906,6 +51909,9 @@
51906
51909
  sentTransaction.wait(12).then(() => {
51907
51910
  transaction._ensured = true;
51908
51911
  if (transaction.ensured) transaction.ensured(transaction);
51912
+ }).catch((error)=>{
51913
+ transaction._failed = true;
51914
+ if(transaction.failed) transaction.failed(transaction, error);
51909
51915
  });
51910
51916
  }
51911
51917
  } else {
@@ -70842,24 +70848,11 @@
70842
70848
  * LICENSE file in the root directory of this source tree.
70843
70849
  */
70844
70850
 
70845
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70846
-
70847
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
70848
-
70849
- /**
70850
- * Copyright (c) 2013-present, Facebook, Inc.
70851
- *
70852
- * This source code is licensed under the MIT license found in the
70853
- * LICENSE file in the root directory of this source tree.
70854
- */
70855
-
70856
-
70851
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
70857
70852
 
70853
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
70858
70854
 
70859
-
70860
-
70861
-
70862
- Function.call.bind(Object.prototype.hasOwnProperty);
70855
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
70863
70856
 
70864
70857
  /**
70865
70858
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -70876,7 +70869,7 @@
70876
70869
 
70877
70870
  var factoryWithThrowingShims = function() {
70878
70871
  function shim(props, propName, componentName, location, propFullName, secret) {
70879
- if (secret === ReactPropTypesSecret_1) {
70872
+ if (secret === ReactPropTypesSecret) {
70880
70873
  // It is still safe when called from React.
70881
70874
  return;
70882
70875
  }
@@ -70894,6 +70887,7 @@
70894
70887
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
70895
70888
  var ReactPropTypes = {
70896
70889
  array: shim,
70890
+ bigint: shim,
70897
70891
  bool: shim,
70898
70892
  func: shim,
70899
70893
  number: shim,
@@ -70922,6 +70916,8 @@
70922
70916
  return ReactPropTypes;
70923
70917
  };
70924
70918
 
70919
+ var require$$2 = factoryWithThrowingShims;
70920
+
70925
70921
  /**
70926
70922
  * Copyright (c) 2013-present, Facebook, Inc.
70927
70923
  *
@@ -70933,7 +70929,7 @@
70933
70929
  {
70934
70930
  // By explicitly using `prop-types` you are opting into new production behavior.
70935
70931
  // http://fb.me/prop-types-in-prod
70936
- module.exports = factoryWithThrowingShims();
70932
+ module.exports = require$$2();
70937
70933
  }
70938
70934
  });
70939
70935
 
@@ -71897,6 +71893,8 @@
71897
71893
  clamp: clamp_1
71898
71894
  }, '__esModule', {value: true});
71899
71895
 
71896
+ var _propTypes = propTypes;
71897
+
71900
71898
  var _resizeObserverPolyfill = /*@__PURE__*/getAugmentedNamespace(ResizeObserver_es);
71901
71899
 
71902
71900
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@@ -71911,7 +71909,7 @@
71911
71909
 
71912
71910
 
71913
71911
 
71914
- var _propTypes2 = _interopRequireDefault$1(propTypes);
71912
+ var _propTypes2 = _interopRequireDefault$1(_propTypes);
71915
71913
 
71916
71914
 
71917
71915
 
@@ -72427,7 +72425,7 @@
72427
72425
  const handleLoadError = (error)=> {
72428
72426
  if(source == 'trustwallet') {
72429
72427
  setSource('depay');
72430
- setSrc(`https://api.depay.pro/v1/images/tokens/${blockchain}/${address}`);
72428
+ setSrc(`https://integrate.depay.fi/tokens/${blockchain}/${address}/image`);
72431
72429
  } else {
72432
72430
  setSource('unknown');
72433
72431
  setSrc('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAGFBMVEVHcEz///////////////////////////8dS1W+AAAAB3RSTlMAHklzmMLqCsLrGwAAAQ9JREFUeNrtlrsOgkAQRRdFbDcae4IFrZEYazXRVitqQ2Hrk/19BVdX7XYuiQX3VDZzMsxrVYQQQkibGIyzLNHi8OHaVJRLWXgwMy8KLYnfGEchEFTxjp2/wHxRalBg9v4CNAXzwxYVXCSC2ypJstx+g6/ATaAdqImvoHxHzEVFcPGqWwtOnoLFx++6DGdgq9NnG+T0K8EVEPTqnrZbEKGCFO1CDs2BG2UZbpnABEwMJIA1IRSeZfdCgV8wsjdVnEBuLyKyBu51Fb+xpfhPRgdsgYqeM6DlQwQmoA62AvISgIsc2j0EaxgDL0ojx/CCCs4KPGYnVHCk4CEg7SbIKqbqfyeRAgoaERBCCCGESLgDeRfMNogh3QMAAAAASUVORK5CYII=');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "5.0.3",
4
+ "version": "5.0.4",
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/cjs/index.js",
7
7
  "files": [
@@ -32,7 +32,7 @@
32
32
  "test": "yarn test:jest && yarn test:cypress"
33
33
  },
34
34
  "dependencies": {
35
- "@depay/local-currency": "^2.0.0",
35
+ "@depay/local-currency": "=2.0.0",
36
36
  "@depay/react-dialog-stack": "^3.0.1",
37
37
  "@depay/react-shadow-dom": "^3.0.0",
38
38
  "@depay/react-token-image": "^2.0.0",
@@ -44,7 +44,7 @@
44
44
  "@depay/web3-exchanges": "^7.1.2",
45
45
  "@depay/web3-payments": "^7.0.2",
46
46
  "@depay/web3-tokens": "^7.2.0",
47
- "@depay/web3-wallets": "^6.1.0",
47
+ "@depay/web3-wallets": "^6.1.2",
48
48
  "decimal.js": "^10.3.1",
49
49
  "react-rangeslider": "^2.2.0"
50
50
  },