@turnkey/react-wallet-kit 1.1.0 → 1.1.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.
- package/dist/components/auth/Wallet.d.ts +2 -2
- package/dist/components/auth/Wallet.d.ts.map +1 -1
- package/dist/components/design/Inputs.d.ts.map +1 -1
- package/dist/components/design/Inputs.js +29 -7
- package/dist/components/design/Inputs.js.map +1 -1
- package/dist/components/design/Inputs.mjs +26 -1
- package/dist/components/design/Inputs.mjs.map +1 -1
- package/dist/components/user/ConnectWallet.d.ts +2 -2
- package/dist/components/user/ConnectWallet.d.ts.map +1 -1
- package/dist/components/user/ConnectWallet.js +15 -4
- package/dist/components/user/ConnectWallet.js.map +1 -1
- package/dist/components/user/ConnectWallet.mjs +71 -38
- package/dist/components/user/ConnectWallet.mjs.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/providers/client/Provider.d.ts.map +1 -1
- package/dist/providers/client/Provider.js +31 -11
- package/dist/providers/client/Provider.js.map +1 -1
- package/dist/providers/client/Provider.mjs +41 -11
- package/dist/providers/client/Provider.mjs.map +1 -1
- package/dist/providers/client/Types.d.ts +31 -13
- package/dist/providers/client/Types.d.ts.map +1 -1
- package/dist/providers/client/Types.js.map +1 -1
- package/dist/providers/client/Types.mjs.map +1 -1
- package/dist/providers/modal/Provider.d.ts +1 -0
- package/dist/providers/modal/Provider.d.ts.map +1 -1
- package/dist/providers/modal/Provider.js.map +1 -1
- package/dist/providers/modal/Provider.mjs.map +1 -1
- package/dist/providers/modal/Root.d.ts.map +1 -1
- package/dist/providers/modal/Root.js +73 -64
- package/dist/providers/modal/Root.js.map +1 -1
- package/dist/providers/modal/Root.mjs +75 -65
- package/dist/providers/modal/Root.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +6 -1
- package/dist/utils/utils.js.map +1 -1
- package/dist/utils/utils.mjs +11 -5
- package/dist/utils/utils.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -196,7 +196,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
196
196
|
icon: faFacebook
|
|
197
197
|
})
|
|
198
198
|
}),
|
|
199
|
-
showTitle: false
|
|
199
|
+
showTitle: false,
|
|
200
|
+
onClose: function onClose() {
|
|
201
|
+
reject(new TurnkeyError("User cancelled the Facebook authentication process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
202
|
+
}
|
|
200
203
|
});
|
|
201
204
|
});
|
|
202
205
|
}
|
|
@@ -288,7 +291,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
288
291
|
icon: faDiscord
|
|
289
292
|
})
|
|
290
293
|
}),
|
|
291
|
-
showTitle: false
|
|
294
|
+
showTitle: false,
|
|
295
|
+
onClose: function onClose() {
|
|
296
|
+
reject(new TurnkeyError("User cancelled the Discord authentication process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
297
|
+
}
|
|
292
298
|
});
|
|
293
299
|
});
|
|
294
300
|
case 2:
|
|
@@ -373,7 +379,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
373
379
|
icon: faXTwitter
|
|
374
380
|
})
|
|
375
381
|
}),
|
|
376
|
-
showTitle: false
|
|
382
|
+
showTitle: false,
|
|
383
|
+
onClose: function onClose() {
|
|
384
|
+
reject(new TurnkeyError("User cancelled the Twitter authentication process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
385
|
+
}
|
|
377
386
|
});
|
|
378
387
|
});
|
|
379
388
|
case 3:
|
|
@@ -450,7 +459,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
450
459
|
}(),
|
|
451
460
|
icon: icon
|
|
452
461
|
}),
|
|
453
|
-
showTitle: false
|
|
462
|
+
showTitle: false,
|
|
463
|
+
onClose: function onClose() {
|
|
464
|
+
reject(new TurnkeyError("User cancelled the ".concat(providerName, " authentication process."), TurnkeyErrorCodes.USER_CANCELED));
|
|
465
|
+
}
|
|
454
466
|
});
|
|
455
467
|
});
|
|
456
468
|
case 5:
|
|
@@ -2163,7 +2175,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
2163
2175
|
addEthereumPrefix: params.addEthereumPrefix
|
|
2164
2176
|
}), (params === null || params === void 0 ? void 0 : params.organizationId) && {
|
|
2165
2177
|
organizationId: params.organizationId
|
|
2166
|
-
}))
|
|
2178
|
+
})),
|
|
2179
|
+
onClose: function onClose() {
|
|
2180
|
+
return reject(new TurnkeyError("User cancelled the signing process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
2181
|
+
}
|
|
2167
2182
|
});
|
|
2168
2183
|
}));
|
|
2169
2184
|
}
|
|
@@ -5605,7 +5620,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
5605
5620
|
organizationId: organizationId
|
|
5606
5621
|
})),
|
|
5607
5622
|
showTitle: false,
|
|
5608
|
-
preventBack: true
|
|
5623
|
+
preventBack: true,
|
|
5624
|
+
onClose: function onClose() {
|
|
5625
|
+
return reject(new TurnkeyError("User cancelled the remove OAuth provider process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
5626
|
+
}
|
|
5609
5627
|
});
|
|
5610
5628
|
}));
|
|
5611
5629
|
case 4:
|
|
@@ -5799,13 +5817,19 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
5799
5817
|
content: jsx(ConnectWalletModal, {
|
|
5800
5818
|
providers: providers,
|
|
5801
5819
|
successPageDuration: successPageDuration,
|
|
5802
|
-
onSuccess: function onSuccess() {
|
|
5803
|
-
resolve(
|
|
5820
|
+
onSuccess: function onSuccess(type, account) {
|
|
5821
|
+
resolve({
|
|
5822
|
+
type: type,
|
|
5823
|
+
account: account
|
|
5824
|
+
});
|
|
5804
5825
|
},
|
|
5805
5826
|
onError: function onError(error) {
|
|
5806
5827
|
reject(error);
|
|
5807
5828
|
}
|
|
5808
|
-
})
|
|
5829
|
+
}),
|
|
5830
|
+
onClose: function onClose() {
|
|
5831
|
+
return reject(new TurnkeyError("User cancelled the connect wallet process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
5832
|
+
}
|
|
5809
5833
|
});
|
|
5810
5834
|
}));
|
|
5811
5835
|
}
|
|
@@ -5854,7 +5878,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
5854
5878
|
organizationId: organizationId
|
|
5855
5879
|
})),
|
|
5856
5880
|
showTitle: false,
|
|
5857
|
-
preventBack: true
|
|
5881
|
+
preventBack: true,
|
|
5882
|
+
onClose: function onClose() {
|
|
5883
|
+
return reject(new TurnkeyError("User cancelled the remove email process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
5884
|
+
}
|
|
5858
5885
|
});
|
|
5859
5886
|
}));
|
|
5860
5887
|
case 3:
|
|
@@ -5915,7 +5942,10 @@ var ClientProvider = function ClientProvider(_ref) {
|
|
|
5915
5942
|
organizationId: organizationId
|
|
5916
5943
|
})),
|
|
5917
5944
|
showTitle: false,
|
|
5918
|
-
preventBack: true
|
|
5945
|
+
preventBack: true,
|
|
5946
|
+
onClose: function onClose() {
|
|
5947
|
+
return reject(new TurnkeyError("User cancelled the remove phone number process.", TurnkeyErrorCodes.USER_CANCELED));
|
|
5948
|
+
}
|
|
5919
5949
|
});
|
|
5920
5950
|
}));
|
|
5921
5951
|
case 3:
|