@tap-payments/os-micro-frontend-shared 0.1.264 → 0.1.266-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.
Files changed (83) hide show
  1. package/build/components/Chip/style.d.ts +0 -1
  2. package/build/components/CountBadge/style.d.ts +0 -1
  3. package/build/components/Dialog/style.d.ts +0 -1
  4. package/build/components/FlippingCard/style.d.ts +0 -1
  5. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  6. package/build/components/JSONViewer/style.d.ts +0 -1
  7. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  8. package/build/components/Menu/Menu.d.ts +1 -1
  9. package/build/components/MerchantsDropdown/BrandItem.d.ts +13 -0
  10. package/build/components/MerchantsDropdown/BrandItem.js +71 -0
  11. package/build/components/MerchantsDropdown/EntityItem.d.ts +14 -0
  12. package/build/components/MerchantsDropdown/EntityItem.js +69 -0
  13. package/build/components/MerchantsDropdown/EntityList.d.ts +11 -0
  14. package/build/components/MerchantsDropdown/EntityList.js +7 -0
  15. package/build/components/MerchantsDropdown/MerchantItem.d.ts +13 -0
  16. package/build/components/MerchantsDropdown/MerchantItem.js +27 -0
  17. package/build/components/MerchantsDropdown/MerchantsDropdown.d.ts +5 -0
  18. package/build/components/MerchantsDropdown/MerchantsDropdown.js +49 -0
  19. package/build/components/MerchantsDropdown/MerchantsList.d.ts +12 -0
  20. package/build/components/MerchantsDropdown/MerchantsList.js +18 -0
  21. package/build/components/MerchantsDropdown/hooks.d.ts +19 -0
  22. package/build/components/MerchantsDropdown/hooks.js +54 -0
  23. package/build/components/MerchantsDropdown/index.d.ts +1 -0
  24. package/build/components/MerchantsDropdown/index.js +1 -0
  25. package/build/components/MerchantsDropdown/style.d.ts +38 -0
  26. package/build/components/MerchantsDropdown/style.js +155 -0
  27. package/build/components/MerchantsDropdown/type.d.ts +14 -0
  28. package/build/components/MerchantsDropdown/type.js +1 -0
  29. package/build/components/ReceiptsViewer/ReceiptViewer.d.ts +2 -0
  30. package/build/components/ReceiptsViewer/ReceiptViewer.js +16 -0
  31. package/build/components/ReceiptsViewer/ReceiptsViewer.d.ts +11 -0
  32. package/build/components/ReceiptsViewer/ReceiptsViewer.js +7 -0
  33. package/build/components/ReceiptsViewer/index.d.ts +1 -0
  34. package/build/components/ReceiptsViewer/index.js +1 -0
  35. package/build/components/ReceiptsViewer/style.d.ts +4 -0
  36. package/build/components/ReceiptsViewer/style.js +7 -0
  37. package/build/components/ReceiptsViewer/type.d.ts +11 -0
  38. package/build/components/ReceiptsViewer/type.js +1 -0
  39. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  40. package/build/components/SearchButton/styles.d.ts +0 -1
  41. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  42. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  43. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  44. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  45. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  46. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  47. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  48. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  49. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  50. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  51. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  52. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  53. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  54. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  55. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  56. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  57. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  58. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  59. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  60. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  61. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  62. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  63. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  64. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  65. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  66. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  67. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  68. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  69. package/build/components/VirtualTables/components/style.d.ts +0 -1
  70. package/build/components/index.d.ts +2 -0
  71. package/build/components/index.js +2 -0
  72. package/build/constants/apps.d.ts +24 -0
  73. package/build/constants/apps.js +17 -1
  74. package/build/hooks/index.d.ts +1 -0
  75. package/build/hooks/index.js +1 -0
  76. package/build/hooks/useSelectedMerchantDetails.d.ts +10 -0
  77. package/build/hooks/useSelectedMerchantDetails.js +15 -0
  78. package/build/types/index.d.ts +1 -1
  79. package/build/types/index.js +1 -1
  80. package/build/types/merchant.d.ts +6 -0
  81. package/build/types/receipt.d.ts +4 -0
  82. package/build/types/receipt.js +1 -0
  83. package/package.json +3 -3
@@ -0,0 +1,155 @@
1
+ import Typography from '@mui/material/Typography';
2
+ import Box from '@mui/material/Box';
3
+ import { styled } from '@mui/material/styles';
4
+ import { Menu, MenuItem } from '../index.js';
5
+ export const Counter = styled(Box)(({ theme }) => ({
6
+ borderRadius: '50%',
7
+ background: theme.palette.divider,
8
+ width: 13,
9
+ height: 14,
10
+ fontSize: '8px',
11
+ fontWeight: 700,
12
+ display: 'flex',
13
+ alignItems: 'center',
14
+ justifyContent: 'center',
15
+ lineHeight: '10px',
16
+ }));
17
+ export const CountingInfo = styled(Box)(() => ({
18
+ display: 'flex',
19
+ alignItems: 'center',
20
+ gap: '4px',
21
+ '.arrow-icon': {
22
+ height: 12,
23
+ },
24
+ }));
25
+ export const Content = styled(Box)(() => ({
26
+ display: 'flex',
27
+ gap: '12px',
28
+ justifyContent: 'space-between',
29
+ flexGrow: 1,
30
+ width: '100%',
31
+ alignItems: 'center',
32
+ }));
33
+ export const MerchantInfo = styled(Box)(() => ({
34
+ display: 'flex',
35
+ flexDirection: 'column',
36
+ }));
37
+ export const SelectedBrand = styled(Box, { shouldForwardProp: (prop) => prop !== 'isOpen' })(({ isOpen, theme }) => (Object.assign(Object.assign({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '5px', cursor: 'pointer', padding: '8px', border: `1px solid ${theme.palette.divider}`, color: theme.palette.text.primary, background: theme.palette.common.white, borderRadius: '4px', height: 32, width: 'fit-content', minWidth: '89px', img: {
38
+ marginTop: '1px',
39
+ } }, (isOpen && {
40
+ borderColor: theme.palette.info.dark,
41
+ })), { '&:hover': {
42
+ background: theme.palette.divider,
43
+ } })));
44
+ export const Label = styled(Typography)(({ theme }) => ({
45
+ fontSize: '11px',
46
+ fontWeight: 500,
47
+ color: theme.palette.text.primary,
48
+ }));
49
+ export const CollapseIcon = styled('img', { shouldForwardProp: (props) => props !== 'expanded' })(({ theme, expanded }) => ({
50
+ transform: !expanded ? 'rotate(0deg)' : 'rotate(180deg)',
51
+ marginLeft: 'auto',
52
+ transition: theme.transitions.create('transform', {
53
+ duration: theme.transitions.duration.shortest,
54
+ }),
55
+ }));
56
+ export const LoadingRow = styled(Box)(() => ({
57
+ display: 'flex',
58
+ justifyContent: 'center',
59
+ alignItems: 'center',
60
+ paddingBlock: '4px',
61
+ borderTop: '1px solid #F2F2F2',
62
+ }));
63
+ export const StyledMenu = styled(Menu)({
64
+ '& .MuiPopper-dropdown': {
65
+ maxHeight: 700,
66
+ overflow: 'visible',
67
+ },
68
+ });
69
+ export var MenuItemStatusClasses;
70
+ (function (MenuItemStatusClasses) {
71
+ MenuItemStatusClasses["SELECTED"] = "Mui-selected";
72
+ MenuItemStatusClasses["ONLY_ONE"] = "Mui-only-one";
73
+ MenuItemStatusClasses["FLIPPED"] = "Mui-flipped";
74
+ MenuItemStatusClasses["SUBMENU_OPEN"] = "Mui-Submenu-open";
75
+ MenuItemStatusClasses["SUBMENU_FLIPPED"] = "Mui-Submenu-flipped";
76
+ })(MenuItemStatusClasses || (MenuItemStatusClasses = {}));
77
+ export const StyledMenuItem = styled(MenuItem)({
78
+ '--menuitem-border-rad': '4px',
79
+ backgroundColor: '#fff',
80
+ minHeight: 36,
81
+ '&:first-of-type': {
82
+ borderTopLeftRadius: 'var(--menuitem-border-rad)',
83
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
84
+ },
85
+ '&:last-of-type': {
86
+ borderBottomLeftRadius: 'var(--menuitem-border-rad)',
87
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
88
+ },
89
+ '&.Mui-Submenu-open': {
90
+ borderTopRightRadius: 0,
91
+ borderBottomRightRadius: 0,
92
+ '&.Mui-Submenu-flipped': {
93
+ borderTopLeftRadius: 0,
94
+ borderBottomLeftRadius: 0,
95
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
96
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
97
+ },
98
+ },
99
+ '&.Mui-selected': {
100
+ boxShadow: '0px 0px 16px rgba(0, 0, 0, 0.13)',
101
+ zIndex: 1,
102
+ },
103
+ });
104
+ export const StyledChildMenuItem = styled(StyledMenuItem)({
105
+ '&:first-of-type': {
106
+ borderTopLeftRadius: 0,
107
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
108
+ '&.Mui-flipped': {
109
+ borderTopLeftRadius: 'var(--menuitem-border-rad)',
110
+ borderTopRightRadius: 0,
111
+ },
112
+ },
113
+ '&:last-of-type': {
114
+ borderBottomLeftRadius: 'var(--menuitem-border-rad)',
115
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
116
+ },
117
+ '&.Mui-Submenu-open': {
118
+ borderTopRightRadius: 0,
119
+ borderBottomRightRadius: 0,
120
+ '&.Mui-Submenu-flipped': {
121
+ borderTopLeftRadius: 0,
122
+ borderBottomLeftRadius: 0,
123
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
124
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
125
+ },
126
+ },
127
+ '&.Mui-only-one': {
128
+ borderTopLeftRadius: 0,
129
+ borderBottomLeftRadius: 0,
130
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
131
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
132
+ '&.Mui-flipped': {
133
+ borderTopLeftRadius: 'var(--menuitem-border-rad)',
134
+ borderBottomLeftRadius: 'var(--menuitem-border-rad)',
135
+ borderTopRightRadius: 0,
136
+ borderBottomRightRadius: 0,
137
+ },
138
+ '&.Mui-Submenu-open': {
139
+ borderTopRightRadius: 0,
140
+ borderBottomRightRadius: 0,
141
+ '&.Mui-Submenu-flipped': {
142
+ borderTopLeftRadius: 0,
143
+ borderBottomLeftRadius: 0,
144
+ borderTopRightRadius: 'var(--menuitem-border-rad)',
145
+ borderBottomRightRadius: 'var(--menuitem-border-rad)',
146
+ },
147
+ },
148
+ },
149
+ });
150
+ export const StyledMenuItemHeader = styled(StyledChildMenuItem)({
151
+ backgroundColor: '#FAFAFA',
152
+ color: '#8D8D94',
153
+ padding: '10px 16px',
154
+ borderBottom: '1px solid #F2F2F2',
155
+ });
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { SxProps } from '@mui/material/styles';
3
+ import { Brand, MerchantInfo } from '../../types/index.js';
4
+ export interface MerchantsDropdownProps {
5
+ brands: Brand[];
6
+ label: string;
7
+ sx?: SxProps;
8
+ selectedValue?: MerchantInfo;
9
+ isLoading?: boolean;
10
+ isFetchingNextPage?: boolean;
11
+ isDisabled?: boolean;
12
+ onValueChange: (merchant: Required<MerchantInfo>) => void;
13
+ renderBrandLogo: (fileId: string) => React.ReactNode;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReceiptViewerProps } from './type';
2
+ export default function ReceiptViewer({ isOpen, receipt, order, appWindow, onClose }: Readonly<ReceiptViewerProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Box from '@mui/material/Box';
3
+ import { AppWindowWrapper } from '../index.js';
4
+ import { Wrapper } from './style';
5
+ export default function ReceiptViewer({ isOpen, receipt, order, appWindow, onClose }) {
6
+ return (_jsx(AppWindowWrapper, Object.assign({ isOpen: isOpen, onClose: () => {
7
+ onClose(receipt.id);
8
+ }, initialPosition: {
9
+ x: 1000 - 20 * order,
10
+ }, windowProps: {
11
+ titleBarText: 'Receipt',
12
+ mainAppIsMinimized: appWindow === null || appWindow === void 0 ? void 0 : appWindow.isMinimized,
13
+ mainAppOrder: appWindow === null || appWindow === void 0 ? void 0 : appWindow.order,
14
+ showSectionsButton: false,
15
+ }, defaultWindowWidth: 502, defaultWindowHeight: 745 }, { children: _jsx(Wrapper, { children: _jsx(Box, { sx: { height: 715, overflow: 'auto' }, dangerouslySetInnerHTML: { __html: receipt.content } }) }) })));
16
+ }
@@ -0,0 +1,11 @@
1
+ import { Receipt } from '../../types/index.js';
2
+ type ReceiptsViewerProps = {
3
+ receipts: Receipt[];
4
+ appWindow?: {
5
+ isMinimized?: boolean;
6
+ order?: number;
7
+ };
8
+ onCloseReceipt: (id: string) => void;
9
+ };
10
+ export default function ReceiptsViewer({ receipts, onCloseReceipt, appWindow }: Readonly<ReceiptsViewerProps>): import("react/jsx-runtime").JSX.Element | null;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import ReceiptViewer from './ReceiptViewer';
3
+ export default function ReceiptsViewer({ receipts, onCloseReceipt, appWindow }) {
4
+ if (!receipts.length)
5
+ return null;
6
+ return (_jsx(_Fragment, { children: receipts.map((receipt, index) => (_jsx(ReceiptViewer, { order: index, isOpen: true, onClose: (id) => onCloseReceipt(id), receipt: receipt, appWindow: appWindow }, receipt.id))) }));
7
+ }
@@ -0,0 +1 @@
1
+ export { default as ReceiptsViewer } from './ReceiptsViewer';
@@ -0,0 +1 @@
1
+ export { default as ReceiptsViewer } from './ReceiptsViewer';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,7 @@
1
+ import { Box, styled } from '@mui/material';
2
+ export const Wrapper = styled(Box)(({ theme }) => ({
3
+ background: theme.palette.common.white,
4
+ width: '100%',
5
+ height: '100%',
6
+ overflow: 'auto',
7
+ }));
@@ -0,0 +1,11 @@
1
+ import { Receipt } from '../../types/index.js';
2
+ export interface ReceiptViewerProps {
3
+ isOpen: boolean;
4
+ receipt: Receipt;
5
+ order: number;
6
+ appWindow?: {
7
+ isMinimized?: boolean;
8
+ order?: number;
9
+ };
10
+ onClose: (id: string) => void;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | 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 BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | 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
  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 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 UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | 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 DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | 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 ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | 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 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 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 MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | 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>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -135,3 +135,5 @@ export * from './MerchantCurrencyDropdown';
135
135
  export * from './OpenFileInNewTab';
136
136
  export * from './FilePreview';
137
137
  export * from './FileInputPreview';
138
+ export * from './ReceiptsViewer';
139
+ export * from './MerchantsDropdown';
@@ -135,3 +135,5 @@ export * from './MerchantCurrencyDropdown';
135
135
  export * from './OpenFileInNewTab';
136
136
  export * from './FilePreview';
137
137
  export * from './FileInputPreview';
138
+ export * from './ReceiptsViewer';
139
+ export * from './MerchantsDropdown';
@@ -193,6 +193,30 @@ export declare const APP_CODES: {
193
193
  intents: {
194
194
  code: string;
195
195
  functions: {
196
+ flagBalance: {
197
+ code: string;
198
+ };
199
+ releaseBalance: {
200
+ code: string;
201
+ };
202
+ refund: {
203
+ code: string;
204
+ };
205
+ charge: {
206
+ code: string;
207
+ };
208
+ flag: {
209
+ code: string;
210
+ };
211
+ releaseFlag: {
212
+ code: string;
213
+ };
214
+ createCharge: {
215
+ code: string;
216
+ };
217
+ viewReceipt: {
218
+ code: string;
219
+ };
196
220
  view: {
197
221
  code: string;
198
222
  };
@@ -81,7 +81,23 @@ export const APP_CODES = {
81
81
  },
82
82
  intents: {
83
83
  code: 'INTENTS',
84
- functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
84
+ functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), { flagBalance: {
85
+ code: 'FLAG BALANCE',
86
+ }, releaseBalance: {
87
+ code: 'RELEASE BALANCE',
88
+ }, refund: {
89
+ code: 'REFUND',
90
+ }, charge: {
91
+ code: 'CHARGE',
92
+ }, flag: {
93
+ code: 'FLAG',
94
+ }, releaseFlag: {
95
+ code: 'RELEASE FLAG',
96
+ }, createCharge: {
97
+ code: 'CREATE_CHARGE',
98
+ }, viewReceipt: {
99
+ code: 'RECEIPT',
100
+ } }),
85
101
  },
86
102
  authorization: {
87
103
  code: 'AUTHORIZATIONS',
@@ -12,3 +12,4 @@ export * from './useCountdown';
12
12
  export * from './useAppsInfo';
13
13
  export * from './useAppEventPublisher';
14
14
  export * from './useAppEventListener';
15
+ export * from './useSelectedMerchantDetails';
@@ -12,3 +12,4 @@ export * from './useCountdown';
12
12
  export * from './useAppsInfo';
13
13
  export * from './useAppEventPublisher';
14
14
  export * from './useAppEventListener';
15
+ export * from './useSelectedMerchantDetails';
@@ -0,0 +1,10 @@
1
+ import { Brand, Entity, Merchant, MerchantInfo } from '../types/index.js';
2
+ /**
3
+ * Custom hook to get selected merchant details
4
+ */
5
+ export declare const useSelectedMerchantDetails: (selectedValue: MerchantInfo | undefined, selectedBrand?: Brand) => {
6
+ selectedBrand: Brand | undefined;
7
+ selectedEntity: (import("../types/index.js").EntityDetails & Entity) | undefined;
8
+ selectedMerchant: Merchant | undefined;
9
+ displayName: string;
10
+ };
@@ -0,0 +1,15 @@
1
+ import { useMemo } from 'react';
2
+ /**
3
+ * Custom hook to get selected merchant details
4
+ */
5
+ export const useSelectedMerchantDetails = (selectedValue, selectedBrand) => {
6
+ const selectedEntity = useMemo(() => selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.entities.find((entity) => entity.id === (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.entityId)), [selectedBrand, selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.entityId]);
7
+ const selectedMerchant = useMemo(() => { var _a; return (_a = selectedEntity === null || selectedEntity === void 0 ? void 0 : selectedEntity.merchants) === null || _a === void 0 ? void 0 : _a.find((merchant) => merchant.id === (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.merchantId)); }, [selectedEntity, selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.merchantId]);
8
+ const displayName = useMemo(() => { var _a, _b; return (_b = (_a = selectedMerchant === null || selectedMerchant === void 0 ? void 0 : selectedMerchant.display_name) !== null && _a !== void 0 ? _a : selectedMerchant === null || selectedMerchant === void 0 ? void 0 : selectedMerchant.legacy_id) !== null && _b !== void 0 ? _b : 'Select'; }, [selectedMerchant]);
9
+ return {
10
+ selectedBrand,
11
+ selectedEntity,
12
+ selectedMerchant,
13
+ displayName,
14
+ };
15
+ };
@@ -27,4 +27,4 @@ export * from './tsUtils';
27
27
  export * from './appEvents';
28
28
  export * from './common';
29
29
  export * from './discount';
30
- export * from './destination';
30
+ export * from './receipt';
@@ -27,4 +27,4 @@ export * from './tsUtils';
27
27
  export * from './appEvents';
28
28
  export * from './common';
29
29
  export * from './discount';
30
- export * from './destination';
30
+ export * from './receipt';
@@ -202,3 +202,9 @@ export interface BusinessMerchant {
202
202
  created: number;
203
203
  }>;
204
204
  }
205
+ export interface MerchantInfo {
206
+ brandId?: string;
207
+ entityId?: string;
208
+ merchantId?: string;
209
+ legacyId?: string;
210
+ }