@tap-payments/auth-jsconnect 2.8.86-beta → 2.8.86-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.
@@ -12,7 +12,6 @@ export declare const ENDPOINT_PATHS: {
12
12
  SANDBOX_BASE_URL: string;
13
13
  PRODUCTION_BASE_URL: string;
14
14
  DEV_BASE_URL: string;
15
- BETA_BASE_URL: string;
16
15
  BUSINESS_COUNTRIES: string;
17
16
  COUNTRIES: string;
18
17
  IP: string;
@@ -1,7 +1,6 @@
1
1
  var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
4
- var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
5
4
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
6
5
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
7
6
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -70,7 +69,6 @@ export var ENDPOINT_PATHS = {
70
69
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
71
70
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
72
71
  DEV_BASE_URL: DEV_BASE_URL,
73
- BETA_BASE_URL: BETA_BASE_URL,
74
72
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
75
73
  COUNTRIES: API_COUNTRIES,
76
74
  IP: IP_PATH,
@@ -1,7 +1,6 @@
1
1
  import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
3
  export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
- export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
5
4
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
6
5
  export declare const CLIENT_ORIGIN: string;
7
6
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -1,7 +1,6 @@
1
1
  import { BusinessType } from '../@types';
2
2
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
3
3
  export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
- export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
5
4
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
6
5
  export var CLIENT_ORIGIN = window.location.origin;
7
6
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -1175,7 +1175,6 @@ export var individualSlice = createSlice({
1175
1175
  state.data.individualData.isAuthorized = is_authorized;
1176
1176
  })
1177
1177
  .addCase(retrieveIndividualInfo.rejected, function (state, action) {
1178
- state.addOrRequestDetailLoading = false;
1179
1178
  state.error = action.error.message;
1180
1179
  })
1181
1180
  .addCase(getIndividualList.pending, function (state) {
@@ -1,5 +1,5 @@
1
1
  import { axiosInstance } from '../api';
2
- import { ENDPOINT_PATHS, CONNECT_SANDBOX_URL, CONNECT_BETA_URL } from '../constants';
2
+ import { ENDPOINT_PATHS, CONNECT_SANDBOX_URL, CONNECT_PROD_URL } from '../constants';
3
3
  export var sleep = function (milliseconds) {
4
4
  if (milliseconds === void 0) { milliseconds = 1000; }
5
5
  return new Promise(function (resolve) { return setTimeout(resolve, milliseconds); });
@@ -13,7 +13,7 @@ export var dangerousMessage = function (message, callBack) {
13
13
  export var setBaseUrl = function (publicKey) {
14
14
  var isProd = publicKey.includes('pk_live');
15
15
  if (isProd) {
16
- axiosInstance.defaults.baseURL = ENDPOINT_PATHS.BETA_BASE_URL;
16
+ axiosInstance.defaults.baseURL = ENDPOINT_PATHS.PRODUCTION_BASE_URL;
17
17
  return;
18
18
  }
19
19
  axiosInstance.defaults.baseURL = ENDPOINT_PATHS.SANDBOX_BASE_URL;
@@ -35,7 +35,7 @@ export var updateLocationUrlWithCountry = function (countryIso2) {
35
35
  window.history.replaceState({}, '', newUrl);
36
36
  };
37
37
  export var openConnect = function (pk, countryCode) {
38
- var newUrl = new URL(pk.includes('pk_live') ? CONNECT_BETA_URL : CONNECT_SANDBOX_URL);
38
+ var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_SANDBOX_URL);
39
39
  if (countryCode) {
40
40
  newUrl.pathname = "/".concat(countryCode.toLowerCase());
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.8.86-beta",
3
+ "version": "2.8.86-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 beta"
24
+ "push": "npm publish --access public --tag sandbox"
25
25
  },
26
26
  "keywords": [],
27
27
  "author": {
@@ -1,6 +0,0 @@
1
- interface DOBProps {
2
- onDateClicked?: (flag: boolean) => void;
3
- readOnly?: boolean;
4
- }
5
- declare const DOB: ({ onDateClicked, readOnly }: DOBProps) => import("react/jsx-runtime").JSX.Element;
6
- export default DOB;
@@ -1,47 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useTranslation } from 'react-i18next';
14
- import { useController, useFormContext } from 'react-hook-form';
15
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
- import { ScreenContainer } from '../../../shared/Containers';
17
- import { alpha, styled } from '@mui/material/styles';
18
- import { clearError, authSelector } from '../../../app/auth/authStore';
19
- import Text from '../../../../components/Text';
20
- import Calender from '../../../shared/Calender';
21
- var InputLabelStyled = styled(Text)(function (_a) {
22
- var theme = _a.theme;
23
- return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
24
- });
25
- var DOB = function (_a) {
26
- var _b;
27
- var onDateClicked = _a.onDateClicked, readOnly = _a.readOnly;
28
- var t = useTranslation().t;
29
- var control = useFormContext().control;
30
- var dispatch = useAppDispatch();
31
- var dobControl = useController({ control: control, name: 'dob' });
32
- var error = useAppSelector(authSelector).error;
33
- var handleBirthDateChange = function (data) {
34
- dobControl.field.onChange(data);
35
- handleClearError();
36
- };
37
- var handleClearError = function () {
38
- if (error)
39
- dispatch(clearError());
40
- };
41
- var dateValue = (_b = dobControl === null || dobControl === void 0 ? void 0 : dobControl.field) === null || _b === void 0 ? void 0 : _b.value;
42
- return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
- var spacing = _a.spacing;
44
- return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
- };
47
- export default DOB;