@turnkey/react-wallet-kit 1.5.0 → 1.5.1

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.
@@ -4604,17 +4604,17 @@ var ClientProvider = function ClientProvider(_ref) {
4604
4604
  }(), [pushPage, masterConfig, client, session, user]);
4605
4605
  var handleImportWallet = useCallback(/*#__PURE__*/function () {
4606
4606
  var _ref104 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee82(params) {
4607
- var _ref105, defaultWalletAccounts, _ref105$successPageDu, successPageDuration, stampWith, walletName, organizationId, userId, _t14;
4607
+ var _ref105, defaultWalletAccounts, _ref105$successPageDu, successPageDuration, stampWith, walletName, clearClipboardOnPaste, organizationId, userId, _t14;
4608
4608
  return _regenerator().w(function (_context82) {
4609
4609
  while (1) switch (_context82.p = _context82.n) {
4610
4610
  case 0:
4611
- _ref105 = params || {}, defaultWalletAccounts = _ref105.defaultWalletAccounts, _ref105$successPageDu = _ref105.successPageDuration, successPageDuration = _ref105$successPageDu === void 0 ? 2000 : _ref105$successPageDu, stampWith = _ref105.stampWith, walletName = _ref105.walletName, organizationId = _ref105.organizationId, userId = _ref105.userId;
4611
+ _ref105 = params || {}, defaultWalletAccounts = _ref105.defaultWalletAccounts, _ref105$successPageDu = _ref105.successPageDuration, successPageDuration = _ref105$successPageDu === void 0 ? 2000 : _ref105$successPageDu, stampWith = _ref105.stampWith, walletName = _ref105.walletName, clearClipboardOnPaste = _ref105.clearClipboardOnPaste, organizationId = _ref105.organizationId, userId = _ref105.userId;
4612
4612
  _context82.p = 1;
4613
4613
  return _context82.a(2, withTurnkeyErrorHandling(function () {
4614
4614
  return new Promise(function (resolve, reject) {
4615
4615
  return pushPage({
4616
4616
  key: "Import wallet",
4617
- content: jsx(ImportComponent, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
4617
+ content: jsx(ImportComponent, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
4618
4618
  importType: ImportType.Wallet,
4619
4619
  onError: function onError(error) {
4620
4620
  reject(error);
@@ -4626,6 +4626,8 @@ var ClientProvider = function ClientProvider(_ref) {
4626
4626
  defaultWalletAccounts: defaultWalletAccounts
4627
4627
  }), successPageDuration !== undefined && {
4628
4628
  successPageDuration: successPageDuration
4629
+ }), clearClipboardOnPaste !== undefined && {
4630
+ clearClipboardOnPaste: clearClipboardOnPaste // Note: This is defaulted to true in the IframeStamper
4629
4631
  }), stampWith !== undefined && {
4630
4632
  stampWith: stampWith
4631
4633
  }), walletName !== undefined && {
@@ -4661,17 +4663,17 @@ var ClientProvider = function ClientProvider(_ref) {
4661
4663
  }(), [pushPage, masterConfig, client, session, user]);
4662
4664
  var handleImportPrivateKey = useCallback(/*#__PURE__*/function () {
4663
4665
  var _ref106 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee83(params) {
4664
- var _ref107, curve, addressFormats, _ref107$successPageDu, successPageDuration, stampWith, keyName, organizationId, _t15;
4666
+ var _ref107, curve, addressFormats, _ref107$successPageDu, successPageDuration, stampWith, keyName, clearClipboardOnPaste, organizationId, _t15;
4665
4667
  return _regenerator().w(function (_context83) {
4666
4668
  while (1) switch (_context83.p = _context83.n) {
4667
4669
  case 0:
4668
- _ref107 = params || {}, curve = _ref107.curve, addressFormats = _ref107.addressFormats, _ref107$successPageDu = _ref107.successPageDuration, successPageDuration = _ref107$successPageDu === void 0 ? 2000 : _ref107$successPageDu, stampWith = _ref107.stampWith, keyName = _ref107.keyName, organizationId = _ref107.organizationId;
4670
+ _ref107 = params || {}, curve = _ref107.curve, addressFormats = _ref107.addressFormats, _ref107$successPageDu = _ref107.successPageDuration, successPageDuration = _ref107$successPageDu === void 0 ? 2000 : _ref107$successPageDu, stampWith = _ref107.stampWith, keyName = _ref107.keyName, clearClipboardOnPaste = _ref107.clearClipboardOnPaste, organizationId = _ref107.organizationId;
4669
4671
  _context83.p = 1;
4670
4672
  return _context83.a(2, withTurnkeyErrorHandling(function () {
4671
4673
  return new Promise(function (resolve, reject) {
4672
4674
  return pushPage({
4673
4675
  key: "Import private key",
4674
- content: jsx(ImportComponent, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
4676
+ content: jsx(ImportComponent, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
4675
4677
  importType: ImportType.PrivateKey,
4676
4678
  curve: curve,
4677
4679
  addressFormats: addressFormats,
@@ -4683,6 +4685,8 @@ var ClientProvider = function ClientProvider(_ref) {
4683
4685
  }
4684
4686
  }, successPageDuration !== undefined && {
4685
4687
  successPageDuration: successPageDuration
4688
+ }), clearClipboardOnPaste !== undefined && {
4689
+ clearClipboardOnPaste: clearClipboardOnPaste // Note: This is defaulted to true in the IframeStamper
4686
4690
  }), stampWith !== undefined && {
4687
4691
  stampWith: stampWith
4688
4692
  }), keyName !== undefined && {
@@ -6316,12 +6320,12 @@ var ClientProvider = function ClientProvider(_ref) {
6316
6320
  });
6317
6321
  };
6318
6322
  pushPage({
6319
- key: "Fiat On-Ramp",
6323
+ key: "Fiat OnRamp",
6320
6324
  content: jsx(OnRampContainer, {}),
6321
6325
  showTitle: false,
6322
6326
  preventBack: true,
6323
6327
  onClose: function onClose() {
6324
- return reject(new TurnkeyError("User canceled the on-ramp process.", TurnkeyErrorCodes.USER_CANCELED));
6328
+ return reject(new TurnkeyError("User canceled the onramp process.", TurnkeyErrorCodes.USER_CANCELED));
6325
6329
  }
6326
6330
  });
6327
6331
  }));