@tap-payments/os-micro-frontend-shared 0.1.384 → 0.1.386

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' }), []);
@@ -502,4 +502,5 @@ export const MF_APPS_MAPPER = new Set([
502
502
  APP_CODES.acceptance.code,
503
503
  APP_CODES.authentication.code,
504
504
  APP_CODES.protect.code,
505
+ APP_CODES.tokens.code,
505
506
  ]);
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.384",
4
+ "version": "0.1.386",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",