@datalayer/core 1.0.13 → 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 (250) 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/cli/index.js +1 -1
  223. package/lib/utils/index.js +29 -29
  224. package/lib/views/datasources/DatasourceDetail.js +3 -3
  225. package/lib/views/datasources/DatasourceNew.js +2 -2
  226. package/lib/views/datasources/Datasources.js +1 -1
  227. package/lib/views/datasources/index.js +3 -3
  228. package/lib/views/iam/SignInSimple.js +1 -1
  229. package/lib/views/iam/index.js +1 -1
  230. package/lib/views/iam-tokens/IAMTokenEdit.js +3 -3
  231. package/lib/views/iam-tokens/IAMTokenNew.js +2 -2
  232. package/lib/views/iam-tokens/IAMTokens.js +1 -1
  233. package/lib/views/iam-tokens/Tokens.js +1 -1
  234. package/lib/views/iam-tokens/index.js +3 -3
  235. package/lib/views/index.js +3 -3
  236. package/lib/views/otel/DashboardView.js +1 -1
  237. package/lib/views/otel/LogsView.js +1 -1
  238. package/lib/views/otel/MetricsView.js +1 -1
  239. package/lib/views/otel/OtelHeader.js +1 -1
  240. package/lib/views/otel/SqlView.js +1 -1
  241. package/lib/views/otel/SystemView.js +1 -1
  242. package/lib/views/otel/TracesView.js +1 -1
  243. package/lib/views/otel/index.js +8 -8
  244. package/lib/views/profile/UserBadge.js +1 -1
  245. package/lib/views/profile/index.js +1 -1
  246. package/lib/views/secrets/SecretEdit.js +3 -3
  247. package/lib/views/secrets/SecretNew.js +2 -2
  248. package/lib/views/secrets/Secrets.js +1 -1
  249. package/lib/views/secrets/index.js +3 -3
  250. package/package.json +1 -1
@@ -11,9 +11,9 @@ import CloudUploadIcon from '@datalayer/icons-react/data1/CloudUploadIcon';
11
11
  import { Box } from '@datalayer/primer-addons';
12
12
  import { CpuIcon } from '@primer/octicons-react';
13
13
  import { BrowserIcon, LaptopSimpleIcon } from '@datalayer/icons-react';
14
- import { CreditsIndicator } from '../../components/progress';
15
- import { isRuntimeRemote } from '../../stateful/runtimes';
16
- import { getGroupedRuntimeDescs } from './RuntimeUtils';
14
+ import { CreditsIndicator } from '../../components/progress/index.js';
15
+ import { isRuntimeRemote } from '../../stateful/runtimes/index.js';
16
+ import { getGroupedRuntimeDescs } from './RuntimeUtils.js';
17
17
  /**
18
18
  * Maximal runtime display name length after which it is trimmed.
19
19
  */
@@ -7,14 +7,14 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
7
7
  import { nullTranslator } from '@jupyterlab/translation';
8
8
  import { ActionList } from '@primer/react';
9
9
  import { CloudUploadIcon } from '@datalayer/icons-react';
10
- import { useCoreStore, useIAMStore } from '../../state';
11
- import { isRuntimeRemote } from '../../stateful/runtimes';
12
- import { RuntimeSnippetsFacade } from '../../stateful/jupyter';
13
- import { ExternalTokenSilentLogin } from '../../components/iam';
14
- import { SnippetDialog } from './../snippets/SnippetDialog';
15
- import { RuntimeLauncherDialog } from './RuntimeLauncherDialog';
16
- import { RuntimePickerBase } from './RuntimePickerBase';
17
- import { RuntimeCellVariablesDialog } from './RuntimeCellVariablesDialog';
10
+ import { useCoreStore, useIAMStore } from '../../state/index.js';
11
+ import { isRuntimeRemote } from '../../stateful/runtimes/index.js';
12
+ import { RuntimeSnippetsFacade } from '../../stateful/jupyter/index.js';
13
+ import { ExternalTokenSilentLogin } from '../../components/iam/index.js';
14
+ import { SnippetDialog } from './../snippets/SnippetDialog.js';
15
+ import { RuntimeLauncherDialog } from './RuntimeLauncherDialog.js';
16
+ import { RuntimePickerBase } from './RuntimePickerBase.js';
17
+ import { RuntimeCellVariablesDialog } from './RuntimeCellVariablesDialog.js';
18
18
  /**
19
19
  * Runtime picker component for a cell.
20
20
  */
@@ -9,12 +9,12 @@ import { Box } from '@datalayer/primer-addons';
9
9
  import { AlertIcon } from '@primer/octicons-react';
10
10
  import { JSONExt } from '@lumino/coreutils';
11
11
  import { KernelExecutor } from '@datalayer/jupyter-react';
12
- import { RuntimeSnippetsFacade } from '../../stateful/jupyter';
13
- import { ExternalTokenSilentLogin } from '../../components/iam';
14
- import { useCoreStore, useIAMStore } from '../../state';
15
- import { RuntimeReservationControl, MAXIMAL_RUNTIME_TIME_RESERVATION_MINUTES, } from './RuntimeReservationControl';
16
- import { RuntimeVariables } from './RuntimeVariables';
17
- import { RuntimePickerBase } from './RuntimePickerBase';
12
+ import { RuntimeSnippetsFacade } from '../../stateful/jupyter/index.js';
13
+ import { ExternalTokenSilentLogin } from '../../components/iam/index.js';
14
+ import { useCoreStore, useIAMStore } from '../../state/index.js';
15
+ import { RuntimeReservationControl, MAXIMAL_RUNTIME_TIME_RESERVATION_MINUTES, } from './RuntimeReservationControl.js';
16
+ import { RuntimeVariables } from './RuntimeVariables.js';
17
+ import { RuntimePickerBase } from './RuntimePickerBase.js';
18
18
  /**
19
19
  * Runtime Picker components for a Notebook.
20
20
  */
@@ -10,9 +10,9 @@ import { IMarkdownParser } from '@jupyterlab/rendermime';
10
10
  import { ActionList, ActionMenu, Box, Button, Tooltip } from '@primer/react';
11
11
  import { CloudIcon, EyeIcon, UnfoldIcon } from '@primer/octicons-react';
12
12
  import { BrowserIcon, PlusIcon } from '@datalayer/icons-react';
13
- import { ArtifactIcon } from '../../components/icons';
14
- import { RuntimeLauncherDialog } from '../../components/runtimes';
15
- import { useRuntimesStore } from '../../state';
13
+ import { ArtifactIcon } from '../../components/icons/index.js';
14
+ import { RuntimeLauncherDialog } from '../../components/runtimes/index.js';
15
+ import { useRuntimesStore } from '../../state/index.js';
16
16
  /**
17
17
  * Cause to open the new runtime dialog.
18
18
  */
@@ -2,14 +2,14 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './RuntimeCellVariables';
6
- export * from './RuntimeCellVariablesDialog';
7
- export * from './RuntimeLauncherDialog';
8
- export * from './RuntimePickerBase';
9
- export * from './RuntimePickerCell';
10
- export * from './RuntimePickerNotebook';
11
- export * from './RuntimeReservationControl';
12
- export * from './RuntimeSimplePicker';
13
- export * from './RuntimeTransfer';
14
- export * from './RuntimeUtils';
15
- export * from './RuntimeVariables';
5
+ export * from './RuntimeCellVariables.js';
6
+ export * from './RuntimeCellVariablesDialog.js';
7
+ export * from './RuntimeLauncherDialog.js';
8
+ export * from './RuntimePickerBase.js';
9
+ export * from './RuntimePickerCell.js';
10
+ export * from './RuntimePickerNotebook.js';
11
+ export * from './RuntimeReservationControl.js';
12
+ export * from './RuntimeSimplePicker.js';
13
+ export * from './RuntimeTransfer.js';
14
+ export * from './RuntimeUtils.js';
15
+ export * from './RuntimeVariables.js';
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Link, Tooltip, Button } from '@primer/react';
3
3
  import { ScreenFullIcon } from '@primer/octicons-react';
4
- import { lazyWithPreload, WithSuspense } from '../../utils';
5
- import { useToast } from '../../hooks';
6
- import { useLayoutStore } from '../../state';
4
+ import { lazyWithPreload, WithSuspense } from '../../utils/index.js';
5
+ import { useToast } from '../../hooks/index.js';
6
+ import { useLayoutStore } from '../../state/index.js';
7
7
  const Screencapture = WithSuspense(lazyWithPreload(() => import('./Screencapture')));
8
8
  export const ScreencaptureButton = (props) => {
9
9
  const { enqueueToast } = useToast();
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './Screencapture';
6
- export * from './ScreencaptureButton';
5
+ export * from './Screencapture.js';
6
+ export * from './ScreencaptureButton.js';
@@ -8,10 +8,10 @@ import { CameraIcon } from '@datalayer/icons-react';
8
8
  import { ActionList, ActionMenu, Flash, FormControl, Select, Spinner, } from '@primer/react';
9
9
  import { Dialog } from '@primer/react/experimental';
10
10
  import { Box } from '@datalayer/primer-addons';
11
- import { useToast } from '../../hooks';
12
- import { createRuntimeSnapshot, getRuntimeSnapshots, loadBrowserRuntimeSnapshot, loadRuntimeSnapshot, } from '../../stateful/runtimes';
13
- import { useRuntimesStore } from '../../state';
14
- import { createRuntimeSnapshotName } from '../../utils';
11
+ import { useToast } from '../../hooks/index.js';
12
+ import { createRuntimeSnapshot, getRuntimeSnapshots, loadBrowserRuntimeSnapshot, loadRuntimeSnapshot, } from '../../stateful/runtimes/index.js';
13
+ import { useRuntimesStore } from '../../state/index.js';
14
+ import { createRuntimeSnapshotName } from '../../utils/index.js';
15
15
  /**
16
16
  * Runtime Snapshot menu component.
17
17
  */
@@ -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 './RuntimeSnapshotMenu';
5
+ export * from './RuntimeSnapshotMenu.js';
@@ -8,7 +8,7 @@ import { nullTranslator } from '@jupyterlab/translation';
8
8
  import { FormControl, Select, Text } from '@primer/react';
9
9
  import { Box } from '@datalayer/primer-addons';
10
10
  import { Dialog } from '@primer/react/experimental';
11
- import { Markdown } from '../display';
11
+ import { Markdown } from '../display/index.js';
12
12
  /**
13
13
  * Dialog to inject snippet in a cell.
14
14
  */
@@ -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 './SnippetDialog';
5
+ export * from './SnippetDialog.js';
@@ -1,10 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2023-2025 Datalayer, Inc.
4
+ * Distributed under the terms of the Modified BSD License.
5
+ */
2
6
  /*
3
7
  * Copyright (c) 2025-2026 Datalayer, Inc.
4
8
  * Distributed under the terms of the Modified BSD License.
5
9
  */
6
10
  import React, { useMemo } from 'react';
7
- import { dataToPoints } from './dataProcessing';
11
+ import { dataToPoints } from './dataProcessing.js';
8
12
  /**
9
13
  * Sparklines Component
10
14
  *
@@ -1,3 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
1
5
  /*
2
6
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
7
  * Distributed under the terms of the Modified BSD License.
@@ -1,7 +1,11 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
1
5
  /*
2
6
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
7
  * Distributed under the terms of the Modified BSD License.
4
8
  */
5
- export { Sparklines } from './Sparklines';
6
- export { SparklinesLine } from './SparklinesLine';
7
- export { dataToPoints, min, max } from './dataProcessing';
9
+ export { Sparklines } from './Sparklines.js';
10
+ export { SparklinesLine } from './SparklinesLine.js';
11
+ export { dataToPoints, min, max } from './dataProcessing.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2025-2026 Datalayer, Inc.
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  export {};
@@ -11,9 +11,9 @@ import { Box } from '@datalayer/primer-addons';
11
11
  import { Blankslate, Dialog } from '@primer/react/experimental';
12
12
  import { CounterClockWiseIcon } from '@datalayer/icons-react';
13
13
  import { useIsMounted } from 'usehooks-ts';
14
- import { useToast } from '../../hooks';
15
- import { UploadIconButton } from '../buttons';
16
- import { DirectoryItem, TreeItem, modelToView, } from './ContentsItems';
14
+ import { useToast } from '../../hooks/index.js';
15
+ import { UploadIconButton } from '../buttons/index.js';
16
+ import { DirectoryItem, TreeItem, modelToView, } from './ContentsItems.js';
17
17
  /**
18
18
  * The maximum upload size (in bytes) for notebook version < 5.1.0
19
19
  */
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './ContentsBrowser';
6
- export * from './ContentsItems';
5
+ export * from './ContentsBrowser.js';
6
+ export * from './ContentsItems.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 './StudentItemStatus';
5
+ export * from './StudentItemStatus.js';
@@ -8,8 +8,8 @@ import { createPortal } from 'react-dom';
8
8
  import { Button, ButtonGroup, Text, ThemeProvider, useWindowSize, } from '@primer/react-brand';
9
9
  import { ChevronDownIcon, ChevronUpIcon } from '@primer/octicons-react';
10
10
  import { default as clsx } from 'clsx';
11
- import { useId } from '../../hooks';
12
- import { useKeyboardEscape, useOnClickOutside, useProvidedRefOrCreate, useContainsFocus, } from '../../hooks';
11
+ import { useId } from '../../hooks/index.js';
12
+ import { useKeyboardEscape, useOnClickOutside, useProvidedRefOrCreate, useContainsFocus, } from '../../hooks/index.js';
13
13
  /**
14
14
  * Design tokens
15
15
  */
@@ -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 './SubNav';
5
+ export * from './SubNav.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 './DataTable';
5
+ export * from './DataTable.js';
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  */
6
6
  import React, { useEffect } from 'react';
7
7
  import clsx from 'clsx';
8
- import { useTextRevealAnimationLines } from './useTextRevealAnimationLines';
8
+ import { useTextRevealAnimationLines } from './useTextRevealAnimationLines.js';
9
9
  import styles from './TextRevealAnimation.module.css';
10
10
  export function TextRevealAnimation({ children, ...rest }) {
11
11
  const [animationStarted, setAnimationStarted] = React.useState(false);
@@ -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 './TextRevealAnimation';
5
+ export * from './TextRevealAnimation.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 './SpaceVariantToken';
5
+ export * from './SpaceVariantToken.js';
@@ -8,7 +8,7 @@ import { Box } from '@datalayer/primer-addons';
8
8
  import { RepoPushIcon } from '@primer/octicons-react';
9
9
  // import { PlayIcon, StopIcon } from '@primer/octicons-react';
10
10
  // import { notebookStore } from '@datalayer/jupyter-react';
11
- import { useGradeStore } from '../../state';
11
+ import { useGradeStore } from '../../state/index.js';
12
12
  export const AssignmentEditorToolbar = (props) => {
13
13
  // const { notebookId } = props;
14
14
  // const notebook = notebookStore.getState().selectNotebook(notebookId);
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  */
6
6
  import { Button, Box } from '@primer/react';
7
7
  import { RepoPushIcon } from '@primer/octicons-react';
8
- import { documentStore } from '../../state';
8
+ import { documentStore } from '../../state/index.js';
9
9
  export const DocumentEditorToolbar = () => {
10
10
  return (_jsx(Box, { display: "flex", children: _jsx(Box, { children: _jsx(Button, { variant: "invisible", size: "small", leadingVisual: RepoPushIcon, onClick: () => documentStore.getState().save(new Date()), children: "Save" }) }) }));
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 * from './AssignmentEditorToolbar';
6
- export * from './DocumentEditorToolbar';
7
- export * from './NotebookEditorToolbar';
5
+ export * from './AssignmentEditorToolbar.js';
6
+ export * from './DocumentEditorToolbar.js';
7
+ export * from './NotebookEditorToolbar.js';
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  */
6
6
  import { useEffect, useState } from 'react';
7
7
  import { Avatar, AvatarStack } from '@primer/react';
8
- import { getAvatarURL, getRelativeTime } from '../../utils';
8
+ import { getAvatarURL, getRelativeTime } from '../../utils/index.js';
9
9
  const AVATAR_SIZE = 28;
10
10
  const SPACER_USER_AGENT = 'DatalayerSpacer';
11
11
  const AWARENESS_NOTIFICATION_TIMEOUT_MS = 30_000;
@@ -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 './PeerIndicator';
5
+ export * from './PeerIndicator.js';
@@ -3,7 +3,7 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  import { Signal } from '@lumino/signaling';
6
- import { coreStore } from '../state';
6
+ import { coreStore } from '../state/index.js';
7
7
  export const FORCE_ACTIVATE_RUNTIMES_PLUGINS = false;
8
8
  export class DatalayerConfiguration {
9
9
  _configuration = coreStore.getState().configuration;
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './Configuration';
6
- export * from './integrations';
5
+ export * from './Configuration.js';
6
+ export * from './integrations/index.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 './Loom';
5
+ export * from './Loom.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 './OutputshotPlaceholders';
5
+ export * from './OutputshotPlaceholders.js';
@@ -2,36 +2,36 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './useAuthorization';
6
- export * from './useBackdrop';
7
- export * from './useBackdropJupyterLab';
8
- export * from './useCache';
9
- export * from './useContainsFocus';
10
- export * from './useDatalayer';
11
- // export * from "./useCellOutputshot"; // Do not export html2canvas
12
- export * from './useError';
13
- export * from './useExternalScript';
14
- export * from './useFocusTrap';
15
- export * from './useIAM';
16
- export * from './useId';
17
- export * from './useIsomorphicLayoutEffect';
18
- export * from './useJupyterLabTheme';
19
- export * from './useHighZIndexPortal';
20
- export * from './useKeyboardShortcuts';
21
- export * from './useKeyboardEscape';
22
- export * from './useLocation';
23
- export * from './useLocationHandles';
24
- export * from './useNavigate';
25
- export * from './useParams';
26
- export * from './useOnClickOutside';
27
- export * from './useRef';
28
- export * from './useRuntimes';
29
- export * from './useScreencapture';
30
- export * from './useToast';
31
- export * from './useUpload';
32
- export * from './useUser';
33
- export * from './useProjects';
34
- export * from './useProjectStore';
35
- export * from './useMobile';
36
- export * from './useVisibilityObserver';
37
- export * from './useWindowSize';
5
+ export * from './useAuthorization.js';
6
+ export * from './useBackdrop.js';
7
+ export * from './useBackdropJupyterLab.js';
8
+ export * from './useCache.js';
9
+ export * from './useContainsFocus.js';
10
+ export * from './useDatalayer.js';
11
+ // export * from "./useCellOutputshot.js"; // Do not export html2canvas
12
+ export * from './useError.js';
13
+ export * from './useExternalScript.js';
14
+ export * from './useFocusTrap.js';
15
+ export * from './useIAM.js';
16
+ export * from './useId.js';
17
+ export * from './useIsomorphicLayoutEffect.js';
18
+ export * from './useJupyterLabTheme.js';
19
+ export * from './useHighZIndexPortal.js';
20
+ export * from './useKeyboardShortcuts.js';
21
+ export * from './useKeyboardEscape.js';
22
+ export * from './useLocation.js';
23
+ export * from './useLocationHandles.js';
24
+ export * from './useNavigate.js';
25
+ export * from './useParams.js';
26
+ export * from './useOnClickOutside.js';
27
+ export * from './useRef.js';
28
+ export * from './useRuntimes.js';
29
+ export * from './useScreencapture.js';
30
+ export * from './useToast.js';
31
+ export * from './useUpload.js';
32
+ export * from './useUser.js';
33
+ export * from './useProjects.js';
34
+ export * from './useProjectStore.js';
35
+ export * from './useMobile.js';
36
+ export * from './useVisibilityObserver.js';
37
+ export * from './useWindowSize.js';
@@ -5,8 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
  import { Heading, Box, Spinner } from '@primer/react';
8
- import { useBackdrop } from '..';
9
- import { useLayoutStore } from '../../state';
8
+ import { useBackdrop } from '../index.js';
9
+ import { useLayoutStore } from '../../state/index.js';
10
10
  const BackdropContent = (props) => {
11
11
  const { backdropDisplay } = props;
12
12
  return (_jsx(Box, { style: { zIndex: 10999 }, children: backdropDisplay.message ? (_jsxs(Box, { display: "flex", style: { alignItems: 'center' }, children: [_jsx(Box, { mr: 3, children: _jsx(Spinner, { size: "large" }) }), _jsx(Box, { children: _jsx(Heading, { sx: { fontSize: 5, color: 'white' }, children: backdropDisplay.message }) })] })) : (_jsx(Spinner, { size: "large" })) }));
@@ -5,9 +5,9 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
5
5
  */
6
6
  import { useEffect } from 'react';
7
7
  import { Box } from '@primer/react';
8
- import { useScreencapture, useToast } from '..';
9
- import { lazyWithPreload, WithSuspense } from '../../utils';
10
- import { useLayoutStore } from '../../state';
8
+ import { useScreencapture, useToast } from '../index.js';
9
+ import { lazyWithPreload, WithSuspense } from '../../utils/index.js';
10
+ import { useLayoutStore } from '../../state/index.js';
11
11
  import '../../../style/screencapture/index.css';
12
12
  const Screencapture = WithSuspense(lazyWithPreload(() => import('../../components/screencapture/Screencapture')));
13
13
  const Capture = (props) => {
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- export * from './LayoutBackdrop';
6
- export * from './LayoutScreencapture';
5
+ export * from './LayoutBackdrop.js';
6
+ export * from './LayoutScreencapture.js';
@@ -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 { useLocation } from './useLocation';
6
- import { PlatformRoles, OrganizationRoles, TeamRoles, } from '../models';
7
- import useNavigate from './useNavigate';
5
+ import { useLocation } from './useLocation.js';
6
+ import { PlatformRoles, OrganizationRoles, TeamRoles, } from '../models/index.js';
7
+ import useNavigate from './useNavigate.js';
8
8
  export const useAuthorization = () => {
9
9
  const navigate = useNavigate();
10
10
  const location = useLocation();
@@ -5,7 +5,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
5
5
  */
6
6
  import { createContext, useState, useContext } from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { LayoutBackdrop } from './layouts';
8
+ import { LayoutBackdrop } from './layouts/index.js';
9
9
  export const BackdropContext = createContext({
10
10
  closeBackdrop: () => { },
11
11
  displayBackdrop: (nextBackdrop) => { },
@@ -25,7 +25,7 @@ Example
25
25
  -------
26
26
  import React from 'react'
27
27
  import { BackdropProvider } from 'use-backdrop';
28
- import ExampleComponent from './ExampleComponent'
28
+ import ExampleComponent from './ExampleComponent.js'
29
29
  const renderCustomBackdropSurface = (children) => (
30
30
  <div style={{
31
31
  // Style your own backdrop surface!
@@ -39,14 +39,14 @@
39
39
  * ```
40
40
  */
41
41
  import { useQuery, useMutation, useQueryClient, } from '@tanstack/react-query';
42
- import { BOOTSTRAP_USER_ONBOARDING, asContact, asDatasource, asInvite, asOrganization, asPage, asSecret, asSpace, asTeam, asToken, asUser, } from '../models';
43
- import { useCoreStore, useIAMStore } from '../state';
44
- import { asDisplayName, namesAsInitials, asArray } from '../utils';
45
- import { newUserMock } from './../mocks';
46
- import { useDatalayer } from './useDatalayer';
47
- import { useAuthorization } from './useAuthorization';
48
- import { useUploadForm } from './useUpload';
49
- import { OUTPUTSHOT_PLACEHOLDER_DEFAULT_SVG } from './assets';
42
+ import { BOOTSTRAP_USER_ONBOARDING, asContact, asDatasource, asInvite, asOrganization, asPage, asSecret, asSpace, asTeam, asToken, asUser, } from '../models/index.js';
43
+ import { useCoreStore, useIAMStore } from '../state/index.js';
44
+ import { asDisplayName, namesAsInitials, asArray } from '../utils/index.js';
45
+ import { newUserMock } from './../mocks/index.js';
46
+ import { useDatalayer } from './useDatalayer.js';
47
+ import { useAuthorization } from './useAuthorization.js';
48
+ import { useUploadForm } from './useUpload.js';
49
+ import { OUTPUTSHOT_PLACEHOLDER_DEFAULT_SVG } from './assets/index.js';
50
50
  // Kept for potential future use
51
51
  // Default query options for all queries
52
52
  const DEFAULT_QUERY_OPTIONS = {
@@ -3,8 +3,8 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  import { useState } from 'react';
6
- import { useCellStore } from '../state';
7
- import { takeHTMLNodeScreencapture } from '../utils/Screencapture';
6
+ import { useCellStore } from '../state/index.js';
7
+ import { takeHTMLNodeScreencapture } from '../utils/Screencapture.js';
8
8
  const useCellOutputshot = () => {
9
9
  const [outputshot, setOutputshot] = useState('');
10
10
  const [error, setError] = useState();
@@ -2,12 +2,12 @@
2
2
  * Copyright (c) 2023-2025 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- import { useLocation } from './useLocation';
6
- import { useNavigate } from './useNavigate';
7
- import { useToast } from './useToast';
8
- // import { useRuMnock } from './../mocks';
9
- import { useIAMStore } from '../state';
10
- import { requestDatalayerAPI } from '../api/DatalayerApi';
5
+ import { useLocation } from './useLocation.js';
6
+ import { useNavigate } from './useNavigate.js';
7
+ import { useToast } from './useToast.js';
8
+ // import { useRuMnock } from './../mocks/index.js';
9
+ import { useIAMStore } from '../state/index.js';
10
+ import { requestDatalayerAPI } from '../api/DatalayerApi.js';
11
11
  export function useDatalayer(props = {}) {
12
12
  const { loginRoute = '/login', notifyOnError = true } = props;
13
13
  const location = useLocation();
@@ -3,10 +3,10 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  import { useEffect, useState } from 'react';
6
- import { useCache } from './useCache';
7
- import { coreStore, useIAMStore, useLayoutStore, useOrganizationStore, useSpaceStore, } from '../state';
8
- import { asUser, ANONYMOUS_USER, ANONYMOUS_USER_TOKEN, } from '../models';
9
- import { requestDatalayerAPI, } from '../api/DatalayerApi';
6
+ import { useCache } from './useCache.js';
7
+ import { coreStore, useIAMStore, useLayoutStore, useOrganizationStore, useSpaceStore, } from '../state/index.js';
8
+ import { asUser, ANONYMOUS_USER, ANONYMOUS_USER_TOKEN, } from '../models/index.js';
9
+ import { requestDatalayerAPI, } from '../api/DatalayerApi.js';
10
10
  export const useIAM = (props = { user: undefined, token: undefined }) => {
11
11
  const { token } = props;
12
12
  const [iamState, setIAMState] = useState(props);
@@ -4,13 +4,13 @@
4
4
  */
5
5
  import { useEffect, useState } from 'react';
6
6
  // Import React Router hooks from our wrapper
7
- import { useLocationRR, useNavigateRR, } from '../navigation/adapters/react-router';
7
+ import { useLocationRR, useNavigateRR, } from '../navigation/adapters/react-router.js';
8
8
  // Import Next.js hooks from our wrapper
9
9
  // Currently not used but kept for future Next.js support
10
10
  // import {
11
11
  // usePathnameNext,
12
12
  // useSearchParamsNext,
13
- // } from '../navigation/adapters/nextjs';
13
+ // } from '../navigation/adapters/nextjs.js';
14
14
  /**
15
15
  * Hook to get current location
16
16
  * Detects and uses React Router when available, falls back to native browser location