@tap-payments/os-micro-frontend-shared 0.1.109 → 0.1.110

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 (28) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/AmountStatusChip/AmountStatusChip.js +1 -1
  4. package/build/components/StatusChip/style.d.ts +1 -0
  5. package/build/components/StatusChip/style.js +3 -4
  6. package/build/components/StatusChip/type.d.ts +1 -0
  7. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +13 -0
  8. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js +26 -0
  9. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +1 -0
  10. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +1 -0
  11. package/build/components/TableCells/SheetViewCells/index.d.ts +1 -0
  12. package/build/components/TableCells/SheetViewCells/index.js +1 -0
  13. package/build/components/TableCells/index.d.ts +1 -0
  14. package/build/components/TableCells/index.js +1 -0
  15. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +1 -1
  16. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +2 -2
  17. package/build/constants/table/cell/authorizationTableCellWidth.js +2 -2
  18. package/build/constants/table/cell/chargeTableCellWidth.d.ts +2 -2
  19. package/build/constants/table/cell/chargeTableCellWidth.js +2 -2
  20. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +3 -3
  21. package/build/constants/table/cell/destinationsTableCellWidth.js +3 -3
  22. package/build/constants/table/cell/merchantsTableCellWidth.d.ts +1 -1
  23. package/build/constants/table/cell/merchantsTableCellWidth.js +1 -1
  24. package/build/constants/table/cell/refundTableCellWidth.d.ts +3 -3
  25. package/build/constants/table/cell/refundTableCellWidth.js +3 -3
  26. package/build/utils/object.d.ts +0 -1
  27. package/build/utils/object.js +3 -4
  28. package/package.json +139 -139
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
+ ```
@@ -14,6 +14,6 @@ import { memo } from 'react';
14
14
  import { AmountLabel, StyledAmountStatusChip } from './style';
15
15
  function AmountStatusChip(_a) {
16
16
  var { amount, currency } = _a, rest = __rest(_a, ["amount", "currency"]);
17
- return (_jsxs(StyledAmountStatusChip, Object.assign({ expandDirection: "left" }, rest, { children: [currency && _jsx(AmountLabel, { children: currency }), amount] })));
17
+ return (_jsxs(StyledAmountStatusChip, Object.assign({ disableAnimation: true, expandDirection: "left" }, rest, { children: [currency && _jsx(AmountLabel, { children: currency }), amount] })));
18
18
  }
19
19
  export default memo(AmountStatusChip);
@@ -8,6 +8,7 @@ export declare const ChipStyled: import("@emotion/styled").StyledComponent<impor
8
8
  disabled?: boolean | undefined;
9
9
  padding?: string | undefined;
10
10
  unknownText?: string | undefined;
11
+ minWidth?: string | undefined;
11
12
  maxWidth?: string | undefined;
12
13
  isSelected?: boolean | undefined;
13
14
  copyText?: string | undefined;
@@ -1,9 +1,9 @@
1
1
  import Box from '@mui/material/Box';
2
2
  import { styled } from '@mui/material/styles';
3
3
  export const ChipStyled = styled(Box, {
4
- shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'padding', 'maxWidth', 'isSelected', 'disableAnimation'].includes(prop),
5
- })(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, maxWidth, disableAnimation, }) => {
6
- return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box' }, (isSelected && {
4
+ shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'minWidth', 'padding', 'maxWidth', 'isSelected', 'disableAnimation'].includes(prop),
5
+ })(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, minWidth, maxWidth, disableAnimation, }) => {
6
+ return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: minWidth || '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box' }, (isSelected && {
7
7
  boxShadow: 'white 7px 0px 8px 2px',
8
8
  })), (disableAnimation && {
9
9
  transition: 'none !important',
@@ -21,7 +21,6 @@ export const Wrapper = styled(Box)(() => ({
21
21
  alignItems: 'center',
22
22
  justifyContent: 'center',
23
23
  gap: '4px',
24
- minWidth: 46,
25
24
  textAlign: 'center',
26
25
  }));
27
26
  export const CopyWrapper = styled(Box)(() => ({
@@ -7,6 +7,7 @@ export type ChipProps = PropsWithChildren<{
7
7
  disabled?: boolean;
8
8
  padding?: string;
9
9
  unknownText?: string;
10
+ minWidth?: string;
10
11
  maxWidth?: string;
11
12
  isSelected?: boolean;
12
13
  copyText?: string;
@@ -0,0 +1,13 @@
1
+ import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
2
+ interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
3
+ type?: keyof typeof paymentAgreementTypes;
4
+ count?: number;
5
+ }
6
+ declare const paymentAgreementTypes: {
7
+ SAVED_CARD: string;
8
+ ORDER: string;
9
+ SUBSCRIPTION: string;
10
+ INSTALLMENT: string;
11
+ };
12
+ declare function PaymentAgreementCell({ type, count, ...props }: PaymentAgreementCellProps): import("react/jsx-runtime").JSX.Element;
13
+ export default PaymentAgreementCell;
@@ -0,0 +1,26 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { Box } from '@mui/material';
14
+ import { StatusChipWithCopy } from '../../../index.js';
15
+ const paymentAgreementTypes = {
16
+ SAVED_CARD: 'Card Agreement',
17
+ ORDER: 'Order',
18
+ SUBSCRIPTION: 'Subscription',
19
+ INSTALLMENT: 'Installment',
20
+ };
21
+ function PaymentAgreementCell(_a) {
22
+ var { type, count } = _a, props = __rest(_a, ["type", "count"]);
23
+ const countText = count === null || count === void 0 ? void 0 : count.toString();
24
+ return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [_jsx(StatusChipWithCopy, Object.assign({ copyText: type, unknownText: "noPaymentAgreement" }, props, { chipIndex: 0 }, { children: type ? paymentAgreementTypes[type] : type })), countText && (_jsx(StatusChipWithCopy, Object.assign({ copyText: countText }, props, { chipIndex: 1, minWidth: "38px" }, { children: countText })))] })));
25
+ }
26
+ export default PaymentAgreementCell;
@@ -0,0 +1 @@
1
+ export { default as PaymentAgreementCell } from './PaymentAgreementCell';
@@ -0,0 +1 @@
1
+ export { default as PaymentAgreementCell } from './PaymentAgreementCell';
@@ -0,0 +1 @@
1
+ export * from './PaymentAgreementCell';
@@ -0,0 +1 @@
1
+ export * from './PaymentAgreementCell';
@@ -1,3 +1,4 @@
1
1
  export { default as TableCell } from './TableCell';
2
2
  export * from './CustomCells';
3
+ export * from './SheetViewCells';
3
4
  export * from './type';
@@ -1,3 +1,4 @@
1
1
  export { default as TableCell } from './TableCell';
2
2
  export * from './CustomCells';
3
+ export * from './SheetViewCells';
3
4
  export * from './type';
@@ -14,7 +14,7 @@ const Wrapper = styled('section')(({ isLoaded = false, isPinned = false }) => ({
14
14
  height: '100%',
15
15
  maxHeight: '100%',
16
16
  }));
17
- function SheetViewTableLoading({ columns, isLoaded = false, animationType, isLoading = false, rowsCount, isPinned = false, }) {
17
+ function SheetViewTableLoading({ columns, isLoaded = false, animationType, isLoading = false, rowsCount = 13, isPinned = false, }) {
18
18
  const [maxAllowedRows, setMaxAllowedRows] = useState(() => {
19
19
  return rowsCount || Math.min(calculateMaxAllowedRows(isLoaded, isLoading), 15);
20
20
  });
@@ -82,7 +82,7 @@ export declare const authorizationTableCellWidth: {
82
82
  readonly merchant: {
83
83
  readonly default: "110px";
84
84
  readonly text: "150px";
85
- readonly sheet: "215px";
85
+ readonly sheet: "138px";
86
86
  };
87
87
  readonly charge: {
88
88
  readonly default: "150px";
@@ -207,7 +207,7 @@ export declare const authorizationTableCellWidth: {
207
207
  readonly eci: {
208
208
  readonly default: "150px";
209
209
  readonly text: "150px";
210
- readonly sheet: "100px";
210
+ readonly sheet: "72px";
211
211
  };
212
212
  readonly acquirer_response: {
213
213
  readonly default: "70px";
@@ -82,7 +82,7 @@ export const authorizationTableCellWidth = {
82
82
  merchant: {
83
83
  default: '110px',
84
84
  text: '150px',
85
- sheet: '215px',
85
+ sheet: '138px',
86
86
  },
87
87
  charge: {
88
88
  default: '150px',
@@ -207,7 +207,7 @@ export const authorizationTableCellWidth = {
207
207
  eci: {
208
208
  default: '150px',
209
209
  text: '150px',
210
- sheet: '100px',
210
+ sheet: '72px',
211
211
  },
212
212
  acquirer_response: {
213
213
  default: '70px',
@@ -92,7 +92,7 @@ export declare const chargeTableCellWidth: {
92
92
  readonly eci: {
93
93
  readonly default: "150px";
94
94
  readonly text: "150px";
95
- readonly sheet: "100px";
95
+ readonly sheet: "72px";
96
96
  };
97
97
  readonly amount: {
98
98
  readonly default: "170px";
@@ -132,7 +132,7 @@ export declare const chargeTableCellWidth: {
132
132
  readonly merchant: {
133
133
  readonly default: "100px";
134
134
  readonly text: "150px";
135
- readonly sheet: "215px";
135
+ readonly sheet: "138px";
136
136
  };
137
137
  readonly charge: {
138
138
  readonly default: "150px";
@@ -92,7 +92,7 @@ export const chargeTableCellWidth = {
92
92
  eci: {
93
93
  default: '150px',
94
94
  text: '150px',
95
- sheet: '100px',
95
+ sheet: '72px',
96
96
  },
97
97
  amount: {
98
98
  default: '170px',
@@ -132,7 +132,7 @@ export const chargeTableCellWidth = {
132
132
  merchant: {
133
133
  default: '100px',
134
134
  text: '150px',
135
- sheet: '215px',
135
+ sheet: '138px',
136
136
  },
137
137
  charge: {
138
138
  default: '150px',
@@ -62,7 +62,7 @@ export declare const destinationsTableCellWidth: {
62
62
  readonly payment_agreement: {
63
63
  readonly default: "50px";
64
64
  readonly text: "250px";
65
- readonly sheet: "230px";
65
+ readonly sheet: "165px";
66
66
  };
67
67
  readonly amount: {
68
68
  readonly default: "195px";
@@ -82,7 +82,7 @@ export declare const destinationsTableCellWidth: {
82
82
  readonly merchant: {
83
83
  readonly default: "100px";
84
84
  readonly text: "150px";
85
- readonly sheet: "215px";
85
+ readonly sheet: "138px";
86
86
  };
87
87
  readonly actions: {
88
88
  readonly default: "100px";
@@ -157,7 +157,7 @@ export declare const destinationsTableCellWidth: {
157
157
  readonly eci: {
158
158
  readonly default: "150px";
159
159
  readonly text: "150px";
160
- readonly sheet: "100px";
160
+ readonly sheet: "72px";
161
161
  };
162
162
  readonly payout_status: {
163
163
  readonly default: "120px";
@@ -62,7 +62,7 @@ export const destinationsTableCellWidth = {
62
62
  payment_agreement: {
63
63
  default: '50px',
64
64
  text: '250px',
65
- sheet: '230px',
65
+ sheet: '165px',
66
66
  },
67
67
  amount: {
68
68
  default: '195px',
@@ -82,7 +82,7 @@ export const destinationsTableCellWidth = {
82
82
  merchant: {
83
83
  default: '100px',
84
84
  text: '150px',
85
- sheet: '215px',
85
+ sheet: '138px',
86
86
  },
87
87
  actions: {
88
88
  default: '100px',
@@ -157,7 +157,7 @@ export const destinationsTableCellWidth = {
157
157
  eci: {
158
158
  default: '150px',
159
159
  text: '150px',
160
- sheet: '100px',
160
+ sheet: '72px',
161
161
  },
162
162
  payout_status: {
163
163
  default: '120px',
@@ -72,6 +72,6 @@ export declare const merchantsTableCellWidth: {
72
72
  readonly merchant: {
73
73
  readonly default: "175px";
74
74
  readonly text: "180px";
75
- readonly sheet: "180px";
75
+ readonly sheet: "138px";
76
76
  };
77
77
  };
@@ -72,6 +72,6 @@ export const merchantsTableCellWidth = {
72
72
  merchant: {
73
73
  default: '175px',
74
74
  text: '180px',
75
- sheet: '180px',
75
+ sheet: '138px',
76
76
  },
77
77
  };
@@ -47,7 +47,7 @@ export declare const refundTableCellWidth: {
47
47
  readonly payment_agreement: {
48
48
  readonly default: "50px";
49
49
  readonly text: "200px";
50
- readonly sheet: "230px";
50
+ readonly sheet: "165px";
51
51
  };
52
52
  readonly payment_initiated: {
53
53
  readonly default: "150px";
@@ -87,7 +87,7 @@ export declare const refundTableCellWidth: {
87
87
  readonly eci: {
88
88
  readonly default: "150px";
89
89
  readonly text: "150px";
90
- readonly sheet: "100px";
90
+ readonly sheet: "72px";
91
91
  };
92
92
  readonly amount: {
93
93
  readonly default: "195px";
@@ -122,7 +122,7 @@ export declare const refundTableCellWidth: {
122
122
  readonly merchant: {
123
123
  readonly default: "100px";
124
124
  readonly text: "150px";
125
- readonly sheet: "215px";
125
+ readonly sheet: "138px";
126
126
  };
127
127
  readonly reference: {
128
128
  readonly default: "95px";
@@ -47,7 +47,7 @@ export const refundTableCellWidth = {
47
47
  payment_agreement: {
48
48
  default: '50px',
49
49
  text: '200px',
50
- sheet: '230px',
50
+ sheet: '165px',
51
51
  },
52
52
  payment_initiated: {
53
53
  default: '150px',
@@ -87,7 +87,7 @@ export const refundTableCellWidth = {
87
87
  eci: {
88
88
  default: '150px',
89
89
  text: '150px',
90
- sheet: '100px',
90
+ sheet: '72px',
91
91
  },
92
92
  amount: {
93
93
  default: '195px',
@@ -122,7 +122,7 @@ export const refundTableCellWidth = {
122
122
  merchant: {
123
123
  default: '100px',
124
124
  text: '150px',
125
- sheet: '215px',
125
+ sheet: '138px',
126
126
  },
127
127
  reference: {
128
128
  default: '95px',
@@ -1,7 +1,6 @@
1
1
  export declare function removeUndefinedValues(obj: Record<string, unknown>): {
2
2
  [k: string]: unknown;
3
3
  };
4
- export declare const isEmptyValue: (value: unknown) => boolean;
5
4
  export declare function removeUndefinedArrayValues(obj: Record<string, unknown>): {
6
5
  [k: string]: unknown;
7
6
  };
@@ -1,15 +1,14 @@
1
1
  export function removeUndefinedValues(obj) {
2
2
  return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));
3
3
  }
4
- export const isEmptyValue = (value) => value === undefined || value === null || value === '';
5
4
  export function removeUndefinedArrayValues(obj) {
6
5
  return Object.fromEntries(Object.entries(obj).filter(([, value]) => {
7
6
  if (Array.isArray(value)) {
8
- return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) => !isEmptyValue(v)));
7
+ return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) => v !== undefined && v !== null && v !== ''));
9
8
  }
10
9
  if (typeof value === 'object') {
11
- return Object.values(value || {}).some((v) => !isEmptyValue(v));
10
+ return Object.values(value || {}).some((v) => v !== undefined && v !== null && v !== '');
12
11
  }
13
- return !isEmptyValue(value);
12
+ return !!value;
14
13
  }));
15
14
  }
package/package.json CHANGED
@@ -1,139 +1,139 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.109",
5
- "testVersion": 0,
6
- "type": "module",
7
- "main": "build/index.js",
8
- "module": "build/index.js",
9
- "types": "build/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./build/index.d.ts",
13
- "import": "./build/index.js",
14
- "require": "./build/index.js"
15
- },
16
- "./constants": {
17
- "types": "./build/constants/index.d.ts",
18
- "import": "./build/constants/index.js",
19
- "require": "./build/constants/index.js"
20
- },
21
- "./components": {
22
- "types": "./build/components/index.d.ts",
23
- "import": "./build/components/index.js",
24
- "require": "./build/components/index.js"
25
- },
26
- "./components/*": {
27
- "types": "./build/components/*/index.d.ts",
28
- "import": "./build/components/*/index.js",
29
- "require": "./build/components/*/index.js"
30
- },
31
- "./hooks": {
32
- "types": "./build/hooks/index.d.ts",
33
- "import": "./build/hooks/index.js",
34
- "require": "./build/hooks/index.js"
35
- },
36
- "./utils": {
37
- "types": "./build/utils/index.d.ts",
38
- "import": "./build/utils/index.js",
39
- "require": "./build/utils/index.js"
40
- },
41
- "./theme": {
42
- "types": "./build/theme/index.d.ts",
43
- "import": "./build/theme/index.js",
44
- "require": "./build/theme/index.js"
45
- },
46
- "./types": {
47
- "types": "./build/types/index.d.ts",
48
- "import": "./build/types/index.js",
49
- "require": "./build/types/index.js"
50
- }
51
- },
52
- "license": "MIT",
53
- "author": {
54
- "name": "Ahmed Sharkawy",
55
- "email": "a.elsharkawy@tap.company"
56
- },
57
- "files": [
58
- "build",
59
- "readme.md"
60
- ],
61
- "scripts": {
62
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
- "push:local": "yarn ts:build && yalc publish --push",
64
- "push": "npm run ts:build && npm publish --access public",
65
- "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
66
- "dev": "vite",
67
- "build": "tsc -b && vite build ",
68
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
69
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
70
- "lint": "eslint . --color",
71
- "lint:fix": "eslint src --fix --color",
72
- "preview": "vite preview",
73
- "prepare": "husky"
74
- },
75
- "dependencies": {
76
- "@emotion/react": "^11.11.0",
77
- "@emotion/styled": "^11.11.0",
78
- "@hookform/resolvers": "^3.3.1",
79
- "@mui/material": "^5.12.3",
80
- "@uiw/react-json-view": "^2.0.0-alpha.16",
81
- "axios": "^1.4.0",
82
- "color": "^5.0.0",
83
- "dayjs": "^1.11.8",
84
- "framer-motion": "10.11.0",
85
- "i18next": "^22.4.15",
86
- "memoize-one": "^6.0.0",
87
- "re-resizable": "^6.9.9",
88
- "react": "^18.2.0",
89
- "react-colorful": "^5.6.1",
90
- "react-currency-input-field": "^3.6.11",
91
- "react-dom": "^18.2.0",
92
- "react-draggable": "^4.4.6",
93
- "react-dropzone": "^14.2.3",
94
- "react-hook-form": "^7.45.4",
95
- "react-hot-toast": "^2.4.1",
96
- "react-i18next": "^12.2.2",
97
- "react-lazy-load-image-component": "^1.6.3",
98
- "react-multi-date-picker": "^4.1.2",
99
- "react-router-dom": "^7.7.0",
100
- "react-virtualized-auto-sizer": "^1.0.20",
101
- "react-window": "^1.8.9",
102
- "react-window-infinite-loader": "^1.0.9",
103
- "react18-input-otp": "^1.1.4",
104
- "recharts": "^2.15.1"
105
- },
106
- "devDependencies": {
107
- "@eslint/js": "^9.17.0",
108
- "@testing-library/jest-dom": "^5.16.5",
109
- "@types/lodash": "^4.17.15",
110
- "@types/react": "^18.2.6",
111
- "@types/react-dom": "^18.3.5",
112
- "@types/react-lazy-load-image-component": "^1.6.4",
113
- "@types/react-virtualized-auto-sizer": "^1.0.8",
114
- "@types/react-window": "^1.8.5",
115
- "@types/react-window-infinite-loader": "^1.0.6",
116
- "@vitejs/plugin-react": "^4.3.4",
117
- "eslint": "^9.17.0",
118
- "eslint-plugin-react-hooks": "^5.0.0",
119
- "eslint-plugin-react-refresh": "^0.4.16",
120
- "globals": "^15.14.0",
121
- "husky": "^8.0.3",
122
- "lint-staged": "^13.2.2",
123
- "prettier": "^2.8.8",
124
- "tsc-alias": "^1.8.16",
125
- "typescript": "5.0.2",
126
- "typescript-eslint": "^8.18.2",
127
- "vite": "6.0.5",
128
- "vite-tsconfig-paths": "^4.2.0"
129
- },
130
- "lint-staged": {
131
- "src/**/*.{ts,tsx,json,js,jsx}": [
132
- "yarn run prettier:fix",
133
- "yarn run lint"
134
- ]
135
- },
136
- "publishConfig": {
137
- "registry": "https://registry.npmjs.org/"
138
- }
139
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.1.110",
5
+ "testVersion": 1,
6
+ "type": "module",
7
+ "main": "build/index.js",
8
+ "module": "build/index.js",
9
+ "types": "build/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./build/index.d.ts",
13
+ "import": "./build/index.js",
14
+ "require": "./build/index.js"
15
+ },
16
+ "./constants": {
17
+ "types": "./build/constants/index.d.ts",
18
+ "import": "./build/constants/index.js",
19
+ "require": "./build/constants/index.js"
20
+ },
21
+ "./components": {
22
+ "types": "./build/components/index.d.ts",
23
+ "import": "./build/components/index.js",
24
+ "require": "./build/components/index.js"
25
+ },
26
+ "./components/*": {
27
+ "types": "./build/components/*/index.d.ts",
28
+ "import": "./build/components/*/index.js",
29
+ "require": "./build/components/*/index.js"
30
+ },
31
+ "./hooks": {
32
+ "types": "./build/hooks/index.d.ts",
33
+ "import": "./build/hooks/index.js",
34
+ "require": "./build/hooks/index.js"
35
+ },
36
+ "./utils": {
37
+ "types": "./build/utils/index.d.ts",
38
+ "import": "./build/utils/index.js",
39
+ "require": "./build/utils/index.js"
40
+ },
41
+ "./theme": {
42
+ "types": "./build/theme/index.d.ts",
43
+ "import": "./build/theme/index.js",
44
+ "require": "./build/theme/index.js"
45
+ },
46
+ "./types": {
47
+ "types": "./build/types/index.d.ts",
48
+ "import": "./build/types/index.js",
49
+ "require": "./build/types/index.js"
50
+ }
51
+ },
52
+ "license": "MIT",
53
+ "author": {
54
+ "name": "Ahmed Sharkawy",
55
+ "email": "a.elsharkawy@tap.company"
56
+ },
57
+ "files": [
58
+ "build",
59
+ "readme.md"
60
+ ],
61
+ "scripts": {
62
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
+ "push:local": "yarn ts:build && yalc publish --push",
64
+ "push": "npm run ts:build && npm publish --access public",
65
+ "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
66
+ "dev": "vite",
67
+ "build": "tsc -b && vite build ",
68
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
69
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
70
+ "lint": "eslint . --color",
71
+ "lint:fix": "eslint src --fix --color",
72
+ "preview": "vite preview",
73
+ "prepare": "husky"
74
+ },
75
+ "dependencies": {
76
+ "@emotion/react": "^11.11.0",
77
+ "@emotion/styled": "^11.11.0",
78
+ "@hookform/resolvers": "^3.3.1",
79
+ "@mui/material": "^5.12.3",
80
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
81
+ "axios": "^1.4.0",
82
+ "color": "^5.0.0",
83
+ "dayjs": "^1.11.8",
84
+ "framer-motion": "10.11.0",
85
+ "i18next": "^22.4.15",
86
+ "memoize-one": "^6.0.0",
87
+ "re-resizable": "^6.9.9",
88
+ "react": "^18.2.0",
89
+ "react-colorful": "^5.6.1",
90
+ "react-currency-input-field": "^3.6.11",
91
+ "react-dom": "^18.2.0",
92
+ "react-draggable": "^4.4.6",
93
+ "react-dropzone": "^14.2.3",
94
+ "react-hook-form": "^7.45.4",
95
+ "react-hot-toast": "^2.4.1",
96
+ "react-i18next": "^12.2.2",
97
+ "react-lazy-load-image-component": "^1.6.3",
98
+ "react-multi-date-picker": "^4.1.2",
99
+ "react-router-dom": "^7.7.0",
100
+ "react-virtualized-auto-sizer": "^1.0.20",
101
+ "react-window": "^1.8.9",
102
+ "react-window-infinite-loader": "^1.0.9",
103
+ "react18-input-otp": "^1.1.4",
104
+ "recharts": "^2.15.1"
105
+ },
106
+ "devDependencies": {
107
+ "@eslint/js": "^9.17.0",
108
+ "@testing-library/jest-dom": "^5.16.5",
109
+ "@types/lodash": "^4.17.15",
110
+ "@types/react": "^18.2.6",
111
+ "@types/react-dom": "^18.3.5",
112
+ "@types/react-lazy-load-image-component": "^1.6.4",
113
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
114
+ "@types/react-window": "^1.8.5",
115
+ "@types/react-window-infinite-loader": "^1.0.6",
116
+ "@vitejs/plugin-react": "^4.3.4",
117
+ "eslint": "^9.17.0",
118
+ "eslint-plugin-react-hooks": "^5.0.0",
119
+ "eslint-plugin-react-refresh": "^0.4.16",
120
+ "globals": "^15.14.0",
121
+ "husky": "^8.0.3",
122
+ "lint-staged": "^13.2.2",
123
+ "prettier": "^2.8.8",
124
+ "tsc-alias": "^1.8.16",
125
+ "typescript": "5.0.2",
126
+ "typescript-eslint": "^8.18.2",
127
+ "vite": "6.0.5",
128
+ "vite-tsconfig-paths": "^4.2.0"
129
+ },
130
+ "lint-staged": {
131
+ "src/**/*.{ts,tsx,json,js,jsx}": [
132
+ "yarn run prettier:fix",
133
+ "yarn run lint"
134
+ ]
135
+ },
136
+ "publishConfig": {
137
+ "registry": "https://registry.npmjs.org/"
138
+ }
139
+ }