@datalayer/core 1.0.13 → 1.0.15
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/lib/App.js +2 -2
- package/lib/api/DatalayerApi.js +6 -1
- package/lib/api/constants.d.ts +1 -1
- package/lib/api/constants.js +1 -1
- package/lib/api/iam/authentication.js +3 -3
- package/lib/api/iam/datasources.js +3 -3
- package/lib/api/iam/healthz.js +2 -2
- package/lib/api/iam/index.js +12 -12
- package/lib/api/iam/oauth2.js +2 -2
- package/lib/api/iam/profile.js +3 -3
- package/lib/api/iam/secrets.js +3 -3
- package/lib/api/iam/usage.js +2 -2
- package/lib/api/index.js +8 -8
- package/lib/api/otel/index.js +5 -5
- package/lib/api/otel/logs.js +3 -3
- package/lib/api/otel/metrics.js +3 -3
- package/lib/api/otel/query.js +3 -3
- package/lib/api/otel/services.js +3 -3
- package/lib/api/otel/traces.js +3 -3
- package/lib/api/runtimes/checkpoints.js +3 -3
- package/lib/api/runtimes/environments.js +3 -3
- package/lib/api/runtimes/healthz.js +2 -2
- package/lib/api/runtimes/index.js +5 -5
- package/lib/api/runtimes/runtimes.js +3 -3
- package/lib/api/runtimes/snapshots.js +3 -3
- package/lib/api/spacer/documents.js +2 -2
- package/lib/api/spacer/healthz.js +2 -2
- package/lib/api/spacer/index.js +7 -7
- package/lib/api/spacer/items.js +2 -2
- package/lib/api/spacer/lexicals.d.ts +8 -0
- package/lib/api/spacer/lexicals.js +16 -2
- package/lib/api/spacer/notebooks.d.ts +8 -0
- package/lib/api/spacer/notebooks.js +16 -2
- package/lib/api/spacer/spaces.d.ts +76 -1
- package/lib/api/spacer/spaces.js +143 -3
- package/lib/api/spacer/users.js +3 -3
- package/lib/client/auth/AuthenticationManager.js +3 -3
- package/lib/client/auth/index.js +4 -4
- package/lib/client/auth/storage.d.ts +3 -1
- package/lib/client/auth/storage.js +35 -14
- package/lib/client/auth/strategies.js +3 -3
- package/lib/client/base.js +2 -2
- package/lib/client/index.d.ts +22 -2
- package/lib/client/index.js +21 -20
- package/lib/client/mixins/IAMMixin.js +10 -10
- package/lib/client/mixins/RuntimesMixin.js +7 -7
- package/lib/client/mixins/SpacerMixin.d.ts +99 -0
- package/lib/client/mixins/SpacerMixin.js +265 -11
- package/lib/client/utils/slugify.d.ts +8 -0
- package/lib/client/utils/slugify.js +18 -0
- package/lib/client/utils/spacerUtils.js +3 -3
- package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
- package/lib/collaboration/index.js +2 -2
- package/lib/components/auth/Login.js +6 -6
- package/lib/components/auth/Login.stories.js +2 -2
- package/lib/components/auth/LoginToken.js +2 -2
- package/lib/components/auth/index.js +3 -3
- package/lib/components/avatars/BoringAvatar.stories.js +1 -1
- package/lib/components/avatars/UserProfileAvatar.js +2 -2
- package/lib/components/avatars/index.js +2 -2
- package/lib/components/banners/NoAutomationBanner.js +1 -1
- package/lib/components/banners/index.js +1 -1
- package/lib/components/buttons/DownloadCSVButton.js +1 -1
- package/lib/components/buttons/DownloadJsonButton.js +1 -1
- package/lib/components/buttons/index.js +5 -5
- package/lib/components/checkout/StripeCheckout.js +1 -1
- package/lib/components/checkout/index.js +1 -1
- package/lib/components/confetti/index.js +1 -1
- package/lib/components/context/OrganizationSelect.js +2 -2
- package/lib/components/context/SpaceSelect.js +2 -2
- package/lib/components/context/index.js +2 -2
- package/lib/components/display/DatalayerBox.js +1 -1
- package/lib/components/display/LiveRelativeTime.js +1 -1
- package/lib/components/display/NavLink.js +1 -1
- package/lib/components/display/index.js +14 -14
- package/lib/components/echarts/index.js +1 -1
- package/lib/components/flashes/FlashDisclaimer.js +2 -2
- package/lib/components/flashes/FlashGuest.js +4 -4
- package/lib/components/flashes/FlashSurveys.js +4 -4
- package/lib/components/flashes/FlashUnauthorized.js +1 -1
- package/lib/components/flashes/index.js +6 -6
- package/lib/components/flashes/surveys/index.js +2 -2
- package/lib/components/iam/ExternalTokenSilentLogin.js +3 -3
- package/lib/components/iam/index.js +1 -1
- package/lib/components/icons/index.js +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/labels/index.js +1 -1
- package/lib/components/landings/index.js +1 -1
- package/lib/components/navbar/NavigationVisbilityObserver.js +4 -4
- package/lib/components/navbar/SubdomainNavBar.js +5 -5
- package/lib/components/navbar/index.js +2 -2
- package/lib/components/nbgrader/index.js +1 -1
- package/lib/components/notebooks/index.js +2 -2
- package/lib/components/progress/ConsumptionBar.js +1 -1
- package/lib/components/progress/CreditsIndicator.js +2 -2
- package/lib/components/progress/index.js +6 -6
- package/lib/components/runtimes/RuntimeCellVariablesDialog.js +2 -2
- package/lib/components/runtimes/RuntimeLauncherDialog.js +9 -9
- package/lib/components/runtimes/RuntimePickerBase.js +3 -3
- package/lib/components/runtimes/RuntimePickerCell.js +8 -8
- package/lib/components/runtimes/RuntimePickerNotebook.js +6 -6
- package/lib/components/runtimes/RuntimeSimplePicker.js +3 -3
- package/lib/components/runtimes/index.js +11 -11
- package/lib/components/screencapture/ScreencaptureButton.js +3 -3
- package/lib/components/screencapture/index.js +2 -2
- package/lib/components/snapshots/RuntimeSnapshotMenu.js +4 -4
- package/lib/components/snapshots/index.js +1 -1
- package/lib/components/snippets/SnippetDialog.js +1 -1
- package/lib/components/snippets/index.js +1 -1
- package/lib/components/sparklines/Sparklines.js +5 -1
- package/lib/components/sparklines/dataProcessing.d.ts +2 -4
- package/lib/components/sparklines/dataProcessing.js +1 -1
- package/lib/components/sparklines/index.d.ts +1 -0
- package/lib/components/sparklines/index.js +7 -3
- package/lib/components/sparklines/types.js +1 -1
- package/lib/components/storage/ContentsBrowser.js +3 -3
- package/lib/components/storage/index.js +2 -2
- package/lib/components/students/index.js +1 -1
- package/lib/components/subnav/SubNav.js +2 -2
- package/lib/components/subnav/index.js +1 -1
- package/lib/components/tables/index.js +1 -1
- package/lib/components/text-reveal/TextRevealAnimation.js +1 -1
- package/lib/components/text-reveal/index.js +1 -1
- package/lib/components/tokens/index.js +1 -1
- package/lib/components/toolbars/AssignmentEditorToolbar.js +1 -1
- package/lib/components/toolbars/DocumentEditorToolbar.js +1 -1
- package/lib/components/toolbars/index.js +3 -3
- package/lib/components/users/PeerIndicator.js +1 -1
- package/lib/components/users/index.js +1 -1
- package/lib/config/Configuration.d.ts +1 -1
- package/lib/config/Configuration.js +2 -2
- package/lib/config/index.js +2 -2
- package/lib/config/integrations/index.js +1 -1
- package/lib/hooks/assets/index.js +1 -1
- package/lib/hooks/index.js +33 -33
- package/lib/hooks/layouts/LayoutBackdrop.js +2 -2
- package/lib/hooks/layouts/LayoutScreencapture.js +3 -3
- package/lib/hooks/layouts/index.js +2 -2
- package/lib/hooks/useAuthorization.js +3 -3
- package/lib/hooks/useBackdrop.js +2 -2
- package/lib/hooks/useCache.js +9 -9
- package/lib/hooks/useCellOutputshot.js +2 -2
- package/lib/hooks/useDatalayer.js +6 -6
- package/lib/hooks/useIAM.js +4 -4
- package/lib/hooks/useLocation.js +2 -2
- package/lib/hooks/useLocationHandles.js +3 -3
- package/lib/hooks/useNavigate.js +4 -4
- package/lib/hooks/useParams.js +2 -2
- package/lib/hooks/useProjects.d.ts +2 -8
- package/lib/hooks/useProjects.js +2 -2
- package/lib/hooks/useRuntimes.js +1 -1
- package/lib/hooks/useScreencapture.js +1 -1
- package/lib/hooks/useToast.js +41 -5
- package/lib/hooks/useUpload.js +2 -2
- package/lib/hooks/useUser.js +1 -1
- package/lib/i18n/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +17 -17
- package/lib/main.js +1 -1
- package/lib/mocks/components/FlashMock.js +1 -1
- package/lib/mocks/components/index.js +1 -1
- package/lib/mocks/hooks/index.js +1 -1
- package/lib/mocks/hooks/rests/index.js +1 -1
- package/lib/mocks/hooks/useDatalayerMock.js +5 -5
- package/lib/mocks/index.js +5 -5
- package/lib/mocks/models/CourseMock.js +3 -3
- package/lib/mocks/models/InviteMock.js +2 -2
- package/lib/mocks/models/OrganisationMock.js +1 -1
- package/lib/mocks/models/SchoolMock.js +1 -1
- package/lib/mocks/models/SpaceMock.js +2 -2
- package/lib/mocks/models/TeamMock.js +1 -1
- package/lib/mocks/models/UserMock.js +1 -1
- package/lib/mocks/models/index.js +9 -9
- package/lib/mocks/views/ChartMock.js +3 -3
- package/lib/mocks/views/DashboardMock.js +2 -2
- package/lib/mocks/views/TableMock.js +1 -1
- package/lib/mocks/views/index.js +7 -7
- package/lib/models/Contact.js +3 -3
- package/lib/models/CreditsDTO.js +1 -1
- package/lib/models/Datasource.js +1 -1
- package/lib/models/EnvironmentDTO.d.ts +1 -1
- package/lib/models/EnvironmentDTO.js +2 -2
- package/lib/models/HealthCheck.js +1 -1
- package/lib/models/IAMProviderUsers.js +1 -1
- package/lib/models/Invite.js +1 -1
- package/lib/models/ItemDTO.js +1 -1
- package/lib/models/LexicalDTO.js +4 -4
- package/lib/models/NotebookDTO.js +4 -4
- package/lib/models/Organization.js +2 -2
- package/lib/models/Page.js +2 -2
- package/lib/models/ProjectDTO.d.ts +89 -0
- package/lib/models/ProjectDTO.js +131 -0
- package/lib/models/RuntimeDTO.js +2 -2
- package/lib/models/RuntimeSnapshotDTO.js +2 -2
- package/lib/models/Secret.js +1 -1
- package/lib/models/Space.d.ts +1 -1
- package/lib/models/Space.js +3 -3
- package/lib/models/SpaceDTO.d.ts +61 -0
- package/lib/models/SpaceDTO.js +9 -9
- package/lib/models/Team.js +2 -2
- package/lib/models/User.js +5 -5
- package/lib/models/UserDTO.js +1 -1
- package/lib/models/index.js +75 -75
- package/lib/navigation/components.js +1 -1
- package/lib/navigation/index.js +4 -4
- package/lib/otel/client/OtelClient.js +1 -1
- package/lib/otel/client/index.js +1 -1
- package/lib/otel/hooks/index.js +1 -1
- package/lib/otel/index.js +15 -15
- package/lib/otel/types.d.ts +1 -1
- package/lib/otel/views/OtelLive.js +11 -11
- package/lib/otel/views/OtelLogsList.js +1 -1
- package/lib/otel/views/OtelMetricsList.d.ts +2 -5
- package/lib/otel/views/OtelMetricsList.js +2 -2
- package/lib/otel/views/OtelSpanDetail.js +2 -2
- package/lib/otel/views/OtelSpanTree.js +1 -1
- package/lib/otel/views/OtelSqlView.js +1 -1
- package/lib/otel/views/OtelSystemView.js +1 -1
- package/lib/otel/views/OtelTimeline.js +1 -1
- package/lib/otel/views/OtelTracesList.js +1 -1
- package/lib/otel/views/index.d.ts +1 -0
- package/lib/otel/views/index.js +12 -12
- package/lib/routes/index.js +1 -1
- package/lib/services/DatalayerServiceManager.d.ts +1 -1
- package/lib/services/DatalayerServiceManager.js +4 -4
- package/lib/services/index.js +3 -3
- package/lib/state/State.js +13 -13
- package/lib/state/index.js +3 -3
- package/lib/state/storage/IAMStorage.js +31 -6
- package/lib/state/storage/index.js +1 -1
- package/lib/state/substates/CoreState.js +2 -2
- package/lib/state/substates/IAMState.js +5 -5
- package/lib/state/substates/RuntimesState.js +3 -3
- package/lib/state/substates/SurveysState.js +4 -4
- package/lib/state/substates/TeamState.js +1 -1
- package/lib/state/substates/index.js +14 -14
- package/lib/stateful/index.js +2 -2
- package/lib/stateful/jupyter/exec/Snippets.js +1 -1
- package/lib/stateful/jupyter/exec/index.js +2 -2
- package/lib/stateful/jupyter/index.js +2 -2
- package/lib/stateful/runtimes/actions.js +4 -4
- package/lib/stateful/runtimes/index.js +5 -5
- package/lib/stateful/runtimes/snapshots.js +1 -1
- package/lib/utils/Date.d.ts +11 -0
- package/lib/utils/Date.js +30 -0
- package/lib/utils/cli/index.js +1 -1
- package/lib/utils/index.js +29 -29
- package/lib/views/datasources/DatasourceDetail.js +3 -3
- package/lib/views/datasources/DatasourceNew.js +2 -2
- package/lib/views/datasources/Datasources.js +1 -1
- package/lib/views/datasources/index.js +3 -3
- package/lib/views/iam/SignInSimple.js +1 -1
- package/lib/views/iam/index.js +1 -1
- package/lib/views/iam-tokens/IAMTokenEdit.js +3 -3
- package/lib/views/iam-tokens/IAMTokenNew.js +2 -2
- package/lib/views/iam-tokens/IAMTokens.js +1 -1
- package/lib/views/iam-tokens/Tokens.js +1 -1
- package/lib/views/iam-tokens/index.js +3 -3
- package/lib/views/index.js +3 -3
- package/lib/views/otel/DashboardView.js +1 -1
- package/lib/views/otel/LogsView.js +1 -1
- package/lib/views/otel/MetricsView.js +1 -1
- package/lib/views/otel/OtelHeader.js +1 -1
- package/lib/views/otel/SqlView.js +1 -1
- package/lib/views/otel/SystemView.js +1 -1
- package/lib/views/otel/TracesView.js +1 -1
- package/lib/views/otel/index.js +8 -8
- package/lib/views/otel/simpleAuthStore.js +1 -1
- package/lib/views/profile/UserBadge.js +1 -1
- package/lib/views/profile/index.js +1 -1
- package/lib/views/secrets/SecretEdit.js +3 -3
- package/lib/views/secrets/SecretNew.js +2 -2
- package/lib/views/secrets/Secrets.js +1 -1
- package/lib/views/secrets/index.js +3 -3
- package/package.json +1 -1
package/lib/models/Space.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { asUser } from './User';
|
|
6
|
-
import { asArray } from '../utils';
|
|
7
|
-
import { newUserMock } from './../mocks/models';
|
|
5
|
+
import { asUser } from './User.js';
|
|
6
|
+
import { asArray } from '../utils/index.js';
|
|
7
|
+
import { newUserMock } from './../mocks/models/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Convert the raw space object to {@link ISpace}.
|
|
10
10
|
*
|
package/lib/models/SpaceDTO.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { LexicalDTO, type LexicalJSON } from './LexicalDTO';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface SpaceData {
|
|
10
10
|
uid: string;
|
|
11
|
+
id?: string;
|
|
11
12
|
name_t: string;
|
|
12
13
|
handle_s: string;
|
|
13
14
|
variant_s: string;
|
|
@@ -15,6 +16,11 @@ export interface SpaceData {
|
|
|
15
16
|
tags_ss?: string[];
|
|
16
17
|
members?: any[];
|
|
17
18
|
items?: any[];
|
|
19
|
+
public_b?: boolean;
|
|
20
|
+
creation_ts_dt?: string;
|
|
21
|
+
attached_agent_pod_name_s?: string;
|
|
22
|
+
attached_agent_spec_id_s?: string;
|
|
23
|
+
attached_agent_given_name_s?: string;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* Stable public interface for Space data.
|
|
@@ -267,3 +273,58 @@ export interface SpacesForUserResponse {
|
|
|
267
273
|
message: string;
|
|
268
274
|
spaces: SpaceData[];
|
|
269
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Request payload for updating a space.
|
|
278
|
+
* Supports arbitrary Solr fields via index signature.
|
|
279
|
+
* @interface UpdateSpaceRequest
|
|
280
|
+
*/
|
|
281
|
+
export interface UpdateSpaceRequest {
|
|
282
|
+
name?: string;
|
|
283
|
+
description?: string;
|
|
284
|
+
[key: string]: unknown;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Response from getting a space by ID
|
|
288
|
+
* @interface GetSpaceResponse
|
|
289
|
+
*/
|
|
290
|
+
export interface GetSpaceResponse {
|
|
291
|
+
success: boolean;
|
|
292
|
+
message: string;
|
|
293
|
+
space?: SpaceData;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Response from updating a space
|
|
297
|
+
* @interface UpdateSpaceResponse
|
|
298
|
+
*/
|
|
299
|
+
export interface UpdateSpaceResponse {
|
|
300
|
+
success: boolean;
|
|
301
|
+
message: string;
|
|
302
|
+
space?: SpaceData;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Response from deleting a space
|
|
306
|
+
* @interface DeleteSpaceResponse
|
|
307
|
+
*/
|
|
308
|
+
export interface DeleteSpaceResponse {
|
|
309
|
+
success: boolean;
|
|
310
|
+
message: string;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Response from getting default items for a space
|
|
314
|
+
* @interface GetSpaceDefaultItemsResponse
|
|
315
|
+
*/
|
|
316
|
+
export interface GetSpaceDefaultItemsResponse {
|
|
317
|
+
success: boolean;
|
|
318
|
+
message: string;
|
|
319
|
+
default_notebook_uid: string | null;
|
|
320
|
+
default_document_uid: string | null;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Response from getting spaces by type
|
|
324
|
+
* @interface GetSpacesByTypeResponse
|
|
325
|
+
*/
|
|
326
|
+
export interface GetSpacesByTypeResponse {
|
|
327
|
+
success: boolean;
|
|
328
|
+
message: string;
|
|
329
|
+
spaces: SpaceData[];
|
|
330
|
+
}
|
package/lib/models/SpaceDTO.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module models/SpaceDTO
|
|
9
9
|
*/
|
|
10
|
-
import * as users from '../api/spacer/users';
|
|
11
|
-
import * as items from '../api/spacer/items';
|
|
12
|
-
import * as notebooks from '../api/spacer/notebooks';
|
|
13
|
-
import * as lexicals from '../api/spacer/lexicals';
|
|
14
|
-
import { NotebookDTO } from './NotebookDTO';
|
|
15
|
-
import { LexicalDTO } from './LexicalDTO';
|
|
16
|
-
import { ItemTypes } from '../client/constants';
|
|
17
|
-
import { convertSpaceItemsToModels } from '../client/utils/spacerUtils';
|
|
18
|
-
import { validateJSON } from '../api/utils/validation';
|
|
10
|
+
import * as users from '../api/spacer/users.js';
|
|
11
|
+
import * as items from '../api/spacer/items.js';
|
|
12
|
+
import * as notebooks from '../api/spacer/notebooks.js';
|
|
13
|
+
import * as lexicals from '../api/spacer/lexicals.js';
|
|
14
|
+
import { NotebookDTO } from './NotebookDTO.js';
|
|
15
|
+
import { LexicalDTO } from './LexicalDTO.js';
|
|
16
|
+
import { ItemTypes } from '../client/constants.js';
|
|
17
|
+
import { convertSpaceItemsToModels } from '../client/utils/spacerUtils.js';
|
|
18
|
+
import { validateJSON } from '../api/utils/validation.js';
|
|
19
19
|
/**
|
|
20
20
|
* Space domain model that wraps API responses with convenient methods.
|
|
21
21
|
* Provides workspace management with data refresh and content creation operations.
|
package/lib/models/Team.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { asArray } from '../utils';
|
|
6
|
-
import { asUser } from './User';
|
|
5
|
+
import { asArray } from '../utils/index.js';
|
|
6
|
+
import { asUser } from './User.js';
|
|
7
7
|
export function asTeam(t, organizationId) {
|
|
8
8
|
let members = new Array();
|
|
9
9
|
if (t.members) {
|
package/lib/models/User.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { asDisplayName, namesAsInitials, toFriendlyName } from '../utils';
|
|
6
|
-
import { asIAMProviderLinked } from './IAMProviderLinked';
|
|
7
|
-
import { BOOTSTRAP_USER_ONBOARDING } from './UserOnboarding';
|
|
8
|
-
import { UserSettings } from './UserSettings';
|
|
9
|
-
import { asUserEvent } from './UserEvent';
|
|
5
|
+
import { asDisplayName, namesAsInitials, toFriendlyName } from '../utils/index.js';
|
|
6
|
+
import { asIAMProviderLinked } from './IAMProviderLinked.js';
|
|
7
|
+
import { BOOTSTRAP_USER_ONBOARDING } from './UserOnboarding.js';
|
|
8
|
+
import { UserSettings } from './UserSettings.js';
|
|
9
|
+
import { asUserEvent } from './UserEvent.js';
|
|
10
10
|
export const ANONYMOUS_USER = undefined;
|
|
11
11
|
export const ANONYMOUS_USER_TOKEN = undefined;
|
|
12
12
|
export const ANONYMOUS_USER_EXTERNAL_TOKEN = undefined;
|
package/lib/models/UserDTO.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { validateJSON } from '../api/utils/validation';
|
|
5
|
+
import { validateJSON } from '../api/utils/validation.js';
|
|
6
6
|
/**
|
|
7
7
|
* User model representing a Datalayer platform user.
|
|
8
8
|
* Provides rich functionality for accessing user data and authentication providers.
|
package/lib/models/index.js
CHANGED
|
@@ -32,78 +32,78 @@
|
|
|
32
32
|
*
|
|
33
33
|
* @module models
|
|
34
34
|
*/
|
|
35
|
-
export * from './Assignment';
|
|
36
|
-
export * from './Base';
|
|
37
|
-
export * from './Cell';
|
|
38
|
-
export * from './CodeBlock';
|
|
39
|
-
export * from './CodefeedBlocks';
|
|
40
|
-
export * from './Common';
|
|
41
|
-
export * from './Contact';
|
|
42
|
-
export * from './ContactEvent';
|
|
43
|
-
export * from './ContactIAMProvider';
|
|
44
|
-
export * from './ContactTags';
|
|
45
|
-
export * from './Content';
|
|
46
|
-
export * from './Course';
|
|
47
|
-
export * from './Credits';
|
|
48
|
-
export * from './CreditsDTO';
|
|
49
|
-
export * from './Dataset';
|
|
50
|
-
export * from './Datasource';
|
|
51
|
-
export * from './Dean';
|
|
52
|
-
export * from './Document';
|
|
53
|
-
export * from './Environment';
|
|
54
|
-
export * from './EnvironmentDTO';
|
|
55
|
-
export * from './Errors';
|
|
56
|
-
export * from './Exercise';
|
|
57
|
-
export * from './GrowthKPI';
|
|
58
|
-
export * from './IAM';
|
|
59
|
-
export * from './IAMProviderLinked';
|
|
60
|
-
export * from './IAMProviderPost';
|
|
61
|
-
export * from './IAMProviderUsers';
|
|
62
|
-
export * from './IAMProvidersSpecs';
|
|
63
|
-
export * from './IAMToken';
|
|
64
|
-
export * from './Inbound';
|
|
65
|
-
export * from './Instructor';
|
|
66
|
-
export * from './Invite';
|
|
67
|
-
export * from './Item';
|
|
68
|
-
export * from './ItemDTO';
|
|
69
|
-
export * from './ItemType';
|
|
70
|
-
export * from './LandingRoles';
|
|
71
|
-
export * from './Lesson';
|
|
72
|
-
export * from './LexicalDTO';
|
|
73
|
-
export * from './Library';
|
|
74
|
-
export * from './Member';
|
|
75
|
-
export * from './Notebook';
|
|
76
|
-
export * from './NotebookDTO';
|
|
77
|
-
export * from './Organization';
|
|
78
|
-
export * from './OrganizationMember';
|
|
79
|
-
export * from './Outbound';
|
|
80
|
-
export * from './Page';
|
|
81
|
-
export * from './PageTag';
|
|
82
|
-
export * from './Profile';
|
|
83
|
-
export * from './Role';
|
|
84
|
-
export * from './RolesOrganization';
|
|
85
|
-
export * from './RolesPlatform';
|
|
86
|
-
export * from './RolesTeam';
|
|
87
|
-
export * from './Runtime';
|
|
88
|
-
export * from './RuntimeDTO';
|
|
89
|
-
export * from './RuntimeSnapshot';
|
|
90
|
-
export * from './RuntimeSnapshotDTO';
|
|
91
|
-
export * from './School';
|
|
92
|
-
export * from './Secret';
|
|
93
|
-
export * from './Space';
|
|
94
|
-
export * from './SpaceDTO';
|
|
95
|
-
export * from './SpaceItem';
|
|
96
|
-
export * from './SpaceMember';
|
|
97
|
-
export * from './Student';
|
|
98
|
-
export * from './StudentItem';
|
|
99
|
-
export * from './Survey';
|
|
100
|
-
export * from './Team';
|
|
101
|
-
export * from './TeamMember';
|
|
102
|
-
export * from './URN';
|
|
103
|
-
export * from './Usage';
|
|
104
|
-
export * from './User';
|
|
105
|
-
export * from './UserDTO';
|
|
106
|
-
export * from './UserEvent';
|
|
107
|
-
export * from './UserOnboarding';
|
|
108
|
-
export * from './UserSettings';
|
|
109
|
-
export * from './WaitingListFormData';
|
|
35
|
+
export * from './Assignment.js';
|
|
36
|
+
export * from './Base.js';
|
|
37
|
+
export * from './Cell.js';
|
|
38
|
+
export * from './CodeBlock.js';
|
|
39
|
+
export * from './CodefeedBlocks.js';
|
|
40
|
+
export * from './Common.js';
|
|
41
|
+
export * from './Contact.js';
|
|
42
|
+
export * from './ContactEvent.js';
|
|
43
|
+
export * from './ContactIAMProvider.js';
|
|
44
|
+
export * from './ContactTags.js';
|
|
45
|
+
export * from './Content.js';
|
|
46
|
+
export * from './Course.js';
|
|
47
|
+
export * from './Credits.js';
|
|
48
|
+
export * from './CreditsDTO.js';
|
|
49
|
+
export * from './Dataset.js';
|
|
50
|
+
export * from './Datasource.js';
|
|
51
|
+
export * from './Dean.js';
|
|
52
|
+
export * from './Document.js';
|
|
53
|
+
export * from './Environment.js';
|
|
54
|
+
export * from './EnvironmentDTO.js';
|
|
55
|
+
export * from './Errors.js';
|
|
56
|
+
export * from './Exercise.js';
|
|
57
|
+
export * from './GrowthKPI.js';
|
|
58
|
+
export * from './IAM.js';
|
|
59
|
+
export * from './IAMProviderLinked.js';
|
|
60
|
+
export * from './IAMProviderPost.js';
|
|
61
|
+
export * from './IAMProviderUsers.js';
|
|
62
|
+
export * from './IAMProvidersSpecs.js';
|
|
63
|
+
export * from './IAMToken.js';
|
|
64
|
+
export * from './Inbound.js';
|
|
65
|
+
export * from './Instructor.js';
|
|
66
|
+
export * from './Invite.js';
|
|
67
|
+
export * from './Item.js';
|
|
68
|
+
export * from './ItemDTO.js';
|
|
69
|
+
export * from './ItemType.js';
|
|
70
|
+
export * from './LandingRoles.js';
|
|
71
|
+
export * from './Lesson.js';
|
|
72
|
+
export * from './LexicalDTO.js';
|
|
73
|
+
export * from './Library.js';
|
|
74
|
+
export * from './Member.js';
|
|
75
|
+
export * from './Notebook.js';
|
|
76
|
+
export * from './NotebookDTO.js';
|
|
77
|
+
export * from './Organization.js';
|
|
78
|
+
export * from './OrganizationMember.js';
|
|
79
|
+
export * from './Outbound.js';
|
|
80
|
+
export * from './Page.js';
|
|
81
|
+
export * from './PageTag.js';
|
|
82
|
+
export * from './Profile.js';
|
|
83
|
+
export * from './Role.js';
|
|
84
|
+
export * from './RolesOrganization.js';
|
|
85
|
+
export * from './RolesPlatform.js';
|
|
86
|
+
export * from './RolesTeam.js';
|
|
87
|
+
export * from './Runtime.js';
|
|
88
|
+
export * from './RuntimeDTO.js';
|
|
89
|
+
export * from './RuntimeSnapshot.js';
|
|
90
|
+
export * from './RuntimeSnapshotDTO.js';
|
|
91
|
+
export * from './School.js';
|
|
92
|
+
export * from './Secret.js';
|
|
93
|
+
export * from './Space.js';
|
|
94
|
+
export * from './SpaceDTO.js';
|
|
95
|
+
export * from './SpaceItem.js';
|
|
96
|
+
export * from './SpaceMember.js';
|
|
97
|
+
export * from './Student.js';
|
|
98
|
+
export * from './StudentItem.js';
|
|
99
|
+
export * from './Survey.js';
|
|
100
|
+
export * from './Team.js';
|
|
101
|
+
export * from './TeamMember.js';
|
|
102
|
+
export * from './URN.js';
|
|
103
|
+
export * from './Usage.js';
|
|
104
|
+
export * from './User.js';
|
|
105
|
+
export * from './UserDTO.js';
|
|
106
|
+
export * from './UserEvent.js';
|
|
107
|
+
export * from './UserOnboarding.js';
|
|
108
|
+
export * from './UserSettings.js';
|
|
109
|
+
export * from './WaitingListFormData.js';
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
import { forwardRef, useCallback } from 'react';
|
|
7
|
-
import { useNavigate } from '../hooks/useNavigate';
|
|
7
|
+
import { useNavigate } from '../hooks/useNavigate.js';
|
|
8
8
|
/**
|
|
9
9
|
* Navigation link component that works with any routing solution
|
|
10
10
|
*/
|
package/lib/navigation/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
// Export React Router hook exports for direct use
|
|
6
|
-
export { useParamsRR, useLocationRR, useNavigateRR, } from './adapters/react-router';
|
|
6
|
+
export { useParamsRR, useLocationRR, useNavigateRR, } from './adapters/react-router.js';
|
|
7
7
|
// Export Next.js hook exports for direct use
|
|
8
|
-
export { useParamsNext, useSearchParamsNext, useRouterNext, usePathnameNext, useRouterNextPages, isNextJsEnvironment, } from './adapters/nextjs';
|
|
8
|
+
export { useParamsNext, useSearchParamsNext, useRouterNext, usePathnameNext, useRouterNextPages, isNextJsEnvironment, } from './adapters/nextjs.js';
|
|
9
9
|
// Native adapter utilities
|
|
10
|
-
export { createNativeAdapter, createNativeNavigate } from './adapters/native';
|
|
10
|
+
export { createNativeAdapter, createNativeNavigate } from './adapters/native.js';
|
|
11
11
|
// Export components if they exist
|
|
12
|
-
export { NavigationLink, Link, NavLink } from './components';
|
|
12
|
+
export { NavigationLink, Link, NavLink } from './components.js';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* const { data: spans } = await client.fetchTraces({ limit: 50 });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
import { coreStore } from '../../state/substates/CoreState';
|
|
19
|
+
import { coreStore } from '../../state/substates/CoreState.js';
|
|
20
20
|
// ── Fetch helper ────────────────────────────────────────────────────────────
|
|
21
21
|
async function otelFetch(url, token, options) {
|
|
22
22
|
const headers = {
|
package/lib/otel/client/index.js
CHANGED
package/lib/otel/hooks/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module otel/hooks
|
|
9
9
|
*/
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
|
-
import { coreStore } from '../../state/substates/CoreState';
|
|
11
|
+
import { coreStore } from '../../state/substates/CoreState.js';
|
|
12
12
|
// ── Global 401 handler ──────────────────────────────────────────────
|
|
13
13
|
let _onUnauthorized = null;
|
|
14
14
|
/**
|
package/lib/otel/index.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
// ── Utils ─────────────────────────────────────────────────────────────────────
|
|
6
|
-
export { toMs, formatDuration, formatTime, serviceColor, kindColor, severityColor, severityVariant, buildSpanTree, flattenSpanTree, } from './utils';
|
|
6
|
+
export { toMs, formatDuration, formatTime, serviceColor, kindColor, severityColor, severityVariant, buildSpanTree, flattenSpanTree, } from './utils.js';
|
|
7
7
|
// ── Hooks ─────────────────────────────────────────────────────────────────────
|
|
8
|
-
export { useOtelTraces, useOtelTrace, useOtelLogs, useOtelMetrics, useOtelServices, useOtelStats, useOtelQuery, useOtelSystem, useOtelWebSocket, setOtelOnUnauthorized, } from './hooks';
|
|
8
|
+
export { useOtelTraces, useOtelTrace, useOtelLogs, useOtelMetrics, useOtelServices, useOtelStats, useOtelQuery, useOtelSystem, useOtelWebSocket, setOtelOnUnauthorized, } from './hooks/index.js';
|
|
9
9
|
// ── Client ────────────────────────────────────────────────────────────────────
|
|
10
|
-
export { OtelClient, createOtelClient } from './client';
|
|
10
|
+
export { OtelClient, createOtelClient } from './client/index.js';
|
|
11
11
|
// ── Views ─────────────────────────────────────────────────────────────────────
|
|
12
|
-
export { OtelLive } from './views';
|
|
13
|
-
export { OtelTracesList } from './views';
|
|
14
|
-
export { OtelSpanDetail } from './views';
|
|
15
|
-
export { OtelSpanTree } from './views';
|
|
16
|
-
export { OtelLogsList } from './views';
|
|
17
|
-
export { OtelSearchBar } from './views';
|
|
18
|
-
export { OtelMetricsList } from './views';
|
|
19
|
-
export { OtelMetricsChart } from './views';
|
|
20
|
-
export { OtelTimeline } from './views';
|
|
21
|
-
export { OtelTimelineRangeSlider } from './views';
|
|
22
|
-
export { OtelSqlView } from './views';
|
|
23
|
-
export { OtelSystemView } from './views';
|
|
12
|
+
export { OtelLive } from './views/index.js';
|
|
13
|
+
export { OtelTracesList } from './views/index.js';
|
|
14
|
+
export { OtelSpanDetail } from './views/index.js';
|
|
15
|
+
export { OtelSpanTree } from './views/index.js';
|
|
16
|
+
export { OtelLogsList } from './views/index.js';
|
|
17
|
+
export { OtelSearchBar } from './views/index.js';
|
|
18
|
+
export { OtelMetricsList } from './views/index.js';
|
|
19
|
+
export { OtelMetricsChart } from './views/index.js';
|
|
20
|
+
export { OtelTimeline } from './views/index.js';
|
|
21
|
+
export { OtelTimelineRangeSlider } from './views/index.js';
|
|
22
|
+
export { OtelSqlView } from './views/index.js';
|
|
23
|
+
export { OtelSystemView } from './views/index.js';
|
package/lib/otel/types.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ export interface OtelTimelineRangeSliderProps {
|
|
|
156
156
|
formatTick?: (date: Date) => string;
|
|
157
157
|
/** Height of the slider in px. Default 56. */
|
|
158
158
|
height?: number;
|
|
159
|
-
/** Optional histogram data: array of
|
|
159
|
+
/** Optional histogram data: array of objects with `time` (Date) and `count` (number) fields. */
|
|
160
160
|
histogram?: {
|
|
161
161
|
time: Date;
|
|
162
162
|
count: number;
|
|
@@ -15,17 +15,17 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
15
15
|
import { useState, useCallback, useMemo, useEffect, useRef, } from 'react';
|
|
16
16
|
import { Box, Text, Button, Label } from '@primer/react';
|
|
17
17
|
import { GitBranchIcon, ClockIcon } from '@primer/octicons-react';
|
|
18
|
-
import { coreStore } from '../../state/substates/CoreState';
|
|
19
|
-
import { useOtelTraces, useOtelTrace, useOtelLogs, useOtelMetrics, useOtelServices, useOtelWebSocket, } from '../hooks';
|
|
20
|
-
import { OtelSearchBar } from './OtelSearchBar';
|
|
21
|
-
import { OtelTimelineRangeSlider } from './OtelTimelineRangeSlider';
|
|
22
|
-
import { OtelTracesList } from './OtelTracesList';
|
|
23
|
-
import { OtelLogsList } from './OtelLogsList';
|
|
24
|
-
import { OtelMetricsList } from './OtelMetricsList';
|
|
25
|
-
import { OtelSpanDetail } from './OtelSpanDetail';
|
|
26
|
-
import { OtelTimeline } from './OtelTimeline';
|
|
27
|
-
import { OtelSpanTree } from './OtelSpanTree';
|
|
28
|
-
import { buildSpanTree } from '../utils';
|
|
18
|
+
import { coreStore } from '../../state/substates/CoreState.js';
|
|
19
|
+
import { useOtelTraces, useOtelTrace, useOtelLogs, useOtelMetrics, useOtelServices, useOtelWebSocket, } from '../hooks/index.js';
|
|
20
|
+
import { OtelSearchBar } from './OtelSearchBar.js';
|
|
21
|
+
import { OtelTimelineRangeSlider } from './OtelTimelineRangeSlider.js';
|
|
22
|
+
import { OtelTracesList } from './OtelTracesList.js';
|
|
23
|
+
import { OtelLogsList } from './OtelLogsList.js';
|
|
24
|
+
import { OtelMetricsList } from './OtelMetricsList.js';
|
|
25
|
+
import { OtelSpanDetail } from './OtelSpanDetail.js';
|
|
26
|
+
import { OtelTimeline } from './OtelTimeline.js';
|
|
27
|
+
import { OtelSpanTree } from './OtelSpanTree.js';
|
|
28
|
+
import { buildSpanTree } from '../utils.js';
|
|
29
29
|
// ── Helpers ─────────────────────────────────────────────────────────
|
|
30
30
|
const BOTTOM_PANE_VIEWS = ['timeline', 'tree'];
|
|
31
31
|
const HISTOGRAM_BUCKETS = 60;
|
|
@@ -15,7 +15,7 @@ import React, { useState } from 'react';
|
|
|
15
15
|
import { Box, Text, Label, Spinner } from '@primer/react';
|
|
16
16
|
import { Blankslate } from '@primer/react/experimental';
|
|
17
17
|
import { LogIcon } from '@primer/octicons-react';
|
|
18
|
-
import { formatTime, severityVariant } from '../utils';
|
|
18
|
+
import { formatTime, severityVariant } from '../utils.js';
|
|
19
19
|
// ── helpers ─────────────────────────────────────────────────────────
|
|
20
20
|
/** Severity badge using Primer Label, centered in its grid cell. */
|
|
21
21
|
const Severity = ({ text }) => (_jsx(Box, { sx: { display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx(Label, { size: "small", variant: severityVariant(text), children: text }) }));
|
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
* @module otel/OtelMetricsList
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import type {
|
|
11
|
-
export
|
|
12
|
-
metrics: OtelMetric[];
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
}
|
|
10
|
+
import type { OtelMetricsListProps } from '../types';
|
|
11
|
+
export type { OtelMetricsListProps } from '../types';
|
|
15
12
|
export declare const OtelMetricsList: React.FC<OtelMetricsListProps>;
|
|
@@ -15,8 +15,8 @@ import { useMemo, useState } from 'react';
|
|
|
15
15
|
import { Box, Text, Label, Spinner, CounterLabel, SegmentedControl, } from '@primer/react';
|
|
16
16
|
import { Blankslate } from '@primer/react/experimental';
|
|
17
17
|
import { MeterIcon, ChevronDownIcon, ChevronRightIcon, GraphIcon, TableIcon, } from '@primer/octicons-react';
|
|
18
|
-
import { formatTime } from '../utils';
|
|
19
|
-
import { OtelMetricsChart } from './OtelMetricsChart';
|
|
18
|
+
import { formatTime } from '../utils.js';
|
|
19
|
+
import { OtelMetricsChart } from './OtelMetricsChart.js';
|
|
20
20
|
// ── Helpers ─────────────────────────────────────────────────────────
|
|
21
21
|
/** Group metrics by metric_name. */
|
|
22
22
|
function groupByName(metrics) {
|
|
@@ -14,8 +14,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import { useState } from 'react';
|
|
15
15
|
import { Box, Text, IconButton, UnderlineNav, CounterLabel, Label, } from '@primer/react';
|
|
16
16
|
import { XIcon, ChevronDownIcon, ChevronRightIcon, } from '@primer/octicons-react';
|
|
17
|
-
import { formatDuration, buildSpanTree } from '../utils';
|
|
18
|
-
import { OtelSpanTree } from './OtelSpanTree';
|
|
17
|
+
import { formatDuration, buildSpanTree } from '../utils.js';
|
|
18
|
+
import { OtelSpanTree } from './OtelSpanTree.js';
|
|
19
19
|
// ── Helpers ─────────────────────────────────────────────────────────
|
|
20
20
|
/** Single key–value metadata row. */
|
|
21
21
|
const MetadataRow = ({ label, value, mono = false }) => {
|
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
14
14
|
import { useState, useMemo, useCallback } from 'react';
|
|
15
15
|
import { Box, Text } from '@primer/react';
|
|
16
16
|
import { ChevronDownIcon, ChevronRightIcon } from '@primer/octicons-react';
|
|
17
|
-
import { formatDuration, serviceColor, toMs } from '../utils';
|
|
17
|
+
import { formatDuration, serviceColor, toMs } from '../utils.js';
|
|
18
18
|
const INDENT_PX = 20;
|
|
19
19
|
const SpanNode = ({ span, depth, selectedSpanId, onSelectSpan, expandedIds, toggleExpanded, traceMinTime, traceDuration, }) => {
|
|
20
20
|
const hasChildren = (span.children?.length ?? 0) > 0;
|
|
@@ -16,7 +16,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
16
16
|
import { useState, useCallback } from 'react';
|
|
17
17
|
import { ActionList, ActionMenu, Box, Button, Text, Textarea, Spinner, } from '@primer/react';
|
|
18
18
|
import { HistoryIcon, TableIcon, XCircleIcon, DownloadIcon, } from '@primer/octicons-react';
|
|
19
|
-
import { useOtelQuery } from '../hooks';
|
|
19
|
+
import { useOtelQuery } from '../hooks/index.js';
|
|
20
20
|
// ── Cookie helpers ────────────────────────────────────────────────
|
|
21
21
|
const HISTORY_COOKIE = 'otel_sql_history';
|
|
22
22
|
const HISTORY_MAX = 10;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Button, Spinner, Text } from '@primer/react';
|
|
3
3
|
import { SyncIcon } from '@primer/octicons-react';
|
|
4
|
-
import { useOtelSystem } from '../hooks';
|
|
4
|
+
import { useOtelSystem } from '../hooks/index.js';
|
|
5
5
|
// ── Helpers ───────────────────────────────────────────────────────
|
|
6
6
|
function fmtBytes(bytes) {
|
|
7
7
|
if (bytes >= 1024 ** 3)
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
*/
|
|
14
14
|
import { useMemo } from 'react';
|
|
15
15
|
import { Box, Text } from '@primer/react';
|
|
16
|
-
import { toMs, formatDuration, serviceColor } from '../utils';
|
|
16
|
+
import { toMs, formatDuration, serviceColor } from '../utils.js';
|
|
17
17
|
export const OtelTimeline = ({ spans, barHeight = 24, selectedSpanId, onSelectSpan, }) => {
|
|
18
18
|
const { minTime, maxTime, sortedSpans } = useMemo(() => {
|
|
19
19
|
if (spans.length === 0)
|
|
@@ -17,7 +17,7 @@ import { useMemo, useCallback, useState } from 'react';
|
|
|
17
17
|
import { Box, Text, Label, Spinner } from '@primer/react';
|
|
18
18
|
import { Blankslate } from '@primer/react/experimental';
|
|
19
19
|
import { TelescopeIcon, ChevronRightIcon, ChevronDownIcon, } from '@primer/octicons-react';
|
|
20
|
-
import { formatDuration, formatTime, buildSpanTree } from '../utils';
|
|
20
|
+
import { formatDuration, formatTime, buildSpanTree } from '../utils.js';
|
|
21
21
|
const GRID_COLS = '140px 1fr 160px 90px';
|
|
22
22
|
// ── Helpers ─────────────────────────────────────────────────────────
|
|
23
23
|
/** Extract gen_ai token counts from span attributes. */
|
|
@@ -7,6 +7,7 @@ export { OtelLive } from './OtelLive';
|
|
|
7
7
|
export { OtelTracesList } from './OtelTracesList';
|
|
8
8
|
export { OtelLogsList } from './OtelLogsList';
|
|
9
9
|
export { OtelMetricsList } from './OtelMetricsList';
|
|
10
|
+
export type { OtelMetricsListProps } from './OtelMetricsList';
|
|
10
11
|
export { OtelMetricsChart } from './OtelMetricsChart';
|
|
11
12
|
export type { OtelMetricsChartProps } from './OtelMetricsChart';
|
|
12
13
|
export { OtelSearchBar } from './OtelSearchBar';
|
package/lib/otel/views/index.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module otel/views
|
|
9
9
|
*/
|
|
10
|
-
export { OtelLive } from './OtelLive';
|
|
11
|
-
export { OtelTracesList } from './OtelTracesList';
|
|
12
|
-
export { OtelLogsList } from './OtelLogsList';
|
|
13
|
-
export { OtelMetricsList } from './OtelMetricsList';
|
|
14
|
-
export { OtelMetricsChart } from './OtelMetricsChart';
|
|
15
|
-
export { OtelSearchBar } from './OtelSearchBar';
|
|
16
|
-
export { OtelSpanDetail } from './OtelSpanDetail';
|
|
17
|
-
export { OtelSpanTree } from './OtelSpanTree';
|
|
18
|
-
export { OtelTimeline } from './OtelTimeline';
|
|
19
|
-
export { OtelTimelineRangeSlider } from './OtelTimelineRangeSlider';
|
|
20
|
-
export { OtelSqlView } from './OtelSqlView';
|
|
21
|
-
export { OtelSystemView } from './OtelSystemView';
|
|
10
|
+
export { OtelLive } from './OtelLive.js';
|
|
11
|
+
export { OtelTracesList } from './OtelTracesList.js';
|
|
12
|
+
export { OtelLogsList } from './OtelLogsList.js';
|
|
13
|
+
export { OtelMetricsList } from './OtelMetricsList.js';
|
|
14
|
+
export { OtelMetricsChart } from './OtelMetricsChart.js';
|
|
15
|
+
export { OtelSearchBar } from './OtelSearchBar.js';
|
|
16
|
+
export { OtelSpanDetail } from './OtelSpanDetail.js';
|
|
17
|
+
export { OtelSpanTree } from './OtelSpanTree.js';
|
|
18
|
+
export { OtelTimeline } from './OtelTimeline.js';
|
|
19
|
+
export { OtelTimelineRangeSlider } from './OtelTimelineRangeSlider.js';
|
|
20
|
+
export { OtelSqlView } from './OtelSqlView.js';
|
|
21
|
+
export { OtelSystemView } from './OtelSystemView.js';
|
package/lib/routes/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { ServiceManager } from '@jupyterlab/services';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
* const serviceManager = await createDatalayerServiceManager('
|
|
16
|
+
* const serviceManager = await createDatalayerServiceManager('ai-agents-env', 100);
|
|
17
17
|
* await serviceManager.ready;
|
|
18
18
|
* // Use the service manager with notebooks
|
|
19
19
|
* ```
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { ServerConnection, ServiceManager } from '@jupyterlab/services';
|
|
6
|
-
import { coreStore } from '../state/substates/CoreState';
|
|
7
|
-
import { DEFAULT_DATALAYER_CONFIG } from '../config/Configuration';
|
|
8
|
-
import { createRuntime } from '../stateful/runtimes/actions';
|
|
6
|
+
import { coreStore } from '../state/substates/CoreState.js';
|
|
7
|
+
import { DEFAULT_DATALAYER_CONFIG } from '../config/Configuration.js';
|
|
8
|
+
import { createRuntime } from '../stateful/runtimes/actions.js';
|
|
9
9
|
/**
|
|
10
10
|
* Creates a ServiceManager configured for Datalayer.
|
|
11
11
|
*
|
|
@@ -20,7 +20,7 @@ import { createRuntime } from '../stateful/runtimes/actions';
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```typescript
|
|
23
|
-
* const serviceManager = await createDatalayerServiceManager('
|
|
23
|
+
* const serviceManager = await createDatalayerServiceManager('ai-agents-env', 100);
|
|
24
24
|
* await serviceManager.ready;
|
|
25
25
|
* // Use the service manager with notebooks
|
|
26
26
|
* ```
|