@tap-payments/os-micro-frontend-shared 0.1.87 → 0.1.88
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/StatusIcons/AuthorizationAutoIcons/CaptureAutoIcon.d.ts +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/CaptureAutoIcon.js +3 -12
- package/build/components/StatusIcons/AuthorizationAutoIcons/VoidAutoIcon.d.ts +1 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/VoidAutoIcon.js +4 -13
- package/build/components/StatusIcons/AuthorizationAutoIcons/type.d.ts +0 -3
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +1 -4
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +2 -6
- package/build/components/TableCells/CustomCells/AmountCell/AmountCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCell.js +3 -15
- package/build/components/TableCells/CustomCells/BalanceCell/BalanceCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/BalanceCell/BalanceCell.js +5 -11
- package/build/components/TableCells/CustomCells/BalanceCell/type.d.ts +0 -3
- package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +2 -1
- package/build/components/TableCells/CustomCells/type.d.ts +0 -2
- package/build/constants/table/cell/authorizationTableCellWidth.d.ts +8 -58
- package/build/constants/table/cell/authorizationTableCellWidth.js +8 -58
- package/build/constants/table/cell/refundTableCellWidth.d.ts +11 -1
- package/build/constants/table/cell/refundTableCellWidth.js +11 -1
- package/build/constants/table/cell/terminalsTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/terminalsTableCellWidth.js +3 -3
- package/package.json +3 -3
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
|
+
```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BalanceCellProps } from './type';
|
|
2
|
-
declare function CaptureAutoIcon({ voidPercentage, capturePercentage, captureCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount,
|
|
2
|
+
declare function CaptureAutoIcon({ voidPercentage, capturePercentage, captureCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount, }: BalanceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CaptureAutoIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
3
|
import { useTheme } from '@mui/material/styles';
|
|
4
4
|
import { motion } from 'framer-motion';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -8,11 +8,10 @@ import { CaptureTextLabel } from '../../TableCells/CustomCells/style';
|
|
|
8
8
|
import Tooltip from '../../Tooltip';
|
|
9
9
|
import { capturedAuthorizeIcon, capturedIcon } from '../../../constants/index.js';
|
|
10
10
|
import { formatAmount, formatAmountWithCurrency } from '../../../utils/index.js';
|
|
11
|
-
import StatusChipWithCopy from '../../StatusChipWithCopy';
|
|
12
11
|
import { autoIcons } from './constant';
|
|
13
12
|
import { AutoIconWrapper, BalanceCellContainer, PartialIcon, PercentageContainer, PiePercentage, AutoIconImage, FullyCapturedWrapper } from './style';
|
|
14
13
|
import { formatPercentage } from './utils';
|
|
15
|
-
function CaptureAutoIcon({ voidPercentage, capturePercentage, captureCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount,
|
|
14
|
+
function CaptureAutoIcon({ voidPercentage, capturePercentage, captureCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount, }) {
|
|
16
15
|
var _a, _b;
|
|
17
16
|
const isFullyUsed = Number(capturePercentage) + Number(voidPercentage) === 100 || remainingAmount <= 0;
|
|
18
17
|
const theme = useTheme();
|
|
@@ -55,15 +54,7 @@ function CaptureAutoIcon({ voidPercentage, capturePercentage, captureCount, auto
|
|
|
55
54
|
},
|
|
56
55
|
} }, { children: [_jsxs(PercentageContainer, Object.assign({ isCapture: true, percentage: capturePercentage }, { children: [capturePercentage, "% ", _jsx(PiePercentage, { isCapture: true, percentage: formatPercentage(capturePercentage) })] })), captureCount > 1 && (_jsxs(StyledBadge, Object.assign({ compact: true, variant: BadgeVariants.DARK }, { children: [captureCount, "x"] })))] }))] })) }))) : autoType === 'CAPTURED' && !isFullyUsed ? (_jsx(Tooltip, Object.assign({ title: generateAutoTooltip('Capture') }, { children: _jsx(AutoIconWrapper, { children: _jsx(AutoIconImage, { src: (_a = autoIcons.CAPTURED) === null || _a === void 0 ? void 0 : _a.icon, alt: "auto" }) }) }))) : (_jsx(Tooltip, Object.assign({ title: generateAutoTooltip('Capture') }, { children: _jsx(AutoIconWrapper, { children: _jsx(AutoIconImage, { src: (_b = autoIcons.CAPTURED) === null || _b === void 0 ? void 0 : _b.icon, alt: "auto" }) }) })));
|
|
57
56
|
const captureStatus = capturePercentage === 100 ? (_jsx(Tooltip, Object.assign({ title: t('captured') }, { children: _jsx(FullyCapturedWrapper, { children: _jsx(AutoIconImage, { src: capturedIcon, alt: "captured" }) }) }))) : (autoCaptureStatus);
|
|
58
|
-
const captureContent =
|
|
59
|
-
if (isSheetViewShown && captureStatus) {
|
|
60
|
-
return (_jsx(StatusChipWithCopy, Object.assign({ chipIndex: 4, copyText: t('captured'), selectionProps: selectionProps }, { children: t('captured') })));
|
|
61
|
-
}
|
|
62
|
-
if (isTextShown && captureStatus) {
|
|
63
|
-
return _jsx(CaptureTextLabel, { children: t('captured') });
|
|
64
|
-
}
|
|
65
|
-
return captureStatus;
|
|
66
|
-
}, [isTextShown, captureStatus, isSheetViewShown, selectionProps]);
|
|
57
|
+
const captureContent = isTextShown && captureStatus ? _jsx(CaptureTextLabel, { children: t('captured') }) : captureStatus;
|
|
67
58
|
return (captureContent && (_jsx("div", Object.assign({ style: {
|
|
68
59
|
zIndex: 12,
|
|
69
60
|
} }, { children: captureContent }))));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BalanceCellProps } from './type';
|
|
2
|
-
declare function VoidAutoIcon({ voidPercentage, capturePercentage, voidCount, autoType, captureAmount, voidAmount, currency, isTextShown,
|
|
2
|
+
declare function VoidAutoIcon({ voidPercentage, capturePercentage, voidCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount, }: BalanceCellProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default VoidAutoIcon;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
3
|
import { useTheme } from '@mui/material/styles';
|
|
4
4
|
import { motion } from 'framer-motion';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import StyledBadge, { BadgeVariants } from '../../CountBadge';
|
|
7
7
|
import { VoidTextLabel } from '../../TableCells/CustomCells/style';
|
|
8
|
-
import StatusChipWithCopy from '../../StatusChipWithCopy';
|
|
9
8
|
import Tooltip from '../../Tooltip';
|
|
10
9
|
import { voidedIcon } from '../../../constants/index.js';
|
|
11
10
|
import { formatAmount, formatAmountWithCurrency } from '../../../utils/index.js';
|
|
12
11
|
import { autoIcons } from './constant';
|
|
13
12
|
import { AutoIconWrapper, BalanceCellContainer, PercentageContainer, PiePercentage, AutoIconImage } from './style';
|
|
14
13
|
import { formatPercentage } from './utils';
|
|
15
|
-
function VoidAutoIcon({ voidPercentage, capturePercentage, voidCount, autoType, captureAmount, voidAmount, currency, isTextShown,
|
|
14
|
+
function VoidAutoIcon({ voidPercentage, capturePercentage, voidCount, autoType, captureAmount, voidAmount, currency, isTextShown, remainingAmount, }) {
|
|
16
15
|
var _a;
|
|
17
16
|
const isFullyUsed = Number(capturePercentage) + Number(voidPercentage) === 100 || remainingAmount <= 0;
|
|
18
17
|
const theme = useTheme();
|
|
@@ -60,15 +59,7 @@ function VoidAutoIcon({ voidPercentage, capturePercentage, voidCount, autoType,
|
|
|
60
59
|
},
|
|
61
60
|
} }, { children: _jsxs(StyledBadge, Object.assign({ compact: true, variant: BadgeVariants.NEUTRAL }, { children: [voidCount, "x"] })) })))] })) }))) : autoType === 'VOID' && !isFullyUsed ? (_jsx(Tooltip, Object.assign({ title: generateAutoTooltip('Void') }, { children: _jsx(AutoIconWrapper, { children: _jsx(AutoIconImage, { src: (_a = autoIcons.VOID) === null || _a === void 0 ? void 0 : _a.icon, alt: "auto" }) }) }))) : null;
|
|
62
61
|
const voidStatus = voidPercentage === 100 ? (_jsx(Tooltip, Object.assign({ title: t('void') }, { children: _jsx(AutoIconWrapper, { children: _jsx(AutoIconImage, { src: voidedIcon, alt: "void" }) }) }))) : (autoVoidStatus);
|
|
63
|
-
const voidContent =
|
|
64
|
-
|
|
65
|
-
return (_jsx(StatusChipWithCopy, Object.assign({ chipIndex: 5, copyText: t('void'), selectionProps: selectionProps }, { children: t('void') })));
|
|
66
|
-
}
|
|
67
|
-
if (isTextShown && voidStatus) {
|
|
68
|
-
return _jsx(VoidTextLabel, { children: t('void') });
|
|
69
|
-
}
|
|
70
|
-
return voidStatus;
|
|
71
|
-
}, [isTextShown, voidStatus, isSheetViewShown, selectionProps]);
|
|
72
|
-
return voidContent ? _jsx("div", Object.assign({ style: Object.assign({}, (!isSheetViewShown && { zIndex: 11 })) }, { children: voidContent })) : null;
|
|
62
|
+
const voidContent = isTextShown && voidStatus ? _jsx(VoidTextLabel, { children: t('void') }) : voidStatus;
|
|
63
|
+
return voidContent ? _jsx("div", Object.assign({ style: { zIndex: 11 } }, { children: voidContent })) : null;
|
|
73
64
|
}
|
|
74
65
|
export default VoidAutoIcon;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TableCellProps } from '@mui/material';
|
|
2
|
-
import { SelectionProps } from '../../../types/index.js';
|
|
3
2
|
export interface BalanceCellProps extends TableCellProps {
|
|
4
3
|
autoType?: 'VOID' | 'CAPTURED';
|
|
5
4
|
capturePercentage: number;
|
|
@@ -12,6 +11,4 @@ export interface BalanceCellProps extends TableCellProps {
|
|
|
12
11
|
voidCount: number;
|
|
13
12
|
isTextShown?: boolean;
|
|
14
13
|
remainingAmount: number;
|
|
15
|
-
isSheetViewShown?: boolean;
|
|
16
|
-
selectionProps?: SelectionProps;
|
|
17
14
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { SelectionProps } from '../../../types/index.js';
|
|
3
2
|
import { type ChargeStatus } from '../../TableCells';
|
|
4
|
-
export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge,
|
|
3
|
+
export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge, }: Readonly<{
|
|
5
4
|
chargeStatus?: ChargeStatus;
|
|
6
5
|
gatewayTooltip?: string;
|
|
7
6
|
showAuthorizedStatus?: boolean;
|
|
@@ -18,6 +17,4 @@ export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquire
|
|
|
18
17
|
gatewayContainerStyles?: CSSProperties;
|
|
19
18
|
gateWayIconStyles?: CSSProperties;
|
|
20
19
|
showBadge?: boolean;
|
|
21
|
-
isSheetViewShown?: boolean;
|
|
22
|
-
selectionProps?: SelectionProps;
|
|
23
20
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,10 @@ import camelCase from 'lodash/camelCase';
|
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import Tooltip from '../../Tooltip';
|
|
6
6
|
import { unCapturedStatuses } from '../../../constants/index.js';
|
|
7
|
-
import
|
|
7
|
+
import { AcquirerContainerAnimationVariants, ErrorCodeLabel, ErrorCodeLabelAnimationVariants, ErrorCodeVariants, ErrorCodeWrapper, GateWayIcon, GatewayIconWrapper, GatewayIconWrapperAnimationTransition, GatewaysContainer, GatewaysContainerAnimationVariants, StatusTextLabel, UnCapturedBadge, UnCapturedContainer, errorCodeLabelAnimation, TextViewWrapper, } from './style';
|
|
8
8
|
import { capturedStatusesStyles, unCapturedStatusesStyles, statusIcons } from '../../TableCells/CustomCells/StatusCell/constant';
|
|
9
9
|
import { StatusIcon, StatusIconWrapper, TextLabel } from '../../TableCells/CustomCells/style';
|
|
10
|
-
|
|
11
|
-
export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge = true, isSheetViewShown = false, selectionProps = {}, }) {
|
|
10
|
+
export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge = true, }) {
|
|
12
11
|
const unCapturedStatusStyle = chargeStatus ? unCapturedStatusesStyles[chargeStatus] : null;
|
|
13
12
|
const captureStatusStyle = chargeStatus ? capturedStatusesStyles[chargeStatus] : null;
|
|
14
13
|
const theme = useTheme();
|
|
@@ -17,9 +16,6 @@ export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip
|
|
|
17
16
|
const acquirerTooltipTitle = acquirerTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Acquirer" }), _jsx("div", { children: acquirerTooltip })] }));
|
|
18
17
|
const gatewayTooltipTitle = gatewayTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Gateway" }), _jsx("div", { children: gatewayTooltip })] }));
|
|
19
18
|
const chargeIcon = chargeStatus && statusIcons[chargeStatus] && (_jsx("div", Object.assign({ "data-testid": "ChargeStatusIcon_ChargeIcon", style: Object.assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '16px', height: '16px', borderRadius: unCapturedStatusStyle ? '50%' : '' }, iconWrapperStyles) }, { children: _jsx(StatusIcon, { src: statusIcons[chargeStatus], alt: "charge-icon", "data-testid": "ChargeStatusIcon_StatusIcon", style: Object.assign({ borderRadius: unCapturedStatusStyle ? '50%' : '', width: '16px', height: '16px' }, iconStyles) }) })));
|
|
20
|
-
if (isSheetViewShown) {
|
|
21
|
-
return (_jsxs(TextViewWrapper, { children: [_jsxs(StatusChipWithCopy, Object.assign({ copyText: t(camelCase(chargeStatus)), chipIndex: 0, selectionProps: selectionProps }, { children: [t(camelCase(chargeStatus)), " ", errorCode] })), unCapturedStatusStyle && (_jsxs(_Fragment, { children: [gatewayCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Gateway", chipIndex: 1, selectionProps: selectionProps }, { children: ["Gateway ", gatewayCode] }))), acquirerCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Acquirer", chipIndex: 2, selectionProps: selectionProps }, { children: ["Acquirer ", acquirerCode] })))] }))] }));
|
|
22
|
-
}
|
|
23
19
|
if (isTextShown) {
|
|
24
20
|
return (_jsxs(TextViewWrapper, { children: [_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle }, { children: _jsxs(StatusTextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
|
|
25
21
|
background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AmountCellProps } from '../type';
|
|
2
|
-
declare function AmountCell({ conversionType, amount, currency, tooltipLabel, amountTooltipLabel, isTextShown, tableMode,
|
|
2
|
+
declare function AmountCell({ conversionType, amount, currency, tooltipLabel, amountTooltipLabel, isTextShown, tableMode, ...props }: AmountCellProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default AmountCell;
|
|
@@ -10,29 +10,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useMemo } from 'react';
|
|
14
13
|
import { TableCell } from '../../../TableCells';
|
|
15
14
|
import Tooltip from '../../../Tooltip';
|
|
16
|
-
import { CurrencyIcon
|
|
15
|
+
import { CurrencyIcon } from '../../../index.js';
|
|
17
16
|
import { getCurrenciesIcon } from '../../../../constants/index.js';
|
|
18
17
|
import { formatAmountWithCurrency } from '../../../../utils/index.js';
|
|
19
18
|
import { AmountCellContainer, ConversionBadge, CurrencySpan, DecimalSpan, FlagContainer } from './style';
|
|
20
19
|
import { FlagIcon } from '../style';
|
|
21
20
|
function AmountCell(_a) {
|
|
22
|
-
var { conversionType, amount, currency, tooltipLabel, amountTooltipLabel, isTextShown, tableMode
|
|
21
|
+
var { conversionType, amount, currency, tooltipLabel, amountTooltipLabel, isTextShown, tableMode } = _a, props = __rest(_a, ["conversionType", "amount", "currency", "tooltipLabel", "amountTooltipLabel", "isTextShown", "tableMode"]);
|
|
23
22
|
const icon = currency && _jsx(FlagIcon, { src: getCurrenciesIcon(currency), alt: "customer icon" });
|
|
24
23
|
const { integerAmount, decimalAmount } = formatAmountWithCurrency(amount, currency);
|
|
25
|
-
|
|
26
|
-
if (!conversionType)
|
|
27
|
-
return _jsx(_Fragment, {});
|
|
28
|
-
return (_jsx(ConversionBadge, Object.assign({ tableMode: tableMode, className: "conversion-type" }, { children: conversionType })));
|
|
29
|
-
}, [conversionType, tableMode]);
|
|
30
|
-
const currencyInfo = useMemo(() => {
|
|
31
|
-
return (_jsx(CurrencySpan, Object.assign({ tableMode: tableMode }, { children: amount !== undefined ? (_jsxs(_Fragment, { children: [_jsx("span", { children: _jsx(CurrencyIcon, { currency: currency, fontSize: 10 }) }), ' ', integerAmount, decimalAmount && (_jsxs(_Fragment, { children: [".", _jsx(DecimalSpan, { children: decimalAmount })] }))] })) : (_jsx("span", { children: "-" })) })));
|
|
32
|
-
}, [amount, tableMode, currency, integerAmount, decimalAmount]);
|
|
33
|
-
if (tableMode === 'sheet') {
|
|
34
|
-
return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: chipIndex, copyText: amount ? `${integerAmount}.${decimalAmount}` : '-', selectionProps: selectionProps }, { children: [conversionTypeLabel, currencyInfo] })));
|
|
35
|
-
}
|
|
36
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: conversionTypeLabel })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencyIcon, { currency: currency }) }, { children: isTextShown ? _jsx("span", {}) : _jsx(FlagContainer, { children: icon }) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: currencyInfo }))] }) })));
|
|
24
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: conversionType && (_jsx(ConversionBadge, Object.assign({ tableMode: tableMode, className: "conversion-type" }, { children: conversionType }))) })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencyIcon, { currency: currency }) }, { children: isTextShown ? _jsx("span", {}) : _jsx(FlagContainer, { children: icon }) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencySpan, Object.assign({ tableMode: tableMode }, { children: amount !== undefined ? (_jsxs(_Fragment, { children: [_jsx("span", { children: _jsx(CurrencyIcon, { currency: currency, fontSize: 10 }) }), ' ', integerAmount, decimalAmount && (_jsxs(_Fragment, { children: [".", _jsx(DecimalSpan, { children: decimalAmount })] }))] })) : (_jsx("span", { children: "-" })) })) }))] }) })));
|
|
37
25
|
}
|
|
38
26
|
export default AmountCell;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BalanceCellProps } from './type';
|
|
2
|
-
declare function BalanceCell({ percentage, days, remainingAmount, currency, isTextShown,
|
|
2
|
+
declare function BalanceCell({ percentage, days, remainingAmount, currency, isTextShown, ...props }: BalanceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BalanceCell;
|
|
@@ -15,25 +15,19 @@ import { useTheme } from '@mui/material/styles';
|
|
|
15
15
|
import { motion } from 'framer-motion';
|
|
16
16
|
import Tooltip from '../../../Tooltip';
|
|
17
17
|
import { TableCell } from '../../../TableCells';
|
|
18
|
-
import { CurrencyIcon
|
|
18
|
+
import { CurrencyIcon } from '../../../index.js';
|
|
19
19
|
import { formatAmountWithCurrency } from '../../../../utils/index.js';
|
|
20
20
|
import { BalanceCellContainer, PercentageContainer } from './style';
|
|
21
21
|
import { formatPercentage } from './utils';
|
|
22
22
|
import { TextLabel, PiePercentage } from '../style';
|
|
23
23
|
function BalanceCell(_a) {
|
|
24
|
-
var { percentage, days, remainingAmount, currency, isTextShown
|
|
24
|
+
var { percentage, days, remainingAmount, currency, isTextShown } = _a, props = __rest(_a, ["percentage", "days", "remainingAmount", "currency", "isTextShown"]);
|
|
25
25
|
const theme = useTheme();
|
|
26
|
-
const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
|
|
27
|
-
const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
|
|
28
|
-
const amount = `${integerAmount}.${decimalAmount}`;
|
|
29
26
|
const generatedTooltip = useMemo(() => {
|
|
30
|
-
|
|
27
|
+
const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
|
|
28
|
+
const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
|
|
29
|
+
return (_jsxs(_Fragment, { children: ["Remaining Authorized Balance - ", currencyIcon, " ", integerAmount, ".", decimalAmount] }));
|
|
31
30
|
}, [remainingAmount, currency]);
|
|
32
|
-
if (isSheetViewShown) {
|
|
33
|
-
if (percentage === 0)
|
|
34
|
-
return null;
|
|
35
|
-
return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: 0, copyText: `${integerAmount}.${decimalAmount}`, selectionProps: selectionProps }, { children: [percentage, "% | Remaining balance - ", currencyIcon, " ", amount] })));
|
|
36
|
-
}
|
|
37
31
|
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx("div", Object.assign({ style: {
|
|
38
32
|
display: 'flex',
|
|
39
33
|
alignItems: 'center',
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { TableCellProps } from '@mui/material';
|
|
2
|
-
import { SelectionProps } from '../../../../types/index.js';
|
|
3
2
|
export interface BalanceCellProps extends TableCellProps {
|
|
4
3
|
percentage: number;
|
|
5
4
|
days?: number;
|
|
6
5
|
remainingAmount?: number;
|
|
7
6
|
currency?: string;
|
|
8
7
|
isTextShown?: boolean;
|
|
9
|
-
isSheetViewShown?: boolean;
|
|
10
|
-
selectionProps?: SelectionProps;
|
|
11
8
|
}
|
|
@@ -11,6 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { TableCell } from '../../../TableCells';
|
|
14
|
+
import StatusChip from '../../../StatusChip';
|
|
14
15
|
import { StatusIcon, StatusContainer, StatusWrapper } from './style';
|
|
15
16
|
import { getStatusesFilteredObject } from './utils';
|
|
16
17
|
function StatusCell(_a) {
|
|
@@ -18,7 +19,7 @@ function StatusCell(_a) {
|
|
|
18
19
|
const statusesFilteredObject = statuses ? getStatusesFilteredObject(statuses) : {};
|
|
19
20
|
const statusesList = Object.values(statusesFilteredObject).filter(Boolean);
|
|
20
21
|
if (tableMode === 'sheet') {
|
|
21
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StatusContainer, Object.assign({
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StatusContainer, { children: statusesList.map((status, index) => (_jsx(StatusChip, Object.assign({ borderColor: "transparent", padding: '0px' }, { children: status }), index))) }) })));
|
|
22
23
|
}
|
|
23
24
|
const xGapValue = isTextShown ? xGap || 120 : 40;
|
|
24
25
|
const centerIconIndex = centerIconKey ? Object.entries(statusesFilteredObject).findIndex(([key]) => key === centerIconKey) : 0;
|
|
@@ -61,8 +61,6 @@ export interface AmountCellProps extends TableCellProps {
|
|
|
61
61
|
amountTooltipLabel?: React.ReactNode;
|
|
62
62
|
isTextShown?: boolean;
|
|
63
63
|
tableMode?: TableMode;
|
|
64
|
-
selectionProps?: SelectionProps;
|
|
65
|
-
chipIndex?: number;
|
|
66
64
|
}
|
|
67
65
|
export interface DestinationCellProps extends TableCellProps {
|
|
68
66
|
destinationsCount?: number;
|
|
@@ -7,7 +7,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
7
7
|
readonly id: {
|
|
8
8
|
readonly default: "225px";
|
|
9
9
|
readonly text: "225px";
|
|
10
|
-
readonly sheet: "
|
|
10
|
+
readonly sheet: "225px";
|
|
11
11
|
};
|
|
12
12
|
readonly auto: {
|
|
13
13
|
readonly default: "70px";
|
|
@@ -17,7 +17,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
17
17
|
readonly balance: {
|
|
18
18
|
readonly default: "60px";
|
|
19
19
|
readonly text: "60px";
|
|
20
|
-
readonly sheet: "
|
|
20
|
+
readonly sheet: "60px";
|
|
21
21
|
};
|
|
22
22
|
readonly product: {
|
|
23
23
|
readonly default: "85px";
|
|
@@ -57,7 +57,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
57
57
|
readonly payment_agreement: {
|
|
58
58
|
readonly default: "50px";
|
|
59
59
|
readonly text: "150px";
|
|
60
|
-
readonly sheet: "
|
|
60
|
+
readonly sheet: "150px";
|
|
61
61
|
};
|
|
62
62
|
readonly amount: {
|
|
63
63
|
readonly default: "170px";
|
|
@@ -77,12 +77,12 @@ export declare const authorizationTableCellWidth: {
|
|
|
77
77
|
readonly status: {
|
|
78
78
|
readonly default: "77px";
|
|
79
79
|
readonly text: "100px";
|
|
80
|
-
readonly sheet: "
|
|
80
|
+
readonly sheet: "100px";
|
|
81
81
|
};
|
|
82
82
|
readonly merchant: {
|
|
83
83
|
readonly default: "110px";
|
|
84
84
|
readonly text: "150px";
|
|
85
|
-
readonly sheet: "
|
|
85
|
+
readonly sheet: "150px";
|
|
86
86
|
};
|
|
87
87
|
readonly charge: {
|
|
88
88
|
readonly default: "150px";
|
|
@@ -112,7 +112,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
112
112
|
readonly metadata: {
|
|
113
113
|
readonly default: "185px";
|
|
114
114
|
readonly text: "185px";
|
|
115
|
-
readonly sheet: "
|
|
115
|
+
readonly sheet: "185px";
|
|
116
116
|
};
|
|
117
117
|
readonly settlement: {
|
|
118
118
|
readonly default: "200px";
|
|
@@ -152,66 +152,16 @@ export declare const authorizationTableCellWidth: {
|
|
|
152
152
|
readonly device: {
|
|
153
153
|
readonly default: "60px";
|
|
154
154
|
readonly text: "190px";
|
|
155
|
-
readonly sheet: "
|
|
155
|
+
readonly sheet: "190px";
|
|
156
156
|
};
|
|
157
157
|
readonly card_no: {
|
|
158
158
|
readonly default: "120px";
|
|
159
159
|
readonly text: "120px";
|
|
160
|
-
readonly sheet: "
|
|
160
|
+
readonly sheet: "120px";
|
|
161
161
|
};
|
|
162
162
|
readonly brand: {
|
|
163
163
|
readonly default: "116px";
|
|
164
164
|
readonly text: "116px";
|
|
165
165
|
readonly sheet: "116px";
|
|
166
166
|
};
|
|
167
|
-
readonly payment_initiated: {
|
|
168
|
-
readonly default: "150px";
|
|
169
|
-
readonly text: "150px";
|
|
170
|
-
readonly sheet: "150px";
|
|
171
|
-
};
|
|
172
|
-
readonly payment_issuers: {
|
|
173
|
-
readonly default: "150px";
|
|
174
|
-
readonly text: "150px";
|
|
175
|
-
readonly sheet: "350px";
|
|
176
|
-
};
|
|
177
|
-
readonly card_number: {
|
|
178
|
-
readonly default: "120px";
|
|
179
|
-
readonly text: "120px";
|
|
180
|
-
readonly sheet: "155px";
|
|
181
|
-
};
|
|
182
|
-
readonly payment_type: {
|
|
183
|
-
readonly default: "150px";
|
|
184
|
-
readonly text: "150px";
|
|
185
|
-
readonly sheet: "120px";
|
|
186
|
-
};
|
|
187
|
-
readonly payment_method: {
|
|
188
|
-
readonly default: "150px";
|
|
189
|
-
readonly text: "150px";
|
|
190
|
-
readonly sheet: "145px";
|
|
191
|
-
};
|
|
192
|
-
readonly payment_scheme: {
|
|
193
|
-
readonly default: "150px";
|
|
194
|
-
readonly text: "150px";
|
|
195
|
-
readonly sheet: "145px";
|
|
196
|
-
};
|
|
197
|
-
readonly auth_status: {
|
|
198
|
-
readonly default: "150px";
|
|
199
|
-
readonly text: "150px";
|
|
200
|
-
readonly sheet: "165px";
|
|
201
|
-
};
|
|
202
|
-
readonly auth_type: {
|
|
203
|
-
readonly default: "150px";
|
|
204
|
-
readonly text: "150px";
|
|
205
|
-
readonly sheet: "155px";
|
|
206
|
-
};
|
|
207
|
-
readonly eci: {
|
|
208
|
-
readonly default: "150px";
|
|
209
|
-
readonly text: "150px";
|
|
210
|
-
readonly sheet: "100px";
|
|
211
|
-
};
|
|
212
|
-
readonly acquirer_response: {
|
|
213
|
-
readonly default: "70px";
|
|
214
|
-
readonly text: "70px";
|
|
215
|
-
readonly sheet: "225px";
|
|
216
|
-
};
|
|
217
167
|
};
|
|
@@ -7,7 +7,7 @@ export const authorizationTableCellWidth = {
|
|
|
7
7
|
id: {
|
|
8
8
|
default: '225px',
|
|
9
9
|
text: '225px',
|
|
10
|
-
sheet: '
|
|
10
|
+
sheet: '225px',
|
|
11
11
|
},
|
|
12
12
|
auto: {
|
|
13
13
|
default: '70px',
|
|
@@ -17,7 +17,7 @@ export const authorizationTableCellWidth = {
|
|
|
17
17
|
balance: {
|
|
18
18
|
default: '60px',
|
|
19
19
|
text: '60px',
|
|
20
|
-
sheet: '
|
|
20
|
+
sheet: '60px',
|
|
21
21
|
},
|
|
22
22
|
product: {
|
|
23
23
|
default: '85px',
|
|
@@ -57,7 +57,7 @@ export const authorizationTableCellWidth = {
|
|
|
57
57
|
payment_agreement: {
|
|
58
58
|
default: '50px',
|
|
59
59
|
text: '150px',
|
|
60
|
-
sheet: '
|
|
60
|
+
sheet: '150px',
|
|
61
61
|
},
|
|
62
62
|
amount: {
|
|
63
63
|
default: '170px',
|
|
@@ -77,12 +77,12 @@ export const authorizationTableCellWidth = {
|
|
|
77
77
|
status: {
|
|
78
78
|
default: '77px',
|
|
79
79
|
text: '100px',
|
|
80
|
-
sheet: '
|
|
80
|
+
sheet: '100px',
|
|
81
81
|
},
|
|
82
82
|
merchant: {
|
|
83
83
|
default: '110px',
|
|
84
84
|
text: '150px',
|
|
85
|
-
sheet: '
|
|
85
|
+
sheet: '150px',
|
|
86
86
|
},
|
|
87
87
|
charge: {
|
|
88
88
|
default: '150px',
|
|
@@ -112,7 +112,7 @@ export const authorizationTableCellWidth = {
|
|
|
112
112
|
metadata: {
|
|
113
113
|
default: '185px',
|
|
114
114
|
text: '185px',
|
|
115
|
-
sheet: '
|
|
115
|
+
sheet: '185px',
|
|
116
116
|
},
|
|
117
117
|
settlement: {
|
|
118
118
|
default: '200px',
|
|
@@ -152,66 +152,16 @@ export const authorizationTableCellWidth = {
|
|
|
152
152
|
device: {
|
|
153
153
|
default: '60px',
|
|
154
154
|
text: '190px',
|
|
155
|
-
sheet: '
|
|
155
|
+
sheet: '190px',
|
|
156
156
|
},
|
|
157
157
|
card_no: {
|
|
158
158
|
default: '120px',
|
|
159
159
|
text: '120px',
|
|
160
|
-
sheet: '
|
|
160
|
+
sheet: '120px',
|
|
161
161
|
},
|
|
162
162
|
brand: {
|
|
163
163
|
default: '116px',
|
|
164
164
|
text: '116px',
|
|
165
165
|
sheet: '116px',
|
|
166
166
|
},
|
|
167
|
-
payment_initiated: {
|
|
168
|
-
default: '150px',
|
|
169
|
-
text: '150px',
|
|
170
|
-
sheet: '150px',
|
|
171
|
-
},
|
|
172
|
-
payment_issuers: {
|
|
173
|
-
default: '150px',
|
|
174
|
-
text: '150px',
|
|
175
|
-
sheet: '350px',
|
|
176
|
-
},
|
|
177
|
-
card_number: {
|
|
178
|
-
default: '120px',
|
|
179
|
-
text: '120px',
|
|
180
|
-
sheet: '155px',
|
|
181
|
-
},
|
|
182
|
-
payment_type: {
|
|
183
|
-
default: '150px',
|
|
184
|
-
text: '150px',
|
|
185
|
-
sheet: '120px',
|
|
186
|
-
},
|
|
187
|
-
payment_method: {
|
|
188
|
-
default: '150px',
|
|
189
|
-
text: '150px',
|
|
190
|
-
sheet: '145px',
|
|
191
|
-
},
|
|
192
|
-
payment_scheme: {
|
|
193
|
-
default: '150px',
|
|
194
|
-
text: '150px',
|
|
195
|
-
sheet: '145px',
|
|
196
|
-
},
|
|
197
|
-
auth_status: {
|
|
198
|
-
default: '150px',
|
|
199
|
-
text: '150px',
|
|
200
|
-
sheet: '165px',
|
|
201
|
-
},
|
|
202
|
-
auth_type: {
|
|
203
|
-
default: '150px',
|
|
204
|
-
text: '150px',
|
|
205
|
-
sheet: '155px',
|
|
206
|
-
},
|
|
207
|
-
eci: {
|
|
208
|
-
default: '150px',
|
|
209
|
-
text: '150px',
|
|
210
|
-
sheet: '100px',
|
|
211
|
-
},
|
|
212
|
-
acquirer_response: {
|
|
213
|
-
default: '70px',
|
|
214
|
-
text: '70px',
|
|
215
|
-
sheet: '225px',
|
|
216
|
-
},
|
|
217
167
|
};
|
|
@@ -94,6 +94,16 @@ export declare const refundTableCellWidth: {
|
|
|
94
94
|
readonly text: "195px";
|
|
95
95
|
readonly sheet: "180px";
|
|
96
96
|
};
|
|
97
|
+
readonly payouts: {
|
|
98
|
+
readonly default: "195px";
|
|
99
|
+
readonly text: "195px";
|
|
100
|
+
readonly sheet: "300px";
|
|
101
|
+
};
|
|
102
|
+
readonly reason: {
|
|
103
|
+
readonly default: "170px";
|
|
104
|
+
readonly text: "240px";
|
|
105
|
+
readonly sheet: "160px";
|
|
106
|
+
};
|
|
97
107
|
readonly destinations: {
|
|
98
108
|
readonly default: "70px";
|
|
99
109
|
readonly text: "240px";
|
|
@@ -182,7 +192,7 @@ export declare const refundTableCellWidth: {
|
|
|
182
192
|
readonly charge_meta: {
|
|
183
193
|
readonly default: "100px";
|
|
184
194
|
readonly text: "100px";
|
|
185
|
-
readonly sheet: "
|
|
195
|
+
readonly sheet: "250px";
|
|
186
196
|
};
|
|
187
197
|
readonly brand: {
|
|
188
198
|
readonly default: "116px";
|
|
@@ -94,6 +94,16 @@ export const refundTableCellWidth = {
|
|
|
94
94
|
text: '195px',
|
|
95
95
|
sheet: '180px',
|
|
96
96
|
},
|
|
97
|
+
payouts: {
|
|
98
|
+
default: '195px',
|
|
99
|
+
text: '195px',
|
|
100
|
+
sheet: '300px',
|
|
101
|
+
},
|
|
102
|
+
reason: {
|
|
103
|
+
default: '170px',
|
|
104
|
+
text: '240px',
|
|
105
|
+
sheet: '160px',
|
|
106
|
+
},
|
|
97
107
|
destinations: {
|
|
98
108
|
default: '70px',
|
|
99
109
|
text: '240px',
|
|
@@ -182,7 +192,7 @@ export const refundTableCellWidth = {
|
|
|
182
192
|
charge_meta: {
|
|
183
193
|
default: '100px',
|
|
184
194
|
text: '100px',
|
|
185
|
-
sheet: '
|
|
195
|
+
sheet: '250px',
|
|
186
196
|
},
|
|
187
197
|
brand: {
|
|
188
198
|
default: '116px',
|
|
@@ -30,9 +30,9 @@ export declare const terminalsTableCellWidth: {
|
|
|
30
30
|
readonly sheet: "80px";
|
|
31
31
|
};
|
|
32
32
|
readonly features: {
|
|
33
|
-
readonly default: "
|
|
34
|
-
readonly text: "
|
|
35
|
-
readonly sheet: "
|
|
33
|
+
readonly default: "80px";
|
|
34
|
+
readonly text: "80px";
|
|
35
|
+
readonly sheet: "80px";
|
|
36
36
|
};
|
|
37
37
|
readonly acceptance: {
|
|
38
38
|
readonly default: "80px";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.88",
|
|
5
|
+
"testVersion": 2,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -136,4 +136,4 @@
|
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"registry": "https://registry.npmjs.org/"
|
|
138
138
|
}
|
|
139
|
-
}
|
|
139
|
+
}
|