@tap-payments/os-micro-frontend-shared 0.1.151 → 0.1.153-test.13
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/build/components/ConfirmDialog/context/index.d.ts +1 -1
- package/build/components/ConfirmDialog/context/index.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/index.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/index.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.d.ts +3 -0
- package/build/components/TableCells/{SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js → CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.js} +3 -8
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.d.ts +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.js +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.js +1 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.js +1 -0
- package/build/components/TableCells/index.d.ts +0 -1
- package/build/components/TableCells/index.js +0 -1
- package/build/constants/apps.d.ts +12 -0
- package/build/constants/apps.js +9 -1
- package/build/utils/country.js +1 -2
- package/build/utils/currency.js +1 -2
- package/package.json +3 -3
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +0 -13
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +0 -1
- package/build/components/TableCells/SheetViewCells/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/index.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export * from './Provider';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export * from './Provider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AmountCell } from './AmountCell';
|
|
2
|
-
export
|
|
2
|
+
export * from './components';
|
|
3
3
|
export { default as AmountCellText } from './AmountCellText';
|
|
4
4
|
export { default as AmountCellSheet } from './AmountCellSheet';
|
|
5
5
|
export * from './style';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AmountCell } from './AmountCell';
|
|
2
|
-
export
|
|
2
|
+
export * from './components';
|
|
3
3
|
export { default as AmountCellText } from './AmountCellText';
|
|
4
4
|
export { default as AmountCellSheet } from './AmountCellSheet';
|
|
5
5
|
export * from './style';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DestinationCell } from './DestinationCell';
|
|
2
2
|
export { default as DestinationCellSheet } from './DestinationCellSheet';
|
|
3
3
|
export { default as DestinationCellText } from './DestinationCellText';
|
|
4
|
-
export
|
|
4
|
+
export * from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DestinationCell } from './DestinationCell';
|
|
2
2
|
export { default as DestinationCellSheet } from './DestinationCellSheet';
|
|
3
3
|
export { default as DestinationCellText } from './DestinationCellText';
|
|
4
|
-
export
|
|
4
|
+
export * from './utils';
|
|
@@ -12,15 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Box } from '@mui/material';
|
|
14
14
|
import { StatusChipWithCopy } from '../../../index.js';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ORDER: 'Order',
|
|
18
|
-
SUBSCRIPTION: 'Subscription',
|
|
19
|
-
INSTALLMENT: 'Installment',
|
|
20
|
-
};
|
|
21
|
-
function PaymentAgreementCell(_a) {
|
|
15
|
+
import { paymentAgreementTypes } from './constant';
|
|
16
|
+
function PaymentAgreementCellSheet(_a) {
|
|
22
17
|
var { type, count } = _a, props = __rest(_a, ["type", "count"]);
|
|
23
18
|
const countText = count === null || count === void 0 ? void 0 : count.toString();
|
|
24
19
|
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
20
|
}
|
|
26
|
-
export default
|
|
21
|
+
export default PaymentAgreementCellSheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCellSheet } from './PaymentAgreementCellSheet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCellSheet } from './PaymentAgreementCellSheet';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { paymentAgreementTypes } from './constant';
|
|
2
|
+
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
3
|
+
export interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
|
|
4
|
+
type?: keyof typeof paymentAgreementTypes;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -398,6 +398,9 @@ export declare const APP_CODES: {
|
|
|
398
398
|
statement: {
|
|
399
399
|
code: string;
|
|
400
400
|
};
|
|
401
|
+
summary: {
|
|
402
|
+
code: string;
|
|
403
|
+
};
|
|
401
404
|
view: {
|
|
402
405
|
code: string;
|
|
403
406
|
};
|
|
@@ -418,6 +421,9 @@ export declare const APP_CODES: {
|
|
|
418
421
|
statement: {
|
|
419
422
|
code: string;
|
|
420
423
|
};
|
|
424
|
+
summary: {
|
|
425
|
+
code: string;
|
|
426
|
+
};
|
|
421
427
|
view: {
|
|
422
428
|
code: string;
|
|
423
429
|
};
|
|
@@ -438,6 +444,9 @@ export declare const APP_CODES: {
|
|
|
438
444
|
statement: {
|
|
439
445
|
code: string;
|
|
440
446
|
};
|
|
447
|
+
summary: {
|
|
448
|
+
code: string;
|
|
449
|
+
};
|
|
441
450
|
view: {
|
|
442
451
|
code: string;
|
|
443
452
|
};
|
|
@@ -478,6 +487,9 @@ export declare const APP_CODES: {
|
|
|
478
487
|
paymentTechnology: {
|
|
479
488
|
code: string;
|
|
480
489
|
functions: {
|
|
490
|
+
summary: {
|
|
491
|
+
code: string;
|
|
492
|
+
};
|
|
481
493
|
view: {
|
|
482
494
|
code: string;
|
|
483
495
|
};
|
package/build/constants/apps.js
CHANGED
|
@@ -166,18 +166,24 @@ export const APP_CODES = {
|
|
|
166
166
|
code: 'BUSINESS_WALLET',
|
|
167
167
|
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
|
|
168
168
|
code: 'STATEMENT',
|
|
169
|
+
}, summary: {
|
|
170
|
+
code: 'SUMMARY',
|
|
169
171
|
} }),
|
|
170
172
|
},
|
|
171
173
|
retailers: {
|
|
172
174
|
code: 'RETAILER_WALLET',
|
|
173
175
|
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
|
|
174
176
|
code: 'STATEMENT',
|
|
177
|
+
}, summary: {
|
|
178
|
+
code: 'SUMMARY',
|
|
175
179
|
} }),
|
|
176
180
|
},
|
|
177
181
|
customers: {
|
|
178
182
|
code: 'CUSTOMER_WALLET',
|
|
179
183
|
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { statement: {
|
|
180
184
|
code: 'STATEMENT',
|
|
185
|
+
}, summary: {
|
|
186
|
+
code: 'SUMMARY',
|
|
181
187
|
} }),
|
|
182
188
|
},
|
|
183
189
|
merchants: {
|
|
@@ -190,7 +196,9 @@ export const APP_CODES = {
|
|
|
190
196
|
},
|
|
191
197
|
paymentTechnology: {
|
|
192
198
|
code: 'PAYMENT_TECHNOLOGY_WALLET',
|
|
193
|
-
functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
|
|
199
|
+
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { summary: {
|
|
200
|
+
code: 'SUMMARY',
|
|
201
|
+
} }),
|
|
194
202
|
},
|
|
195
203
|
},
|
|
196
204
|
},
|
package/build/utils/country.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { toast } from 'react-hot-toast';
|
|
2
1
|
export function getCountryNameByISO(countryCode) {
|
|
3
2
|
var _a, _b, _c;
|
|
4
3
|
try {
|
|
@@ -7,6 +6,6 @@ export function getCountryNameByISO(countryCode) {
|
|
|
7
6
|
// eslint-disable-next-line
|
|
8
7
|
}
|
|
9
8
|
catch (error) {
|
|
10
|
-
|
|
9
|
+
console.error((_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.message);
|
|
11
10
|
}
|
|
12
11
|
}
|
package/build/utils/currency.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { toast } from 'react-hot-toast';
|
|
2
1
|
import { getCurrenciesIcon, SUPPORTED_CURRENCY_DETAILS, SUPPORTED_CURRENCY_CODES } from '../constants/index.js';
|
|
3
2
|
import { CurrencyCodes } from '../types/index.js';
|
|
4
3
|
export const conversionTypesLabels = {
|
|
@@ -25,7 +24,7 @@ export const intlCurrency = (charge, currencyType) => {
|
|
|
25
24
|
// eslint-disable-next-line
|
|
26
25
|
}
|
|
27
26
|
catch (error) {
|
|
28
|
-
|
|
27
|
+
console.error((_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.message);
|
|
29
28
|
return '0';
|
|
30
29
|
}
|
|
31
30
|
};
|
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.153-test.13",
|
|
5
|
+
"testVersion": 13,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -163,4 +163,4 @@
|
|
|
163
163
|
"publishConfig": {
|
|
164
164
|
"registry": "https://registry.npmjs.org/"
|
|
165
165
|
}
|
|
166
|
-
}
|
|
166
|
+
}
|
package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreementCell';
|