akeyless-client-commons 1.0.52 → 1.0.53
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.
|
@@ -59,8 +59,9 @@ interface LoginWithGoogleButtonProps {
|
|
|
59
59
|
containerClassName?: string;
|
|
60
60
|
loaderProps?: LoaderProps;
|
|
61
61
|
googleSvgProps?: GoogleSvgProps;
|
|
62
|
+
onError?: (error: any) => void;
|
|
62
63
|
}
|
|
63
|
-
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
64
65
|
|
|
65
66
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
66
67
|
children?: React$1.ReactNode;
|
|
@@ -59,8 +59,9 @@ interface LoginWithGoogleButtonProps {
|
|
|
59
59
|
containerClassName?: string;
|
|
60
60
|
loaderProps?: LoaderProps;
|
|
61
61
|
googleSvgProps?: GoogleSvgProps;
|
|
62
|
+
onError?: (error: any) => void;
|
|
62
63
|
}
|
|
63
|
-
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare const LoginWithGoogleButton: ({ label, className, containerClassName, onClick, onError, loaderProps, googleSvgProps, }: LoginWithGoogleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
64
65
|
|
|
65
66
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
66
67
|
children?: React$1.ReactNode;
|
package/dist/components/index.js
CHANGED
|
@@ -957,7 +957,7 @@ var GoogleSvg = function(param) {
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
var LoginWithGoogleButton = function(param) {
|
|
960
|
-
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
960
|
+
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, onError = param.onError, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
961
961
|
color: "#000"
|
|
962
962
|
} : _param_loaderProps, googleSvgProps = param.googleSvgProps;
|
|
963
963
|
var signInWithGoogle = useLoginWithGoogle();
|
|
@@ -994,6 +994,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
994
994
|
case 3:
|
|
995
995
|
error = _state.sent();
|
|
996
996
|
console.error("error from login with google:", error);
|
|
997
|
+
onError === null || onError === void 0 ? void 0 : onError(error);
|
|
997
998
|
return [
|
|
998
999
|
3,
|
|
999
1000
|
5
|
|
@@ -759,7 +759,7 @@ var GoogleSvg = function(param) {
|
|
|
759
759
|
});
|
|
760
760
|
};
|
|
761
761
|
var LoginWithGoogleButton = function(param) {
|
|
762
|
-
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
762
|
+
var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, onError = param.onError, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
|
|
763
763
|
color: "#000"
|
|
764
764
|
} : _param_loaderProps, googleSvgProps = param.googleSvgProps;
|
|
765
765
|
var signInWithGoogle = useLoginWithGoogle();
|
|
@@ -796,6 +796,7 @@ var LoginWithGoogleButton = function(param) {
|
|
|
796
796
|
case 3:
|
|
797
797
|
error = _state.sent();
|
|
798
798
|
console.error("error from login with google:", error);
|
|
799
|
+
onError === null || onError === void 0 ? void 0 : onError(error);
|
|
799
800
|
return [
|
|
800
801
|
3,
|
|
801
802
|
5
|