@tap-payments/os-micro-frontend-shared 0.1.154 → 0.1.156-test.1

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 (18) hide show
  1. package/build/components/ConfirmDialog/context/index.d.ts +1 -1
  2. package/build/components/ConfirmDialog/context/index.js +1 -1
  3. package/build/components/JSONViewer/JSONViewer.js +1 -1
  4. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +2 -3
  5. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +2 -3
  6. package/build/components/TableCells/CustomCells/ActionCell/{ActionIconColumn.d.ts → components/ActionIconColumn.d.ts} +1 -1
  7. package/build/components/TableCells/CustomCells/ActionCell/{ActionIconColumn.js → components/ActionIconColumn.js} +7 -7
  8. package/build/components/TableCells/CustomCells/ActionCell/{ActionsColumn.d.ts → components/ActionsColumn.d.ts} +2 -2
  9. package/build/components/TableCells/CustomCells/ActionCell/{ActionsColumn.js → components/ActionsColumn.js} +7 -7
  10. package/build/components/TableCells/CustomCells/ActionCell/components/index.d.ts +2 -0
  11. package/build/components/TableCells/CustomCells/ActionCell/components/index.js +2 -0
  12. package/build/components/TableCells/CustomCells/ActionCell/index.d.ts +1 -3
  13. package/build/components/TableCells/CustomCells/ActionCell/index.js +1 -3
  14. package/build/components/TableCells/CustomCells/AmountCell/index.d.ts +1 -1
  15. package/build/components/TableCells/CustomCells/AmountCell/index.js +1 -1
  16. package/build/components/TableCells/CustomCells/DestinationCell/index.d.ts +1 -1
  17. package/build/components/TableCells/CustomCells/DestinationCell/index.js +1 -1
  18. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  export * from './context';
2
- export { ConfirmDialogProvider } from './Provider';
2
+ export * from './Provider';
@@ -1,2 +1,2 @@
1
1
  export * from './context';
2
- export { ConfirmDialogProvider } from './Provider';
2
+ export * from './Provider';
@@ -18,7 +18,7 @@ export default function JSONViewer({ index, json, requestJson = {}, isWindowMini
18
18
  var _a, _b, _c, _d;
19
19
  const [isMaximized, setIsMaximized] = useState(false);
20
20
  const [isResized, setIsResized] = useState(false);
21
- const [isResponseCollapsed, setIsResponseCollapsed] = useState(true);
21
+ const [isResponseCollapsed, setIsResponseCollapsed] = useState(false);
22
22
  const [isScrollingResponse, setIsScrollingResponse] = useState(false);
23
23
  const [newDimensions, setNewDimensions] = useState({ width: 0, height: 0 });
24
24
  const [isToolbarAnimationDisabled, setIsToolbarAnimationDisabled] = useState(true);
@@ -3,6 +3,5 @@ import type { ActionCellProps } from '../type';
3
3
  type Props = Readonly<ActionCellProps> & {
4
4
  onJsonViewClick?: () => void;
5
5
  };
6
- declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, ...props }: Props): import("react/jsx-runtime").JSX.Element;
7
- declare const _default: React.MemoExoticComponent<typeof ActionCell>;
8
- export default _default;
6
+ export declare const ActionCell: React.MemoExoticComponent<({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
7
+ export {};
@@ -24,7 +24,7 @@ import { useActionCell } from './hooks/useActionCell';
24
24
  import { ActionCellContainer, ActionIcon, ActionsIconContainer } from './style';
25
25
  import { IDButton } from '../IDButton';
26
26
  import { BadgeWrapper, IdButtonContainer, TextLabel, TransparentButton } from '../style';
27
- function ActionCell(_a) {
27
+ export const ActionCell = memo((_a) => {
28
28
  var _b, _c;
29
29
  var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, renderDropdown } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "renderDropdown"]);
30
30
  const { t } = useTranslation();
@@ -91,5 +91,4 @@ function ActionCell(_a) {
91
91
  (_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
92
92
  handleClose();
93
93
  }, icon: (_jsx(ActionIcon, { icon: action.icon, src: actionIcons[action.icon], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } }, `action.label-${action.label.trim()}`)) }))) }))] }))] }))] }))] })) })));
94
- }
95
- export default memo(ActionCell);
94
+ });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ActionCellProps } from '../type';
2
+ import type { ActionCellProps } from '../../type';
3
3
  type ActionIconColumnProps = Readonly<Pick<ActionCellProps, 'actions' | 'dropdownAction' | 'onCloseDropdown' | 'isDropdownShown' | 'renderDropdown'>>;
4
4
  declare function ActionIconColumn({ actions, dropdownAction, onCloseDropdown, isDropdownShown, renderDropdown, ...props }: ActionIconColumnProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare const _default: React.MemoExoticComponent<typeof ActionIconColumn>;
@@ -12,13 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { memo } from 'react';
14
14
  import { AnimatePresence } from 'framer-motion';
15
- import Dropdown from '../../../DropdownMenu';
16
- import { TableCell } from '../../../TableCells';
17
- import ActionIconsVariants from './components/ActionIconsVariants';
18
- import { actionIcons } from './constant';
19
- import { useActionCell } from './hooks/useActionCell';
20
- import { ActionIcon, ActionsIconContainer } from './style';
21
- import { TransparentButton } from '../style';
15
+ import Dropdown from '../../../../DropdownMenu';
16
+ import { TableCell } from '../../../../TableCells';
17
+ import ActionIconsVariants from '../components/ActionIconsVariants';
18
+ import { actionIcons } from '../constant';
19
+ import { useActionCell } from '../hooks/useActionCell';
20
+ import { ActionIcon, ActionsIconContainer } from '../style';
21
+ import { TransparentButton } from '../../style';
22
22
  function ActionIconColumn(_a) {
23
23
  var { actions, dropdownAction, onCloseDropdown, isDropdownShown = true, renderDropdown } = _a, props = __rest(_a, ["actions", "dropdownAction", "onCloseDropdown", "isDropdownShown", "renderDropdown"]);
24
24
  const { open, anchorEl, filteredActions, isAnyActionLoading, isAnyActionHasError, isAnyActionSuccessful, areThereAnyShownActions, handleClick, handleClose, setAnchorEl, } = useActionCell({ actions, isDropdownShown, onCloseDropdown, renderDropdown });
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { ActionCellProps } from '../type';
3
- import { TableMode } from '../../../../types/index.js';
2
+ import { TableMode } from '../../../../../types/index.js';
3
+ import type { ActionCellProps } from '../../type';
4
4
  type ActionsColumnProps = Readonly<Pick<ActionCellProps, 'flag' | 'flagTooltip' | 'flagsCount' | 'row' | 'showJsonViewer' | 'isTextShown' | 'showIdButton' | 'rowId'>> & {
5
5
  onJsonViewClick?: () => void;
6
6
  tableMode?: TableMode;
@@ -12,13 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
13
  import { memo } from 'react';
14
14
  import { motion } from 'framer-motion';
15
- import Tooltip from '../../../Tooltip';
16
- import { TableCell } from '../../../TableCells';
17
- import StyledBadge, { BadgeVariants } from '../../../CountBadge';
18
- import { colorToVariant, flags } from './constant';
19
- import { ActionCellContainer, ActionIcon } from './style';
20
- import { BadgeWrapper, TextLabel } from '../style';
21
- import StatusChip from '../../../StatusChip';
15
+ import Tooltip from '../../../../Tooltip';
16
+ import { TableCell } from '../../../../TableCells';
17
+ import StyledBadge, { BadgeVariants } from '../../../../CountBadge';
18
+ import StatusChip from '../../../../StatusChip';
19
+ import { colorToVariant, flags } from '../constant';
20
+ import { ActionCellContainer, ActionIcon } from '../style';
21
+ import { BadgeWrapper, TextLabel } from '../../style';
22
22
  function ActionsColumn(_a) {
23
23
  var _b, _c;
24
24
  var { flag, flagTooltip, flagsCount, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, tableMode } = _a, props = __rest(_a, ["flag", "flagTooltip", "flagsCount", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "tableMode"]);
@@ -1 +1,3 @@
1
1
  export { default as ActionIconsVariants } from './ActionIconsVariants';
2
+ export { default as ActionsColumn } from './ActionsColumn';
3
+ export { default as ActionIconColumn } from './ActionIconColumn';
@@ -1 +1,3 @@
1
1
  export { default as ActionIconsVariants } from './ActionIconsVariants';
2
+ export { default as ActionsColumn } from './ActionsColumn';
3
+ export { default as ActionIconColumn } from './ActionIconColumn';
@@ -1,5 +1,3 @@
1
- export { default as ActionCell } from './ActionCell';
2
- export { default as ActionsColumn } from './ActionsColumn';
3
- export { default as ActionIconColumn } from './ActionIconColumn';
1
+ export * from './ActionCell';
4
2
  export * from './components';
5
3
  export * from './type';
@@ -1,5 +1,3 @@
1
- export { default as ActionCell } from './ActionCell';
2
- export { default as ActionsColumn } from './ActionsColumn';
3
- export { default as ActionIconColumn } from './ActionIconColumn';
1
+ export * from './ActionCell';
4
2
  export * from './components';
5
3
  export * from './type';
@@ -1,5 +1,5 @@
1
1
  export { default as AmountCell } from './AmountCell';
2
- export { AmountConversionTooltipLabel } from './components';
2
+ export * from './components';
3
3
  export { default as AmountCellText } from './AmountCellText';
4
4
  export { default as AmountCellSheet } from './AmountCellSheet';
5
5
  export * from './style';
@@ -1,5 +1,5 @@
1
1
  export { default as AmountCell } from './AmountCell';
2
- export { AmountConversionTooltipLabel } from './components';
2
+ export * from './components';
3
3
  export { default as AmountCellText } from './AmountCellText';
4
4
  export { default as AmountCellSheet } from './AmountCellSheet';
5
5
  export * from './style';
@@ -1,4 +1,4 @@
1
1
  export { default as DestinationCell } from './DestinationCell';
2
2
  export { default as DestinationCellSheet } from './DestinationCellSheet';
3
3
  export { default as DestinationCellText } from './DestinationCellText';
4
- export { generateDestinationTooltip } from './utils';
4
+ export * from './utils';
@@ -1,4 +1,4 @@
1
1
  export { default as DestinationCell } from './DestinationCell';
2
2
  export { default as DestinationCellSheet } from './DestinationCellSheet';
3
3
  export { default as DestinationCellText } from './DestinationCellText';
4
- export { generateDestinationTooltip } from './utils';
4
+ export * from './utils';
package/package.json CHANGED
@@ -1,8 +1,8 @@
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.154",
5
- "testVersion": 3,
4
+ "version": "0.1.156-test.1",
5
+ "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }