@tap-payments/os-micro-frontend-shared 0.0.23 → 0.0.24
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/components/OTPInput/OTPInput.d.ts +1 -1
- package/build/components/OTPInput/OTPInput.js +4 -3
- package/build/components/TableCells/CustomCells/SegmentsCell/constant.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/constant.js +1 -2
- package/build/components/TableCells/CustomCells/SegmentsCell/type.d.ts +0 -1
- package/build/constants/assets.d.ts +0 -1
- package/build/constants/assets.js +0 -1
- package/build/types/invoice.d.ts +1 -0
- package/build/types/merchant.d.ts +0 -13
- package/package.json +121 -126
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Tap Payments
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tap Payments
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# os-micro-frontend-shared
|
|
2
|
-
|
|
3
|
-
## Publishing Workflow
|
|
4
|
-
|
|
5
|
-
1. Update version in package.json
|
|
6
|
-
2. Commit changes
|
|
7
|
-
3. Create and push a tag:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm version patch # or minor, major
|
|
11
|
-
git push origin main --tags
|
|
12
|
-
```
|
|
1
|
+
# os-micro-frontend-shared
|
|
2
|
+
|
|
3
|
+
## Publishing Workflow
|
|
4
|
+
|
|
5
|
+
1. Update version in package.json
|
|
6
|
+
2. Commit changes
|
|
7
|
+
3. Create and push a tag:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm version patch # or minor, major
|
|
11
|
+
git push origin main --tags
|
|
12
|
+
```
|
|
@@ -5,6 +5,6 @@ interface OTPInputProps extends Omit<OtpInputProps, 'numInputs' | 'onChange'> {
|
|
|
5
5
|
onChange?: (otp: string) => void;
|
|
6
6
|
onSubmitOtp?: (otp: string) => void;
|
|
7
7
|
}
|
|
8
|
-
declare function OTPInput({ numInputs, separateAfter, isInputSecure, isInputNum, onSubmitOtp, ...props }: OTPInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function OTPInput({ numInputs, separateAfter, isInputSecure, isInputNum, onSubmitOtp, onChange, ...props }: OTPInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import("react").MemoExoticComponent<typeof OTPInput>;
|
|
10
10
|
export default _default;
|
|
@@ -12,13 +12,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { useState, memo } from 'react';
|
|
14
14
|
import Box from '@mui/material/Box';
|
|
15
|
-
import
|
|
15
|
+
import Input from 'react18-input-otp';
|
|
16
16
|
import { inputFocusStyle, inputStyle, inputErrorStyle, Separator } from './style';
|
|
17
17
|
function OTPInput(_a) {
|
|
18
|
-
var { numInputs = 6, separateAfter = 3, isInputSecure = true, isInputNum = true, onSubmitOtp } = _a, props = __rest(_a, ["numInputs", "separateAfter", "isInputSecure", "isInputNum", "onSubmitOtp"]);
|
|
18
|
+
var { numInputs = 6, separateAfter = 3, isInputSecure = true, isInputNum = true, onSubmitOtp, onChange } = _a, props = __rest(_a, ["numInputs", "separateAfter", "isInputSecure", "isInputNum", "onSubmitOtp", "onChange"]);
|
|
19
19
|
const [otp, setOtp] = useState('');
|
|
20
20
|
const handleChange = (enteredOtp) => {
|
|
21
21
|
setOtp(enteredOtp);
|
|
22
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(enteredOtp);
|
|
22
23
|
if (enteredOtp.length === numInputs) {
|
|
23
24
|
onSubmitOtp === null || onSubmitOtp === void 0 ? void 0 : onSubmitOtp(enteredOtp);
|
|
24
25
|
}
|
|
@@ -27,6 +28,6 @@ function OTPInput(_a) {
|
|
|
27
28
|
'::selection': {
|
|
28
29
|
background: 'transparent',
|
|
29
30
|
},
|
|
30
|
-
} }, { children: _jsx(
|
|
31
|
+
} }, { children: _jsx(Input, Object.assign({ inputStyle: Object.assign(Object.assign({}, inputStyle), props.inputProps), focusStyle: inputFocusStyle, errorStyle: inputErrorStyle, value: otp, separator: _jsx(Separator, { children: "-" }), isInputNum: isInputNum, isInputSecure: isInputSecure, numInputs: numInputs, separateAfter: separateAfter, shouldAutoFocus: true, onChange: handleChange }, props)) })));
|
|
31
32
|
}
|
|
32
33
|
export default memo(OTPInput);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { segmentTechnologyIcon, segmentInstitutionIcon, segmentDevelopmentHouseIcon, transactionIcon
|
|
1
|
+
import { segmentTechnologyIcon, segmentInstitutionIcon, segmentDevelopmentHouseIcon, transactionIcon } from '../../../../constants/index.js';
|
|
2
2
|
export const segmentsIcons = {
|
|
3
3
|
technology: segmentTechnologyIcon,
|
|
4
4
|
institution: segmentInstitutionIcon,
|
|
5
5
|
payment: transactionIcon,
|
|
6
6
|
developmentHouse: segmentDevelopmentHouseIcon,
|
|
7
|
-
platform: lightPlatformSegmentIcon,
|
|
8
7
|
};
|
|
@@ -160,7 +160,6 @@ export declare const providerSegmentIcon: string;
|
|
|
160
160
|
export declare const financialSegmentIcon: string;
|
|
161
161
|
export declare const developmentSegmentIcon: string;
|
|
162
162
|
export declare const platformSegmentIcon: string;
|
|
163
|
-
export declare const lightPlatformSegmentIcon: string;
|
|
164
163
|
export declare const grayBrandIcon: string;
|
|
165
164
|
export declare const jsonIcon: string;
|
|
166
165
|
export declare const jsonBlackIcon: string;
|
|
@@ -161,7 +161,6 @@ export const providerSegmentIcon = `${lightUrl}/other/provider.svg`;
|
|
|
161
161
|
export const financialSegmentIcon = `${lightUrl}/other/financial.svg`;
|
|
162
162
|
export const developmentSegmentIcon = `${lightUrl}/other/development.svg`;
|
|
163
163
|
export const platformSegmentIcon = `${lightUrl}/other/platform.svg`;
|
|
164
|
-
export const lightPlatformSegmentIcon = `${lightUrl}/other/light_platform.svg`;
|
|
165
164
|
export const grayBrandIcon = `${lightUrl}/other/brandGray.svg`;
|
|
166
165
|
export const jsonIcon = `${lightUrl}/other/json.svg`;
|
|
167
166
|
export const jsonBlackIcon = `${lightUrl}/other/jsonBlackIcon.svg`;
|
package/build/types/invoice.d.ts
CHANGED
|
@@ -36,13 +36,9 @@ export interface BusinessMerchant {
|
|
|
36
36
|
entity: {
|
|
37
37
|
id: string;
|
|
38
38
|
status: VerificationStatus;
|
|
39
|
-
legal_name: {
|
|
40
|
-
en: string;
|
|
41
|
-
};
|
|
42
39
|
merchant: {
|
|
43
40
|
id: string;
|
|
44
41
|
status: MerchantStatus;
|
|
45
|
-
marketplace: boolean;
|
|
46
42
|
commerceplatform: {
|
|
47
43
|
id: string;
|
|
48
44
|
name: {
|
|
@@ -51,15 +47,6 @@ export interface BusinessMerchant {
|
|
|
51
47
|
logo: string;
|
|
52
48
|
operator_id: string;
|
|
53
49
|
};
|
|
54
|
-
platforms: Array<{
|
|
55
|
-
id: string;
|
|
56
|
-
brand: {
|
|
57
|
-
name: Array<{
|
|
58
|
-
lang: string;
|
|
59
|
-
text: string;
|
|
60
|
-
}>;
|
|
61
|
-
};
|
|
62
|
-
}>;
|
|
63
50
|
wallet: {
|
|
64
51
|
id: string;
|
|
65
52
|
status: MerchantStatus;
|
package/package.json
CHANGED
|
@@ -1,126 +1,121 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
-
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "build/index.js",
|
|
7
|
-
"module": "build/index.js",
|
|
8
|
-
"types": "build/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./build/index.js",
|
|
12
|
-
"require": "./build/index.js",
|
|
13
|
-
"types": "./build/index.d.ts"
|
|
14
|
-
},
|
|
15
|
-
"./constants": {
|
|
16
|
-
"import": "./build/constants/index.js",
|
|
17
|
-
"require": "./build/constants/index.js",
|
|
18
|
-
"types": "./build/constants/index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"./components": {
|
|
21
|
-
"import": "./build/components/index.js",
|
|
22
|
-
"require": "./build/components/index.js",
|
|
23
|
-
"types": "./build/components/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./hooks": {
|
|
26
|
-
"import": "./build/hooks/index.js",
|
|
27
|
-
"require": "./build/hooks/index.js",
|
|
28
|
-
"types": "./build/hooks/index.d.ts"
|
|
29
|
-
},
|
|
30
|
-
"./utils": {
|
|
31
|
-
"import": "./build/utils/index.js",
|
|
32
|
-
"require": "./build/utils/index.js",
|
|
33
|
-
"types": "./build/utils/index.d.ts"
|
|
34
|
-
},
|
|
35
|
-
"./theme": {
|
|
36
|
-
"import": "./build/theme/index.js",
|
|
37
|
-
"require": "./build/theme/index.js",
|
|
38
|
-
"types": "./build/theme/index.d.ts"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"build",
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"react": "^
|
|
80
|
-
"react-
|
|
81
|
-
"react-
|
|
82
|
-
"react-
|
|
83
|
-
"react-
|
|
84
|
-
"react-
|
|
85
|
-
"react-
|
|
86
|
-
"react-
|
|
87
|
-
"react-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
99
|
-
"@types/
|
|
100
|
-
"@
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"yarn run prettier:fix",
|
|
123
|
-
"yarn run lint"
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
+
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
+
"version": "0.0.24",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "build/index.js",
|
|
7
|
+
"module": "build/index.js",
|
|
8
|
+
"types": "build/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./build/index.js",
|
|
12
|
+
"require": "./build/index.js",
|
|
13
|
+
"types": "./build/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./constants": {
|
|
16
|
+
"import": "./build/constants/index.js",
|
|
17
|
+
"require": "./build/constants/index.js",
|
|
18
|
+
"types": "./build/constants/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./components": {
|
|
21
|
+
"import": "./build/components/index.js",
|
|
22
|
+
"require": "./build/components/index.js",
|
|
23
|
+
"types": "./build/components/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./hooks": {
|
|
26
|
+
"import": "./build/hooks/index.js",
|
|
27
|
+
"require": "./build/hooks/index.js",
|
|
28
|
+
"types": "./build/hooks/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./utils": {
|
|
31
|
+
"import": "./build/utils/index.js",
|
|
32
|
+
"require": "./build/utils/index.js",
|
|
33
|
+
"types": "./build/utils/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./theme": {
|
|
36
|
+
"import": "./build/theme/index.js",
|
|
37
|
+
"require": "./build/theme/index.js",
|
|
38
|
+
"types": "./build/theme/index.d.ts"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "Ahmed Sharkawy",
|
|
44
|
+
"email": "a.elsharkawy@tap.company"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"build",
|
|
48
|
+
"readme.md"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
52
|
+
"push": "npm run ts:build && npm publish --access public",
|
|
53
|
+
"dev": "vite",
|
|
54
|
+
"build": "tsc -b && vite build ",
|
|
55
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
56
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
57
|
+
"lint": "eslint . --color",
|
|
58
|
+
"lint:fix": "eslint src --fix --color",
|
|
59
|
+
"preview": "vite preview",
|
|
60
|
+
"prepare": "husky"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@emotion/react": "^11.11.0",
|
|
64
|
+
"@emotion/styled": "^11.11.0",
|
|
65
|
+
"@hookform/resolvers": "^3.3.1",
|
|
66
|
+
"@mui/material": "^5.12.3",
|
|
67
|
+
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
68
|
+
"axios": "^1.4.0",
|
|
69
|
+
"dayjs": "^1.11.8",
|
|
70
|
+
"framer-motion": "10.11.0",
|
|
71
|
+
"i18next": "^22.4.15",
|
|
72
|
+
"memoize-one": "^6.0.0",
|
|
73
|
+
"re-resizable": "^6.9.9",
|
|
74
|
+
"react": "^18.2.0",
|
|
75
|
+
"react-currency-input-field": "^3.6.11",
|
|
76
|
+
"react-dom": "^18.2.0",
|
|
77
|
+
"react-draggable": "^4.4.6",
|
|
78
|
+
"react-dropzone": "^14.2.3",
|
|
79
|
+
"react-hook-form": "^7.45.4",
|
|
80
|
+
"react-hot-toast": "^2.4.1",
|
|
81
|
+
"react-i18next": "^12.2.2",
|
|
82
|
+
"react-multi-date-picker": "^4.1.2",
|
|
83
|
+
"react-query": "^3.39.3",
|
|
84
|
+
"react-router-dom": "^6.14.2",
|
|
85
|
+
"react-virtualized-auto-sizer": "^1.0.20",
|
|
86
|
+
"react-window": "^1.8.9",
|
|
87
|
+
"react-window-infinite-loader": "^1.0.9",
|
|
88
|
+
"react18-input-otp": "^1.1.4",
|
|
89
|
+
"recharts": "^2.15.1"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@eslint/js": "^9.17.0",
|
|
93
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
94
|
+
"@types/lodash": "^4.17.15",
|
|
95
|
+
"@types/react": "^18.2.6",
|
|
96
|
+
"@types/react-dom": "^18.3.5",
|
|
97
|
+
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
98
|
+
"@types/react-window": "^1.8.5",
|
|
99
|
+
"@types/react-window-infinite-loader": "^1.0.6",
|
|
100
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
101
|
+
"eslint": "^9.17.0",
|
|
102
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
103
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
104
|
+
"globals": "^15.14.0",
|
|
105
|
+
"husky": "^8.0.3",
|
|
106
|
+
"lint-staged": "^13.2.2",
|
|
107
|
+
"prettier": "^2.8.8",
|
|
108
|
+
"tsc-alias": "^1.8.16",
|
|
109
|
+
"typescript": "5.0.2",
|
|
110
|
+
"typescript-eslint": "^8.18.2",
|
|
111
|
+
"vite": "6.0.5",
|
|
112
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
113
|
+
"vite-tsconfig-paths": "^4.2.0"
|
|
114
|
+
},
|
|
115
|
+
"lint-staged": {
|
|
116
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
117
|
+
"yarn run prettier:fix",
|
|
118
|
+
"yarn run lint"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|