@tap-payments/os-micro-frontend-shared 0.1.115-test.1 → 0.1.115-test.2

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.
@@ -9,7 +9,6 @@ export declare const LastRowContent: React.MemoExoticComponent<({ isLoadingRow,
9
9
  }) => import("react/jsx-runtime").JSX.Element>;
10
10
  export declare const StyledItemWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
11
11
  showShadowHighlight?: boolean | undefined;
12
- isSheetView?: boolean | undefined;
13
12
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
13
  declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned, isLoadMoreLoading, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
15
14
  export default ListItemWrapper;
@@ -46,14 +46,13 @@ const createRowClickHandler = (row, onRowClick) => (e) => {
46
46
  };
47
47
  export const StyledItemWrapper = styled('div', {
48
48
  shouldForwardProp: (props) => props !== 'showShadowHighlight' && props !== 'isSheetView',
49
- })(({ theme, isSheetView }) => ({
50
- height: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : '100%',
49
+ })(({ theme }) => ({
50
+ height: '100%',
51
51
  backgroundColor: theme.palette.background.default,
52
52
  }));
53
53
  function ListItemWrapper(_a) {
54
54
  var _b;
55
55
  var { index, style } = _a, _c = _a.data, { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned = false, isLoadMoreLoading = false } = _c, restData = __rest(_c, ["renderedScrollTopRef", "rows", "rowProps", "columns", "isLoading", "scrollToIndex", "newLoadedRowsEndIndex", "isError", "areAllRowsLoaded", "isSheetView", "isPinned", "isLoadMoreLoading"]);
56
- console.log({ style });
57
56
  const lastItemIndex = rows.length - 1;
58
57
  const row = rows[index];
59
58
  const isLoadingRow = isLoading && index === lastItemIndex + 1;
@@ -106,6 +105,6 @@ function ListItemWrapper(_a) {
106
105
  renderSheetViewLoadingRow,
107
106
  isLoadMoreLoading,
108
107
  ]);
109
- return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, (!isSheetView && style)), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper", isSheetView: isSheetView }, { children: memoizedListItemComponent })) })));
108
+ return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, (!isSheetView && style)), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
110
109
  }
111
110
  export default ListItemWrapper;
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.115-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.115-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",