@tap-payments/os-micro-frontend-shared 0.1.434 → 0.1.435-test.1-test.2
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 +0 -1
- package/build/components/Chip/style.d.ts +0 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/Dialog/style.d.ts +0 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/PaymentSourceFilter/PaymentInitiated.d.ts +3 -3
- package/build/components/PaymentSourceFilter/PaymentSourceFilter.d.ts +3 -3
- package/build/components/PaymentSourceFilter/type.d.ts +3 -3
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SearchButton/styles.d.ts +0 -1
- package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableHeader/TableView/ViewsDropdown.js +2 -0
- package/build/components/TableHeader/TableView/hooks/useCustomTableViews.js +22 -52
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/VirtualTables/components/style.d.ts +0 -1
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +5 -0
- package/build/constants/table/cell/chargeTableCellWidth.js +5 -0
- package/build/types/charge.d.ts +19 -0
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import { GetSourceAnimationFunction } from './type';
|
|
4
3
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
4
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { PaymentSourceFilters } from '../index.js';
|
|
1
2
|
import { CustomColumnFilterProps } from '../VirtualTables';
|
|
2
|
-
import { Filter } from './type';
|
|
3
3
|
interface PaymentInitiatedFilterProps extends Partial<CustomColumnFilterProps> {
|
|
4
|
-
filters?:
|
|
5
|
-
setFilters?: (filters:
|
|
4
|
+
filters?: PaymentSourceFilters;
|
|
5
|
+
setFilters?: (filters: PaymentSourceFilters) => void;
|
|
6
6
|
}
|
|
7
7
|
export default function PaymentInitiatedFilter({ filters, setFilters }: Readonly<PaymentInitiatedFilterProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { PaymentSourceFilters } from '../index.js';
|
|
1
2
|
import { SourceFilter } from '../../types/index.js';
|
|
2
3
|
import { CustomColumnFilterProps } from '../VirtualTables';
|
|
3
|
-
import { Filter } from './type';
|
|
4
4
|
interface SourceFilterProps extends CustomColumnFilterProps {
|
|
5
|
-
filters:
|
|
6
|
-
setFilters: (filters:
|
|
5
|
+
filters: PaymentSourceFilters;
|
|
6
|
+
setFilters: (filters: PaymentSourceFilters) => void;
|
|
7
7
|
showPaymentSchemes?: boolean;
|
|
8
8
|
showPaymentMethods?: boolean;
|
|
9
9
|
showPaymentInitiated?: boolean;
|
|
@@ -3,9 +3,9 @@ export interface PaymentSourceFilters {
|
|
|
3
3
|
payment_scheme?: string[];
|
|
4
4
|
payment_initiated?: string[];
|
|
5
5
|
issuer_countries?: string[];
|
|
6
|
+
auth_mode?: string[];
|
|
6
7
|
}
|
|
7
|
-
export type Filter = Record<string, boolean | string | number | string[]>;
|
|
8
8
|
export interface Filters {
|
|
9
|
-
filters:
|
|
10
|
-
setFilters: (filters:
|
|
9
|
+
filters: PaymentSourceFilters;
|
|
10
|
+
setFilters: (filters: PaymentSourceFilters) => void;
|
|
11
11
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import { TableMode } from '../../../../types/index.js';
|
|
4
3
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
4
|
tableMode?: TableMode | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const AgreementCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledAgreementCardIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const CardContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
3
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
3
|
isTextShown?: boolean | undefined;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
4
|
export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
3
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
3
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -74,6 +74,7 @@ function ViewsDropdown({ open, selectedViewInfo, setSelectedViewInfo, anchorEl,
|
|
|
74
74
|
setDraftColumns(null);
|
|
75
75
|
clearOriginalState();
|
|
76
76
|
forceClose();
|
|
77
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
77
78
|
}
|
|
78
79
|
function applyAndClose() {
|
|
79
80
|
const isDefaultView = selectedViewInfo.id === (defaultTemplate === null || defaultTemplate === void 0 ? void 0 : defaultTemplate.id) || selectedViewInfo.id === 'default' || (defaultTemplate === null || defaultTemplate === void 0 ? void 0 : defaultTemplate.default) === true;
|
|
@@ -88,6 +89,7 @@ function ViewsDropdown({ open, selectedViewInfo, setSelectedViewInfo, anchorEl,
|
|
|
88
89
|
setDraftColumns(null);
|
|
89
90
|
clearOriginalState();
|
|
90
91
|
forceClose();
|
|
92
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
91
93
|
}
|
|
92
94
|
function toggleColumn(columnName) {
|
|
93
95
|
if (!draftColumns)
|
|
@@ -9,23 +9,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { updateColumnSelection } from '../../../../utils/index.js';
|
|
12
|
-
import { handleTemplateUpdate,
|
|
12
|
+
import { handleTemplateUpdate, mapColumnsToLayoutSection, convertTemplateToColumnsView, convertTemplatesToColumnsView, isTemplateMatchingId, replaceTemplateInList, updateCurrentTemplate, } from '../utils';
|
|
13
13
|
export function useCustomTableViews({ templates, setTemplates, createTemplate, updateTemplate, deleteTemplate, tableMode, lang = 'en', columnModifiers, }) {
|
|
14
|
-
const [
|
|
14
|
+
const [selectedViewId, setSelectedViewId] = useState(undefined);
|
|
15
15
|
const onCreateCustomView = useCallback(({ name, layout }) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
var _a;
|
|
17
17
|
const created = yield createTemplate({ name, layout: [layout] });
|
|
18
18
|
if (created) {
|
|
19
19
|
const normalized = handleTemplateUpdate(created);
|
|
20
20
|
setTemplates((prev) => [...prev, normalized]);
|
|
21
|
-
|
|
21
|
+
setSelectedViewId(normalized.id);
|
|
22
22
|
return { id: created.id, name: (_a = created.name) !== null && _a !== void 0 ? _a : '' };
|
|
23
23
|
}
|
|
24
|
-
}), [createTemplate, setTemplates
|
|
24
|
+
}), [createTemplate, setTemplates]);
|
|
25
25
|
const onDeleteCustomView = useCallback((templateId) => __awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
yield deleteTemplate(templateId);
|
|
27
27
|
setTemplates((prev) => prev.filter((t) => !isTemplateMatchingId(t, templateId)));
|
|
28
|
-
|
|
28
|
+
setSelectedViewId((current) => (current === templateId ? undefined : current));
|
|
29
29
|
}), [deleteTemplate, setTemplates]);
|
|
30
30
|
const onUpdateDefaultView = useCallback((columns) => {
|
|
31
31
|
const defaultTemplate = templates.find((t) => t.default);
|
|
@@ -43,9 +43,9 @@ export function useCustomTableViews({ templates, setTemplates, createTemplate, u
|
|
|
43
43
|
if (updated) {
|
|
44
44
|
const normalized = handleTemplateUpdate(updated);
|
|
45
45
|
setTemplates((prev) => replaceTemplateInList(prev, (t) => isTemplateMatchingId(t, viewId), normalized));
|
|
46
|
-
|
|
46
|
+
setSelectedViewId(normalized.id);
|
|
47
47
|
}
|
|
48
|
-
}), [templates,
|
|
48
|
+
}), [templates, updateTemplate, setTemplates]);
|
|
49
49
|
const customViews = useMemo(() => ({
|
|
50
50
|
templates,
|
|
51
51
|
onCreateCustomView,
|
|
@@ -54,51 +54,21 @@ export function useCustomTableViews({ templates, setTemplates, createTemplate, u
|
|
|
54
54
|
onUpdateDefaultView,
|
|
55
55
|
}), [templates, onCreateCustomView, onEditCustomView, onDeleteCustomView, onUpdateDefaultView]);
|
|
56
56
|
const onViewChange = useCallback((view) => {
|
|
57
|
-
|
|
57
|
+
setSelectedViewId(view === null || view === void 0 ? void 0 : view.id);
|
|
58
58
|
}, []);
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var _a;
|
|
65
|
-
return ({
|
|
66
|
-
name: item.name,
|
|
67
|
-
selected: item.selected,
|
|
68
|
-
menuItems: ((_a = item.menuItems) !== null && _a !== void 0 ? _a : []).map((menuItem) => ({
|
|
69
|
-
name: menuItem.name,
|
|
70
|
-
selected: menuItem.selected,
|
|
71
|
-
})),
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
const columnsSignature = (_b = selectedView.columns) !== null && _b !== void 0 ? _b : [];
|
|
75
|
-
const viewWithLayout = selectedView;
|
|
76
|
-
const layoutSignature = ((_c = viewWithLayout.layout) !== null && _c !== void 0 ? _c : []).map((layout) => {
|
|
77
|
-
var _a;
|
|
78
|
-
return ({
|
|
79
|
-
code: layout.code,
|
|
80
|
-
columns: ((_a = layout.columns) !== null && _a !== void 0 ? _a : []).map((col) => col.code),
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
return JSON.stringify({
|
|
84
|
-
id: selectedView.id,
|
|
85
|
-
columns: columnsSignature,
|
|
86
|
-
submenu: submenuSignature,
|
|
87
|
-
layout: layoutSignature,
|
|
88
|
-
});
|
|
89
|
-
}, [selectedView]);
|
|
90
|
-
const columnsViewData = useMemo(() => {
|
|
91
|
-
const currentSelectedView = selectedView;
|
|
92
|
-
let templateColumnsView = [];
|
|
93
|
-
if (currentSelectedView) {
|
|
94
|
-
const viewWithLayout = currentSelectedView;
|
|
95
|
-
const hasLayout = !!viewWithLayout.layout;
|
|
96
|
-
templateColumnsView = convertTemplateToColumnsView(viewWithLayout, tableMode);
|
|
97
|
-
if (templateColumnsView.length === 0 && !hasLayout && (templates === null || templates === void 0 ? void 0 : templates.length) > 0) {
|
|
98
|
-
templateColumnsView = convertTemplatesToColumnsView(templates, tableMode);
|
|
99
|
-
}
|
|
59
|
+
const activeTemplate = useMemo(() => {
|
|
60
|
+
if (!(templates === null || templates === void 0 ? void 0 : templates.length))
|
|
61
|
+
return undefined;
|
|
62
|
+
if (!selectedViewId || selectedViewId === 'default') {
|
|
63
|
+
return templates.find((template) => template.default) || templates[0];
|
|
100
64
|
}
|
|
101
|
-
|
|
65
|
+
return (templates.find((template) => isTemplateMatchingId(template, selectedViewId)) ||
|
|
66
|
+
templates.find((template) => template.default) ||
|
|
67
|
+
templates[0]);
|
|
68
|
+
}, [templates, selectedViewId]);
|
|
69
|
+
const columnsViewData = useMemo(() => {
|
|
70
|
+
let templateColumnsView = activeTemplate ? convertTemplateToColumnsView(activeTemplate, tableMode) : [];
|
|
71
|
+
if (templateColumnsView.length === 0 && (templates === null || templates === void 0 ? void 0 : templates.length) > 0) {
|
|
102
72
|
templateColumnsView = convertTemplatesToColumnsView(templates, tableMode);
|
|
103
73
|
}
|
|
104
74
|
if (templateColumnsView.length === 0) {
|
|
@@ -116,11 +86,11 @@ export function useCustomTableViews({ templates, setTemplates, createTemplate, u
|
|
|
116
86
|
return result;
|
|
117
87
|
}
|
|
118
88
|
return templateColumnsView;
|
|
119
|
-
}, [tableMode, templates,
|
|
89
|
+
}, [tableMode, templates, activeTemplate, columnModifiers]);
|
|
120
90
|
return {
|
|
121
91
|
customViews,
|
|
122
92
|
onViewChange,
|
|
123
93
|
columnsViewData,
|
|
124
|
-
selectedViewId
|
|
94
|
+
selectedViewId,
|
|
125
95
|
};
|
|
126
96
|
}
|
|
@@ -29,6 +29,11 @@ export declare const chargeTableCellWidth: {
|
|
|
29
29
|
readonly text: "180px";
|
|
30
30
|
readonly sheet: "250px";
|
|
31
31
|
};
|
|
32
|
+
readonly auth_code_reference: {
|
|
33
|
+
readonly default: "155px";
|
|
34
|
+
readonly text: "180px";
|
|
35
|
+
readonly sheet: "250px";
|
|
36
|
+
};
|
|
32
37
|
readonly order: {
|
|
33
38
|
readonly default: "80px";
|
|
34
39
|
readonly text: "80px";
|
package/build/types/charge.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export interface Charge {
|
|
|
117
117
|
status: AuthenticationStatus;
|
|
118
118
|
threeDSecure?: {
|
|
119
119
|
status: AuthenticationStatus;
|
|
120
|
+
provider: string;
|
|
120
121
|
};
|
|
121
122
|
};
|
|
122
123
|
payment: {
|
|
@@ -332,6 +333,24 @@ export interface Charge {
|
|
|
332
333
|
retailer: {
|
|
333
334
|
id: string;
|
|
334
335
|
};
|
|
336
|
+
payment_provider?: {
|
|
337
|
+
technology?: {
|
|
338
|
+
id: string;
|
|
339
|
+
brand?: {
|
|
340
|
+
name?: {
|
|
341
|
+
en: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
institution?: {
|
|
346
|
+
id: string;
|
|
347
|
+
brand?: {
|
|
348
|
+
name?: {
|
|
349
|
+
en: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
335
354
|
};
|
|
336
355
|
refunds: {
|
|
337
356
|
summary: {
|
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.435-test.1-test.2",
|
|
5
|
+
"testVersion": 2,
|
|
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
|
+
}
|