@tap-payments/auth-jsconnect 2.1.61-test → 2.1.62-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.
Files changed (41) hide show
  1. package/build/@types/form.d.ts +1 -0
  2. package/build/assets/locales/ar.json +2 -1
  3. package/build/assets/locales/en.json +2 -1
  4. package/build/constants/assets.d.ts +1 -0
  5. package/build/constants/assets.js +1 -0
  6. package/build/features/app/connectExpress/connectExpressStore.d.ts +3 -1
  7. package/build/features/app/connectExpress/connectExpressStore.js +23 -14
  8. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +4 -1
  9. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +4 -1
  10. package/build/features/connectExpress/ConnectExpress.d.ts +1 -0
  11. package/build/features/connectExpress/ConnectExpress.js +4 -2
  12. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +9 -6
  13. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +6 -0
  14. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +83 -0
  15. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +2 -2
  16. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +133 -57
  17. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +6 -53
  18. package/build/features/connectExpress/screens/Mobile/Mobile.js +3 -2
  19. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +6 -0
  20. package/build/features/connectExpress/screens/Mobile/TAC.js +83 -0
  21. package/build/features/connectExpress/screens/Mobile/validation.d.ts +1 -1
  22. package/build/features/connectExpress/screens/Mobile/validation.js +58 -26
  23. package/build/features/connectExpress/screens/NID/NID.js +4 -3
  24. package/build/features/connectExpress/screens/NID/TAC.d.ts +6 -0
  25. package/build/features/connectExpress/screens/NID/TAC.js +83 -0
  26. package/build/features/connectExpress/screens/NID/validation.d.ts +1 -1
  27. package/build/features/connectExpress/screens/NID/validation.js +21 -8
  28. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +4 -1
  29. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +4 -1
  30. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +6 -0
  31. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -0
  32. package/build/features/shared/CreateAccountLoading/index.d.ts +2 -0
  33. package/build/features/shared/CreateAccountLoading/index.js +2 -0
  34. package/build/features/shared/DataLoading/DataLoading.d.ts +2 -1
  35. package/build/features/shared/DataLoading/DataLoading.js +14 -11
  36. package/build/features/shared/GenericError/GenericError.d.ts +7 -0
  37. package/build/features/shared/GenericError/GenericError.js +55 -0
  38. package/build/features/shared/GenericError/index.d.ts +2 -0
  39. package/build/features/shared/GenericError/index.js +2 -0
  40. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +4 -1
  41. package/package.json +3 -2
@@ -0,0 +1,55 @@
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import Box from '@mui/material/Box/Box';
15
+ import { styled } from '@mui/material/styles';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../components/Text';
18
+ import Icon from '../../../components/Icon';
19
+ import { ICONS_NAMES } from '../../../constants';
20
+ import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
21
+ var ErrorTitleStyled = styled(Text)(function (_a) {
22
+ var theme = _a.theme;
23
+ return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightBold, marginBottom: theme.spacing(2.4), lineHeight: '19.2px', textAlign: 'center' }));
24
+ });
25
+ var ErrorSubTitleStyled = styled(Text)(function (_a) {
26
+ var theme = _a.theme;
27
+ return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightMedium, lineHeight: '16.8px', textAlign: 'center' }));
28
+ });
29
+ var Container = styled(Box)(function (_a) {
30
+ var theme = _a.theme;
31
+ return ({
32
+ position: 'relative',
33
+ display: 'flex',
34
+ justifyContent: 'center',
35
+ alignItems: 'center',
36
+ maxHeight: '300px',
37
+ height: '200px',
38
+ width: '100%',
39
+ marginBottom: theme.spacing(3.25)
40
+ });
41
+ });
42
+ var IconStyled = styled(Icon)(function () { return ({
43
+ position: 'absolute',
44
+ top: '50%',
45
+ left: '50%',
46
+ transform: 'translate(-50%, -100%)',
47
+ width: 64,
48
+ height: 64
49
+ }); });
50
+ var GenericError = function (_a) {
51
+ var error = _a.error, errorTitle = _a.errorTitle;
52
+ var t = useTranslation().t;
53
+ return (_jsxs(Container, __assign({ sx: { flexDirection: 'column' } }, { children: [_jsxs(_Fragment, { children: [_jsx(LottieFile, { file: LottieAnimationFiles.error, loop: false, width: '60%', height: '60%' }), _jsx(IconStyled, { src: ICONS_NAMES.EXPRESS_ERROR_ICON })] }), _jsxs(_Fragment, { children: [_jsx(ErrorTitleStyled, { children: t(errorTitle) }), _jsx(ErrorSubTitleStyled, { children: t(error) })] })] })));
54
+ };
55
+ export default React.memo(GenericError);
@@ -0,0 +1,2 @@
1
+ import GenericError from './GenericError';
2
+ export default GenericError;
@@ -0,0 +1,2 @@
1
+ import GenericError from './GenericError';
2
+ export default GenericError;
@@ -1,7 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
+ import { useAppSelector } from '../../../../hooks';
3
4
  import DataLoading from '../../../shared/DataLoading';
5
+ import { taxSelector } from '../../../app/tax/taxStore';
4
6
  export var PrepareDataLoading = function () {
5
- return _jsx(DataLoading, {});
7
+ var error = useAppSelector(taxSelector).error;
8
+ return _jsx(DataLoading, { error: error });
6
9
  };
7
10
  export default memo(PrepareDataLoading);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.1.61-test",
3
+ "version": "2.1.62-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",
@@ -17,7 +17,8 @@
17
17
  "lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
18
18
  "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
19
19
  "start": "cross-env NODE_ENV=development webpack serve",
20
- "build": "rm -rf build && cross-env NODE_ENV=production webpack",
20
+ "build": "rm -rf build-production build && cross-env NODE_ENV=production BUILD_ENV=production webpack",
21
+ "build:development": "rm -rf build-development build && cross-env NODE_ENV=production BUILD_ENV=development webpack",
21
22
  "copy:files": "copyfiles -u 1 src/**/*.css build/",
22
23
  "tsc:alias": "tsc-alias -p tsconfig.json",
23
24
  "ts:build": "rm -rf build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",