@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.
- package/lib/App.js +2 -2
- package/lib/api/DatalayerApi.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.js +2 -2
- package/lib/api/spacer/notebooks.js +2 -2
- package/lib/api/spacer/spaces.js +3 -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.js +1 -1
- package/lib/client/auth/strategies.js +3 -3
- package/lib/client/base.js +2 -2
- package/lib/client/index.js +19 -19
- package/lib/client/mixins/IAMMixin.js +10 -10
- package/lib/client/mixins/RuntimesMixin.js +7 -7
- package/lib/client/mixins/SpacerMixin.js +11 -11
- 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.js +4 -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.js +1 -1
- 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 +8 -8
- 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.js +1 -1
- 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.js +16 -16
- 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.js +1 -1
- 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/RuntimeDTO.js +2 -2
- package/lib/models/RuntimeSnapshotDTO.js +2 -2
- package/lib/models/Secret.js +1 -1
- package/lib/models/Space.js +3 -3
- 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/views/OtelLive.js +11 -11
- package/lib/otel/views/OtelLogsList.js +1 -1
- 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.js +12 -12
- package/lib/routes/index.js +1 -1
- package/lib/services/DatalayerServiceManager.js +3 -3
- 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 +2 -2
- package/lib/state/storage/index.js +1 -1
- package/lib/state/substates/CoreState.js +1 -1
- 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/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
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
* Spacer mixin for managing workspaces, notebooks, and content.
|
|
7
7
|
* @module client/mixins/SpacerMixin
|
|
8
8
|
*/
|
|
9
|
-
import * as spaces from '../../api/spacer/spaces';
|
|
10
|
-
import * as notebooks from '../../api/spacer/notebooks';
|
|
11
|
-
import * as users from '../../api/spacer/users';
|
|
12
|
-
import * as lexicals from '../../api/spacer/lexicals';
|
|
13
|
-
import * as documents from '../../api/spacer/documents';
|
|
14
|
-
import * as items from '../../api/spacer/items';
|
|
15
|
-
import { NotebookDTO } from '../../models/NotebookDTO';
|
|
16
|
-
import { LexicalDTO } from '../../models/LexicalDTO';
|
|
17
|
-
import { SpaceDTO } from '../../models/SpaceDTO';
|
|
18
|
-
import { HealthCheck } from '../../models/HealthCheck';
|
|
19
|
-
import { convertSpaceItemsToModels } from '../utils/spacerUtils';
|
|
9
|
+
import * as spaces from '../../api/spacer/spaces.js';
|
|
10
|
+
import * as notebooks from '../../api/spacer/notebooks.js';
|
|
11
|
+
import * as users from '../../api/spacer/users.js';
|
|
12
|
+
import * as lexicals from '../../api/spacer/lexicals.js';
|
|
13
|
+
import * as documents from '../../api/spacer/documents.js';
|
|
14
|
+
import * as items from '../../api/spacer/items.js';
|
|
15
|
+
import { NotebookDTO } from '../../models/NotebookDTO.js';
|
|
16
|
+
import { LexicalDTO } from '../../models/LexicalDTO.js';
|
|
17
|
+
import { SpaceDTO } from '../../models/SpaceDTO.js';
|
|
18
|
+
import { HealthCheck } from '../../models/HealthCheck.js';
|
|
19
|
+
import { convertSpaceItemsToModels } from '../utils/spacerUtils.js';
|
|
20
20
|
/** Spacer mixin providing workspace and content management. */
|
|
21
21
|
export function SpacerMixin(Base) {
|
|
22
22
|
return class extends Base {
|
|
@@ -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 { NotebookDTO } from '../../models/NotebookDTO';
|
|
6
|
-
import { LexicalDTO } from '../../models/LexicalDTO';
|
|
7
|
-
import { ItemTypes } from '../constants';
|
|
5
|
+
import { NotebookDTO } from '../../models/NotebookDTO.js';
|
|
6
|
+
import { LexicalDTO } from '../../models/LexicalDTO.js';
|
|
7
|
+
import { ItemTypes } from '../constants.js';
|
|
8
8
|
/**
|
|
9
9
|
* Convert raw space items from API response to model instances.
|
|
10
10
|
* This utility function is shared between Space.getItems() and SpacerMixin.getSpaceItems()
|
|
@@ -13,7 +13,7 @@ export var CollaborationStatus;
|
|
|
13
13
|
CollaborationStatus["Connected"] = "connected";
|
|
14
14
|
CollaborationStatus["Error"] = "error";
|
|
15
15
|
})(CollaborationStatus || (CollaborationStatus = {}));
|
|
16
|
-
import { requestDatalayerCollaborationSessionId } from './DatalayerCollaboration';
|
|
16
|
+
import { requestDatalayerCollaborationSessionId } from './DatalayerCollaboration.js';
|
|
17
17
|
/**
|
|
18
18
|
* Datalayer collaboration provider
|
|
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 './DatalayerCollaboration';
|
|
6
|
-
export * from './DatalayerCollaborationProvider';
|
|
5
|
+
export * from './DatalayerCollaboration.js';
|
|
6
|
+
export * from './DatalayerCollaborationProvider.js';
|
|
@@ -8,12 +8,12 @@ import { PageConfig, URLExt } from '@jupyterlab/coreutils';
|
|
|
8
8
|
import { EyeIcon, EyeClosedIcon, MarkGithubIcon } from '@primer/octicons-react';
|
|
9
9
|
import { Button, FormControl, Heading, Link, PageLayout, TextInput, } from '@primer/react';
|
|
10
10
|
import { Box } from '@datalayer/primer-addons';
|
|
11
|
-
import { asUser, IAMProvidersSpecs } from '../../models';
|
|
12
|
-
import { useIAMStore } from '../../state';
|
|
13
|
-
import { CenteredSpinner } from '../display';
|
|
14
|
-
import { isInsideJupyterLab, validateLength } from '../../utils';
|
|
15
|
-
import { useNavigate, useCache, useToast, useIAM } from '../../hooks';
|
|
16
|
-
import { LoginToken } from './LoginToken';
|
|
11
|
+
import { asUser, IAMProvidersSpecs } from '../../models/index.js';
|
|
12
|
+
import { useIAMStore } from '../../state/index.js';
|
|
13
|
+
import { CenteredSpinner } from '../display/index.js';
|
|
14
|
+
import { isInsideJupyterLab, validateLength } from '../../utils/index.js';
|
|
15
|
+
import { useNavigate, useCache, useToast, useIAM } from '../../hooks/index.js';
|
|
16
|
+
import { LoginToken } from './LoginToken.js';
|
|
17
17
|
/** Inline Google "G" icon for the login button. */
|
|
18
18
|
const GoogleIcon = () => (_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 48 48", children: [_jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }), _jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }), _jsx("path", { fill: "#FBBC05", d: "M10.53 28.59a14.5 14.5 0 0 1 0-9.18l-7.98-6.19a24.1 24.1 0 0 0 0 21.56l7.98-6.19z" }), _jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" })] }));
|
|
19
19
|
export const Login = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { BrowserRouter } from 'react-router-dom';
|
|
3
3
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
4
|
-
import { queryClient } from '../../utils/cli/query';
|
|
5
|
-
import { Login } from './Login';
|
|
4
|
+
import { queryClient } from '../../utils/cli/query.js';
|
|
5
|
+
import { Login } from './Login.js';
|
|
6
6
|
/**
|
|
7
7
|
* Login component provides a comprehensive authentication interface with multiple methods:
|
|
8
8
|
* - Email/password authentication
|
|
@@ -8,8 +8,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import { Button, FormControl, TextInput } from '@primer/react';
|
|
10
10
|
import { Box } from '@datalayer/primer-addons';
|
|
11
|
-
import { useIAM, useNavigate, useToast } from '../../hooks';
|
|
12
|
-
import { useIAMStore } from '../../state';
|
|
11
|
+
import { useIAM, useNavigate, useToast } from '../../hooks/index.js';
|
|
12
|
+
import { useIAMStore } from '../../state/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* Component for token-based authentication
|
|
15
15
|
* Provides a simple button that expands to show a token input form
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Authentication components for Datalayer platform
|
|
7
7
|
*/
|
|
8
|
-
export * from './Login';
|
|
8
|
+
export * from './Login.js';
|
|
9
9
|
// LoginCLI is excluded from build - it's meant for CLI apps with full routing.
|
|
10
|
-
// export * from './LoginCLI';
|
|
11
|
-
export * from './LoginToken';
|
|
10
|
+
// export * from './LoginCLI.js';
|
|
11
|
+
export * from './LoginToken.js';
|
|
@@ -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 { BoringAvatar } from './BoringAvatar';
|
|
5
|
+
import { BoringAvatar } from './BoringAvatar.js';
|
|
6
6
|
const meta = {
|
|
7
7
|
title: 'Datalayer/BoringAvatar',
|
|
8
8
|
component: BoringAvatar,
|
|
@@ -5,8 +5,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
*/
|
|
6
6
|
import { Avatar, Link } from '@primer/react';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
|
-
import { AvatarSkeleton } from '../../components/display';
|
|
9
|
-
import { getAvatarURL } from '../../utils';
|
|
8
|
+
import { AvatarSkeleton } from '../../components/display/index.js';
|
|
9
|
+
import { getAvatarURL } from '../../utils/index.js';
|
|
10
10
|
const Profile = ({ user, size = 100, onClick }) => {
|
|
11
11
|
return (_jsx(Box, { style: { width: size }, children: _jsx(Avatar
|
|
12
12
|
// square
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
*/
|
|
6
6
|
import { Link } from '@primer/react';
|
|
7
7
|
import { Banner } from '@primer/react/experimental';
|
|
8
|
-
import { useNavigate } from '../../hooks';
|
|
8
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
9
9
|
export const NoAutomationBanner = () => {
|
|
10
10
|
const navigate = useNavigate();
|
|
11
11
|
return (_jsx(_Fragment, { children: _jsx(Banner, { title: "Warning", description: _jsxs(_Fragment, { children: ["We don't have bandwidth to automate this feature.", ' ', _jsx(Link, { href: "", onClick: e => navigate('/contact', e), children: "Please reach out" }), ' ', "to prioritize this."] }), primaryAction: _jsx(Banner.PrimaryAction, { onClick: e => navigate('/contact', e), children: "Reach out" }), variant: "warning" }) }));
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
*/
|
|
6
6
|
import { Button } from '@primer/react';
|
|
7
7
|
import { DownloadIcon } from '@primer/octicons-react';
|
|
8
|
-
import { downloadCSV } from '../../utils';
|
|
8
|
+
import { downloadCSV } from '../../utils/index.js';
|
|
9
9
|
export const DownloadCSVButton = ({ data, fileName, variant = 'default', }) => {
|
|
10
10
|
return (_jsx(Button, { variant: variant, leadingVisual: DownloadIcon, onClick: e => downloadCSV(data, fileName), children: "Download" }));
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
*/
|
|
6
6
|
import { Button } from '@primer/react';
|
|
7
7
|
import { DownloadIcon } from '@primer/octicons-react';
|
|
8
|
-
import { downloadJson } from '../../utils';
|
|
8
|
+
import { downloadJson } from '../../utils/index.js';
|
|
9
9
|
export const DownloadJsonButton = ({ data, fileName, variant = 'default', extension = 'json', }) => {
|
|
10
10
|
return (_jsx(Button, { variant: variant, leadingVisual: DownloadIcon, onClick: e => downloadJson(data, fileName, extension), children: "Download" }));
|
|
11
11
|
};
|
|
@@ -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
|
-
export * from './DownloadCSVButton';
|
|
6
|
-
export * from './DownloadJsonButton';
|
|
7
|
-
export * from './LongActionButton';
|
|
8
|
-
export * from './UploadButton';
|
|
9
|
-
export * from './VariantType';
|
|
5
|
+
export * from './DownloadCSVButton.js';
|
|
6
|
+
export * from './DownloadJsonButton.js';
|
|
7
|
+
export * from './LongActionButton.js';
|
|
8
|
+
export * from './UploadButton.js';
|
|
9
|
+
export * from './VariantType.js';
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { createElement, useCallback, useEffect, useState } from 'react';
|
|
7
7
|
import { Button, Flash, FormControl, Spinner, Text } from '@primer/react';
|
|
8
8
|
import { Box } from '@datalayer/primer-addons';
|
|
9
|
-
import { useCache } from '../../hooks';
|
|
9
|
+
import { useCache } from '../../hooks/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* Stripe checkout.
|
|
12
12
|
*/
|
|
@@ -5,8 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback, useEffect } from 'react';
|
|
7
7
|
import { Select } from '@primer/react';
|
|
8
|
-
import { useCache, useUser } from './../../hooks';
|
|
9
|
-
import { useLayoutStore } from '../../state';
|
|
8
|
+
import { useCache, useUser } from './../../hooks/index.js';
|
|
9
|
+
import { useLayoutStore } from '../../state/index.js';
|
|
10
10
|
const NO_ORGANIZATION_SELECTED_VALUE = 'NO_ORGANIZATION_SELECTED_VALUE';
|
|
11
11
|
export const OrganizationSelect = () => {
|
|
12
12
|
const user = useUser();
|
|
@@ -6,8 +6,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
import { useCallback, useEffect } from 'react';
|
|
7
7
|
import { FormControl, Select } from '@primer/react';
|
|
8
8
|
import { Box } from '@datalayer/primer-addons';
|
|
9
|
-
import { useCache, useUser } from './../../hooks';
|
|
10
|
-
import { useLayoutStore } from '../../state';
|
|
9
|
+
import { useCache, useUser } from './../../hooks/index.js';
|
|
10
|
+
import { useLayoutStore } from '../../state/index.js';
|
|
11
11
|
export const SpaceSelect = () => {
|
|
12
12
|
const user = useUser();
|
|
13
13
|
const { organization, space, updateLayoutSpace } = useLayoutStore();
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
import { Link, Text } from '@primer/react';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { ArrowRightIcon } from '@primer/octicons-react';
|
|
9
|
-
import { useNavigate } from '../../hooks';
|
|
9
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
10
10
|
export const DatalayerBox = (props) => {
|
|
11
11
|
const { title, linkLabel, linkRoute, children } = props;
|
|
12
12
|
const navigate = useNavigate();
|
|
@@ -4,7 +4,7 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
7
|
-
import { formatRelativeTime } from '../../utils';
|
|
7
|
+
import { formatRelativeTime } from '../../utils/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Display a live-updating relative time label (e.g. "5m ago").
|
|
10
10
|
*/
|
|
@@ -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';
|
|
7
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Navigation link for primer NavList
|
|
10
10
|
* Works with React Router, Next.js, or native browser navigation
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export * from './AvatarSkeleton';
|
|
6
|
-
export * from './CenteredSpinner';
|
|
7
|
-
export * from './CodePreview';
|
|
8
|
-
export * from './DatalayerBox';
|
|
9
|
-
export * from './HorizontalCenter';
|
|
10
|
-
export * from './JupyterDialog';
|
|
11
|
-
export * from './LiveRelativeTime';
|
|
12
|
-
export * from './Markdown';
|
|
13
|
-
export * from './NavLink';
|
|
14
|
-
export * from './NotebookSkeleton';
|
|
15
|
-
export * from './BusyDots';
|
|
16
|
-
export * from './Placeholder';
|
|
17
|
-
export * from './ToTopBranded';
|
|
18
|
-
export * from './VisuallyHidden';
|
|
5
|
+
export * from './AvatarSkeleton.js';
|
|
6
|
+
export * from './CenteredSpinner.js';
|
|
7
|
+
export * from './CodePreview.js';
|
|
8
|
+
export * from './DatalayerBox.js';
|
|
9
|
+
export * from './HorizontalCenter.js';
|
|
10
|
+
export * from './JupyterDialog.js';
|
|
11
|
+
export * from './LiveRelativeTime.js';
|
|
12
|
+
export * from './Markdown.js';
|
|
13
|
+
export * from './NavLink.js';
|
|
14
|
+
export * from './NotebookSkeleton.js';
|
|
15
|
+
export * from './BusyDots.js';
|
|
16
|
+
export * from './Placeholder.js';
|
|
17
|
+
export * from './ToTopBranded.js';
|
|
18
|
+
export * from './VisuallyHidden.js';
|
|
@@ -6,8 +6,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
import { Label, Link } from '@primer/react';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Banner } from '@primer/react/experimental';
|
|
9
|
-
import { useCoreStore, useRuntimesStore } from '../../state';
|
|
10
|
-
import { useNavigate } from '../../hooks';
|
|
9
|
+
import { useCoreStore, useRuntimesStore } from '../../state/index.js';
|
|
10
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
11
11
|
export const FlashDisclaimer = () => {
|
|
12
12
|
const { configuration } = useCoreStore();
|
|
13
13
|
const { showDisclaimer, setShowDisclaimer } = useRuntimesStore();
|
|
@@ -5,10 +5,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { Button, Text } from '@primer/react';
|
|
8
|
-
import { useCoreStore, useIAMStore } from '../../state';
|
|
9
|
-
import { useNavigate, useAuthorization } from '../../hooks';
|
|
10
|
-
import { FlashClosable } from '../../components/flashes';
|
|
11
|
-
import { CONTACT_ROUTE } from '../../routes';
|
|
8
|
+
import { useCoreStore, useIAMStore } from '../../state/index.js';
|
|
9
|
+
import { useNavigate, useAuthorization } from '../../hooks/index.js';
|
|
10
|
+
import { FlashClosable } from '../../components/flashes/index.js';
|
|
11
|
+
import { CONTACT_ROUTE } from '../../routes/index.js';
|
|
12
12
|
export const FlashGuest = () => {
|
|
13
13
|
const { configuration } = useCoreStore();
|
|
14
14
|
const { user, logout } = useIAMStore();
|
|
@@ -5,11 +5,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
7
|
import { Text, Link } from '@primer/react';
|
|
8
|
-
import { FlashClosable } from '../../components/flashes';
|
|
8
|
+
import { FlashClosable } from '../../components/flashes/index.js';
|
|
9
9
|
import { Box } from '@datalayer/primer-addons';
|
|
10
|
-
import { useToast } from '../../hooks';
|
|
11
|
-
import { useCoreStore, useSurveysStore } from '../../state';
|
|
12
|
-
import { Survey2025_1 } from './surveys';
|
|
10
|
+
import { useToast } from '../../hooks/index.js';
|
|
11
|
+
import { useCoreStore, useSurveysStore } from '../../state/index.js';
|
|
12
|
+
import { Survey2025_1 } from './surveys/index.js';
|
|
13
13
|
export const SURVEY_2025_1_NAME = '2025-1';
|
|
14
14
|
export const FlashSurveys = (props) => {
|
|
15
15
|
const { surveyName } = props;
|
|
@@ -8,7 +8,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
8
8
|
import { Link } from '@primer/react';
|
|
9
9
|
import { Banner } from '@primer/react/experimental';
|
|
10
10
|
import { QuestionIcon } from '@primer/octicons-react';
|
|
11
|
-
import { useNavigate } from '../../hooks';
|
|
11
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
12
12
|
export const FlashUnauthorized = () => {
|
|
13
13
|
const navigate = useNavigate();
|
|
14
14
|
return (_jsx(_Fragment, { children: _jsx(Banner, { title: "Warning", variant: "warning",
|
|
@@ -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
|
-
export * from './surveys';
|
|
6
|
-
export * from './FlashClosable';
|
|
7
|
-
export * from './FlashDisclaimer';
|
|
8
|
-
export * from './FlashGuest';
|
|
9
|
-
export * from './FlashSurveys';
|
|
10
|
-
export * from './FlashUnauthorized';
|
|
5
|
+
export * from './surveys/index.js';
|
|
6
|
+
export * from './FlashClosable.js';
|
|
7
|
+
export * from './FlashDisclaimer.js';
|
|
8
|
+
export * from './FlashGuest.js';
|
|
9
|
+
export * from './FlashSurveys.js';
|
|
10
|
+
export * from './FlashUnauthorized.js';
|
|
@@ -4,9 +4,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect } from 'react';
|
|
7
|
-
import { CenteredSpinner } from '../../components/display';
|
|
8
|
-
import { useIAMStore } from '../../state';
|
|
9
|
-
import { useToast, useIAM } from '../../hooks';
|
|
7
|
+
import { CenteredSpinner } from '../../components/display/index.js';
|
|
8
|
+
import { useIAMStore } from '../../state/index.js';
|
|
9
|
+
import { useToast, useIAM } from '../../hooks/index.js';
|
|
10
10
|
const ExternalTokenSilentLoginRoute = (props) => {
|
|
11
11
|
const { message } = props;
|
|
12
12
|
const { loginAndNavigate } = useIAM();
|
package/lib/components/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import React, { useCallback, useRef, useState } from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { ChevronDownIcon } from '@primer/octicons-react';
|
|
9
|
-
import { useVisibilityObserver } from '../../hooks/useVisibilityObserver';
|
|
10
|
-
import { useOnClickOutside } from '../../hooks/useOnClickOutside';
|
|
11
|
-
import { useKeyboardEscape } from '../../hooks/useKeyboardEscape';
|
|
12
|
-
import { useWindowSize } from '../../hooks/useWindowSize';
|
|
9
|
+
import { useVisibilityObserver } from '../../hooks/useVisibilityObserver.js';
|
|
10
|
+
import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
|
|
11
|
+
import { useKeyboardEscape } from '../../hooks/useKeyboardEscape.js';
|
|
12
|
+
import { useWindowSize } from '../../hooks/useWindowSize.js';
|
|
13
13
|
import styles from './SubdomainNavBar.module.css';
|
|
14
14
|
export function NavigationVisbilityObserver({ children, className, ...rest }) {
|
|
15
15
|
const navRef = useRef(null);
|
|
@@ -8,11 +8,11 @@ import clsx from 'clsx';
|
|
|
8
8
|
import { SearchIcon, XIcon, LinkExternalIcon } from '@primer/octicons-react';
|
|
9
9
|
import { Button, FormControl, Text, TextInput, Label, } from '@primer/react-brand';
|
|
10
10
|
import { CircleYellowIcon } from '@datalayer/icons-react';
|
|
11
|
-
import { NavigationVisbilityObserver } from './NavigationVisbilityObserver';
|
|
12
|
-
import { useCoreStore } from '../../state';
|
|
13
|
-
import { useOnClickOutside, useFocusTrap, useKeyboardEscape, useWindowSize, useNavigate, } from '../../hooks';
|
|
14
|
-
import { useRunStore } from '../../state';
|
|
15
|
-
import { useId } from '../../hooks';
|
|
11
|
+
import { NavigationVisbilityObserver } from './NavigationVisbilityObserver.js';
|
|
12
|
+
import { useCoreStore } from '../../state/index.js';
|
|
13
|
+
import { useOnClickOutside, useFocusTrap, useKeyboardEscape, useWindowSize, useNavigate, } from '../../hooks/index.js';
|
|
14
|
+
import { useRunStore } from '../../state/index.js';
|
|
15
|
+
import { useId } from '../../hooks/index.js';
|
|
16
16
|
/**
|
|
17
17
|
* Design tokens
|
|
18
18
|
*/
|
|
@@ -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 './NavigationVisbilityObserver';
|
|
6
|
-
export * from './SubdomainNavBar';
|
|
5
|
+
export * from './NavigationVisbilityObserver.js';
|
|
6
|
+
export * from './SubdomainNavBar.js';
|
|
@@ -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 './JupyterNotebook';
|
|
6
|
-
export * from './JupyterNotebookToolbar';
|
|
5
|
+
export * from './JupyterNotebook.js';
|
|
6
|
+
export * from './JupyterNotebookToolbar.js';
|
|
@@ -7,7 +7,7 @@ import { useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
import { useInterval } from 'usehooks-ts';
|
|
8
8
|
import { ProgressBar, Tooltip, Button } from '@primer/react';
|
|
9
9
|
import { Box } from '@datalayer/primer-addons';
|
|
10
|
-
import { getConsumptionDuration, getConsumptionProgress } from './consumption';
|
|
10
|
+
import { getConsumptionDuration, getConsumptionProgress } from './consumption.js';
|
|
11
11
|
const CRITICAL_LEVEL = 90;
|
|
12
12
|
const WARNING_LEVEL = 75;
|
|
13
13
|
/**
|
|
@@ -5,8 +5,8 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
5
5
|
*/
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
|
-
import { useNavigate } from '../../hooks/useNavigate';
|
|
9
|
-
import { ConsumptionBar } from './ConsumptionBar';
|
|
8
|
+
import { useNavigate } from '../../hooks/useNavigate.js';
|
|
9
|
+
import { ConsumptionBar } from './ConsumptionBar.js';
|
|
10
10
|
/**
|
|
11
11
|
* Credits indicator component.
|
|
12
12
|
*/
|
|
@@ -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
|
-
export * from './ConsumptionBar';
|
|
6
|
-
export * from './CreditsIndicator';
|
|
7
|
-
export * from './ProgressBar';
|
|
8
|
-
export * from './ProgressRing';
|
|
9
|
-
export * from './Timer';
|
|
10
|
-
export * from './consumption';
|
|
5
|
+
export * from './ConsumptionBar.js';
|
|
6
|
+
export * from './CreditsIndicator.js';
|
|
7
|
+
export * from './ProgressBar.js';
|
|
8
|
+
export * from './ProgressRing.js';
|
|
9
|
+
export * from './Timer.js';
|
|
10
|
+
export * from './consumption.js';
|
|
@@ -8,8 +8,8 @@ import { Dialog } from '@primer/react/experimental';
|
|
|
8
8
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
9
9
|
import { JSONExt } from '@lumino/coreutils';
|
|
10
10
|
import { KernelExecutor } from '@datalayer/jupyter-react';
|
|
11
|
-
import { RuntimeSnippetsFacade } from '../../stateful/jupyter';
|
|
12
|
-
import { RuntimeCellVariables } from './RuntimeCellVariables';
|
|
11
|
+
import { RuntimeSnippetsFacade } from '../../stateful/jupyter/index.js';
|
|
12
|
+
import { RuntimeCellVariables } from './RuntimeCellVariables.js';
|
|
13
13
|
/**
|
|
14
14
|
* Dialog to define the runtime cell variables to transfer
|
|
15
15
|
*/
|
|
@@ -10,15 +10,15 @@ import { Dialog } from '@primer/react/experimental';
|
|
|
10
10
|
import { AlertIcon } from '@primer/octicons-react';
|
|
11
11
|
import { Box } from '@datalayer/primer-addons';
|
|
12
12
|
import { useJupyterReactStore } from '@datalayer/jupyter-react';
|
|
13
|
-
import { USAGE_ROUTE } from '../../routes';
|
|
14
|
-
import { useNavigate } from '../../hooks';
|
|
15
|
-
import { NO_RUNTIME_AVAILABLE_LABEL } from '../../i18n';
|
|
16
|
-
import { iamStore, useCoreStore, useIAMStore } from '../../state';
|
|
17
|
-
import { createNotebook, sleep } from '../../utils';
|
|
18
|
-
import { Markdown } from '../display';
|
|
19
|
-
import { Timer } from '../progress';
|
|
20
|
-
import { FlashClosable } from '../flashes';
|
|
21
|
-
import { RuntimeReservationControl, MAXIMAL_RUNTIME_TIME_RESERVATION_MINUTES, } from './RuntimeReservationControl';
|
|
13
|
+
import { USAGE_ROUTE } from '../../routes/index.js';
|
|
14
|
+
import { useNavigate } from '../../hooks/index.js';
|
|
15
|
+
import { NO_RUNTIME_AVAILABLE_LABEL } from '../../i18n/index.js';
|
|
16
|
+
import { iamStore, useCoreStore, useIAMStore } from '../../state/index.js';
|
|
17
|
+
import { createNotebook, sleep } from '../../utils/index.js';
|
|
18
|
+
import { Markdown } from '../display/index.js';
|
|
19
|
+
import { Timer } from '../progress/index.js';
|
|
20
|
+
import { FlashClosable } from '../flashes/index.js';
|
|
21
|
+
import { RuntimeReservationControl, MAXIMAL_RUNTIME_TIME_RESERVATION_MINUTES, } from './RuntimeReservationControl.js';
|
|
22
22
|
/**
|
|
23
23
|
* Initial time in milliseconds before retrying in case no kernels are available
|
|
24
24
|
*/
|