@tap-payments/auth-jsconnect 2.4.50-test → 2.4.52-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.
- package/build/@types/app.d.ts +8 -6
- package/build/features/connect/Connect.js +1 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -0
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -0
- package/build/features/connectExpress/ConnectExpress.js +3 -4
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -577,18 +577,20 @@ export type IndividualDataVerification = {
|
|
|
577
577
|
relation: string;
|
|
578
578
|
status: string;
|
|
579
579
|
};
|
|
580
|
-
export
|
|
580
|
+
export interface CommonDataLayer {
|
|
581
581
|
event: string;
|
|
582
|
+
}
|
|
583
|
+
export interface DataLayer extends CommonDataLayer {
|
|
582
584
|
event_category: string;
|
|
583
585
|
event_action: string;
|
|
584
586
|
event_label?: string;
|
|
585
587
|
event_value?: number | string;
|
|
586
588
|
event_noninteraction?: number;
|
|
587
|
-
}
|
|
588
|
-
export
|
|
589
|
+
}
|
|
590
|
+
export interface CountryTrackingData extends CommonDataLayer {
|
|
589
591
|
website_country?: string;
|
|
590
|
-
}
|
|
591
|
-
export
|
|
592
|
+
}
|
|
593
|
+
export interface LeadIdentificationData extends CommonDataLayer {
|
|
592
594
|
lead_ID?: string;
|
|
593
|
-
}
|
|
595
|
+
}
|
|
594
596
|
export {};
|
|
@@ -58,6 +58,7 @@ var Connect = memo(function (props) {
|
|
|
58
58
|
event_value: (_b = data.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2
|
|
59
59
|
});
|
|
60
60
|
sendCustomDimension({
|
|
61
|
+
event: 'PageView',
|
|
61
62
|
website_country: (_c = data.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2
|
|
62
63
|
});
|
|
63
64
|
}
|
|
@@ -4,6 +4,7 @@ export interface ConnectExpressLibProps extends LibConfig {
|
|
|
4
4
|
leadId?: string;
|
|
5
5
|
postURL: string;
|
|
6
6
|
showBoard?: boolean;
|
|
7
|
+
verifyToken?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare function ConnectExpressElement(props: ConnectExpressLibProps): JSX.Element;
|
|
9
10
|
export declare function renderConnectExpressLib(config: ConnectExpressLibProps, elementId: string): {
|
|
@@ -36,7 +36,7 @@ import { CONNECT_EXPRESS_SCREENS_NAVIGATION } from '../../constants';
|
|
|
36
36
|
import { connectExpressFeatureScreens } from '../featuresScreens';
|
|
37
37
|
import Background from '../shared/Background';
|
|
38
38
|
var ConnectExpress = memo(function (_a) {
|
|
39
|
-
var leadId = _a.leadId, postURL = _a.postURL, showBoard = _a.showBoard, props = __rest(_a, ["leadId", "postURL", "showBoard"]);
|
|
39
|
+
var leadId = _a.leadId, postURL = _a.postURL, showBoard = _a.showBoard, verifyToken = _a.verifyToken, props = __rest(_a, ["leadId", "postURL", "showBoard", "verifyToken"]);
|
|
40
40
|
var theme = useAppTheme().theme;
|
|
41
41
|
var dispatch = useAppDispatch();
|
|
42
42
|
var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
|
|
@@ -54,12 +54,11 @@ var ConnectExpress = memo(function (_a) {
|
|
|
54
54
|
}, []);
|
|
55
55
|
React.useEffect(function () {
|
|
56
56
|
if (data.isValidOperator && props.open && !settingLoading) {
|
|
57
|
-
|
|
58
|
-
if (token) {
|
|
57
|
+
if (verifyToken) {
|
|
59
58
|
var lang = getParameterByName('lang');
|
|
60
59
|
if (lang)
|
|
61
60
|
dispatch(handleLanguage(lang));
|
|
62
|
-
dispatch(verifyLeadToken({ token:
|
|
61
|
+
dispatch(verifyLeadToken({ token: verifyToken }));
|
|
63
62
|
return;
|
|
64
63
|
}
|
|
65
64
|
if (leadId) {
|