@datalayer/core 1.0.2 → 1.0.11
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 +1 -1
- package/lib/api/constants.d.ts +6 -0
- package/lib/api/constants.js +6 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/otel/index.d.ts +12 -0
- package/lib/api/otel/index.js +16 -0
- package/lib/api/otel/logs.d.ts +19 -0
- package/lib/api/otel/logs.js +43 -0
- package/lib/api/otel/metrics.d.ts +31 -0
- package/lib/api/otel/metrics.js +65 -0
- package/lib/api/otel/query.d.ts +16 -0
- package/lib/api/otel/query.js +37 -0
- package/lib/api/otel/services.d.ts +39 -0
- package/lib/api/otel/services.js +81 -0
- package/lib/api/otel/traces.d.ts +24 -0
- package/lib/api/otel/traces.js +53 -0
- package/lib/api/otel/types.d.ts +112 -0
- package/lib/api/otel/types.js +5 -0
- package/lib/api/runtimes/checkpoints.d.ts +122 -0
- package/lib/api/runtimes/checkpoints.js +118 -0
- package/lib/api/runtimes/index.d.ts +1 -0
- package/lib/api/runtimes/index.js +1 -0
- package/lib/api/runtimes/runtimes.d.ts +84 -0
- package/lib/api/runtimes/runtimes.js +50 -0
- package/lib/components/auth/Login.js +1 -1
- package/lib/components/display/BusyDots.d.ts +9 -0
- package/lib/components/display/BusyDots.js +31 -0
- package/lib/components/display/LiveRelativeTime.d.ts +10 -0
- package/lib/components/display/LiveRelativeTime.js +21 -0
- package/lib/components/display/index.d.ts +2 -0
- package/lib/components/display/index.js +2 -0
- package/lib/components/flashes/FlashSurveys.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/navbar/SubdomainNavBar.js +1 -1
- package/lib/components/progress/ConsumptionBar.js +6 -7
- package/lib/components/progress/CreditsIndicator.js +2 -2
- package/lib/components/progress/consumption.d.ts +12 -0
- package/lib/components/progress/consumption.js +31 -0
- package/lib/components/progress/index.d.ts +1 -0
- package/lib/components/progress/index.js +1 -0
- package/lib/components/sparklines/Sparklines.d.ts +16 -0
- package/lib/components/sparklines/Sparklines.js +65 -0
- package/lib/components/sparklines/SparklinesLine.d.ts +8 -0
- package/lib/components/sparklines/SparklinesLine.js +37 -0
- package/lib/components/sparklines/dataProcessing.d.ts +25 -0
- package/lib/components/sparklines/dataProcessing.js +35 -0
- package/lib/components/sparklines/index.d.ts +4 -0
- package/lib/components/sparklines/index.js +7 -0
- package/lib/components/sparklines/types.d.ts +36 -0
- package/lib/components/sparklines/types.js +5 -0
- package/lib/components/storage/ContentsBrowser.js +17 -1
- package/lib/components/subnav/SubNav.js +1 -1
- package/lib/config/Configuration.d.ts +4 -0
- package/lib/hooks/useCache.d.ts +6 -63
- package/lib/hooks/useCache.js +35 -205
- package/lib/hooks/useProjects.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -0
- package/lib/models/ItemDTO.js +1 -1
- package/lib/models/RolesPlatform.js +2 -2
- package/lib/models/User.d.ts +2 -0
- package/lib/models/User.js +4 -1
- package/lib/otel/client/OtelClient.d.ts +93 -0
- package/lib/otel/client/OtelClient.js +232 -0
- package/lib/otel/client/index.d.ts +2 -0
- package/lib/otel/client/index.js +5 -0
- package/lib/otel/hooks/index.d.ts +186 -0
- package/lib/otel/hooks/index.js +532 -0
- package/lib/otel/index.d.ts +34 -0
- package/lib/otel/index.js +23 -0
- package/lib/otel/types.d.ts +190 -0
- package/lib/otel/types.js +5 -0
- package/lib/otel/utils.d.ts +33 -0
- package/lib/otel/utils.js +181 -0
- package/lib/otel/views/OtelLive.d.ts +12 -0
- package/lib/otel/views/OtelLive.js +372 -0
- package/lib/otel/views/OtelLogsList.d.ts +11 -0
- package/lib/otel/views/OtelLogsList.js +137 -0
- package/lib/otel/views/OtelMetricsChart.d.ts +22 -0
- package/lib/otel/views/OtelMetricsChart.js +300 -0
- package/lib/otel/views/OtelMetricsList.d.ts +15 -0
- package/lib/otel/views/OtelMetricsList.js +213 -0
- package/lib/otel/views/OtelSearchBar.d.ts +11 -0
- package/lib/otel/views/OtelSearchBar.js +22 -0
- package/lib/otel/views/OtelSpanDetail.d.ts +11 -0
- package/lib/otel/views/OtelSpanDetail.js +172 -0
- package/lib/otel/views/OtelSpanTree.d.ts +11 -0
- package/lib/otel/views/OtelSpanTree.js +176 -0
- package/lib/otel/views/OtelSqlView.d.ts +16 -0
- package/lib/otel/views/OtelSqlView.js +239 -0
- package/lib/otel/views/OtelSystemView.d.ts +15 -0
- package/lib/otel/views/OtelSystemView.js +75 -0
- package/lib/otel/views/OtelTimeline.d.ts +11 -0
- package/lib/otel/views/OtelTimeline.js +101 -0
- package/lib/otel/views/OtelTimelineRangeSlider.d.ts +16 -0
- package/lib/otel/views/OtelTimelineRangeSlider.js +338 -0
- package/lib/otel/views/OtelTracesList.d.ts +13 -0
- package/lib/otel/views/OtelTracesList.js +199 -0
- package/lib/otel/views/index.d.ts +20 -0
- package/lib/otel/views/index.js +21 -0
- package/lib/state/storage/IAMStorage.d.ts +2 -1
- package/lib/state/substates/CoreState.js +7 -6
- package/lib/utils/Date.d.ts +6 -0
- package/lib/utils/Date.js +37 -0
- package/lib/utils/Jwt.d.ts +42 -0
- package/lib/utils/Jwt.js +44 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/views/iam/SignInSimple.d.ts +43 -0
- package/lib/views/iam/SignInSimple.js +113 -0
- package/lib/views/iam/index.d.ts +2 -0
- package/lib/views/iam/index.js +5 -0
- package/lib/views/iam-tokens/IAMTokenEdit.d.ts +5 -1
- package/lib/views/iam-tokens/IAMTokenEdit.js +54 -5
- package/lib/views/iam-tokens/IAMTokenNew.js +2 -2
- package/lib/views/iam-tokens/IAMTokens.d.ts +4 -2
- package/lib/views/iam-tokens/IAMTokens.js +68 -36
- package/lib/views/iam-tokens/Tokens.js +63 -31
- package/lib/views/index.d.ts +3 -1
- package/lib/views/index.js +3 -1
- package/lib/views/otel/DashboardView.d.ts +16 -0
- package/lib/views/otel/DashboardView.js +4 -0
- package/lib/views/otel/LogsView.d.ts +12 -0
- package/lib/views/otel/LogsView.js +4 -0
- package/lib/views/otel/MetricsView.d.ts +12 -0
- package/lib/views/otel/MetricsView.js +4 -0
- package/lib/views/otel/OtelHeader.d.ts +33 -0
- package/lib/views/otel/OtelHeader.js +105 -0
- package/lib/views/otel/SqlView.d.ts +9 -0
- package/lib/views/otel/SqlView.js +4 -0
- package/lib/views/otel/SystemView.d.ts +9 -0
- package/lib/views/otel/SystemView.js +4 -0
- package/lib/views/otel/TracesView.d.ts +12 -0
- package/lib/views/otel/TracesView.js +4 -0
- package/lib/views/otel/index.d.ts +16 -0
- package/lib/views/otel/index.js +12 -0
- package/lib/views/otel/simpleAuthStore.d.ts +21 -0
- package/lib/views/otel/simpleAuthStore.js +22 -0
- package/lib/views/profile/UserBadge.d.ts +20 -0
- package/lib/views/profile/UserBadge.js +101 -0
- package/lib/views/profile/index.d.ts +2 -0
- package/lib/views/profile/index.js +5 -0
- package/package.json +3 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SparklinesProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Sparklines Component
|
|
5
|
+
*
|
|
6
|
+
* A lightweight, composable sparkline chart component.
|
|
7
|
+
* Renders an SVG container and processes data into points for child components.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
|
|
12
|
+
* <SparklinesLine color="#0969da" />
|
|
13
|
+
* </Sparklines>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const Sparklines: React.FC<SparklinesProps>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
4
|
+
* Distributed under the terms of the Modified BSD License.
|
|
5
|
+
*/
|
|
6
|
+
import React, { useMemo } from 'react';
|
|
7
|
+
import { dataToPoints } from './dataProcessing';
|
|
8
|
+
/**
|
|
9
|
+
* Sparklines Component
|
|
10
|
+
*
|
|
11
|
+
* A lightweight, composable sparkline chart component.
|
|
12
|
+
* Renders an SVG container and processes data into points for child components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
|
|
17
|
+
* <SparklinesLine color="#0969da" />
|
|
18
|
+
* </Sparklines>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export const Sparklines = ({ data = [], width = 240, height = 60, svgWidth, svgHeight, preserveAspectRatio = 'none', margin = 2, style, min, max, limit, children, }) => {
|
|
22
|
+
// Convert data to points
|
|
23
|
+
const points = useMemo(() => {
|
|
24
|
+
if (data.length === 0) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
return dataToPoints({
|
|
28
|
+
data,
|
|
29
|
+
limit,
|
|
30
|
+
width,
|
|
31
|
+
height,
|
|
32
|
+
margin,
|
|
33
|
+
max,
|
|
34
|
+
min,
|
|
35
|
+
});
|
|
36
|
+
}, [data, limit, width, height, margin, max, min]);
|
|
37
|
+
if (data.length === 0) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
// Build SVG props
|
|
41
|
+
const svgProps = {
|
|
42
|
+
style,
|
|
43
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
44
|
+
preserveAspectRatio,
|
|
45
|
+
};
|
|
46
|
+
if (svgWidth && svgWidth > 0) {
|
|
47
|
+
svgProps.width = svgWidth;
|
|
48
|
+
}
|
|
49
|
+
if (svgHeight && svgHeight > 0) {
|
|
50
|
+
svgProps.height = svgHeight;
|
|
51
|
+
}
|
|
52
|
+
return (_jsx("svg", { ...svgProps, children: React.Children.map(children, child => {
|
|
53
|
+
if (React.isValidElement(child)) {
|
|
54
|
+
return React.cloneElement(child, {
|
|
55
|
+
data,
|
|
56
|
+
points,
|
|
57
|
+
width,
|
|
58
|
+
height,
|
|
59
|
+
margin,
|
|
60
|
+
...child.props,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return child;
|
|
64
|
+
}) }));
|
|
65
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Sparklines Line Component
|
|
4
|
+
*
|
|
5
|
+
* Renders a line chart within a Sparklines container.
|
|
6
|
+
*/
|
|
7
|
+
export const SparklinesLine = ({ points = [], height = 60, margin = 2, color = '#0969da', style = {}, }) => {
|
|
8
|
+
if (!points || points.length === 0) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
// Convert points to polyline format
|
|
12
|
+
const linePoints = points.map(p => `${p.x},${p.y}`).join(' ');
|
|
13
|
+
// Create fill area by closing the path
|
|
14
|
+
const closePolyPoints = [
|
|
15
|
+
{ x: points[points.length - 1].x, y: height - margin },
|
|
16
|
+
{ x: margin, y: height - margin },
|
|
17
|
+
{ x: margin, y: points[0].y },
|
|
18
|
+
];
|
|
19
|
+
const fillPoints = points
|
|
20
|
+
.concat(closePolyPoints)
|
|
21
|
+
.map(p => `${p.x},${p.y}`)
|
|
22
|
+
.join(' ');
|
|
23
|
+
const lineStyle = {
|
|
24
|
+
stroke: color || style.stroke || 'slategray',
|
|
25
|
+
strokeWidth: style.strokeWidth || '1.5',
|
|
26
|
+
strokeLinejoin: 'round',
|
|
27
|
+
strokeLinecap: 'round',
|
|
28
|
+
fill: 'none',
|
|
29
|
+
};
|
|
30
|
+
const fillStyle = {
|
|
31
|
+
stroke: 'none',
|
|
32
|
+
strokeWidth: '0',
|
|
33
|
+
fillOpacity: style.fillOpacity || '0.1',
|
|
34
|
+
fill: style.fill || color || 'slategray',
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs("g", { children: [_jsx("polyline", { points: fillPoints, style: fillStyle }), _jsx("polyline", { points: linePoints, style: lineStyle })] }));
|
|
37
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get minimum value from array
|
|
3
|
+
*/
|
|
4
|
+
export declare const min: (data: number[]) => number;
|
|
5
|
+
/**
|
|
6
|
+
* Get maximum value from array
|
|
7
|
+
*/
|
|
8
|
+
export declare const max: (data: number[]) => number;
|
|
9
|
+
/**
|
|
10
|
+
* Convert data array to SVG points
|
|
11
|
+
*/
|
|
12
|
+
export interface DataToPointsOptions {
|
|
13
|
+
data: number[];
|
|
14
|
+
limit?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
margin?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
min?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface Point {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const dataToPoints: ({ data, limit, width, height, margin, max: maxVal, min: minVal, }: DataToPointsOptions) => Point[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Get minimum value from array
|
|
7
|
+
*/
|
|
8
|
+
export const min = (data) => {
|
|
9
|
+
return Math.min(...data);
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Get maximum value from array
|
|
13
|
+
*/
|
|
14
|
+
export const max = (data) => {
|
|
15
|
+
return Math.max(...data);
|
|
16
|
+
};
|
|
17
|
+
export const dataToPoints = ({ data, limit, width = 1, height = 1, margin = 0, max: maxVal, min: minVal, }) => {
|
|
18
|
+
let processedData = [...data];
|
|
19
|
+
const len = processedData.length;
|
|
20
|
+
// Limit data if specified
|
|
21
|
+
if (limit && limit < len) {
|
|
22
|
+
processedData = processedData.slice(len - limit);
|
|
23
|
+
}
|
|
24
|
+
// Calculate min/max if not provided
|
|
25
|
+
const dataMax = maxVal ?? max(processedData);
|
|
26
|
+
const dataMin = minVal ?? min(processedData);
|
|
27
|
+
// Calculate scaling factors
|
|
28
|
+
const vfactor = (height - margin * 2) / (dataMax - dataMin || 2);
|
|
29
|
+
const hfactor = (width - margin * 2) / ((limit || len) - (len > 1 ? 1 : 0));
|
|
30
|
+
// Map data to points
|
|
31
|
+
return processedData.map((d, i) => ({
|
|
32
|
+
x: i * hfactor + margin,
|
|
33
|
+
y: (dataMax === dataMin ? 1 : dataMax - d) * vfactor + margin,
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export { Sparklines } from './Sparklines';
|
|
6
|
+
export { SparklinesLine } from './SparklinesLine';
|
|
7
|
+
export { dataToPoints, min, max } from './dataProcessing';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Point interface for sparkline coordinates
|
|
3
|
+
*/
|
|
4
|
+
export interface Point {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Sparklines component props
|
|
10
|
+
*/
|
|
11
|
+
export interface SparklinesProps {
|
|
12
|
+
data: number[];
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
svgWidth?: number;
|
|
16
|
+
svgHeight?: number;
|
|
17
|
+
preserveAspectRatio?: string;
|
|
18
|
+
margin?: number;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
limit?: number;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Sparklines Line component props
|
|
27
|
+
*/
|
|
28
|
+
export interface SparklinesLineProps {
|
|
29
|
+
data?: number[];
|
|
30
|
+
points?: Point[];
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
margin?: number;
|
|
34
|
+
color?: string;
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
}
|
|
@@ -209,7 +209,23 @@ export function ContentsBrowser(props) {
|
|
|
209
209
|
const onSelect = useCallback((item, refresh) => {
|
|
210
210
|
setSelectedItem(item.path === selectedItem?.path ? null : { ...item, refresh });
|
|
211
211
|
}, [selectedItem]);
|
|
212
|
-
return (_jsxs(Box, { sx: {
|
|
212
|
+
return (_jsxs(Box, { sx: {
|
|
213
|
+
display: 'grid',
|
|
214
|
+
gridTemplateAreas: `"header" "content"`,
|
|
215
|
+
overflow: 'hidden',
|
|
216
|
+
}, children: [_jsxs(Box, { sx: {
|
|
217
|
+
gridArea: 'header',
|
|
218
|
+
display: 'flex',
|
|
219
|
+
alignItems: 'center',
|
|
220
|
+
minWidth: 0,
|
|
221
|
+
overflow: 'hidden',
|
|
222
|
+
}, children: [_jsx(Box, { sx: { flex: '1 1 auto', minWidth: 0, overflow: 'hidden' }, children: title }), _jsxs(Box, { sx: {
|
|
223
|
+
display: 'flex',
|
|
224
|
+
flexDirection: 'row',
|
|
225
|
+
alignItems: 'center',
|
|
226
|
+
flexWrap: 'nowrap',
|
|
227
|
+
flexShrink: 0,
|
|
228
|
+
}, children: [_jsx(IconButton, { variant: "invisible", "aria-label": 'Refresh contents browser.', title: 'Refresh contents browser.', icon: CounterClockWiseIcon, onClick: refresh }), _jsx(UploadIconButton, { label: 'Upload a file', multiple: true, upload: upload })] })] }), isLoading ? (_jsx(Box, { sx: {
|
|
213
229
|
gridArea: 'content',
|
|
214
230
|
display: 'flex',
|
|
215
231
|
alignItems: 'center',
|
|
@@ -152,7 +152,7 @@ const _SubNavRoot = memo(({ id, children, className, 'data-testid': testId, full
|
|
|
152
152
|
activeLink.props.children?.[1];
|
|
153
153
|
return (_jsx("div", { className: clsx(styles['SubNav__container'], hasAnchoredNav && styles['SubNav__container--with-anchor-nav']), children: _jsx(SubNavProvider, { children: _jsx("nav", { ref: navRef, id: id, className: clsx(styles.SubNav, isOpenAtNarrow && styles['SubNav--open'], hasShadow && styles['SubNav--has-shadow'], fullWidth && styles['SubNav--full-width'], className), "data-testid": testId || testIds.root, children: _jsxs("div", { ref: rootRef, className: styles['SubNav--header-container-outer'], children: [_jsxs("div", { className: styles['SubNav__header-container'], children: [HeadingChild && (_jsx("div", { className: styles['SubNav__heading-container'], children: HeadingChild })), !isLarge && (_jsxs("button", { className: clsx(styles['SubNav__overlay-toggle'], isOpenAtNarrow && styles['SubNav__overlay-toggle--open']), "data-testid": testIds.button, onClick: isOpenAtNarrow ? closeMenuCallback : handleMenuToggle, "aria-expanded": isOpenAtNarrow ? 'true' : 'false', "aria-controls": idForLinkContainer, children: [activeLinklabel && (_jsxs("span", { className: "visually-hidden", children: ["Navigation menu. Current page:", ' '] })), _jsxs("span", { className: clsx(styles['SubNav__overlay-toggle-content'], !activeLinklabel &&
|
|
154
154
|
styles['SubNav__overlay-toggle-content--end']), children: [activeLinklabel && (_jsx(Text, { as: "span", size: "200", children: activeLinklabel })), isOpenAtNarrow ? (_jsx(ChevronUpIcon, { className: styles['SubNav__overlay-toggle-icon'], size: 24 })) : (_jsx(ChevronDownIcon, { className: styles['SubNav__overlay-toggle-icon'], size: 24 }))] })] })), MaybeSubNav && MaybeSubNav] }), LinkChildren.length && (_jsxs("ul", { ref: overlayRef, id: idForLinkContainer, className: clsx(styles['SubNav__links-overlay'], isOpenAtNarrow && styles['SubNav__links-overlay--open']), "data-testid": testIds.overlay, children: [ActionChild ? (_jsx("li", { className: styles['SubNav__action-container'], children: ActionChild })) : (_jsx("li", { className: styles['SubNav__action-container'] })), LinkChildren, _jsx(ButtonGroup, { buttonSize: "small", children: _jsx(Button, { href: "#", onClick: e => {
|
|
155
|
-
window.location.assign('https://datalayer.
|
|
155
|
+
window.location.assign('https://datalayer.ai');
|
|
156
156
|
}, hasArrow: true, variant: "subtle", children: "Login" }) })] }))] }) }) }) }));
|
|
157
157
|
});
|
|
158
158
|
const SubNavHeading = ({ href, children, className, 'data-testid': testID, ...props }) => {
|
package/lib/hooks/useCache.d.ts
CHANGED
|
@@ -212,12 +212,6 @@ export declare const queryKeys: {
|
|
|
212
212
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
213
213
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
214
214
|
};
|
|
215
|
-
readonly agentRuntimes: {
|
|
216
|
-
readonly all: () => readonly ["agentRuntimes"];
|
|
217
|
-
readonly lists: () => readonly ["agentRuntimes", "list"];
|
|
218
|
-
readonly details: () => readonly ["agentRuntimes", "detail"];
|
|
219
|
-
readonly detail: (podName: string) => readonly ["agentRuntimes", "detail", string];
|
|
220
|
-
};
|
|
221
215
|
readonly layout: {
|
|
222
216
|
readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
|
|
223
217
|
};
|
|
@@ -298,6 +292,11 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
298
292
|
password: string;
|
|
299
293
|
passwordConfirm: string;
|
|
300
294
|
}, unknown>;
|
|
295
|
+
useCreateUrlForPasswordChange: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
296
|
+
handle: string;
|
|
297
|
+
password: string;
|
|
298
|
+
passwordConfirm: string;
|
|
299
|
+
}, unknown>;
|
|
301
300
|
useConfirmPasswordWithToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
302
301
|
userHandle: string;
|
|
303
302
|
token: string;
|
|
@@ -480,57 +479,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
480
479
|
spaceHandle?: string;
|
|
481
480
|
}, unknown>;
|
|
482
481
|
useExportSpace: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
483
|
-
useAgentRuntime: (podName: string | undefined) => import("@tanstack/react-query").UseQueryResult<{
|
|
484
|
-
status: "running" | "paused" | "starting" | "terminated" | "archived";
|
|
485
|
-
name: string;
|
|
486
|
-
id: string;
|
|
487
|
-
url: string | undefined;
|
|
488
|
-
messageCount: number;
|
|
489
|
-
agent_spec_id: string | undefined;
|
|
490
|
-
pod_name: string;
|
|
491
|
-
environment_name: string;
|
|
492
|
-
environment_title?: string;
|
|
493
|
-
given_name: string;
|
|
494
|
-
phase?: string;
|
|
495
|
-
type: string;
|
|
496
|
-
started_at?: string;
|
|
497
|
-
expired_at?: string;
|
|
498
|
-
burning_rate?: number;
|
|
499
|
-
ingress?: string;
|
|
500
|
-
token?: string;
|
|
501
|
-
agentSpec?: any;
|
|
502
|
-
}, Error>;
|
|
503
|
-
useAgentRuntimes: () => import("@tanstack/react-query").UseQueryResult<{
|
|
504
|
-
status: "running" | "paused" | "starting" | "terminated" | "archived";
|
|
505
|
-
name: string;
|
|
506
|
-
id: string;
|
|
507
|
-
url: string | undefined;
|
|
508
|
-
messageCount: number;
|
|
509
|
-
agent_spec_id: string | undefined;
|
|
510
|
-
pod_name: string;
|
|
511
|
-
environment_name: string;
|
|
512
|
-
environment_title?: string;
|
|
513
|
-
given_name: string;
|
|
514
|
-
phase?: string;
|
|
515
|
-
type: string;
|
|
516
|
-
started_at?: string;
|
|
517
|
-
expired_at?: string;
|
|
518
|
-
burning_rate?: number;
|
|
519
|
-
ingress?: string;
|
|
520
|
-
token?: string;
|
|
521
|
-
agentSpec?: any;
|
|
522
|
-
}[], Error>;
|
|
523
|
-
useCreateAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
524
|
-
environmentName?: string;
|
|
525
|
-
givenName?: string;
|
|
526
|
-
creditsLimit?: number;
|
|
527
|
-
type?: string;
|
|
528
|
-
editorVariant?: string;
|
|
529
|
-
enableCodemode?: boolean;
|
|
530
|
-
agentSpecId?: string;
|
|
531
|
-
}, unknown>;
|
|
532
|
-
useDeleteAgentRuntime: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
533
|
-
useRefreshAgentRuntimes: () => () => void;
|
|
534
482
|
useCourse: (courseId: string) => import("@tanstack/react-query").UseQueryResult<ICourse | undefined, Error>;
|
|
535
483
|
useUpdateCourse: () => import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
536
484
|
courseId: string;
|
|
@@ -733,6 +681,7 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
733
681
|
useTokens: () => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
734
682
|
useCreateToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, Omit<IIAMToken, "id" | "value">, unknown>;
|
|
735
683
|
useUpdateToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, IIAMToken, unknown>;
|
|
684
|
+
useDeleteToken: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
736
685
|
useInvite: (token: string) => import("@tanstack/react-query").UseQueryResult<import("..").IInvite | undefined, Error>;
|
|
737
686
|
useInvitesByUser: (accountId: string) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
738
687
|
usePutInvite: () => import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
@@ -1014,12 +963,6 @@ export declare const useCache: ({ loginRoute }?: CacheProps) => {
|
|
|
1014
963
|
readonly bySpace: (spaceId: string) => readonly ["items", "space", string];
|
|
1015
964
|
readonly search: (opts: ISearchOpts) => readonly ["items", "search", ISearchOpts];
|
|
1016
965
|
};
|
|
1017
|
-
readonly agentRuntimes: {
|
|
1018
|
-
readonly all: () => readonly ["agentRuntimes"];
|
|
1019
|
-
readonly lists: () => readonly ["agentRuntimes", "list"];
|
|
1020
|
-
readonly details: () => readonly ["agentRuntimes", "detail"];
|
|
1021
|
-
readonly detail: (podName: string) => readonly ["agentRuntimes", "detail", string];
|
|
1022
|
-
};
|
|
1023
966
|
readonly layout: {
|
|
1024
967
|
readonly byAccount: (accountHandle: string, spaceHandle?: string) => readonly ["layout", string, string] | readonly ["layout", string];
|
|
1025
968
|
};
|