@opengeni/react 6.1.0-canary.0 → 6.1.0-canary.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/react",
|
|
3
|
-
"version": "6.1.0-canary.
|
|
3
|
+
"version": "6.1.0-canary.1",
|
|
4
4
|
"description": "React hooks and styled components for OpenGeni: live session streaming, chat composer, message timeline, session status, and fleet views — token-themed (CSS variables), dark-first, built on Tailwind v4 + Radix + Motion.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
"@dnd-kit/utilities": "3.2.2",
|
|
134
134
|
"@fontsource-variable/noto-sans-arabic": "5.2.10",
|
|
135
135
|
"@fontsource-variable/noto-sans-jp": "5.2.10",
|
|
136
|
-
"@opengeni/connect": "^0.2.0-canary.
|
|
137
|
-
"@opengeni/sdk": "^6.1.0-canary.
|
|
136
|
+
"@opengeni/connect": "^0.2.0-canary.12",
|
|
137
|
+
"@opengeni/sdk": "^6.1.0-canary.1",
|
|
138
138
|
"clsx": "^2.1.1",
|
|
139
139
|
"dequal": "2.0.3",
|
|
140
140
|
"lucide-react": "^1.8.0",
|
|
@@ -11,6 +11,8 @@ export type UseWorkspaceSessionsOptions = ClientOverride & {
|
|
|
11
11
|
/** Return only the complete personal pinned projection. */
|
|
12
12
|
pinsOnly?: boolean | undefined;
|
|
13
13
|
archivedOnly?: boolean | undefined;
|
|
14
|
+
sortBy?: "updatedAt" | "createdAt" | "name" | undefined;
|
|
15
|
+
archiveStatus?: "active" | "archived" | "all" | undefined;
|
|
14
16
|
/** Refresh interval (ms) for fleet/manager views. Off by default. */
|
|
15
17
|
pollIntervalMs?: number | undefined;
|
|
16
18
|
enabled?: boolean | undefined;
|
|
@@ -49,6 +51,8 @@ export function useWorkspaceSessions(
|
|
|
49
51
|
const search = options.search;
|
|
50
52
|
const pinsOnly = options.pinsOnly;
|
|
51
53
|
const archivedOnly = options.archivedOnly;
|
|
54
|
+
const sortBy = options.sortBy;
|
|
55
|
+
const archiveStatus = options.archiveStatus;
|
|
52
56
|
const enabled = options.enabled ?? true;
|
|
53
57
|
const nextReadRevision = useRef(0);
|
|
54
58
|
const nextReadGeneration = useRef(0);
|
|
@@ -61,6 +65,8 @@ export function useWorkspaceSessions(
|
|
|
61
65
|
search ?? "",
|
|
62
66
|
pinsOnly ? "1" : "",
|
|
63
67
|
archivedOnly ? "archived" : "active",
|
|
68
|
+
sortBy ?? "",
|
|
69
|
+
archiveStatus ?? "",
|
|
64
70
|
].join("\u0000");
|
|
65
71
|
const previousQueryKey = useRef(queryKey);
|
|
66
72
|
const queryKeyTransition = previousQueryKey.current !== queryKey;
|
|
@@ -77,6 +83,8 @@ export function useWorkspaceSessions(
|
|
|
77
83
|
...(search !== undefined ? { search } : {}),
|
|
78
84
|
...(pinsOnly ? { pinsOnly: true } : {}),
|
|
79
85
|
...(archivedOnly ? { archivedOnly: true } : {}),
|
|
86
|
+
...(sortBy ? { sortBy } : {}),
|
|
87
|
+
...(archiveStatus ? { archiveStatus } : {}),
|
|
80
88
|
signal,
|
|
81
89
|
});
|
|
82
90
|
return {
|
|
@@ -96,6 +104,8 @@ export function useWorkspaceSessions(
|
|
|
96
104
|
search,
|
|
97
105
|
pinsOnly,
|
|
98
106
|
archivedOnly,
|
|
107
|
+
sortBy,
|
|
108
|
+
archiveStatus,
|
|
99
109
|
queryKey,
|
|
100
110
|
],
|
|
101
111
|
);
|