@synerise/ds-table-new 0.1.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-table-new@0.1.0...@synerise/ds-table-new@1.0.1) (2026-04-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **table-new:** memo too eager breaks non-virtual table rows ([25897fc](https://github.com/Synerise/synerise-design/commit/25897fcbb69a09eea649a31d0bea53d2941f95f7))
11
+
6
12
  # 0.1.0 (2026-04-10)
7
13
 
8
14
  ### Features
@@ -1,5 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { TableRowProps } from '../../../Table.types';
3
- declare const TableRowInner: <TData extends object>({ row, onRowClick, getRowTooltipProps, }: TableRowProps<TData>) => React.JSX.Element;
4
- export declare const TableRow: typeof TableRowInner;
5
- export {};
3
+ export declare const TableRow: <TData extends object>({ row, onRowClick, getRowTooltipProps, }: TableRowProps<TData>) => React.JSX.Element;
@@ -1,11 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { memo } from "react";
3
2
  import Tooltip from "@synerise/ds-tooltip";
4
3
  import { flexRender } from "@tanstack/react-table";
5
4
  import { isSorted } from "../../../utils/sort.js";
6
5
  import { TableCell } from "../TableCell/TableCell.js";
7
6
  import { Tr } from "./TableRow.styles.js";
8
- const TableRowInner = ({
7
+ const TableRow = ({
9
8
  row,
10
9
  onRowClick,
11
10
  getRowTooltipProps
@@ -23,7 +22,6 @@ const TableRowInner = ({
23
22
  const rowTooltipProps = getRowTooltipProps?.(row.original);
24
23
  return rowTooltipProps ? /* @__PURE__ */ jsx(Tooltip, { ...rowTooltipProps, children: rowContent }) : rowContent;
25
24
  };
26
- const TableRow = memo(TableRowInner);
27
25
  export {
28
26
  TableRow
29
27
  };
@@ -77,7 +77,7 @@ const legacyColumnConfigAdapter = (columns) => {
77
77
  return typeof column.title === "function" ? column.title({}) : column.title;
78
78
  },
79
79
  cell: (info) => {
80
- return column.render?.(info.getValue(), info.row.original, info.column.getIndex()) || info.getValue();
80
+ return column.render?.(info.getValue(), info.row.original, info.column.getIndex()) ?? info.getValue();
81
81
  },
82
82
  meta: {
83
83
  minWidth: column.minWidth,
@@ -88,6 +88,9 @@ const legacyColumnConfigAdapter = (columns) => {
88
88
  sortRender: typeof column.sortRender === "string" ? column.sortRender : void 0,
89
89
  renderCustomSortButton: customSortRender,
90
90
  multipleSortingOrder: multiSortOrder,
91
+ getCellTooltipProps: column.getCellTooltipProps,
92
+ dataIndex: column.dataIndex,
93
+ title: typeof column.title === "string" ? column.title : void 0,
91
94
  childCell: (info) => {
92
95
  if (column.childRender) {
93
96
  const rowData = {
@@ -97,7 +100,7 @@ const legacyColumnConfigAdapter = (columns) => {
97
100
  };
98
101
  return column.childRender(info.getValue(), rowData, info.column.getIndex());
99
102
  }
100
- return column.render?.(info.getValue(), info.row.original, info.column.getIndex()) || info.getValue();
103
+ return column.render?.(info.getValue(), info.row.original, info.column.getIndex()) ?? info.getValue();
101
104
  }
102
105
  },
103
106
  enablePinning: !!column.fixed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-table-new",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "description": "TableNew UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -38,22 +38,22 @@
38
38
  "@synerise/ds-button": "^1.5.20",
39
39
  "@synerise/ds-checkbox": "^1.2.23",
40
40
  "@synerise/ds-copy-icon": "^1.2.4",
41
- "@synerise/ds-dropdown": "^1.3.4",
41
+ "@synerise/ds-dropdown": "^1.3.5",
42
42
  "@synerise/ds-flag": "^1.0.10",
43
43
  "@synerise/ds-icon": "^1.15.3",
44
44
  "@synerise/ds-inline-alert": "^1.1.17",
45
45
  "@synerise/ds-input": "^1.7.0",
46
46
  "@synerise/ds-input-number": "^1.2.37",
47
47
  "@synerise/ds-loader": "^1.0.15",
48
- "@synerise/ds-modal": "^1.4.3",
48
+ "@synerise/ds-modal": "^1.4.4",
49
49
  "@synerise/ds-pagination": "^1.0.55",
50
50
  "@synerise/ds-result": "^1.0.51",
51
51
  "@synerise/ds-scrollbar": "^1.2.19",
52
- "@synerise/ds-search": "^1.5.12",
52
+ "@synerise/ds-search": "^1.5.13",
53
53
  "@synerise/ds-skeleton": "^1.0.47",
54
- "@synerise/ds-table": "^1.10.0",
54
+ "@synerise/ds-table": "^1.10.1",
55
55
  "@synerise/ds-tag": "^1.4.20",
56
- "@synerise/ds-tags": "^1.5.30",
56
+ "@synerise/ds-tags": "^1.5.31",
57
57
  "@synerise/ds-tooltip": "^1.4.12",
58
58
  "@synerise/ds-typography": "^1.1.15",
59
59
  "@synerise/ds-utils": "^1.8.0",
@@ -72,5 +72,5 @@
72
72
  "react-intl": ">= 3.12.0 <= 6.8",
73
73
  "styled-components": "^5.3.3"
74
74
  },
75
- "gitHead": "ce3c6d75efe8573a2b274853636f959b75a6cd32"
75
+ "gitHead": "f5437b2141f3dbad7319626fe5812bbb3488191a"
76
76
  }