@coinflowlabs/angular 1.15.0 → 1.15.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.
|
@@ -889,6 +889,7 @@ var IFrameMessageMethods;
|
|
|
889
889
|
IFrameMessageMethods["Loaded"] = "loaded";
|
|
890
890
|
IFrameMessageMethods["AccountLinked"] = "accountLinked";
|
|
891
891
|
IFrameMessageMethods["AccountNotLinked"] = "accountNotLinked";
|
|
892
|
+
IFrameMessageMethods["AccountLinkError"] = "accountLinkError";
|
|
892
893
|
IFrameMessageMethods["Redirect"] = "redirect";
|
|
893
894
|
IFrameMessageMethods["Overlay"] = "overlay";
|
|
894
895
|
IFrameMessageMethods["UpdateSubtotal"] = "updateSubtotal";
|
|
@@ -973,6 +974,11 @@ function handleIFrameMessage(rawMessage, handlers, handleHeightChangeId) {
|
|
|
973
974
|
return;
|
|
974
975
|
handlers.onAccountNotLinked(walletCall.info);
|
|
975
976
|
return;
|
|
977
|
+
case IFrameMessageMethods.AccountLinkError:
|
|
978
|
+
if (!handlers.onAccountLinkError)
|
|
979
|
+
return;
|
|
980
|
+
handlers.onAccountLinkError(walletCall.info);
|
|
981
|
+
return;
|
|
976
982
|
case IFrameMessageMethods.Redirect:
|
|
977
983
|
window.open(data, '_blank');
|
|
978
984
|
return;
|
|
@@ -1016,6 +1022,7 @@ function getHandlers(props) {
|
|
|
1016
1022
|
onInputValid: props.onInputValid,
|
|
1017
1023
|
onAccountLinked: props.onAccountLinked,
|
|
1018
1024
|
onAccountNotLinked: props.onAccountNotLinked,
|
|
1025
|
+
onAccountLinkError: props.onAccountLinkError,
|
|
1019
1026
|
};
|
|
1020
1027
|
}
|
|
1021
1028
|
const walletHandlers = CoinflowUtils.byBlockchain(chain, {
|
|
@@ -1081,6 +1088,7 @@ function getHandlers(props) {
|
|
|
1081
1088
|
...walletHandlers,
|
|
1082
1089
|
onAccountLinked: props.onAccountLinked,
|
|
1083
1090
|
onAccountNotLinked: props.onAccountNotLinked,
|
|
1091
|
+
onAccountLinkError: props.onAccountLinkError,
|
|
1084
1092
|
};
|
|
1085
1093
|
}
|
|
1086
1094
|
function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|