@tap-payments/os-micro-frontend-shared 0.1.103-test.116 → 0.1.103-test.118

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.
@@ -70,6 +70,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = SHEET_VIEW_TABLE_THR
70
70
  const createPinnedStartTable = useCallback((columnsData, fixedWidth) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: true, fixedWidth: fixedWidth, onScroll: scrollHandlers.start, listRef: pinnedStartVirtualListRef }), "pinned-start")), [stableTableProps, dynamicTableProps, scrollHandlers.start, pinnedStartVirtualListRef]);
71
71
  const createPinnedEndTable = useCallback((columnsData, fixedWidth) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: true, fixedWidth: fixedWidth, onScroll: scrollHandlers.end, listRef: pinnedEndVirtualListRef }), "pinned-end")), [stableTableProps, dynamicTableProps, scrollHandlers.end, pinnedEndVirtualListRef]);
72
72
  const createScrollableTable = useCallback((columnsData) => (_jsx(VirtualTable, Object.assign({ columnsData: columnsData }, stableTableProps, dynamicTableProps, { isPinned: false, onScroll: scrollHandlers.scrollable, listRef: scrollableVirtualListRef }), "scrollable")), [stableTableProps, dynamicTableProps, scrollHandlers.scrollable, scrollableVirtualListRef]);
73
+ console.log({ selectedCell, selectedColumn, selectedRow, selectedChip });
73
74
  const createVirtualTableContainer = useCallback((columnsData, containerKey, isPinned = false, fixedWidth) => {
74
75
  switch (containerKey) {
75
76
  case 'pinnedStart':
@@ -23,7 +23,6 @@ function VirtualTable({ columnsData, itemCount, lastItemIndex, areAllRowsLoaded,
23
23
  return (_jsx(InfiniteLoader, Object.assign({ isItemLoaded: (index) => index !== lastItemIndex, itemCount: itemCount, loadMoreItems: handleOnLoadMoreItems, threshold: threshold }, { children: ({ onItemsRendered, ref }) => (_jsx(AutoSizer, Object.assign({ ref: ref }, { children: ({ height, width }) => {
24
24
  const itemSize = (index) => getItemSize(index, height);
25
25
  const itemData = getItemData(columnsData, isPinned, height);
26
- console.log('itemData', itemData);
27
26
  return (_jsx(StyledVirtualList, Object.assign({ listRef: listRef, height: height, width: fixedWidth || width, itemCount: itemCount, itemSize: itemSize, itemData: itemData, onItemsRendered: onItemsRendered, overscanCount: overscanCount, setBackdropVisibility: setBackdropVisibility, scrollToIndex: scrollToIndex, areTotalRowsNotFillingHeight: areTotalRowsNotFillingHeight, useIsScrolling: true, onScroll: onScroll, clearBackdropVisibilityTimeout: clearBackdropVisibilityTimeout, style: {
28
27
  overflowX: isPinned ? 'hidden' : 'auto',
29
28
  paddingBottom: isPinned ? '25px' : '13px',
@@ -43,7 +42,6 @@ export default memo(VirtualTable, (prevProps, nextProps) => {
43
42
  'scrollToIndex',
44
43
  'areTotalRowsNotFillingHeight',
45
44
  'overscanCount',
46
- 'getItemData',
47
45
  ];
48
46
  const areCriticalPropsSame = propsToCompare.every((key) => prevProps[key] === nextProps[key]);
49
47
  const areColumnsDataSame = ((_a = prevProps.columnsData) === null || _a === void 0 ? void 0 : _a.length) === ((_b = nextProps.columnsData) === null || _b === void 0 ? void 0 : _b.length) &&
@@ -52,8 +52,9 @@ export const useVirtualTableContainer = ({ rowHeight, areAllRowsLoaded, rows, is
52
52
  ];
53
53
  }, [isDelayedFetchingNextPage, rows, rowProps, scrollToIndex, footerProps === null || footerProps === void 0 ? void 0 : footerProps.totalCount, isError, areAllRowsLoaded]);
54
54
  const commonItemDataSuffix = useMemo(() => [selectedCell, selectedColumn, selectedRow, selectedChip, handleCellClick, handleChipClick], [selectedCell, selectedColumn, selectedRow, selectedChip, handleCellClick, handleChipClick]);
55
+ console.log('commonItemDataSuffix = useMemo', commonItemDataSuffix);
55
56
  const getItemDataForContainer = useCallback((columnsData, isPinnedColumn, height) => {
56
- console.log('createItemData(columnsData, ...commonItemDataParams, isPinnedColumn, ...commonItemDataSuffix, height, rowHeight)', columnsData, commonItemDataParams, isPinnedColumn, commonItemDataSuffix, height, rowHeight);
57
+ console.log('getItemDataForContainer = useCallback', commonItemDataSuffix);
57
58
  return createItemData(columnsData, ...commonItemDataParams, isPinnedColumn, ...commonItemDataSuffix, height, rowHeight);
58
59
  }, [commonItemDataParams, commonItemDataSuffix, rowHeight]);
59
60
  return {
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.103-test.116",
5
- "testVersion": 116,
4
+ "version": "0.1.103-test.118",
5
+ "testVersion": 118,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",