@tap-payments/auth-jsconnect 2.0.37-test → 2.0.38-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.
@@ -36,7 +36,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  var _a;
38
38
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
39
- import { handleOpen } from '../../../app/settings';
40
39
  export var verifyAuth = createAsyncThunk('verifyAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
41
40
  var settings;
42
41
  var _a, _b, _c, _d;
@@ -53,7 +52,6 @@ export var verifyAuth = createAsyncThunk('verifyAuthOTP', function (params, thun
53
52
  _e.sent();
54
53
  (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, params);
55
54
  (_d = (_c = settings.data.appConfig).onFlowCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, { id: '' });
56
- thunkApi.dispatch(handleOpen(false));
57
55
  return [2, { formData: params }];
58
56
  }
59
57
  });
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
13
13
  import { memo, useEffect } from 'react';
14
14
  import { FeatureContainer } from '../shared/Containers';
15
15
  import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
@@ -23,7 +23,6 @@ import { reactElement } from '../../utils';
23
23
  import { AUTH_SCREENS_NAVIGATION } from '../../constants';
24
24
  import { authFeatureScreens } from '../featuresScreens';
25
25
  import Background from '../shared/Background';
26
- import CustomFooter from '../shared/Footer';
27
26
  var Auth = memo(function (props) {
28
27
  var theme = useAppTheme().theme;
29
28
  var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, settingLoading = _a.loading;
@@ -36,7 +35,7 @@ var Auth = memo(function (props) {
36
35
  if (!props.leadId)
37
36
  throw new Error('leadId is required');
38
37
  }, []);
39
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, sx: { position: 'absolute' } }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, footer: _jsx(CustomFooter, {}), screenId: activeScreen.name, animationType: 'collapse' }, { children: _jsx(FeatureContainer, { children: authFeatureScreens.map(function (_a, index) {
38
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, sx: { position: 'absolute' } }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, footer: _jsx(_Fragment, {}), screenId: activeScreen.name, animationType: 'collapse' }, { children: _jsx(FeatureContainer, { children: authFeatureScreens.map(function (_a, index) {
40
39
  var Element = _a.element, name = _a.name;
41
40
  var isActive = activeScreen.name === name;
42
41
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.37-test",
3
+ "version": "2.0.38-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",