@agilant/toga-blox 1.0.183 → 1.0.185
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.
|
@@ -32,12 +32,13 @@ const TableRow = ({ row, prepareRow, activeIndex, activeRowColor = "bg-pink-100"
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
// Fix: Key is discarded from the spread obj, react still gets key just not from spread i.e. key={rowUuid}
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
// Pull props ahead of time and separate out 'key'
|
|
36
|
+
// If row.getRowProps exists, call function, else use empty
|
|
37
|
+
// _ignoredKey extracts the key prop and stores it, it will be discarded
|
|
38
|
+
// ...safeRowProps gathers remaining props except key into obj using '...'
|
|
39
|
+
const { key: _ignoredKey, ...safeRowProps } = row.getRowProps
|
|
40
|
+
? row.getRowProps()
|
|
41
|
+
: {};
|
|
41
42
|
console.log("🚀 row.getRowProps():", row.getRowProps?.());
|
|
42
43
|
console.log("safeRowProps after removing key:", safeRowProps);
|
|
43
44
|
return (_jsxs(Fragment, { children: [_jsx("tr", { "data-testid": "table-row", className: `border-b border-b-navy-200 ${rowHoverClasses} ${rowClasses} ${rowClassNames}`, onClick: handleRowClick, ...safeRowProps, children: row.cells.map((cell, idx) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilant/toga-blox",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.185",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@agilant/toga-blox": "^1.0.184",
|
|
25
26
|
"@emotion/is-prop-valid": "^1.1.3",
|
|
26
27
|
"@fortawesome/pro-light-svg-icons": "^6.7.2",
|
|
27
28
|
"@fortawesome/pro-regular-svg-icons": "^6.7.2",
|