@tap-payments/os-micro-frontend-shared 0.1.333-test.4 → 0.1.334
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/AnimatedSpinnerIcon/style.d.ts +1 -0
- package/build/components/Chip/style.d.ts +1 -0
- package/build/components/CountBadge/style.d.ts +1 -0
- package/build/components/Dialog/style.d.ts +1 -0
- package/build/components/FlippingCard/style.d.ts +1 -0
- package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
- package/build/components/JSONViewer/style.d.ts +1 -0
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
- package/build/components/SearchButton/styles.d.ts +1 -0
- package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -0
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
- package/build/components/TableReports/style.d.ts +1 -0
- package/build/components/VirtualTables/components/style.d.ts +1 -0
- package/build/utils/segment.d.ts +20 -13
- package/build/utils/segment.js +17 -13
- package/build/utils/source.d.ts +1 -0
- package/build/utils/source.js +5 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { GetSourceAnimationFunction } from './type';
|
|
3
4
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
5
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { TableMode } from '../../../../types/index.js';
|
|
3
4
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
5
|
tableMode?: TableMode | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
3
4
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
3
4
|
isTextShown?: boolean | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
package/build/utils/segment.d.ts
CHANGED
|
@@ -1,59 +1,66 @@
|
|
|
1
1
|
import { Segment, SegmentData } from '../types/index.js';
|
|
2
2
|
export declare const getSegmentData: (segments: Segment[], activeSegmentId: string, activeSegments: Segment[]) => SegmentData;
|
|
3
|
-
export declare const getBusinessSegmentConfig: (
|
|
4
|
-
merchantsIds: string[];
|
|
5
|
-
options?: Record<string, unknown> | undefined;
|
|
6
|
-
}) => {
|
|
3
|
+
export declare const getBusinessSegmentConfig: (merchantsIds: string[]) => {
|
|
7
4
|
business?: undefined;
|
|
8
5
|
} | {
|
|
9
6
|
business: {
|
|
10
7
|
merchant: string[];
|
|
11
8
|
};
|
|
12
9
|
};
|
|
13
|
-
export declare const getNonBusinessSegmentConfig: ({ segmentCode, segmentId, segmentTypeCode,
|
|
10
|
+
export declare const getNonBusinessSegmentConfig: ({ segmentCode, segmentId, segmentTypeCode, }: {
|
|
14
11
|
segmentCode: string;
|
|
15
12
|
segmentTypeCode: string;
|
|
16
13
|
segmentId: string;
|
|
17
|
-
merchantsIds?: string[] | undefined;
|
|
18
|
-
options?: Record<string, unknown> | undefined;
|
|
19
14
|
}) => {
|
|
20
|
-
business?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
business: {
|
|
23
|
-
merchant: string[];
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
15
|
payment_provider: {
|
|
27
16
|
technology: {
|
|
28
17
|
orchestrator: string[];
|
|
18
|
+
gateway?: undefined;
|
|
29
19
|
};
|
|
30
20
|
institution?: undefined;
|
|
31
21
|
};
|
|
22
|
+
platform?: undefined;
|
|
23
|
+
development_agency?: undefined;
|
|
32
24
|
} | {
|
|
33
25
|
payment_provider: {
|
|
34
26
|
technology: {
|
|
35
27
|
gateway: string[];
|
|
28
|
+
orchestrator?: undefined;
|
|
36
29
|
};
|
|
37
30
|
institution?: undefined;
|
|
38
31
|
};
|
|
32
|
+
platform?: undefined;
|
|
33
|
+
development_agency?: undefined;
|
|
39
34
|
} | {
|
|
40
35
|
payment_provider: {
|
|
41
36
|
institution: {
|
|
42
37
|
facilitator: string[];
|
|
38
|
+
acquirer?: undefined;
|
|
43
39
|
};
|
|
44
40
|
technology?: undefined;
|
|
45
41
|
};
|
|
42
|
+
platform?: undefined;
|
|
43
|
+
development_agency?: undefined;
|
|
46
44
|
} | {
|
|
47
45
|
payment_provider: {
|
|
48
46
|
institution: {
|
|
49
47
|
acquirer: string[];
|
|
48
|
+
facilitator?: undefined;
|
|
50
49
|
};
|
|
51
50
|
technology?: undefined;
|
|
52
51
|
};
|
|
52
|
+
platform?: undefined;
|
|
53
|
+
development_agency?: undefined;
|
|
53
54
|
} | {
|
|
54
55
|
platform: string[];
|
|
55
56
|
payment_provider?: undefined;
|
|
57
|
+
development_agency?: undefined;
|
|
56
58
|
} | {
|
|
57
59
|
development_agency: string[];
|
|
58
60
|
payment_provider?: undefined;
|
|
61
|
+
platform?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
payment_provider?: undefined;
|
|
64
|
+
platform?: undefined;
|
|
65
|
+
development_agency?: undefined;
|
|
59
66
|
};
|
package/build/utils/segment.js
CHANGED
|
@@ -11,50 +11,54 @@ export const getSegmentData = (segments, activeSegmentId, activeSegments) => {
|
|
|
11
11
|
return Object.assign(Object.assign({}, newSegment), { defaultCountry,
|
|
12
12
|
defaultEntity });
|
|
13
13
|
};
|
|
14
|
-
export const getBusinessSegmentConfig = (
|
|
14
|
+
export const getBusinessSegmentConfig = (merchantsIds) => {
|
|
15
15
|
if (!merchantsIds || !(merchantsIds === null || merchantsIds === void 0 ? void 0 : merchantsIds.length))
|
|
16
16
|
return {};
|
|
17
|
-
return { business:
|
|
17
|
+
return { business: { merchant: merchantsIds } };
|
|
18
18
|
};
|
|
19
|
-
export const getNonBusinessSegmentConfig = ({ segmentCode, segmentId, segmentTypeCode,
|
|
19
|
+
export const getNonBusinessSegmentConfig = ({ segmentCode, segmentId, segmentTypeCode, }) => {
|
|
20
20
|
const code = SEGMENT_CODE.PSP === segmentTypeCode ? segmentCode : segmentTypeCode;
|
|
21
|
-
const specialBusinessSegmentsIDs = ['payment_facilitator_14po8231419aIsi1fN7F385'];
|
|
22
|
-
if (specialBusinessSegmentsIDs.includes(segmentId)) {
|
|
23
|
-
return getBusinessSegmentConfig({ merchantsIds, options });
|
|
24
|
-
}
|
|
25
21
|
if (code === SEGMENT_CODE.PAYMENT_TECHNOLOGY) {
|
|
26
22
|
return {
|
|
27
23
|
payment_provider: {
|
|
28
|
-
technology:
|
|
24
|
+
technology: {
|
|
25
|
+
orchestrator: [segmentId],
|
|
26
|
+
},
|
|
29
27
|
},
|
|
30
28
|
};
|
|
31
29
|
}
|
|
32
30
|
if (code === SEGMENT_CODE.PAYMENT_GATEWAY || code === SEGMENT_CODE.PAYMENT_GATEWAY_PROVIDER) {
|
|
33
31
|
return {
|
|
34
32
|
payment_provider: {
|
|
35
|
-
technology:
|
|
33
|
+
technology: {
|
|
34
|
+
gateway: [segmentId],
|
|
35
|
+
},
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
if (code === SEGMENT_CODE.PAYMENT_FACILITATOR) {
|
|
40
40
|
return {
|
|
41
41
|
payment_provider: {
|
|
42
|
-
institution:
|
|
42
|
+
institution: {
|
|
43
|
+
facilitator: [segmentId],
|
|
44
|
+
},
|
|
43
45
|
},
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
if (code === SEGMENT_CODE.PAYMENT_ACQUIRER) {
|
|
47
49
|
return {
|
|
48
50
|
payment_provider: {
|
|
49
|
-
institution:
|
|
51
|
+
institution: {
|
|
52
|
+
acquirer: [segmentId],
|
|
53
|
+
},
|
|
50
54
|
},
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
if (code === SEGMENT_CODE.PLATFORM) {
|
|
54
|
-
return
|
|
58
|
+
return { platform: [segmentId] };
|
|
55
59
|
}
|
|
56
60
|
if (code === SEGMENT_CODE.DEVELOPMENT) {
|
|
57
|
-
return
|
|
61
|
+
return { development_agency: [segmentId] };
|
|
58
62
|
}
|
|
59
63
|
return {};
|
|
60
64
|
};
|
package/build/utils/source.d.ts
CHANGED
package/build/utils/source.js
CHANGED
|
@@ -2,3 +2,8 @@ export const getPaymentTypeKey = (payment) => {
|
|
|
2
2
|
const walletTypeIcon = (payment === null || payment === void 0 ? void 0 : payment.wallet) === 'SV Wallet' ? 'walletStoredValue' : 'walletPassThru';
|
|
3
3
|
return (payment === null || payment === void 0 ? void 0 : payment.type) === 'Wallet' ? walletTypeIcon : payment === null || payment === void 0 ? void 0 : payment.type;
|
|
4
4
|
};
|
|
5
|
+
const PAYMENT_SOURCE_ALIASES = {
|
|
6
|
+
AMERICAN_EXPRESS: 'AMEX',
|
|
7
|
+
};
|
|
8
|
+
const normalizePaymentSource = (value) => { var _a; return (_a = PAYMENT_SOURCE_ALIASES[value.toUpperCase()]) !== null && _a !== void 0 ? _a : value.toUpperCase(); };
|
|
9
|
+
export const isSamePaymentSource = (a, b) => !!a && !!b && normalizePaymentSource(a) === normalizePaymentSource(b);
|
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.334",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"registry": "https://registry.npmjs.org/"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|