@tap-payments/connect 2.6.58-test → 2.6.59-test
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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ConnectProps as ConnectAttrs } from '../../@types';
|
|
3
3
|
export type ConnectAuthProps = Pick<ConnectAttrs, 'open' | 'domain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'lead' | 'country' | 'language' | 'onSuccess' | 'onError' | 'onReady' | 'onClose'>;
|
|
4
|
-
export declare const TapConnectAuth: React.MemoExoticComponent<(props: ConnectAuthProps
|
|
4
|
+
export declare const TapConnectAuth: React.MemoExoticComponent<(props: ConnectAuthProps & {
|
|
5
|
+
id?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
5
7
|
export declare const renderTapConnectAuth: (props: ConnectAuthProps, elementId: string) => Promise<any>;
|
|
@@ -61,6 +61,7 @@ var ConnectAuth = function (props) {
|
|
|
61
61
|
console.error('connect-auth-js failed to load!');
|
|
62
62
|
}, [status]);
|
|
63
63
|
React.useEffect(function () {
|
|
64
|
+
var _a;
|
|
64
65
|
if (status !== 'ready')
|
|
65
66
|
return;
|
|
66
67
|
var renderAuthLib = window['TapAuth'].renderAuthLib;
|
|
@@ -83,7 +84,7 @@ var ConnectAuth = function (props) {
|
|
|
83
84
|
onError: props.onError,
|
|
84
85
|
onReady: props.onReady,
|
|
85
86
|
onClose: props.onClose
|
|
86
|
-
}, 'tap-connect-auth-lib-id').unmount;
|
|
87
|
+
}, (_a = props.id) !== null && _a !== void 0 ? _a : 'tap-connect-auth-lib-id').unmount;
|
|
87
88
|
return function () {
|
|
88
89
|
unmount();
|
|
89
90
|
};
|