@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.
Files changed (34) hide show
  1. package/README.md +2 -2
  2. package/dist/{ActivityPicker-BfA34hBU.js → ActivityPicker-CtFSu1YR.js} +8 -6
  3. package/dist/{AreaChart-q6rVcUIp.js → AreaChart-BSwN1fMp.js} +4 -5
  4. package/dist/{AttributePicker-Dd8eKA_3.js → AttributePicker-Cq7luTEi.js} +4 -5
  5. package/dist/{BarChart-BLZS87ex.js → BarChart-CyMePf1z.js} +4 -5
  6. package/dist/{E2ORelationPicker-CcDSJWc0.js → E2ORelationPicker-C8EmrbFx.js} +4 -5
  7. package/dist/{EventAttributePicker-Ch0rYS1h.js → EventAttributePicker-BgEdydek.js} +4 -5
  8. package/dist/{EventPicker-DbqFMMr2.js → EventPicker-D5uNOTw1.js} +4 -5
  9. package/dist/{HistogramChart-GgiQdlsk.js → HistogramChart-CJwvvDUu.js} +3 -4
  10. package/dist/{LineChart-Cq935Tk2.js → LineChart-Cbxnm338.js} +4 -5
  11. package/dist/{O2ORelationPicker-_XU1FfIX.js → O2ORelationPicker-CryAxxUo.js} +4 -5
  12. package/dist/{ObjectAttributePicker-Dpt3IfC5.js → ObjectAttributePicker-D_I3LQsY.js} +4 -5
  13. package/dist/{ObjectPicker-Bd68wl9p.js → ObjectPicker-D-ksQveT.js} +4 -5
  14. package/dist/{ObjectTypePicker-CXCMky34.js → ObjectTypePicker-Bw8Fsktx.js} +9 -6
  15. package/dist/{OcelChart-BnXjHb_r.js → OcelChart-DJNM5peW.js} +3 -4
  16. package/dist/{OptionPicker-D9rUIwbY.js → OptionPicker-DQ-WYFQZ.js} +7 -14
  17. package/dist/{PieChart-DZFHaTXD.js → PieChart-BmMoI0TY.js} +4 -5
  18. package/dist/{ScatterChart-DJfJmABJ.js → ScatterChart-CASPRlZU.js} +4 -5
  19. package/dist/{SqlChart-Bf7D5o5P.js → SqlChart-cxKpWkyh.js} +8 -9
  20. package/dist/{SunburstChart-CMNYlKon.js → SunburstChart-Ddx9EaL-.js} +3 -4
  21. package/dist/{attributeOptions-D4slIoZx.js → attributeOptions-COiWnKUS.js} +1 -2
  22. package/dist/{cartesian-Dt7weMqK.js → cartesian-CtdS2iZb.js} +2 -3
  23. package/dist/index.d.ts +6 -84
  24. package/dist/index.js +75 -92
  25. package/dist/{relationOptions-DTtIOIr1.js → relationOptions-hEEsEQrx.js} +1 -2
  26. package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  27. package/dist/{series-W1jsVape.js → series-Bx0HVnSy.js} +2 -3
  28. package/dist/style.css +34 -14
  29. package/dist/{useChart-jzzXgs0j.js → useChart-BK4pjGal.js} +3 -6
  30. package/dist/{useCurrentOCEL-BeBa7K0g.js → useCurrentOCEL-BUH5XGje.js} +2 -4
  31. package/dist/{useOcelId-DIu_aGLH.js → useOcelId-BEC6_yRa.js} +2 -3
  32. package/dist/{useOcelQuery-D1QM-Zgv.js → useOcelQuery-6vtgZNzz.js} +2 -3
  33. package/dist/{useSearch-Ad3AtTVj.js → useSearch-CdXjjv-a.js} +1 -2
  34. 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
- //#region src/store/currentOcelStore.ts
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
- //#endregion
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-BeBa7K0g.js";
2
- //#region src/components/Pickers/internal/useOcelId.ts
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-BeBa7K0g.js";
1
+ import { t as useCurrentOcel } from "./useCurrentOCEL-BUH5XGje.js";
2
2
  import { useRunSqlQuery } from "@ocelescope/api-base";
3
3
  import { useMemo } from "react";
4
- //#region src/hooks/useOcelQuery.ts
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
- //#region src/components/Pickers/internal/useSearch.ts
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.10.2",
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.2",
32
- "@mantine/dropzone": "^9.7.2",
33
- "@mantine/hooks": "^9.7.2",
34
- "@mantine/notifications": "^9.7.2",
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.10.2",
37
- "@ocelescope/api-client": "^0.10.2",
38
- "@ocelescope/resources": "^0.10.2",
39
- "@tanstack/react-query": "^5.104.2",
40
- "@tanstack/react-query-devtools": "^5.104.2",
41
- "@r4pm/components": "^0.3.2",
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.56.0",
46
+ "lucide-react": "^1.63.0",
47
47
  "mantine-datatable": "^9.4.0",
48
- "next": "16.4.0",
49
- "qs": "^6.16.0",
50
- "react": "^19.3.0",
51
- "react-dom": "^19.3.0",
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.15"
53
+ "zustand": "^5.0.16"
54
54
  },
55
55
  "devDependencies": {
56
- "@mantine/dates": "^9.7.2",
57
- "@mantine/notifications": "^9.7.2",
58
- "@tsdown/css": "^0.23.1",
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.1",
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.11.3",
65
- "qs": "^6.16.0",
66
- "tsdown": "^0.23.1",
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": {