@tap-payments/auth-jsconnect 2.12.2-development → 2.12.2-sandbox
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/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/app.d.ts +1 -0
- package/build/constants/app.js +1 -0
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/connect/screens/Individual/Individual.js +3 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +3 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +2 -0
- package/build/utils/common.js +3 -3
- package/package.json +2 -2
|
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
|
|
|
33
33
|
var _b;
|
|
34
34
|
var theme = _a.theme;
|
|
35
35
|
return (_b = {},
|
|
36
|
-
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
|
|
36
|
+
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
|
|
37
37
|
_b);
|
|
38
38
|
});
|
|
39
39
|
var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ScreenStepNavigation, BusinessType, POSInfo, TerminalInfo } from '../@types';
|
|
2
2
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
|
+
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
|
|
3
4
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
4
5
|
export declare const CLIENT_ORIGIN: string;
|
|
5
6
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
package/build/constants/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BusinessType } from '../@types';
|
|
2
2
|
import { CONNECT_FLOWS } from './flows';
|
|
3
3
|
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
|
|
4
|
+
export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
|
|
4
5
|
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
5
6
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
6
7
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
@@ -1274,6 +1274,7 @@ export var individualSlice = createSlice({
|
|
|
1274
1274
|
state.data.individualData.isAuthorized = is_authorized;
|
|
1275
1275
|
})
|
|
1276
1276
|
.addCase(retrieveIndividualInfo.rejected, function (state, action) {
|
|
1277
|
+
state.addOrRequestDetailLoading = false;
|
|
1277
1278
|
state.error = action.error.message;
|
|
1278
1279
|
})
|
|
1279
1280
|
.addCase(getIndividualList.pending, function (state) {
|
|
@@ -25,7 +25,7 @@ export var LicenseValidationSchema = yup.object().shape({
|
|
|
25
25
|
var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
|
|
26
26
|
if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
|
|
27
27
|
return false;
|
|
28
|
-
if (isFL || !isOtherLicense(selectedEntityLicense))
|
|
28
|
+
if (isFL || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense)))
|
|
29
29
|
return true;
|
|
30
30
|
if (length === 0)
|
|
31
31
|
return this.createError({ message: '' });
|
|
@@ -43,7 +43,7 @@ export var LicenseValidationSchema = yup.object().shape({
|
|
|
43
43
|
var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
|
|
44
44
|
if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
|
|
45
45
|
return false;
|
|
46
|
-
if (isCR || !isOtherLicense(selectedEntityLicense))
|
|
46
|
+
if (isCR || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense)))
|
|
47
47
|
return true;
|
|
48
48
|
if (length === 0)
|
|
49
49
|
return this.createError({ message: '' });
|
|
@@ -67,11 +67,14 @@ var Individual = function (_a) {
|
|
|
67
67
|
});
|
|
68
68
|
useSetFromDefaultValues(methods, individualData, true);
|
|
69
69
|
React.useEffect(function () {
|
|
70
|
+
var _a;
|
|
70
71
|
sendCustomEventToGTM({
|
|
71
72
|
event: 'Send Event',
|
|
72
73
|
event_category: 'User Registration Flow',
|
|
73
74
|
event_action: 'Name and Email Page Viewed'
|
|
74
75
|
});
|
|
76
|
+
if ((_a = individualData.name) === null || _a === void 0 ? void 0 : _a.length)
|
|
77
|
+
methods.trigger('name');
|
|
75
78
|
}, []);
|
|
76
79
|
React.useEffect(function () {
|
|
77
80
|
if (defaultValues.countryCode.iso2 !== methods.getValues('countryCode.iso2'))
|
package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js
CHANGED
|
@@ -60,11 +60,14 @@ var CollectIndividualInfo = function (_a) {
|
|
|
60
60
|
var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly);
|
|
61
61
|
var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
|
|
62
62
|
React.useEffect(function () {
|
|
63
|
+
var _a;
|
|
63
64
|
sendCustomEventToGTM({
|
|
64
65
|
event: 'Send Event',
|
|
65
66
|
event_category: 'User Registration Flow',
|
|
66
67
|
event_action: 'Name and Email Page Viewed'
|
|
67
68
|
});
|
|
69
|
+
if ((_a = individualData.name) === null || _a === void 0 ? void 0 : _a.length)
|
|
70
|
+
methods.trigger('name');
|
|
68
71
|
}, []);
|
|
69
72
|
React.useEffect(function () {
|
|
70
73
|
if (countryCode.iso2 !== methods.getValues('countryCode.iso2'))
|
|
@@ -192,6 +192,8 @@ var IndividualPersonalInfo = function (_a) {
|
|
|
192
192
|
event_action: 'Update Personal Data Page',
|
|
193
193
|
event_label: settingsData.businessCountry.iso2
|
|
194
194
|
});
|
|
195
|
+
if (name === null || name === void 0 ? void 0 : name.length)
|
|
196
|
+
methods.trigger('name');
|
|
195
197
|
}, []);
|
|
196
198
|
var onBack = function () {
|
|
197
199
|
if (error)
|
package/build/utils/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { axiosInstance } from '../api';
|
|
2
|
-
import { ENDPOINT_PATHS,
|
|
2
|
+
import { ENDPOINT_PATHS, CONNECT_SANDBOX_URL, CONNECT_PROD_URL } from '../constants';
|
|
3
3
|
import { objectHasValues } from './object';
|
|
4
4
|
import { isDisasterRecoveryEnv, isSA } from './string';
|
|
5
5
|
export var sleep = function (milliseconds) {
|
|
@@ -17,7 +17,7 @@ export var setBaseUrl = function (publicKey, region) {
|
|
|
17
17
|
var isProd = publicKey.includes('pk_live');
|
|
18
18
|
var _a = region.split('-'), country = _a[0], envType = _a[1];
|
|
19
19
|
if (!isProd) {
|
|
20
|
-
axiosInstance.defaults.baseURL = ENDPOINT_PATHS.
|
|
20
|
+
axiosInstance.defaults.baseURL = ENDPOINT_PATHS.SANDBOX_BASE_URL;
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
if (isSA(country)) {
|
|
@@ -44,7 +44,7 @@ export var updateLocationUrlWithCountry = function (countryIso2) {
|
|
|
44
44
|
window.history.replaceState({}, '', newUrl);
|
|
45
45
|
};
|
|
46
46
|
export var openConnect = function (pk, countryCode) {
|
|
47
|
-
var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL :
|
|
47
|
+
var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_SANDBOX_URL);
|
|
48
48
|
if (countryCode) {
|
|
49
49
|
newUrl.pathname = "/".concat(countryCode.toLowerCase());
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.12.2-
|
|
3
|
+
"version": "2.12.2-sandbox",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
22
|
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
23
|
"ts:build": "rm -rf build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
-
"push": "npm publish --access public --tag
|
|
24
|
+
"push": "npm publish --access public --tag sandbox"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [],
|
|
27
27
|
"author": {
|