@tap-payments/os-micro-frontend-shared 0.1.383 → 0.1.385

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.
@@ -1,11 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
- import toast from 'react-hot-toast';
4
3
  import { Icon } from '../../../index.js';
5
4
  import { gadientLink } from '../../../../constants/index.js';
6
5
  import { copyText } from '../../../../utils/index.js';
7
6
  import { Chip } from './style';
7
+ import { useToast } from '../../../../hooks/index.js';
8
8
  function LinkCell({ url }) {
9
+ const toast = useToast();
9
10
  const onClick = () => {
10
11
  try {
11
12
  copyText(url);
@@ -1,7 +1,7 @@
1
1
  import { useCallback, useEffect, useReducer } from 'react';
2
2
  import { generateFileNameWithExtension } from '../utils';
3
3
  import { handleURLDownload } from '../../../utils/index.js';
4
- import toast from 'react-hot-toast';
4
+ import { useToast } from '../../../hooks/index.js';
5
5
  const initialState = {
6
6
  loading: false,
7
7
  success: false,
@@ -22,6 +22,7 @@ const downloadReportReducer = (state = initialState, action) => {
22
22
  }
23
23
  };
24
24
  export const useDownloadReport = ({ onDownload }) => {
25
+ const toast = useToast();
25
26
  const [{ loading, error, success }, dispatch] = useReducer(downloadReportReducer, initialState);
26
27
  const setLoading = useCallback(() => dispatch({ type: 'LOADING' }), []);
27
28
  const setSuccess = useCallback(() => dispatch({ type: 'SUCCESS' }), []);
@@ -968,6 +968,9 @@ export declare const APP_CODES: {
968
968
  };
969
969
  };
970
970
  };
971
+ slaProcess: {
972
+ code: string;
973
+ };
971
974
  };
972
975
  export declare const APP_DIMENSIONS: {
973
976
  [x: string]: {
@@ -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
@@ -1,7 +1,7 @@
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.383",
4
+ "version": "0.1.385",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",