@elevasis/ui 1.27.0 → 1.28.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/dist/charts/index.js +1 -1
- package/dist/{chunk-MHW43EOH.js → chunk-2IFYDILW.js} +2 -1
- package/dist/{chunk-Y2SYGFRF.js → chunk-37NT4BNV.js} +2 -2
- package/dist/{chunk-WLNEJ6JJ.js → chunk-7CJ5QBN2.js} +2 -2
- package/dist/{chunk-TLAIQC7B.js → chunk-C4WOXS2C.js} +270 -6
- package/dist/{chunk-5JSR6TL5.js → chunk-D25AE46Q.js} +1 -1
- package/dist/{chunk-RCQPWA5X.js → chunk-EBCIUZVV.js} +1 -1
- package/dist/{chunk-ITCEULI5.js → chunk-KLG4H5NM.js} +11 -2
- package/dist/{chunk-BAGYETKM.js → chunk-S4S6K4MV.js} +2 -2
- package/dist/{chunk-P5EWG45B.js → chunk-ZUJ7WMGV.js} +1 -1
- package/dist/{chunk-WJ7W7JU4.js → chunk-ZXBD5SBV.js} +2 -2
- package/dist/components/index.d.ts +7 -1
- package/dist/components/index.js +12 -12
- package/dist/features/dashboard/index.js +6 -6
- package/dist/features/monitoring/index.js +7 -7
- package/dist/features/operations/index.d.ts +14 -50
- package/dist/features/operations/index.js +7 -7
- package/dist/features/settings/index.js +6 -6
- package/dist/hooks/index.d.ts +5 -47
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/published.d.ts +5 -47
- package/dist/hooks/published.js +4 -4
- package/dist/index.d.ts +41 -76
- package/dist/index.js +5 -5
- package/dist/layout/index.js +1 -1
- package/dist/provider/index.d.ts +41 -1
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.d.ts +41 -1
- package/dist/provider/published.js +2 -2
- package/dist/router/context.d.ts +1 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/router/index.js +1 -1
- package/dist/sse/index.d.ts +10 -2
- package/package.json +3 -3
package/dist/layout/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import '../chunk-NNKKBSJN.js';
|
|
|
4
4
|
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-YYBM5LNJ.js';
|
|
5
5
|
export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-CYXZHBP4.js';
|
|
6
6
|
export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar } from '../chunk-5COLSYBE.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-2IFYDILW.js';
|
|
8
8
|
import '../chunk-QJ2KCHKX.js';
|
|
9
9
|
export { sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight } from '../chunk-QJ2S46NI.js';
|
|
10
10
|
import '../chunk-Q7DJKLEN.js';
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -272,6 +272,40 @@ interface ElevasisServiceProviderProps {
|
|
|
272
272
|
*/
|
|
273
273
|
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
274
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Time range selector for dashboard metrics
|
|
277
|
+
*/
|
|
278
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
279
|
+
|
|
280
|
+
interface EventSourceMessage {
|
|
281
|
+
id: string;
|
|
282
|
+
event: string;
|
|
283
|
+
data: string;
|
|
284
|
+
retry?: number;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface FetchEventSourceWithTokenRefreshOptions {
|
|
288
|
+
url: string;
|
|
289
|
+
getToken: () => Promise<string | undefined>;
|
|
290
|
+
headers?: Record<string, string>;
|
|
291
|
+
signal: AbortSignal;
|
|
292
|
+
/** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
|
|
293
|
+
tokenRefreshDelayMs?: number;
|
|
294
|
+
onopen?: (response: Response) => void | Promise<void>;
|
|
295
|
+
onmessage?: (event: EventSourceMessage) => void;
|
|
296
|
+
onerror?: (error: unknown) => void;
|
|
297
|
+
onclose?: () => void;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
interface SSEConnectionManagerLike {
|
|
301
|
+
subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
|
|
302
|
+
closeConnection(key: string): void;
|
|
303
|
+
getConnectionInfo(): Map<string, {
|
|
304
|
+
url: string;
|
|
305
|
+
subscribers: number;
|
|
306
|
+
}>;
|
|
307
|
+
}
|
|
308
|
+
|
|
275
309
|
interface FeatureNavLink {
|
|
276
310
|
label: string;
|
|
277
311
|
link: string;
|
|
@@ -300,18 +334,24 @@ interface FeatureRegistry {
|
|
|
300
334
|
}
|
|
301
335
|
interface ElevasisFeaturesProviderProps {
|
|
302
336
|
features: FeatureModule[];
|
|
337
|
+
timeRange?: TimeRange;
|
|
338
|
+
operationsApiUrl?: string;
|
|
339
|
+
operationsSSEManager?: SSEConnectionManagerLike;
|
|
303
340
|
children: ReactNode;
|
|
304
341
|
}
|
|
305
342
|
interface ElevasisFeaturesContextValue {
|
|
306
343
|
navItems: FeatureNavEntry[];
|
|
307
344
|
enabledFeatures: FeatureModule[];
|
|
308
345
|
allFeatures: FeatureModule[];
|
|
346
|
+
timeRange?: TimeRange;
|
|
347
|
+
operationsApiUrl?: string;
|
|
348
|
+
operationsSSEManager?: SSEConnectionManagerLike;
|
|
309
349
|
isFeatureEnabled: (key: string) => boolean;
|
|
310
350
|
getFeature: (key: string) => FeatureModule | undefined;
|
|
311
351
|
}
|
|
312
352
|
|
|
313
353
|
declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
|
|
314
|
-
declare function ElevasisFeaturesProvider({ features, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
354
|
+
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
315
355
|
|
|
316
356
|
declare function FeatureShell({ children }: {
|
|
317
357
|
children: ReactNode;
|
package/dist/provider/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ElevasisUIProvider } from '../chunk-
|
|
1
|
+
export { ElevasisUIProvider } from '../chunk-D25AE46Q.js';
|
|
2
2
|
import '../chunk-SZHARWKU.js';
|
|
3
3
|
import '../chunk-TXPUIHX2.js';
|
|
4
4
|
import '../chunk-CYXZHBP4.js';
|
|
5
|
-
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter } from '../chunk-
|
|
5
|
+
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter } from '../chunk-KLG4H5NM.js';
|
|
6
6
|
import '../chunk-5COLSYBE.js';
|
|
7
7
|
import '../chunk-NVOCKXUQ.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-2IFYDILW.js';
|
|
9
9
|
import '../chunk-W4VYXIN7.js';
|
|
10
10
|
export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
|
|
11
11
|
import '../chunk-QJ2S46NI.js';
|
|
@@ -271,6 +271,40 @@ interface ElevasisServiceProviderProps {
|
|
|
271
271
|
*/
|
|
272
272
|
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
273
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Time range selector for dashboard metrics
|
|
276
|
+
*/
|
|
277
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
278
|
+
|
|
279
|
+
interface EventSourceMessage {
|
|
280
|
+
id: string;
|
|
281
|
+
event: string;
|
|
282
|
+
data: string;
|
|
283
|
+
retry?: number;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface FetchEventSourceWithTokenRefreshOptions {
|
|
287
|
+
url: string;
|
|
288
|
+
getToken: () => Promise<string | undefined>;
|
|
289
|
+
headers?: Record<string, string>;
|
|
290
|
+
signal: AbortSignal;
|
|
291
|
+
/** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
|
|
292
|
+
tokenRefreshDelayMs?: number;
|
|
293
|
+
onopen?: (response: Response) => void | Promise<void>;
|
|
294
|
+
onmessage?: (event: EventSourceMessage) => void;
|
|
295
|
+
onerror?: (error: unknown) => void;
|
|
296
|
+
onclose?: () => void;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface SSEConnectionManagerLike {
|
|
300
|
+
subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
|
|
301
|
+
closeConnection(key: string): void;
|
|
302
|
+
getConnectionInfo(): Map<string, {
|
|
303
|
+
url: string;
|
|
304
|
+
subscribers: number;
|
|
305
|
+
}>;
|
|
306
|
+
}
|
|
307
|
+
|
|
274
308
|
interface FeatureNavLink {
|
|
275
309
|
label: string;
|
|
276
310
|
link: string;
|
|
@@ -299,18 +333,24 @@ interface FeatureRegistry {
|
|
|
299
333
|
}
|
|
300
334
|
interface ElevasisFeaturesProviderProps {
|
|
301
335
|
features: FeatureModule[];
|
|
336
|
+
timeRange?: TimeRange;
|
|
337
|
+
operationsApiUrl?: string;
|
|
338
|
+
operationsSSEManager?: SSEConnectionManagerLike;
|
|
302
339
|
children: ReactNode;
|
|
303
340
|
}
|
|
304
341
|
interface ElevasisFeaturesContextValue {
|
|
305
342
|
navItems: FeatureNavEntry[];
|
|
306
343
|
enabledFeatures: FeatureModule[];
|
|
307
344
|
allFeatures: FeatureModule[];
|
|
345
|
+
timeRange?: TimeRange;
|
|
346
|
+
operationsApiUrl?: string;
|
|
347
|
+
operationsSSEManager?: SSEConnectionManagerLike;
|
|
308
348
|
isFeatureEnabled: (key: string) => boolean;
|
|
309
349
|
getFeature: (key: string) => FeatureModule | undefined;
|
|
310
350
|
}
|
|
311
351
|
|
|
312
352
|
declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
|
|
313
|
-
declare function ElevasisFeaturesProvider({ features, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
353
|
+
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
314
354
|
|
|
315
355
|
declare function FeatureShell({ children }: {
|
|
316
356
|
children: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter } from '../chunk-
|
|
1
|
+
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter } from '../chunk-KLG4H5NM.js';
|
|
2
2
|
import '../chunk-5COLSYBE.js';
|
|
3
3
|
import '../chunk-NVOCKXUQ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-2IFYDILW.js';
|
|
5
5
|
import '../chunk-W4VYXIN7.js';
|
|
6
6
|
export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
|
|
7
7
|
import '../chunk-QJ2S46NI.js';
|
package/dist/router/context.d.ts
CHANGED
package/dist/router/index.d.ts
CHANGED
package/dist/router/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ScrollToTop, TanStackRouterBridge } from '../chunk-
|
|
1
|
+
export { ScrollToTop, TanStackRouterBridge } from '../chunk-2IFYDILW.js';
|
|
2
2
|
export { RouterProvider, useRouterContext } from '../chunk-Q7DJKLEN.js';
|
package/dist/sse/index.d.ts
CHANGED
|
@@ -32,6 +32,14 @@ interface SSEConnectionManagerOptions {
|
|
|
32
32
|
/** Grace period in ms before closing idle connections. Defaults to 5000. */
|
|
33
33
|
closeGracePeriodMs?: number;
|
|
34
34
|
}
|
|
35
|
+
interface SSEConnectionManagerLike {
|
|
36
|
+
subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
|
|
37
|
+
closeConnection(key: string): void;
|
|
38
|
+
getConnectionInfo(): Map<string, {
|
|
39
|
+
url: string;
|
|
40
|
+
subscribers: number;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
35
43
|
/**
|
|
36
44
|
* SSE Connection Manager
|
|
37
45
|
*
|
|
@@ -44,7 +52,7 @@ interface SSEConnectionManagerOptions {
|
|
|
44
52
|
* - Automatically manages connection lifecycle
|
|
45
53
|
* - Shares single connection across multiple subscribers
|
|
46
54
|
*/
|
|
47
|
-
declare class SSEConnectionManager {
|
|
55
|
+
declare class SSEConnectionManager implements SSEConnectionManagerLike {
|
|
48
56
|
private connections;
|
|
49
57
|
private closeGracePeriodMs;
|
|
50
58
|
constructor(options?: SSEConnectionManagerOptions);
|
|
@@ -80,4 +88,4 @@ declare class SSEConnectionManager {
|
|
|
80
88
|
}
|
|
81
89
|
|
|
82
90
|
export { SSEConnectionManager, fetchEventSourceWithTokenRefresh };
|
|
83
|
-
export type { FetchEventSourceWithTokenRefreshOptions, SSEConnectionManagerOptions };
|
|
91
|
+
export type { FetchEventSourceWithTokenRefreshOptions, SSEConnectionManagerLike, SSEConnectionManagerOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -239,8 +239,8 @@
|
|
|
239
239
|
"typescript": "5.9.2",
|
|
240
240
|
"vite": "^7.0.0",
|
|
241
241
|
"@repo/core": "0.0.0",
|
|
242
|
-
"@repo/
|
|
243
|
-
"@repo/
|
|
242
|
+
"@repo/eslint-config": "0.0.0",
|
|
243
|
+
"@repo/typescript-config": "0.0.0"
|
|
244
244
|
},
|
|
245
245
|
"dependencies": {
|
|
246
246
|
"@dagrejs/dagre": "^1.1.4",
|