@ocelescope/ocelot 0.5.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -331,6 +331,7 @@ const EntityTable = ({ entities, columns, onPageChange, onPageSizeChange, sortSt
331
331
  })), [entities]);
332
332
  const transformedColumns = useMemo(() => columns.map((column) => ({
333
333
  ...column,
334
+ render: (record) => record[column.accessor],
334
335
  sortable: column.type === "attribute"
335
336
  })), [columns]);
336
337
  return /* @__PURE__ */ jsx(DataTable, {
@@ -1052,7 +1053,7 @@ const Graph = (props) => /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @
1052
1053
  const ObjectGraph = () => {
1053
1054
  const { id: ocelId } = useCurrentOcel();
1054
1055
  const { data: o2o } = useO2o(ocelId);
1055
- const { data: objectAttributes = [] } = useObjectAttributes(ocelId);
1056
+ const { data: objectAttributes } = useObjectAttributes(ocelId);
1056
1057
  const { data: objectCounts } = useObjectCounts(ocelId);
1057
1058
  const [searchValue, setSearchValue] = useDebouncedState("", 200);
1058
1059
  const [visualization, setVisualization] = useState("graph");
@@ -1121,7 +1122,7 @@ const ObjectGraph = () => {
1121
1122
  }
1122
1123
  }
1123
1124
  }, ocelId),
1124
- visualization === "cards" && objectCounts && /* @__PURE__ */ jsx(EntityOverview, {
1125
+ visualization === "cards" && objectCounts && objectAttributes && /* @__PURE__ */ jsx(EntityOverview, {
1125
1126
  entityCounts: objectCounts,
1126
1127
  attributes: objectAttributes,
1127
1128
  relations: o2o?.response ?? [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocelescope/ocelot",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.6.1",
5
5
  "description": "A module for inspections of OCELs",
6
6
  "author": "Görkem-Emre Öztürk <goerkem.oeztuerk@rwth-aachen.de>",
7
7
  "license": "MIT",
@@ -31,8 +31,8 @@
31
31
  "@dagrejs/dagre": "^3.0.0",
32
32
  "@mantine/core": "^9.4.0",
33
33
  "@mantine/hooks": "^9.4.0",
34
- "@ocelescope/api-base": "^0.5.0",
35
- "@ocelescope/core": "^0.5.0",
34
+ "@ocelescope/api-base": "^0.6.0",
35
+ "@ocelescope/core": "^0.6.0",
36
36
  "@tanstack/react-query": "^5.90.21",
37
37
  "@xyflow/react": "^12.10.1",
38
38
  "dayjs": "^1.11.19",
@@ -45,7 +45,7 @@
45
45
  "react-dom": "^19.2.0",
46
46
  "recharts": "^3.2.1",
47
47
  "axios": "^1.18.0",
48
- "@ocelescope/api-client": "^0.5.0"
48
+ "@ocelescope/api-client": "^0.6.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tsdown/css": "^0.22.0",
@@ -55,7 +55,7 @@
55
55
  "@types/node": "^25.0.3",
56
56
  "@types/react": "^19.2.7",
57
57
  "@types/react-dom": "^19.2.3",
58
- "@ocelescope/api-config": "^0.5.0",
58
+ "@ocelescope/api-config": "^0.6.0",
59
59
  "tsdown": "^0.22.0",
60
60
  "typescript": "^5.9.3",
61
61
  "orval": "^8.5.2"