@tap-payments/auth-jsconnect 2.4.67-test → 2.4.68-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 +6 -0
- package/build/features/bank/Bank.js +7 -2
- package/build/features/brand/Brand.js +7 -2
- package/build/features/business/Business.js +4 -1
- package/build/features/connect/Connect.js +4 -1
- package/build/features/connectExpress/ConnectExpress.js +4 -1
- package/build/features/entity/Entity.js +7 -2
- package/build/features/individual/Individual.js +7 -2
- package/build/features/password/Password.js +4 -1
- package/build/features/tax/Tax.js +7 -2
- package/build/utils/gtm.d.ts +4 -3
- package/build/utils/gtm.js +3 -0
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -610,6 +610,12 @@ export interface CountryTrackingData extends CommonDataLayer {
|
|
|
610
610
|
export interface LeadIdentificationData extends CommonDataLayer {
|
|
611
611
|
lead_ID?: string;
|
|
612
612
|
}
|
|
613
|
+
export interface EventPageTrackingData extends CommonDataLayer {
|
|
614
|
+
title?: string;
|
|
615
|
+
}
|
|
616
|
+
export interface PageTrackingData {
|
|
617
|
+
title?: string;
|
|
618
|
+
}
|
|
613
619
|
export type VerifyExpressTokenParams = {
|
|
614
620
|
public_key: string;
|
|
615
621
|
post: {
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
26
|
import { useAppTheme, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
27
|
import { settingsSelector } from '../../app/settings';
|
|
@@ -29,7 +29,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
29
29
|
import { store } from '../../app/store';
|
|
30
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
31
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject } from '../../utils';
|
|
32
|
+
import { findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
33
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
34
34
|
import { BANK_SCREENS_NAVIGATION } from '../../constants';
|
|
35
35
|
import { bankFeatureScreens } from '../featuresScreens';
|
|
@@ -44,6 +44,11 @@ var Bank = memo(function (_a) {
|
|
|
44
44
|
useErrorListener(bankError || error);
|
|
45
45
|
useStepStartedListener();
|
|
46
46
|
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress;
|
|
47
|
+
React.useEffect(function () {
|
|
48
|
+
sendPageView({
|
|
49
|
+
title: 'Bank'
|
|
50
|
+
});
|
|
51
|
+
}, []);
|
|
47
52
|
useVerifyToken({
|
|
48
53
|
verify: verifyLeadToken,
|
|
49
54
|
loadingScreenName: 'BANK_LOADING_DATA_STEP',
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
26
|
import { useAppTheme, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
27
|
import { settingsSelector } from '../../app/settings';
|
|
@@ -29,7 +29,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
29
29
|
import { store } from '../../app/store';
|
|
30
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
31
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject } from '../../utils';
|
|
32
|
+
import { findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
33
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
34
34
|
import { BRAND_SCREENS_NAVIGATION } from '../../constants';
|
|
35
35
|
import { brandFeatureScreens } from '../featuresScreens';
|
|
@@ -44,6 +44,11 @@ var Brand = memo(function (_a) {
|
|
|
44
44
|
useErrorListener(brandError || error);
|
|
45
45
|
useStepStartedListener();
|
|
46
46
|
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress;
|
|
47
|
+
React.useEffect(function () {
|
|
48
|
+
sendPageView({
|
|
49
|
+
title: 'Brand'
|
|
50
|
+
});
|
|
51
|
+
}, []);
|
|
47
52
|
useVerifyToken({
|
|
48
53
|
verify: verifyLeadToken,
|
|
49
54
|
loadingScreenName: 'BRAND_LOADING_DATA_STEP',
|
|
@@ -20,7 +20,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
20
20
|
import { store } from '../../app/store';
|
|
21
21
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
22
22
|
import Collapse from '../../components/Collapse';
|
|
23
|
-
import { getParameterByName, findOrCreateElementAndInject } from '../../utils';
|
|
23
|
+
import { getParameterByName, findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
24
24
|
import { BUSINESS_SCREENS_NAVIGATION } from '../../constants';
|
|
25
25
|
import { businessFeatureScreens } from '../featuresScreens';
|
|
26
26
|
import Background from '../shared/Background';
|
|
@@ -41,6 +41,9 @@ var Business = memo(function (props) {
|
|
|
41
41
|
if (!token)
|
|
42
42
|
throw new Error('Auth token is not found!');
|
|
43
43
|
dispatch(verifyLeadToken(token));
|
|
44
|
+
sendPageView({
|
|
45
|
+
title: 'Business'
|
|
46
|
+
});
|
|
44
47
|
};
|
|
45
48
|
useEffect(function () {
|
|
46
49
|
if (!settingLoading && open)
|
|
@@ -20,7 +20,7 @@ import { store } from '../../app/store';
|
|
|
20
20
|
import { connectSelector, setDefaultCountryCode } from '../app/connect/connectStore';
|
|
21
21
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
22
22
|
import Collapse from '../../components/Collapse';
|
|
23
|
-
import { isKW, findOrCreateElementAndInject, initializeGTM, sendCustomEventToGTM, sendCustomDimension } from '../../utils';
|
|
23
|
+
import { isKW, findOrCreateElementAndInject, initializeGTM, sendCustomEventToGTM, sendCustomDimension, sendPageView } from '../../utils';
|
|
24
24
|
import { CONNECT_SCREENS_NAVIGATION } from '../../constants';
|
|
25
25
|
import { connectFeatureScreens } from '../featuresScreens';
|
|
26
26
|
import Background from '../shared/Background';
|
|
@@ -61,6 +61,9 @@ var Connect = memo(function (props) {
|
|
|
61
61
|
event: 'PageView',
|
|
62
62
|
website_country: (_c = data.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2
|
|
63
63
|
});
|
|
64
|
+
sendPageView({
|
|
65
|
+
title: 'Connect'
|
|
66
|
+
});
|
|
64
67
|
}
|
|
65
68
|
}, [data.businessCountry]);
|
|
66
69
|
var handleDialogClose = function () {
|
|
@@ -67,7 +67,7 @@ import { store } from '../../app/store';
|
|
|
67
67
|
import { connectExpressSelector, setIsLeadIdPassed, setPostUrl, setLeadId, retrieveLeadIdentityByIdAsync, setShowBoard } from '../app/connectExpress/connectExpressStore';
|
|
68
68
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
69
69
|
import Collapse from '../../components/Collapse';
|
|
70
|
-
import { isKW, findOrCreateElementAndInject, getParameterByName } from '../../utils';
|
|
70
|
+
import { isKW, findOrCreateElementAndInject, getParameterByName, sendPageView } from '../../utils';
|
|
71
71
|
import { CONNECT_EXPRESS_SCREENS_NAVIGATION } from '../../constants';
|
|
72
72
|
import { connectExpressFeatureScreens } from '../featuresScreens';
|
|
73
73
|
import Background from '../shared/Background';
|
|
@@ -104,6 +104,9 @@ var ConnectExpress = memo(function (_a) {
|
|
|
104
104
|
dispatch(setShowBoard(true));
|
|
105
105
|
if (typeof showBoard === 'boolean')
|
|
106
106
|
dispatch(setShowBoard(showBoard));
|
|
107
|
+
sendPageView({
|
|
108
|
+
title: 'Connect Express'
|
|
109
|
+
});
|
|
107
110
|
}, []);
|
|
108
111
|
React.useEffect(function () {
|
|
109
112
|
if (data.isValidOperator && props.open && !settingLoading) {
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
26
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
27
|
import { settingsSelector } from '../../app/settings';
|
|
@@ -29,7 +29,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
29
29
|
import { store } from '../../app/store';
|
|
30
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
31
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject } from '../../utils';
|
|
32
|
+
import { findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
33
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
34
34
|
import { ENTITY_SCREENS_NAVIGATION } from '../../constants';
|
|
35
35
|
import { entityFeatureScreens } from '../featuresScreens';
|
|
@@ -52,6 +52,11 @@ var Entity = memo(function (_a) {
|
|
|
52
52
|
internalToken: verifyToken,
|
|
53
53
|
settingLoading: settingLoading
|
|
54
54
|
});
|
|
55
|
+
React.useEffect(function () {
|
|
56
|
+
sendPageView({
|
|
57
|
+
title: 'Entity'
|
|
58
|
+
});
|
|
59
|
+
}, []);
|
|
55
60
|
var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
|
|
56
61
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, open: open, error: error, loading: initialLoading, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: entityFeatureScreens.map(function (_a, index) {
|
|
57
62
|
var Element = _a.element, name = _a.name;
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
26
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
27
|
import { settingsSelector } from '../../app/settings';
|
|
@@ -29,7 +29,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
29
29
|
import { store } from '../../app/store';
|
|
30
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
31
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject } from '../../utils';
|
|
32
|
+
import { findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
33
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
34
34
|
import { INDIVIDUAL_SCREENS_NAVIGATION } from '../../constants';
|
|
35
35
|
import { individualFeatureScreens } from '../featuresScreens';
|
|
@@ -52,6 +52,11 @@ var Individual = memo(function (_a) {
|
|
|
52
52
|
internalToken: verifyToken,
|
|
53
53
|
settingLoading: settingLoading
|
|
54
54
|
});
|
|
55
|
+
React.useEffect(function () {
|
|
56
|
+
sendPageView({
|
|
57
|
+
title: 'Individual'
|
|
58
|
+
});
|
|
59
|
+
}, []);
|
|
55
60
|
var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
|
|
56
61
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, error: error, open: open, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: individualFeatureScreens.map(function (_a, index) {
|
|
57
62
|
var Element = _a.element, name = _a.name;
|
|
@@ -19,7 +19,7 @@ import { store } from '../../app/store';
|
|
|
19
19
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
20
20
|
import Collapse from '../../components/Collapse';
|
|
21
21
|
import { FeatureContainer } from '../shared/Containers';
|
|
22
|
-
import { getParameterByName, findOrCreateElementAndInject } from '../../utils';
|
|
22
|
+
import { getParameterByName, findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
23
23
|
import { PASSWORD_OPERATION_TYPE, PASSWORD_SCREENS_NAVIGATION } from '../../constants';
|
|
24
24
|
import { passwordFeatureScreens } from '../featuresScreens';
|
|
25
25
|
import { passwordSelector, verifyLeadToken, verifyOperationToken } from '../app/password/passwordStore';
|
|
@@ -43,6 +43,9 @@ var Password = memo(function (props) {
|
|
|
43
43
|
dispatch(handleLanguage(lang));
|
|
44
44
|
if (!token)
|
|
45
45
|
throw new Error('Auth token is not found!');
|
|
46
|
+
sendPageView({
|
|
47
|
+
title: 'Password'
|
|
48
|
+
});
|
|
46
49
|
if (operationType === PASSWORD_OPERATION_TYPE.RESET_PASSWORD) {
|
|
47
50
|
dispatch(verifyOperationToken({ token: token, boardId: boardId, boardInfoId: boardInfoId }));
|
|
48
51
|
return;
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
26
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
27
|
import { settingsSelector } from '../../app/settings';
|
|
@@ -29,7 +29,7 @@ import AnimationFlow from '../../components/AnimationFlow';
|
|
|
29
29
|
import { store } from '../../app/store';
|
|
30
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
31
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject } from '../../utils';
|
|
32
|
+
import { findOrCreateElementAndInject, sendPageView } from '../../utils';
|
|
33
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
34
34
|
import { TAX_SCREENS_NAVIGATION } from '../../constants';
|
|
35
35
|
import { taxFeatureScreens } from '../featuresScreens';
|
|
@@ -44,6 +44,11 @@ var Tax = memo(function (_a) {
|
|
|
44
44
|
useErrorListener(taxError || error);
|
|
45
45
|
useStepStartedListener();
|
|
46
46
|
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation, merchant = data.merchant, isMaturityExpress = data.isMaturityExpress;
|
|
47
|
+
React.useEffect(function () {
|
|
48
|
+
sendPageView({
|
|
49
|
+
title: 'Tax'
|
|
50
|
+
});
|
|
51
|
+
}, []);
|
|
47
52
|
useVerifyToken({
|
|
48
53
|
verify: verifyLeadToken,
|
|
49
54
|
loadingScreenName: 'TAX_LOADING_DATA_STEP',
|
package/build/utils/gtm.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CountryTrackingData, DataLayer, LeadIdentificationData } from '../@types';
|
|
2
|
-
export declare const pushToDataLayer: (data: DataLayer | CountryTrackingData | LeadIdentificationData) => void;
|
|
1
|
+
import { CountryTrackingData, DataLayer, LeadIdentificationData, PageTrackingData, EventPageTrackingData } from '../@types';
|
|
2
|
+
export declare const pushToDataLayer: (data: DataLayer | CountryTrackingData | LeadIdentificationData | EventPageTrackingData) => void;
|
|
3
3
|
export declare const initializeGTM: () => void;
|
|
4
4
|
export declare const sendCustomEventToGTM: (data: DataLayer) => void;
|
|
5
|
-
export declare const sendCustomDimension: (data: CountryTrackingData | LeadIdentificationData) => void;
|
|
5
|
+
export declare const sendCustomDimension: (data: CountryTrackingData | LeadIdentificationData | EventPageTrackingData) => void;
|
|
6
|
+
export declare const sendPageView: (data: PageTrackingData) => void;
|
package/build/utils/gtm.js
CHANGED