@tap-payments/os-micro-frontend-shared 0.0.283-test.4 → 0.0.284-test.5

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.
@@ -78,7 +78,6 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
78
78
  const lastItemIndex = rows.length - 1;
79
79
  const areTotalRowsNotFillingHeight = isHeightNotFullyFilledByRows(rows.length) && !tableLoading;
80
80
  const itemsCount = isDelayedFetchingNextPage || areAllRowsLoaded ? rows.length + 1 : rows.length;
81
- console.log({ isDelayedFetchingNextPage, areAllRowsLoaded, areTotalRowsNotFillingHeight, itemsCount });
82
81
  const createVirtualTableContainer = useCallback((columnsToRender, containerKey, isPinned = false, fixedWidth) => {
83
82
  const tableItemsCount = itemsCount;
84
83
  const handleOnLoadMoreItems = () => __awaiter(this, void 0, void 0, function* () {
@@ -94,12 +93,12 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
94
93
  return (_jsx(InfiniteLoader, Object.assign({ isItemLoaded: (index) => index !== lastItemIndex, itemCount: tableItemsCount, loadMoreItems: handleOnLoadMoreItems, threshold: threshold }, { children: ({ onItemsRendered }) => (_jsx(AutoSizer, { children: ({ height, width }) => {
95
94
  var _a;
96
95
  const getItemSize = (index) => {
97
- console.log({ All: areAllRowsLoaded, rows, index });
98
96
  const isLastRow = areAllRowsLoaded && index === rows.length;
99
97
  if (isLastRow) {
100
98
  const usedHeight = rows.length * rowHeight;
101
99
  const remainingHeight = height - usedHeight;
102
- return Math.max(remainingHeight, rowHeight);
100
+ const minimumLastRowHeight = rowHeight * 2;
101
+ return Math.max(remainingHeight, minimumLastRowHeight);
103
102
  }
104
103
  return rowHeight;
105
104
  };
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.0.283-test.4",
5
- "testVersion": 4,
4
+ "version": "0.0.284-test.5",
5
+ "testVersion": 5,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",