@tap-payments/os-micro-frontend-shared 0.1.103-test.121 → 0.1.103-test.122

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.
@@ -18,24 +18,4 @@ function MainTable({ hasPinnedStart, hasPinnedEnd, unpinnedColumnsData, showHead
18
18
  overflow: 'hidden',
19
19
  } }, { children: tableLoading ? (_jsx(SheetViewTableLoading, { "data-testid": "SheetViewVirtualTable_TableLoading", columns: unpinnedColumnsData, isLoading: true, isPinned: false })) : (createVirtualTableContainer(unpinnedColumnsData, 'scrollable', false)) })) }))] })) })) })));
20
20
  }
21
- export default memo(MainTable, (prevProps, nextProps) => {
22
- var _a, _b, _c, _d, _e, _f, _g;
23
- const criticalProps = [
24
- 'hasPinnedStart',
25
- 'hasPinnedEnd',
26
- 'showHeader',
27
- 'showBackDrop',
28
- 'tableLoading',
29
- 'showNoDataView',
30
- 'isLoading',
31
- 'isError',
32
- 'hasTimeoutError',
33
- 'tableMode',
34
- ];
35
- const areCriticalPropsSame = criticalProps.every((prop) => prevProps[prop] === nextProps[prop]);
36
- const areColumnsDataSame = ((_a = prevProps.unpinnedColumnsData) === null || _a === void 0 ? void 0 : _a.length) === ((_b = nextProps.unpinnedColumnsData) === null || _b === void 0 ? void 0 : _b.length) &&
37
- ((_c = prevProps.unpinnedColumnsData) === null || _c === void 0 ? void 0 : _c.every((col, index) => { var _a, _b; return col.id === ((_b = (_a = nextProps.unpinnedColumnsData) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.id); }));
38
- const arePinnedColumnsSame = ((_d = prevProps.pinnedStartColumns) === null || _d === void 0 ? void 0 : _d.length) === ((_e = nextProps.pinnedStartColumns) === null || _e === void 0 ? void 0 : _e.length) &&
39
- ((_f = prevProps.pinnedEndColumns) === null || _f === void 0 ? void 0 : _f.length) === ((_g = nextProps.pinnedEndColumns) === null || _g === void 0 ? void 0 : _g.length);
40
- return areCriticalPropsSame && areColumnsDataSame && arePinnedColumnsSame;
41
- });
21
+ export default memo(MainTable);
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.121",
5
- "testVersion": 121,
4
+ "version": "0.1.103-test.122",
5
+ "testVersion": 122,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",