Skip to content

Commit 58ac415

Browse files
authored
chore: update findable-ui to latest version v40.0.0 (#4538) (#4540)
1 parent 76af8f0 commit 58ac415

File tree

4 files changed

+52
-47
lines changed

4 files changed

+52
-47
lines changed

app/viewModelBuilders/azul/anvil-cmg/common/dataDictionaryMapper/constants.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MarkdownCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/MarkdownCell/markdownCell";
22
import { Attribute } from "@databiosphere/findable-ui/lib/common/entities";
3-
import { ColumnDef } from "@tanstack/react-table";
3+
import { ColumnDef, CellContext } from "@tanstack/react-table";
44

55
export const COLUMN_DEFS: ColumnDef<Attribute>[] = [
66
{
@@ -21,8 +21,9 @@ export const COLUMN_DEFS: ColumnDef<Attribute>[] = [
2121
},
2222
},
2323
{
24-
accessorFn: (row: Attribute) => ({ values: row.description }),
25-
cell: MarkdownCell,
24+
accessorKey: "description",
25+
cell: (cellContext) =>
26+
MarkdownCell(cellContext as CellContext<Attribute, string>),
2627
enableColumnFilter: false,
2728
header: "Description",
2829
meta: {

app/viewModelBuilders/azul/anvil-cmg/common/dataDictionaryMapper/tableOptions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export const TABLE_OPTIONS: Omit<
88
> = {
99
columns: COLUMN_DEFS,
1010
enableColumnFilters: false,
11+
enableExpanding: false,
1112
enableGlobalFilter: false,
13+
getRowCanExpand: () => false,
14+
getRowId: (row) => row.name,
1215
initialState: {
1316
columnVisibility: { classKey: false },
14-
expanded: true,
1517
grouping: ["classKey"],
1618
},
1719
};

package-lock.json

Lines changed: 40 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
3333
},
3434
"dependencies": {
35-
"@databiosphere/findable-ui": "^38.1.1",
35+
"@databiosphere/findable-ui": "^40.0.0",
3636
"@emotion/react": "^11.13.3",
3737
"@emotion/styled": "^11.13.0",
3838
"@mdx-js/loader": "^3.0.1",
3939
"@mdx-js/react": "^3.0.1",
4040
"@mui/icons-material": "^7.0.1",
4141
"@mui/material": "^7.0.1",
42-
"@next/mdx": "^14.2.28",
42+
"@next/mdx": "^14.2.30",
4343
"@observablehq/plot": "^0.6.17",
4444
"@tanstack/react-table": "^8.19.2",
4545
"@tanstack/react-virtual": "^3.13.12",
@@ -50,7 +50,7 @@
5050
"jwt-decode": "^3.1.2",
5151
"ky": "^1.7.2",
5252
"match-sorter": "^6.3.1",
53-
"next": "^14.2.28",
53+
"next": "^14.2.30",
5454
"next-auth": "^4.24.7",
5555
"next-compose-plugins": "^2.2.1",
5656
"next-mdx-remote": "^4.2.0",
@@ -76,7 +76,7 @@
7676
"@commitlint/config-conventional": "^19.6.0",
7777
"@digitak/esrun": "^3.2.26",
7878
"@mui/types": "^7.4.0",
79-
"@next/eslint-plugin-next": "^14.2.28",
79+
"@next/eslint-plugin-next": "^14.2.30",
8080
"@playwright/test": "^1.49.1",
8181
"@testing-library/jest-dom": "^5.16.5",
8282
"@testing-library/react": "^16.0.1",
@@ -90,7 +90,7 @@
9090
"@typescript-eslint/eslint-plugin": "^8.18.1",
9191
"babel-loader": "^9.2.1",
9292
"eslint": "^8.33.0",
93-
"eslint-config-next": "^14.2.28",
93+
"eslint-config-next": "^14.2.30",
9494
"eslint-config-prettier": "^9.1.0",
9595
"eslint-plugin-eslint-comments": "^3.2.0",
9696
"eslint-plugin-jsdoc": "^50.6.1",

0 commit comments

Comments
 (0)