@datalayer/core 1.0.12 → 1.0.14

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.
Files changed (252) hide show
  1. package/lib/App.js +2 -2
  2. package/lib/api/DatalayerApi.js +1 -1
  3. package/lib/api/iam/authentication.js +3 -3
  4. package/lib/api/iam/datasources.js +3 -3
  5. package/lib/api/iam/healthz.js +2 -2
  6. package/lib/api/iam/index.js +12 -12
  7. package/lib/api/iam/oauth2.js +2 -2
  8. package/lib/api/iam/profile.js +3 -3
  9. package/lib/api/iam/secrets.js +3 -3
  10. package/lib/api/iam/usage.js +2 -2
  11. package/lib/api/index.js +8 -8
  12. package/lib/api/otel/index.js +5 -5
  13. package/lib/api/otel/logs.js +3 -3
  14. package/lib/api/otel/metrics.js +3 -3
  15. package/lib/api/otel/query.js +3 -3
  16. package/lib/api/otel/services.js +3 -3
  17. package/lib/api/otel/traces.js +3 -3
  18. package/lib/api/runtimes/checkpoints.js +3 -3
  19. package/lib/api/runtimes/environments.js +3 -3
  20. package/lib/api/runtimes/healthz.js +2 -2
  21. package/lib/api/runtimes/index.js +5 -5
  22. package/lib/api/runtimes/runtimes.js +3 -3
  23. package/lib/api/runtimes/snapshots.js +3 -3
  24. package/lib/api/spacer/documents.js +2 -2
  25. package/lib/api/spacer/healthz.js +2 -2
  26. package/lib/api/spacer/index.js +7 -7
  27. package/lib/api/spacer/items.js +2 -2
  28. package/lib/api/spacer/lexicals.js +2 -2
  29. package/lib/api/spacer/notebooks.js +2 -2
  30. package/lib/api/spacer/spaces.js +3 -3
  31. package/lib/api/spacer/users.js +3 -3
  32. package/lib/client/auth/AuthenticationManager.js +3 -3
  33. package/lib/client/auth/index.js +4 -4
  34. package/lib/client/auth/storage.js +1 -1
  35. package/lib/client/auth/strategies.js +3 -3
  36. package/lib/client/base.js +2 -2
  37. package/lib/client/index.js +19 -19
  38. package/lib/client/mixins/IAMMixin.js +10 -10
  39. package/lib/client/mixins/RuntimesMixin.js +7 -7
  40. package/lib/client/mixins/SpacerMixin.js +11 -11
  41. package/lib/client/utils/spacerUtils.js +3 -3
  42. package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
  43. package/lib/collaboration/index.js +2 -2
  44. package/lib/components/auth/Login.js +6 -6
  45. package/lib/components/auth/Login.stories.js +2 -2
  46. package/lib/components/auth/LoginToken.js +2 -2
  47. package/lib/components/auth/index.js +3 -3
  48. package/lib/components/avatars/BoringAvatar.stories.js +1 -1
  49. package/lib/components/avatars/UserProfileAvatar.js +2 -2
  50. package/lib/components/avatars/index.js +2 -2
  51. package/lib/components/banners/NoAutomationBanner.js +1 -1
  52. package/lib/components/banners/index.js +1 -1
  53. package/lib/components/buttons/DownloadCSVButton.js +1 -1
  54. package/lib/components/buttons/DownloadJsonButton.js +1 -1
  55. package/lib/components/buttons/index.js +5 -5
  56. package/lib/components/checkout/StripeCheckout.js +1 -1
  57. package/lib/components/checkout/index.js +1 -1
  58. package/lib/components/confetti/index.js +1 -1
  59. package/lib/components/context/OrganizationSelect.js +2 -2
  60. package/lib/components/context/SpaceSelect.js +2 -2
  61. package/lib/components/context/index.js +2 -2
  62. package/lib/components/display/DatalayerBox.js +1 -1
  63. package/lib/components/display/LiveRelativeTime.js +1 -1
  64. package/lib/components/display/NavLink.js +1 -1
  65. package/lib/components/display/index.js +14 -14
  66. package/lib/components/echarts/index.js +1 -1
  67. package/lib/components/flashes/FlashDisclaimer.js +2 -2
  68. package/lib/components/flashes/FlashGuest.js +4 -4
  69. package/lib/components/flashes/FlashSurveys.js +4 -4
  70. package/lib/components/flashes/FlashUnauthorized.js +1 -1
  71. package/lib/components/flashes/index.js +6 -6
  72. package/lib/components/flashes/surveys/index.js +2 -2
  73. package/lib/components/iam/ExternalTokenSilentLogin.js +3 -3
  74. package/lib/components/iam/index.js +1 -1
  75. package/lib/components/icons/index.js +1 -1
  76. package/lib/components/index.js +2 -2
  77. package/lib/components/labels/index.js +1 -1
  78. package/lib/components/landings/index.js +1 -1
  79. package/lib/components/navbar/NavigationVisbilityObserver.js +4 -4
  80. package/lib/components/navbar/SubdomainNavBar.js +5 -5
  81. package/lib/components/navbar/index.js +2 -2
  82. package/lib/components/nbgrader/index.js +1 -1
  83. package/lib/components/notebooks/index.js +2 -2
  84. package/lib/components/progress/ConsumptionBar.js +1 -1
  85. package/lib/components/progress/CreditsIndicator.js +2 -2
  86. package/lib/components/progress/index.js +6 -6
  87. package/lib/components/runtimes/RuntimeCellVariablesDialog.js +2 -2
  88. package/lib/components/runtimes/RuntimeLauncherDialog.js +9 -9
  89. package/lib/components/runtimes/RuntimePickerBase.js +3 -3
  90. package/lib/components/runtimes/RuntimePickerCell.js +8 -8
  91. package/lib/components/runtimes/RuntimePickerNotebook.js +6 -6
  92. package/lib/components/runtimes/RuntimeSimplePicker.js +3 -3
  93. package/lib/components/runtimes/index.js +11 -11
  94. package/lib/components/screencapture/ScreencaptureButton.js +3 -3
  95. package/lib/components/screencapture/index.js +2 -2
  96. package/lib/components/snapshots/RuntimeSnapshotMenu.js +4 -4
  97. package/lib/components/snapshots/index.js +1 -1
  98. package/lib/components/snippets/SnippetDialog.js +1 -1
  99. package/lib/components/snippets/index.js +1 -1
  100. package/lib/components/sparklines/Sparklines.js +5 -1
  101. package/lib/components/sparklines/dataProcessing.js +4 -0
  102. package/lib/components/sparklines/index.js +7 -3
  103. package/lib/components/sparklines/types.js +1 -1
  104. package/lib/components/storage/ContentsBrowser.js +3 -3
  105. package/lib/components/storage/index.js +2 -2
  106. package/lib/components/students/index.js +1 -1
  107. package/lib/components/subnav/SubNav.js +2 -2
  108. package/lib/components/subnav/index.js +1 -1
  109. package/lib/components/tables/index.js +1 -1
  110. package/lib/components/text-reveal/TextRevealAnimation.js +1 -1
  111. package/lib/components/text-reveal/index.js +1 -1
  112. package/lib/components/tokens/index.js +1 -1
  113. package/lib/components/toolbars/AssignmentEditorToolbar.js +1 -1
  114. package/lib/components/toolbars/DocumentEditorToolbar.js +1 -1
  115. package/lib/components/toolbars/index.js +3 -3
  116. package/lib/components/users/PeerIndicator.js +1 -1
  117. package/lib/components/users/index.js +1 -1
  118. package/lib/config/Configuration.js +1 -1
  119. package/lib/config/index.js +2 -2
  120. package/lib/config/integrations/index.js +1 -1
  121. package/lib/hooks/assets/index.js +1 -1
  122. package/lib/hooks/index.js +33 -33
  123. package/lib/hooks/layouts/LayoutBackdrop.js +2 -2
  124. package/lib/hooks/layouts/LayoutScreencapture.js +3 -3
  125. package/lib/hooks/layouts/index.js +2 -2
  126. package/lib/hooks/useAuthorization.js +3 -3
  127. package/lib/hooks/useBackdrop.js +2 -2
  128. package/lib/hooks/useCache.js +8 -8
  129. package/lib/hooks/useCellOutputshot.js +2 -2
  130. package/lib/hooks/useDatalayer.js +6 -6
  131. package/lib/hooks/useIAM.js +4 -4
  132. package/lib/hooks/useLocation.js +2 -2
  133. package/lib/hooks/useLocationHandles.js +3 -3
  134. package/lib/hooks/useNavigate.js +4 -4
  135. package/lib/hooks/useParams.js +2 -2
  136. package/lib/hooks/useProjects.js +1 -1
  137. package/lib/hooks/useRuntimes.js +1 -1
  138. package/lib/hooks/useScreencapture.js +1 -1
  139. package/lib/hooks/useToast.js +41 -5
  140. package/lib/hooks/useUpload.js +2 -2
  141. package/lib/hooks/useUser.js +1 -1
  142. package/lib/i18n/index.js +1 -1
  143. package/lib/index.js +16 -16
  144. package/lib/main.js +1 -1
  145. package/lib/mocks/components/FlashMock.js +1 -1
  146. package/lib/mocks/components/index.js +1 -1
  147. package/lib/mocks/hooks/index.js +1 -1
  148. package/lib/mocks/hooks/rests/index.js +1 -1
  149. package/lib/mocks/hooks/useDatalayerMock.js +5 -5
  150. package/lib/mocks/index.js +5 -5
  151. package/lib/mocks/models/CourseMock.js +3 -3
  152. package/lib/mocks/models/InviteMock.js +2 -2
  153. package/lib/mocks/models/OrganisationMock.js +1 -1
  154. package/lib/mocks/models/SchoolMock.js +1 -1
  155. package/lib/mocks/models/SpaceMock.js +2 -2
  156. package/lib/mocks/models/TeamMock.js +1 -1
  157. package/lib/mocks/models/UserMock.js +1 -1
  158. package/lib/mocks/models/index.js +9 -9
  159. package/lib/mocks/views/ChartMock.js +3 -3
  160. package/lib/mocks/views/DashboardMock.js +2 -2
  161. package/lib/mocks/views/TableMock.js +1 -1
  162. package/lib/mocks/views/index.js +7 -7
  163. package/lib/models/Contact.js +3 -3
  164. package/lib/models/CreditsDTO.js +1 -1
  165. package/lib/models/Datasource.js +1 -1
  166. package/lib/models/EnvironmentDTO.js +1 -1
  167. package/lib/models/HealthCheck.js +1 -1
  168. package/lib/models/IAMProviderUsers.js +1 -1
  169. package/lib/models/Invite.js +1 -1
  170. package/lib/models/ItemDTO.js +1 -1
  171. package/lib/models/LexicalDTO.js +4 -4
  172. package/lib/models/NotebookDTO.js +4 -4
  173. package/lib/models/Organization.js +2 -2
  174. package/lib/models/Page.js +2 -2
  175. package/lib/models/RuntimeDTO.js +2 -2
  176. package/lib/models/RuntimeSnapshotDTO.js +2 -2
  177. package/lib/models/Secret.js +1 -1
  178. package/lib/models/Space.js +3 -3
  179. package/lib/models/SpaceDTO.js +9 -9
  180. package/lib/models/Team.js +2 -2
  181. package/lib/models/User.js +5 -5
  182. package/lib/models/UserDTO.js +1 -1
  183. package/lib/models/index.js +75 -75
  184. package/lib/navigation/components.js +1 -1
  185. package/lib/navigation/index.js +4 -4
  186. package/lib/otel/client/OtelClient.js +1 -1
  187. package/lib/otel/client/index.js +1 -1
  188. package/lib/otel/hooks/index.js +1 -1
  189. package/lib/otel/index.js +15 -15
  190. package/lib/otel/views/OtelLive.js +11 -11
  191. package/lib/otel/views/OtelLogsList.js +1 -1
  192. package/lib/otel/views/OtelMetricsList.js +2 -2
  193. package/lib/otel/views/OtelSpanDetail.js +2 -2
  194. package/lib/otel/views/OtelSpanTree.js +1 -1
  195. package/lib/otel/views/OtelSqlView.js +1 -1
  196. package/lib/otel/views/OtelSystemView.js +1 -1
  197. package/lib/otel/views/OtelTimeline.js +1 -1
  198. package/lib/otel/views/OtelTracesList.js +1 -1
  199. package/lib/otel/views/index.js +12 -12
  200. package/lib/routes/index.js +1 -1
  201. package/lib/services/DatalayerServiceManager.js +3 -3
  202. package/lib/services/index.js +3 -3
  203. package/lib/state/State.js +13 -13
  204. package/lib/state/index.js +3 -3
  205. package/lib/state/storage/IAMStorage.js +2 -2
  206. package/lib/state/storage/index.js +1 -1
  207. package/lib/state/substates/CoreState.js +1 -1
  208. package/lib/state/substates/IAMState.js +5 -5
  209. package/lib/state/substates/RuntimesState.js +3 -3
  210. package/lib/state/substates/SurveysState.js +4 -4
  211. package/lib/state/substates/TeamState.js +1 -1
  212. package/lib/state/substates/index.js +14 -14
  213. package/lib/stateful/index.js +2 -2
  214. package/lib/stateful/jupyter/exec/Snippets.js +1 -1
  215. package/lib/stateful/jupyter/exec/index.js +2 -2
  216. package/lib/stateful/jupyter/index.js +2 -2
  217. package/lib/stateful/runtimes/actions.js +4 -4
  218. package/lib/stateful/runtimes/index.js +5 -5
  219. package/lib/stateful/runtimes/snapshots.js +1 -1
  220. package/lib/utils/Date.d.ts +11 -0
  221. package/lib/utils/Date.js +30 -0
  222. package/lib/utils/DownloadFile.d.ts +13 -0
  223. package/lib/utils/DownloadFile.js +20 -0
  224. package/lib/utils/cli/index.js +1 -1
  225. package/lib/utils/index.js +29 -29
  226. package/lib/views/datasources/DatasourceDetail.js +3 -3
  227. package/lib/views/datasources/DatasourceNew.js +2 -2
  228. package/lib/views/datasources/Datasources.js +1 -1
  229. package/lib/views/datasources/index.js +3 -3
  230. package/lib/views/iam/SignInSimple.js +9 -2
  231. package/lib/views/iam/index.js +1 -1
  232. package/lib/views/iam-tokens/IAMTokenEdit.js +3 -3
  233. package/lib/views/iam-tokens/IAMTokenNew.js +2 -2
  234. package/lib/views/iam-tokens/IAMTokens.js +1 -1
  235. package/lib/views/iam-tokens/Tokens.js +1 -1
  236. package/lib/views/iam-tokens/index.js +3 -3
  237. package/lib/views/index.js +3 -3
  238. package/lib/views/otel/DashboardView.js +1 -1
  239. package/lib/views/otel/LogsView.js +1 -1
  240. package/lib/views/otel/MetricsView.js +1 -1
  241. package/lib/views/otel/OtelHeader.js +1 -1
  242. package/lib/views/otel/SqlView.js +1 -1
  243. package/lib/views/otel/SystemView.js +1 -1
  244. package/lib/views/otel/TracesView.js +1 -1
  245. package/lib/views/otel/index.js +8 -8
  246. package/lib/views/profile/UserBadge.js +1 -1
  247. package/lib/views/profile/index.js +1 -1
  248. package/lib/views/secrets/SecretEdit.js +3 -3
  249. package/lib/views/secrets/SecretNew.js +2 -2
  250. package/lib/views/secrets/Secrets.js +1 -1
  251. package/lib/views/secrets/index.js +3 -3
  252. package/package.json +4 -4
@@ -7,8 +7,8 @@
7
7
  *
8
8
  * @module models/RuntimeDTO
9
9
  */
10
- import { updateRuntime } from '../api/runtimes/runtimes';
11
- import { validateJSON } from '../api/utils/validation';
10
+ import { updateRuntime } from '../api/runtimes/runtimes.js';
11
+ import { validateJSON } from '../api/utils/validation.js';
12
12
  /**
13
13
  * Runtime domain model that wraps API responses with convenient methods.
14
14
  * Provides state management and lifecycle operations for computational runtimes.
@@ -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 { snapshots } from '../api/runtimes';
6
- import { validateJSON } from '../api/utils/validation';
5
+ import { snapshots } from '../api/runtimes/index.js';
6
+ import { validateJSON } from '../api/utils/validation.js';
7
7
  /**
8
8
  * Snapshot domain model that wraps API responses with convenient methods.
9
9
  * Provides runtime snapshot management with data refresh and lifecycle operations.
@@ -14,7 +14,7 @@ export const asSecret = (s) => {
14
14
  // ============================================================================
15
15
  // New API Types and DTO
16
16
  // ============================================================================
17
- import { validateJSON } from '../api/utils/validation';
17
+ import { validateJSON } from '../api/utils/validation.js';
18
18
  /**
19
19
  * Secret domain model for the Datalayer Client.
20
20
  * Provides state management and operations for user secrets.
@@ -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
  *
@@ -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.
@@ -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) {
@@ -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;
@@ -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.
@@ -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
  */
@@ -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 = {
@@ -2,4 +2,4 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export { OtelClient, createOtelClient } from './OtelClient';
5
+ export { OtelClient, createOtelClient } from './OtelClient.js';
@@ -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';
@@ -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 }) }));
@@ -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,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';
@@ -2,4 +2,4 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './Routes';
5
+ export * from './Routes.js';
@@ -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
  *
@@ -2,6 +2,6 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export { createDatalayerServiceManager } from './DatalayerServiceManager';
6
- export { default as DatalayerServiceManager } from './DatalayerServiceManager';
7
- export { reconnectToRuntime } from './reconnectToRuntime';
5
+ export { createDatalayerServiceManager } from './DatalayerServiceManager.js';
6
+ export { default as DatalayerServiceManager } from './DatalayerServiceManager.js';
7
+ export { reconnectToRuntime } from './reconnectToRuntime.js';
@@ -4,19 +4,19 @@
4
4
  */
5
5
  import { createStore } from 'zustand/vanilla';
6
6
  import { useStore } from 'zustand';
7
- import { coreStore } from './substates/CoreState';
8
- import { cellStore } from './substates/CellState';
9
- import { documentStore } from './substates/DocumentState';
10
- import { gradeStore } from './substates/GradeState';
11
- import { iamStore } from './substates/IAMState';
12
- import { runtimesStore } from './substates/RuntimesState';
13
- import { layoutStore } from './substates/LayoutState';
14
- import { nbformatStore } from './substates/NbformatState';
15
- import { organizationStore } from './substates/OrganizationState';
16
- import { spaceStore } from './substates/SpaceState';
17
- import { surveysStore } from './substates/SurveysState';
18
- import { teamStore } from './substates/TeamState';
19
- import { isDevDeployment } from '../utils';
7
+ import { coreStore } from './substates/CoreState.js';
8
+ import { cellStore } from './substates/CellState.js';
9
+ import { documentStore } from './substates/DocumentState.js';
10
+ import { gradeStore } from './substates/GradeState.js';
11
+ import { iamStore } from './substates/IAMState.js';
12
+ import { runtimesStore } from './substates/RuntimesState.js';
13
+ import { layoutStore } from './substates/LayoutState.js';
14
+ import { nbformatStore } from './substates/NbformatState.js';
15
+ import { organizationStore } from './substates/OrganizationState.js';
16
+ import { spaceStore } from './substates/SpaceState.js';
17
+ import { surveysStore } from './substates/SurveysState.js';
18
+ import { teamStore } from './substates/TeamState.js';
19
+ import { isDevDeployment } from '../utils/index.js';
20
20
  export const runStore = createStore((set, get) => ({
21
21
  version: '',
22
22
  setVersion: version => {
@@ -2,6 +2,6 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './storage';
6
- export * from './State';
7
- export * from './substates';
5
+ export * from './storage/index.js';
6
+ export * from './State.js';
7
+ export * from './substates/index.js';
@@ -3,8 +3,8 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  import jwt_decode from 'jwt-decode';
6
- import { getCookie } from '../../utils';
7
- import { ANONYMOUS_USER, ANONYMOUS_USER_TOKEN } from '../../models';
6
+ import { getCookie } from '../../utils/index.js';
7
+ import { ANONYMOUS_USER, ANONYMOUS_USER_TOKEN } from '../../models/index.js';
8
8
  export const JWT_DATALAYER_ISSUER = 'https://id.datalayer.run';
9
9
  export const DATALAYER_IAM_USER_KEY = '@datalayer/iam:user';
10
10
  export const DATALAYER_IAM_TOKEN_KEY = '@datalayer/iam:token';
@@ -2,4 +2,4 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './IAMStorage';
5
+ export * from './IAMStorage.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { createStore } from 'zustand/vanilla';
6
6
  import { useStore } from 'zustand';
7
- import { configLogger } from '../../utils/logger';
7
+ import { configLogger } from '../../utils/logger.js';
8
8
  let loadConfigurationFromServer = true;
9
9
  let initialConfiguration = {
10
10
  runUrl: 'https://prod1.datalayer.run',