@tap-payments/os-micro-frontend-shared 0.1.39 → 0.1.41

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.
@@ -31,7 +31,7 @@ function DestinationCell(_a) {
31
31
  key: `destination-${(dest === null || dest === void 0 ? void 0 : dest.id) || index}`,
32
32
  content: (_jsxs(_Fragment, { children: [_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " |"] }), _jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
33
33
  chipIndex: index,
34
- selectionProps,
34
+ selectionProps: selectionProps !== null && selectionProps !== void 0 ? selectionProps : {},
35
35
  copyText: `${formattedDestAmount.integerAmount}.${formattedDestAmount.decimalAmount}`,
36
36
  };
37
37
  }, [selectionProps]);
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type { TableCellProps } from '@mui/material';
3
- import type { Charge, TableMode, SelectionProps } from '../../../types/index.js';
3
+ import type { Charge, SelectionProps, TableMode } from '../../../types/index.js';
4
4
  import type { ActionType, FlagType } from './ActionCell';
5
5
  import { getGeographyBoxColor } from '../../../utils/index.js';
6
6
  export type GeographyBoxVariant = keyof ReturnType<typeof getGeographyBoxColor>;
@@ -91,7 +91,7 @@ export interface DestinationCellProps extends TableCellProps {
91
91
  };
92
92
  iconDirection?: 'left' | 'right';
93
93
  tableMode?: TableMode;
94
- selectionProps: SelectionProps;
94
+ selectionProps?: SelectionProps;
95
95
  }
96
96
  export interface ActionCellProps extends TableCellProps {
97
97
  row?: unknown;
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.39",
4
+ "version": "0.1.41",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",