@ocelescope/discovery 0.8.0 → 0.9.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/dist/index.js +7 -31
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineModule, defineModuleRoute, useCurrentOcel } from "@ocelescope/core";
|
|
2
|
-
import { ChartNetwork
|
|
3
|
-
import {
|
|
2
|
+
import { ChartNetwork } from "lucide-react";
|
|
3
|
+
import { Box, LoadingOverlay, ScrollArea, Select, Stack, Text } from "@mantine/core";
|
|
4
4
|
import { useDebouncedValue } from "@mantine/hooks";
|
|
5
5
|
import { usePlugins, useRunPlugin } from "@ocelescope/api-base";
|
|
6
|
-
import {
|
|
6
|
+
import { PluginDashboard, PluginForm } from "@ocelescope/plugin-components";
|
|
7
7
|
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/hooks/useDiscoveryMethods.tsx
|
|
@@ -72,7 +72,6 @@ const DiscoverySideBar = ({ onSuccess }) => {
|
|
|
72
72
|
if (discoveryMethods.length > 0 && !currentMethod) setCurrentMethod(discoveryMethods[0]);
|
|
73
73
|
}, [discoveryMethods]);
|
|
74
74
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
75
|
-
maw: 400,
|
|
76
75
|
px: "md",
|
|
77
76
|
pt: "xs",
|
|
78
77
|
h: "100%",
|
|
@@ -110,34 +109,11 @@ const DiscoverySideBar = ({ onSuccess }) => {
|
|
|
110
109
|
};
|
|
111
110
|
const DiscoveryPage = () => {
|
|
112
111
|
const [discoveryTask, setDiscoveryTask] = useState(void 0);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
splitterRef,
|
|
112
|
+
return /* @__PURE__ */ jsx(PluginDashboard, {
|
|
113
|
+
taskId: discoveryTask,
|
|
116
114
|
withHandle: false,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
lineSize: 2,
|
|
120
|
-
children: [/* @__PURE__ */ jsx(Splitter.Pane, {
|
|
121
|
-
defaultSize: 70,
|
|
122
|
-
children: /* @__PURE__ */ jsx(ResultSection, {
|
|
123
|
-
taskId: discoveryTask,
|
|
124
|
-
extraActions: /* @__PURE__ */ jsx(Tooltip, {
|
|
125
|
-
label: "Toggle settings",
|
|
126
|
-
children: /* @__PURE__ */ jsx(ActionIcon, {
|
|
127
|
-
size: "input-sm",
|
|
128
|
-
variant: "outline",
|
|
129
|
-
onClick: () => splitterRef.current?.toggleCollapse(1),
|
|
130
|
-
children: /* @__PURE__ */ jsx(Settings, { size: 20 })
|
|
131
|
-
})
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
}), /* @__PURE__ */ jsx(Splitter.Pane, {
|
|
135
|
-
defaultSize: 30,
|
|
136
|
-
max: "400px",
|
|
137
|
-
min: "300px",
|
|
138
|
-
collapsible: true,
|
|
139
|
-
children: /* @__PURE__ */ jsx(DiscoverySideBar, { onSuccess: (discoveryTaskId) => setDiscoveryTask(discoveryTaskId) })
|
|
140
|
-
})]
|
|
115
|
+
collapseOnNoTask: false,
|
|
116
|
+
children: /* @__PURE__ */ jsx(DiscoverySideBar, { onSuccess: (discoveryTaskId) => setDiscoveryTask(discoveryTaskId) })
|
|
141
117
|
});
|
|
142
118
|
};
|
|
143
119
|
var DiscoveryPage_default = defineModuleRoute({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocelescope/discovery",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"description": "A module for discovery of OCELs",
|
|
6
6
|
"author": "Sebastian Menne <sebastian.menne@rwth-aachen.de>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@mantine/carousel": "^9.5.1",
|
|
31
31
|
"@mantine/core": "^9.5.1",
|
|
32
32
|
"@mantine/hooks": "^9.5.1",
|
|
33
|
-
"@ocelescope/api-base": "^0.
|
|
34
|
-
"@ocelescope/core": "^0.
|
|
35
|
-
"@ocelescope/plugin-components": "^0.
|
|
36
|
-
"@ocelescope/resources": "^0.
|
|
33
|
+
"@ocelescope/api-base": "^0.9.0",
|
|
34
|
+
"@ocelescope/core": "^0.9.0",
|
|
35
|
+
"@ocelescope/plugin-components": "^0.9.0",
|
|
36
|
+
"@ocelescope/resources": "^0.9.0",
|
|
37
37
|
"@rjsf/core": "^6.8.0",
|
|
38
38
|
"@rjsf/mantine": "^6.8.0",
|
|
39
39
|
"@rjsf/utils": "^6.8.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"embla-carousel": "^8.6.0",
|
|
43
43
|
"embla-carousel-react": "^8.6.0",
|
|
44
44
|
"lucide-react": "^1.0.0",
|
|
45
|
-
"next": "16.3.
|
|
45
|
+
"next": "16.3.6",
|
|
46
46
|
"react": "^19.3.0",
|
|
47
47
|
"react-dom": "^19.3.0",
|
|
48
48
|
"react-hook-form": "^7.71.2",
|