@tap-payments/os-micro-frontend-shared 0.1.382 → 0.1.384
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/TableCells/CustomCells/LinkCell/LinkCell.js +13 -14
- package/build/components/TableCells/CustomCells/LinkCell/style.d.ts +0 -3
- package/build/components/TableCells/CustomCells/LinkCell/style.js +0 -7
- package/build/constants/apps.d.ts +3 -0
- package/build/constants/apps.js +7 -1
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/package.json +1 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import { memo
|
|
3
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import toast from 'react-hot-toast';
|
|
4
|
+
import { Icon } from '../../../index.js';
|
|
4
5
|
import { gadientLink } from '../../../../constants/index.js';
|
|
5
6
|
import { copyText } from '../../../../utils/index.js';
|
|
6
|
-
import { Chip
|
|
7
|
+
import { Chip } from './style';
|
|
7
8
|
function LinkCell({ url }) {
|
|
8
|
-
const [isCopyActive, setIsCopyActive] = useState(false);
|
|
9
9
|
const onClick = () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
10
|
+
try {
|
|
11
|
+
copyText(url);
|
|
12
|
+
toast.success('Copied!');
|
|
13
|
+
}
|
|
14
|
+
catch (_a) {
|
|
15
|
+
toast.error('Failed to copy');
|
|
16
|
+
}
|
|
18
17
|
};
|
|
19
18
|
if (!url)
|
|
20
19
|
return null;
|
|
21
|
-
return (_jsx(
|
|
20
|
+
return (_jsx(Chip, Object.assign({ onClick: onClick }, { children: _jsx(Icon, { src: gadientLink, alt: "link" }) })));
|
|
22
21
|
}
|
|
23
22
|
export default memo(LinkCell);
|
|
@@ -2,6 +2,3 @@
|
|
|
2
2
|
export declare const Chip: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
4
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -10,10 +10,3 @@ export const Chip = styled(Box)(({ theme }) => ({
|
|
|
10
10
|
border: `1px solid ${theme.palette.divider}`,
|
|
11
11
|
cursor: 'pointer',
|
|
12
12
|
}));
|
|
13
|
-
export const TooltipWrapper = styled(Box)(() => ({
|
|
14
|
-
display: 'flex',
|
|
15
|
-
alignItems: 'center',
|
|
16
|
-
justifyContent: 'center',
|
|
17
|
-
fontSize: '12px',
|
|
18
|
-
gap: '4px',
|
|
19
|
-
}));
|
package/build/constants/apps.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tokenAppIcon, billingAppIcon, acceptanceAppIcon, payoutsAppIcon, protectAppIcon, customersAppIcon, businessesAppIcon, accountAppIcon, walletAppIcon, authenticationAppIcon, acceptanceWindowIcon, walletWindowIcon, billingWindowIcon, customersWindowIcon, payoutWindowIcon, protectWindowIcon, tokensWindowIcon, accountWindowIcon, businessesWindowIcon, authenticationWindowIcon, reportsWindowIcon, reportAppIcon, orderAppIcon, orderWindowIcon, leadAppIcon, leadTitleIcon, terminalAppIcon, terminalWindowIcon, } from './assets';
|
|
1
|
+
import { tokenAppIcon, billingAppIcon, acceptanceAppIcon, payoutsAppIcon, protectAppIcon, customersAppIcon, businessesAppIcon, accountAppIcon, walletAppIcon, authenticationAppIcon, acceptanceWindowIcon, walletWindowIcon, billingWindowIcon, customersWindowIcon, payoutWindowIcon, protectWindowIcon, tokensWindowIcon, accountWindowIcon, businessesWindowIcon, authenticationWindowIcon, reportsWindowIcon, reportAppIcon, orderAppIcon, orderWindowIcon, leadAppIcon, leadTitleIcon, terminalAppIcon, terminalWindowIcon, slaProcessAppIcon, slaProcessWindowIcon, } from './assets';
|
|
2
2
|
import { FOOTER_HEIGHT, HEADER_HEIGHT } from './style';
|
|
3
3
|
export const SERVICE_COMMON_FUNCTIONS = {
|
|
4
4
|
view: {
|
|
@@ -391,6 +391,7 @@ export const APP_CODES = {
|
|
|
391
391
|
},
|
|
392
392
|
},
|
|
393
393
|
},
|
|
394
|
+
slaProcess: { code: 'SLA_PROCESS' },
|
|
394
395
|
};
|
|
395
396
|
export const APP_DIMENSIONS = {
|
|
396
397
|
general: {
|
|
@@ -482,6 +483,11 @@ export const APP_ICONS = [
|
|
|
482
483
|
iconUrl: terminalAppIcon,
|
|
483
484
|
toolbarIconUrl: terminalWindowIcon,
|
|
484
485
|
},
|
|
486
|
+
{
|
|
487
|
+
code: APP_CODES.slaProcess.code,
|
|
488
|
+
iconUrl: slaProcessAppIcon,
|
|
489
|
+
toolbarIconUrl: slaProcessWindowIcon,
|
|
490
|
+
},
|
|
485
491
|
];
|
|
486
492
|
export const excludedApps = ['login'];
|
|
487
493
|
export const MF_APPS_MAPPER = new Set([
|
|
@@ -301,6 +301,8 @@ export declare const braveIcon: string;
|
|
|
301
301
|
export declare const arcIcon: string;
|
|
302
302
|
export declare const chromiumIcon: string;
|
|
303
303
|
export declare const userIcon: string;
|
|
304
|
+
export declare const slaProcessAppIcon: string;
|
|
305
|
+
export declare const slaProcessWindowIcon: string;
|
|
304
306
|
export declare const abandonedTableIcon: string;
|
|
305
307
|
export declare const cancelledTableIcon: string;
|
|
306
308
|
export declare const capturedTableIcon: string;
|
|
@@ -306,6 +306,8 @@ export const braveIcon = `${appBaseUrl}/braveBrowser.svg`;
|
|
|
306
306
|
export const arcIcon = `${appBaseUrl}/arcBrowser.svg`;
|
|
307
307
|
export const chromiumIcon = `${appBaseUrl}/chromiumBrowser.svg`;
|
|
308
308
|
export const userIcon = `${appBaseUrl}/userIcon.svg`;
|
|
309
|
+
export const slaProcessAppIcon = `${appBaseUrl}/slaProcess.svg`;
|
|
310
|
+
export const slaProcessWindowIcon = `${lightUrl}/window/slaProcess.svg`;
|
|
309
311
|
// table status icons
|
|
310
312
|
export const abandonedTableIcon = `${lightUrl}/status/table/abandoned.svg`;
|
|
311
313
|
export const cancelledTableIcon = `${lightUrl}/status/table/cancelled.svg`;
|
package/package.json
CHANGED