@ocelescope/core 0.10.2 → 0.11.0
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/README.md +2 -2
- package/dist/{ActivityPicker-BfA34hBU.js → ActivityPicker-CtFSu1YR.js} +8 -6
- package/dist/{AreaChart-q6rVcUIp.js → AreaChart-BSwN1fMp.js} +4 -5
- package/dist/{AttributePicker-Dd8eKA_3.js → AttributePicker-Cq7luTEi.js} +4 -5
- package/dist/{BarChart-BLZS87ex.js → BarChart-CyMePf1z.js} +4 -5
- package/dist/{E2ORelationPicker-CcDSJWc0.js → E2ORelationPicker-C8EmrbFx.js} +4 -5
- package/dist/{EventAttributePicker-Ch0rYS1h.js → EventAttributePicker-BgEdydek.js} +4 -5
- package/dist/{EventPicker-DbqFMMr2.js → EventPicker-D5uNOTw1.js} +4 -5
- package/dist/{HistogramChart-GgiQdlsk.js → HistogramChart-CJwvvDUu.js} +3 -4
- package/dist/{LineChart-Cq935Tk2.js → LineChart-Cbxnm338.js} +4 -5
- package/dist/{O2ORelationPicker-_XU1FfIX.js → O2ORelationPicker-CryAxxUo.js} +4 -5
- package/dist/{ObjectAttributePicker-Dpt3IfC5.js → ObjectAttributePicker-D_I3LQsY.js} +4 -5
- package/dist/{ObjectPicker-Bd68wl9p.js → ObjectPicker-D-ksQveT.js} +4 -5
- package/dist/{ObjectTypePicker-CXCMky34.js → ObjectTypePicker-Bw8Fsktx.js} +9 -6
- package/dist/{OcelChart-BnXjHb_r.js → OcelChart-DJNM5peW.js} +3 -4
- package/dist/{OptionPicker-D9rUIwbY.js → OptionPicker-DQ-WYFQZ.js} +7 -14
- package/dist/{PieChart-DZFHaTXD.js → PieChart-BmMoI0TY.js} +4 -5
- package/dist/{ScatterChart-DJfJmABJ.js → ScatterChart-CASPRlZU.js} +4 -5
- package/dist/{SqlChart-Bf7D5o5P.js → SqlChart-cxKpWkyh.js} +8 -9
- package/dist/{SunburstChart-CMNYlKon.js → SunburstChart-Ddx9EaL-.js} +3 -4
- package/dist/{attributeOptions-D4slIoZx.js → attributeOptions-COiWnKUS.js} +1 -2
- package/dist/{cartesian-Dt7weMqK.js → cartesian-CtdS2iZb.js} +2 -3
- package/dist/index.d.ts +6 -84
- package/dist/index.js +75 -92
- package/dist/{relationOptions-DTtIOIr1.js → relationOptions-hEEsEQrx.js} +1 -2
- package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/{series-W1jsVape.js → series-Bx0HVnSy.js} +2 -3
- package/dist/style.css +34 -14
- package/dist/{useChart-jzzXgs0j.js → useChart-BK4pjGal.js} +3 -6
- package/dist/{useCurrentOCEL-BeBa7K0g.js → useCurrentOCEL-BUH5XGje.js} +2 -4
- package/dist/{useOcelId-DIu_aGLH.js → useOcelId-BEC6_yRa.js} +2 -3
- package/dist/{useOcelQuery-D1QM-Zgv.js → useOcelQuery-6vtgZNzz.js} +2 -3
- package/dist/{useSearch-Ad3AtTVj.js → useSearch-CdXjjv-a.js} +1 -2
- package/package.json +24 -24
|
@@ -3,14 +3,13 @@ import { useEffect } from "react";
|
|
|
3
3
|
import { env } from "@ocelescope/api-client";
|
|
4
4
|
import { create } from "zustand";
|
|
5
5
|
import { persist } from "zustand/middleware";
|
|
6
|
-
|
|
6
|
+
// src/store/currentOcelStore.ts
|
|
7
7
|
const useCurrentOcelStore = create()(persist((set) => ({
|
|
8
8
|
ocelId: null,
|
|
9
9
|
setOcel: (id) => set({ ocelId: id }),
|
|
10
10
|
clearOcel: () => set({ ocelId: null })
|
|
11
11
|
}), { name: env.current_ocel_id }));
|
|
12
|
-
|
|
13
|
-
//#region src/hooks/useCurrentOCEL.ts
|
|
12
|
+
// src/hooks/useCurrentOCEL.ts
|
|
14
13
|
const useCurrentOcel = () => {
|
|
15
14
|
const { data: ocels = [], isSuccess } = useGetOcels();
|
|
16
15
|
const { ocelId, setOcel, clearOcel } = useCurrentOcelStore();
|
|
@@ -30,5 +29,4 @@ const useCurrentOcel = () => {
|
|
|
30
29
|
setCurrentOcel: setOcel
|
|
31
30
|
};
|
|
32
31
|
};
|
|
33
|
-
//#endregion
|
|
34
32
|
export { useCurrentOcel as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as useCurrentOcel } from "./useCurrentOCEL-
|
|
2
|
-
|
|
1
|
+
import { t as useCurrentOcel } from "./useCurrentOCEL-BUH5XGje.js";
|
|
2
|
+
// src/components/Pickers/internal/useOcelId.ts
|
|
3
3
|
/** The OCEL a picker reads: the one it was given, else the selected one. */
|
|
4
4
|
const useOcelId = (ocelId) => {
|
|
5
5
|
const current = useCurrentOcel();
|
|
6
6
|
return ocelId ?? current.id;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { useOcelId as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as useCurrentOcel } from "./useCurrentOCEL-
|
|
1
|
+
import { t as useCurrentOcel } from "./useCurrentOCEL-BUH5XGje.js";
|
|
2
2
|
import { useRunSqlQuery } from "@ocelescope/api-base";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useOcelQuery.ts
|
|
5
5
|
/**
|
|
6
6
|
* Run SQL against the current OCEL.
|
|
7
7
|
*
|
|
@@ -30,5 +30,4 @@ const sqlError = (error) => {
|
|
|
30
30
|
const detail = error?.response?.data?.detail;
|
|
31
31
|
return detail ? new Error(detail) : error;
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { useOcelQuery as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/Pickers/internal/useSearch.ts
|
|
3
3
|
const DELAY_MS = 300;
|
|
4
4
|
/** What the reader has typed, slowed to one request per pause in typing. */
|
|
5
5
|
const useSearch = () => {
|
|
@@ -15,5 +15,4 @@ const useSearch = () => {
|
|
|
15
15
|
debounced: debounced || void 0
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { useSearch as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocelescope/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "Core React component and style library for Ocelescope (Mantine + React Query).",
|
|
6
6
|
"author": "Görkem-Emre Öztürk <goerkem.oeztuerk@rwth-aachen.de>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,42 +28,42 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@mantine/core": "^9.7.
|
|
32
|
-
"@mantine/dropzone": "^9.7.
|
|
33
|
-
"@mantine/hooks": "^9.7.
|
|
34
|
-
"@mantine/notifications": "^9.7.
|
|
31
|
+
"@mantine/core": "^9.7.4",
|
|
32
|
+
"@mantine/dropzone": "^9.7.4",
|
|
33
|
+
"@mantine/hooks": "^9.7.4",
|
|
34
|
+
"@mantine/notifications": "^9.7.4",
|
|
35
35
|
"@marko19907/string-to-color": "^1.0.2",
|
|
36
|
-
"@ocelescope/api-base": "^0.
|
|
37
|
-
"@ocelescope/api-client": "^0.
|
|
38
|
-
"@ocelescope/resources": "^0.
|
|
39
|
-
"@tanstack/react-query": "^5.
|
|
40
|
-
"@tanstack/react-query-devtools": "^5.
|
|
41
|
-
"@r4pm/components": "^0.
|
|
36
|
+
"@ocelescope/api-base": "^0.11.0",
|
|
37
|
+
"@ocelescope/api-client": "^0.11.0",
|
|
38
|
+
"@ocelescope/resources": "^0.11.0",
|
|
39
|
+
"@tanstack/react-query": "^5.105.0",
|
|
40
|
+
"@tanstack/react-query-devtools": "^5.105.0",
|
|
41
|
+
"@r4pm/components": "^0.4.0",
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"content-disposition-attachment": "^0.3.1",
|
|
44
44
|
"dayjs": "^1.11.23",
|
|
45
45
|
"file-saver": "^2.0.5",
|
|
46
|
-
"lucide-react": "^1.
|
|
46
|
+
"lucide-react": "^1.63.0",
|
|
47
47
|
"mantine-datatable": "^9.4.0",
|
|
48
|
-
"next": "16.4.
|
|
49
|
-
"qs": "^6.
|
|
50
|
-
"react": "^19.3.
|
|
51
|
-
"react-dom": "^19.3.
|
|
48
|
+
"next": "16.4.3",
|
|
49
|
+
"qs": "^6.17.0",
|
|
50
|
+
"react": "^19.3.1",
|
|
51
|
+
"react-dom": "^19.3.1",
|
|
52
52
|
"zod": "^4.6.7",
|
|
53
|
-
"zustand": "^5.0.
|
|
53
|
+
"zustand": "^5.0.16"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@mantine/dates": "^9.7.
|
|
57
|
-
"@mantine/notifications": "^9.7.
|
|
58
|
-
"@tsdown/css": "^0.23.
|
|
56
|
+
"@mantine/dates": "^9.7.4",
|
|
57
|
+
"@mantine/notifications": "^9.7.4",
|
|
58
|
+
"@tsdown/css": "^0.23.3",
|
|
59
59
|
"@types/file-saver": "^2.0.7",
|
|
60
|
-
"@types/node": "^26.6.
|
|
60
|
+
"@types/node": "^26.6.5",
|
|
61
61
|
"@types/qs": "^6.15.1",
|
|
62
62
|
"@types/react": "^19.3.0",
|
|
63
63
|
"@types/react-dom": "^19.3.0",
|
|
64
|
-
"@xyflow/react": "^12.
|
|
65
|
-
"qs": "^6.
|
|
66
|
-
"tsdown": "^0.23.
|
|
64
|
+
"@xyflow/react": "^12.12.0",
|
|
65
|
+
"qs": "^6.17.0",
|
|
66
|
+
"tsdown": "^0.23.3",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|