@datalayer/core 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -3
- package/lib/App.css +2 -2
- package/lib/App.d.ts +1 -1
- package/lib/App.js +9 -9
- package/lib/__tests__/index.test.js +5 -5
- package/lib/api/DatalayerApi.d.ts +1 -1
- package/lib/api/DatalayerApi.js +3 -3
- package/lib/api/index.d.ts +3 -3
- package/lib/api/index.js +3 -3
- package/lib/api/runtimes/actions.js +22 -23
- package/lib/api/runtimes/settings.js +3 -3
- package/lib/api/runtimes/snapshots.d.ts +1 -1
- package/lib/api/runtimes/snapshots.js +8 -8
- package/lib/api/runtimes/utils.js +1 -4
- package/lib/collaboration/DatalayerCollaboration.d.ts +9 -0
- package/lib/collaboration/DatalayerCollaboration.js +28 -0
- package/lib/collaboration/DatalayerCollaborationProvider.d.ts +54 -0
- package/lib/collaboration/DatalayerCollaborationProvider.js +162 -0
- package/lib/collaboration/index.d.ts +2 -0
- package/lib/collaboration/index.js +6 -0
- package/lib/components/avatars/BoringAvatar.d.ts +1 -1
- package/lib/components/avatars/BoringAvatar.js +2 -2
- package/lib/components/avatars/UserProfileAvatar.js +2 -9
- package/lib/components/banners/NoAutomationBanner.js +4 -4
- package/lib/components/buttons/DownloadCSVButton.js +1 -1
- package/lib/components/buttons/UploadButton.js +1 -1
- package/lib/components/checkout/StripeCheckout.d.ts +1 -1
- package/lib/components/checkout/StripeCheckout.js +6 -6
- package/lib/components/confetti/ConfettiSuccess.js +1 -1
- package/lib/components/context/OrganizationSelect.js +5 -5
- package/lib/components/context/SpaceSelect.js +7 -7
- package/lib/components/display/AvatarSkeleton.js +1 -1
- package/lib/components/display/CenteredSpinner.js +4 -4
- package/lib/components/display/CodePreview.js +4 -4
- package/lib/components/display/DatalayerBox.js +13 -14
- package/lib/components/display/HorizontalCenter.d.ts +1 -1
- package/lib/components/display/HorizontalCenter.js +1 -1
- package/lib/components/display/JupyterDialog.js +17 -15
- package/lib/components/display/NavLink.d.ts +4 -2
- package/lib/components/display/NavLink.js +6 -4
- package/lib/components/display/NotebookSkeleton.js +2 -2
- package/lib/components/display/Placeholder.js +1 -1
- package/lib/components/display/ToTopBranded.js +1 -1
- package/lib/components/echarts/EChartsReact.d.ts +1 -1
- package/lib/components/echarts/EChartsReact.js +1 -1
- package/lib/components/flashes/FlashClosable.js +11 -11
- package/lib/components/flashes/FlashDisclaimer.js +2 -3
- package/lib/components/flashes/FlashGuest.js +3 -4
- package/lib/components/flashes/FlashSurveys.js +3 -4
- package/lib/components/flashes/FlashUnauthorized.js +2 -2
- package/lib/components/flashes/surveys/Survey2025_1.d.ts +1 -1
- package/lib/components/flashes/surveys/Survey2025_1.js +62 -85
- package/lib/components/iam/ExternalTokenSilentLogin.js +6 -4
- package/lib/components/icons/ArtifactIcon.d.ts +2 -2
- package/lib/components/icons/ArtifactIcon.js +39 -39
- package/lib/components/labels/VisibilityLabel.js +2 -5
- package/lib/components/landings/StepBlock.d.ts +1 -1
- package/lib/components/landings/StepBlock.js +1 -1
- package/lib/components/navbar/NavigationVisbilityObserver.js +2 -2
- package/lib/components/navbar/SubdomainNavBar.js +45 -23
- package/lib/components/navbar/SubdomainNavBar.module.css +33 -14
- package/lib/components/nbgrader/NbGradesDetails.d.ts +1 -1
- package/lib/components/nbgrader/NbGradesDetails.js +5 -8
- package/lib/components/notebooks/JupyterNotebook.js +5 -5
- package/lib/components/notebooks/JupyterNotebookToolbar.js +3 -3
- package/lib/components/primer/Helper.d.ts +1 -1
- package/lib/components/primer/Helper.js +5 -3
- package/lib/components/primer/Portals.d.ts +1 -1
- package/lib/components/primer/Portals.js +2 -2
- package/lib/components/primer/Styles.js +1 -1
- package/lib/components/progress/ConsumptionBar.js +2 -2
- package/lib/components/progress/CreditsIndicator.d.ts +1 -1
- package/lib/components/progress/CreditsIndicator.js +4 -7
- package/lib/components/progress/ProgressRing.js +2 -2
- package/lib/components/runtimes/RuntimeCellVariables.js +9 -9
- package/lib/components/runtimes/RuntimeCellVariablesDialog.js +3 -3
- package/lib/components/runtimes/RuntimeLauncherDialog.js +30 -34
- package/lib/components/runtimes/RuntimePickerBase.js +42 -31
- package/lib/components/runtimes/RuntimePickerCell.js +9 -12
- package/lib/components/runtimes/RuntimePickerNotebook.js +44 -44
- package/lib/components/runtimes/RuntimeReservationControl.js +10 -15
- package/lib/components/runtimes/RuntimeSimplePicker.js +9 -12
- package/lib/components/runtimes/RuntimeUtils.js +22 -12
- package/lib/components/runtimes/RuntimeVariables.js +7 -7
- package/lib/components/screenshot/ScreenCapture.js +9 -13
- package/lib/components/screenshot/ScreenCaptureButton.d.ts +1 -1
- package/lib/components/screenshot/ScreenCaptureButton.js +14 -8
- package/lib/components/snapshots/RuntimeSnapshotMenu.js +19 -17
- package/lib/components/snippets/SnippetDialog.js +5 -5
- package/lib/components/storage/ContentsBrowser.js +63 -56
- package/lib/components/storage/ContentsItems.js +10 -8
- package/lib/components/students/StudentItemStatus.d.ts +1 -1
- package/lib/components/students/StudentItemStatus.js +35 -16
- package/lib/components/subnav/SubNav.d.ts +1 -1
- package/lib/components/subnav/SubNav.js +30 -15
- package/lib/components/subnav/SubNav.module.css +55 -21
- package/lib/components/tables/DataTable.js +1 -4
- package/lib/components/text-reveal/TextRevealAnimation.js +7 -2
- package/lib/components/text-reveal/TextRevealAnimation.module.css +4 -2
- package/lib/components/tokens/SpaceVariantToken.d.ts +1 -1
- package/lib/components/tokens/SpaceVariantToken.js +5 -5
- package/lib/components/toolbars/AssignmentEditorToolbar.js +1 -3
- package/lib/components/users/PeerIndicator.d.ts +1 -1
- package/lib/components/users/PeerIndicator.js +5 -5
- package/lib/config/Configuration.d.ts +48 -0
- package/lib/config/Configuration.js +42 -0
- package/lib/config/integrations/Loom.js +3 -3
- package/lib/examples/CellExample.d.ts +2 -2
- package/lib/examples/CellExample.js +34 -3
- package/lib/examples/DatalayerNotebookExample.d.ts +16 -0
- package/lib/examples/DatalayerNotebookExample.js +75 -0
- package/lib/examples/NativeNavigationExample.d.ts +8 -0
- package/lib/examples/NativeNavigationExample.js +97 -0
- package/lib/examples/NotebookExample.d.ts +1 -3
- package/lib/examples/NotebookExample.js +9 -7
- package/lib/examples/NotebookMutationsKernel.d.ts +2 -0
- package/lib/examples/NotebookMutationsKernel.js +115 -0
- package/lib/examples/NotebookMutationsServiceManager.d.ts +2 -0
- package/lib/examples/NotebookMutationsServiceManager.js +107 -0
- package/lib/examples/ReactRouterExample.d.ts +6 -0
- package/lib/examples/ReactRouterExample.js +175 -0
- package/lib/examples/example-selector.d.ts +22 -0
- package/lib/examples/example-selector.js +45 -0
- package/lib/examples/index.d.ts +2 -0
- package/lib/examples/index.js +6 -0
- package/lib/examples/main.js +153 -0
- package/lib/examples/notebooks/IPyWidgetsExample.ipynb.json +101 -0
- package/lib/examples/notebooks/IPyWidgetsExampleWithState.ipynb.json +112 -0
- package/lib/examples/{NotebookExample1.ipynb.json → notebooks/Lite.ipynb.json} +45 -53
- package/lib/examples/notebooks/Matplotlib.ipynb.json +137 -0
- package/lib/examples/notebooks/NotebookExample1.ipynb.json +126 -0
- package/lib/examples/notebooks/NotebookExample2.ipynb.json +48 -0
- package/lib/examples/notebooks/NotebookOutputs.ipynb.json +49 -0
- package/lib/examples/notebooks/NotebookToCExample.ipynb.json +102 -0
- package/lib/examples/notebooks/OutputIPyWidgetsExample.d.ts +145 -0
- package/lib/examples/notebooks/OutputIPyWidgetsExample.js +153 -0
- package/lib/examples/notebooks/PyGWalker.ipynb.json +55 -0
- package/lib/hooks/assets/OutputshotPlaceholders.d.ts +10 -10
- package/lib/hooks/assets/OutputshotPlaceholders.js +10 -10
- package/lib/hooks/index.d.ts +29 -28
- package/lib/hooks/index.js +29 -28
- package/lib/hooks/layouts/LayoutBackdrop.js +3 -6
- package/lib/hooks/layouts/LayoutScreenshot.css +1 -1
- package/lib/hooks/layouts/LayoutScreenshot.js +6 -6
- package/lib/hooks/useAIAgents.d.ts +1 -1
- package/lib/hooks/useAIAgents.js +6 -6
- package/lib/hooks/useAuthorization.js +4 -4
- package/lib/hooks/useBackdrop.js +7 -7
- package/lib/hooks/useBackdropJupyterLab.d.ts +1 -1
- package/lib/hooks/useBackdropJupyterLab.js +4 -4
- package/lib/hooks/useCache.d.ts +6 -2
- package/lib/hooks/useCache.js +233 -179
- package/lib/hooks/useCellOutputshot.js +3 -6
- package/lib/hooks/useContainsFocus.js +2 -1
- package/lib/hooks/useDatalayer.js +5 -3
- package/lib/hooks/useError.d.ts +1 -1
- package/lib/hooks/useError.js +2 -2
- package/lib/hooks/useExternalScript.js +4 -4
- package/lib/hooks/useFocusTrap.js +2 -1
- package/lib/hooks/useIAM.js +4 -5
- package/lib/hooks/useId.js +3 -3
- package/lib/hooks/useJupyterLabTheme.js +3 -1
- package/lib/hooks/useLocation.d.ts +22 -0
- package/lib/hooks/useLocation.js +149 -0
- package/lib/hooks/useLocationHandles.d.ts +2 -2
- package/lib/hooks/useLocationHandles.js +6 -4
- package/lib/hooks/useNavigate.d.ts +5 -1
- package/lib/hooks/useNavigate.js +62 -7
- package/lib/hooks/useNotebookAIAgent.js +3 -1
- package/lib/hooks/useParams.d.ts +5 -0
- package/lib/hooks/useParams.js +152 -0
- package/lib/hooks/useRuntimes.js +2 -2
- package/lib/hooks/useScreenshot.js +5 -5
- package/lib/hooks/useToast.js +15 -13
- package/lib/hooks/useUpload.js +9 -9
- package/lib/hooks/useUser.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.js +7 -3
- package/lib/mocks/components/FlashMock.js +4 -4
- package/lib/mocks/hooks/rests/rests.js +15 -18
- package/lib/mocks/hooks/useDatalayerMock.d.ts +2 -2
- package/lib/mocks/hooks/useDatalayerMock.js +7 -7
- package/lib/mocks/models/CodeBlockMock.js +1 -1
- package/lib/mocks/models/CodelineMock.js +1 -1
- package/lib/mocks/models/CourseMock.d.ts +1 -1
- package/lib/mocks/models/CourseMock.js +10 -10
- package/lib/mocks/models/InviteMock.d.ts +1 -1
- package/lib/mocks/models/InviteMock.js +21 -6
- package/lib/mocks/models/JupyterLabUserMock.js +2 -2
- package/lib/mocks/models/OrganisationMock.d.ts +1 -1
- package/lib/mocks/models/OrganisationMock.js +11 -7
- package/lib/mocks/models/SchoolMock.d.ts +1 -1
- package/lib/mocks/models/SchoolMock.js +6 -6
- package/lib/mocks/models/SpaceMock.d.ts +1 -1
- package/lib/mocks/models/SpaceMock.js +9 -9
- package/lib/mocks/models/TeamMock.d.ts +1 -1
- package/lib/mocks/models/TeamMock.js +6 -6
- package/lib/mocks/models/UserMock.d.ts +1 -1
- package/lib/mocks/models/UserMock.js +4 -6
- package/lib/mocks/views/ActionMenuMock.js +1 -1
- package/lib/mocks/views/ChartMock.js +3 -3
- package/lib/mocks/views/ChartMockOptions.js +24 -24
- package/lib/mocks/views/DashboardMock.js +74 -74
- package/lib/mocks/views/FormMock.js +1 -1
- package/lib/mocks/views/TableMock.js +1 -1
- package/lib/models/Account.d.ts +2 -2
- package/lib/models/Assignment.d.ts +2 -2
- package/lib/models/Cell.d.ts +1 -1
- package/lib/models/CodeBlock.d.ts +1 -1
- package/lib/models/CodefeedBlocks.d.ts +2 -2
- package/lib/models/Contact.d.ts +1 -1
- package/lib/models/Contact.js +14 -14
- package/lib/models/ContactIAMProvider.js +2 -2
- package/lib/models/Course.d.ts +7 -7
- package/lib/models/Dataset.d.ts +1 -1
- package/lib/models/Dean.d.ts +1 -1
- package/lib/models/Document.d.ts +1 -1
- package/lib/models/Environment.d.ts +2 -2
- package/lib/models/Exercise.d.ts +1 -1
- package/lib/models/IAMProviderLinked.js +1 -1
- package/lib/models/Instructor.d.ts +1 -1
- package/lib/models/Invite.d.ts +2 -2
- package/lib/models/Invite.js +1 -1
- package/lib/models/Item.d.ts +5 -5
- package/lib/models/LandingRoles.js +18 -18
- package/lib/models/Lesson.d.ts +1 -1
- package/lib/models/Member.d.ts +1 -1
- package/lib/models/Notebook.d.ts +1 -1
- package/lib/models/Organization.d.ts +4 -4
- package/lib/models/Organization.js +2 -2
- package/lib/models/OrganizationMember.d.ts +2 -2
- package/lib/models/Page.js +4 -2
- package/lib/models/PageTag.d.ts +1 -1
- package/lib/models/PageTag.js +56 -9
- package/lib/models/Profile.d.ts +1 -1
- package/lib/models/RolesOrganization.d.ts +1 -1
- package/lib/models/RolesOrganization.js +4 -12
- package/lib/models/RolesPlatform.d.ts +1 -1
- package/lib/models/RolesPlatform.js +12 -34
- package/lib/models/RolesTeam.d.ts +1 -1
- package/lib/models/RolesTeam.js +3 -10
- package/lib/models/Runtime.js +4 -4
- package/lib/models/RuntimeSnapshot.js +1 -1
- package/lib/models/School.d.ts +4 -4
- package/lib/models/Space.d.ts +5 -5
- package/lib/models/Space.js +3 -3
- package/lib/models/SpaceItem.d.ts +8 -8
- package/lib/models/SpaceMember.d.ts +2 -2
- package/lib/models/Student.d.ts +2 -2
- package/lib/models/StudentItem.d.ts +3 -3
- package/lib/models/Team.d.ts +3 -3
- package/lib/models/Team.js +2 -2
- package/lib/models/TeamMember.d.ts +2 -2
- package/lib/models/URN.js +1 -1
- package/lib/models/User.d.ts +2 -2
- package/lib/models/User.js +5 -3
- package/lib/models/UserOnboarding.d.ts +1 -1
- package/lib/models/UserOnboarding.js +7 -7
- package/lib/models/UserSettings.js +2 -2
- package/lib/models/index.d.ts +2 -2
- package/lib/models/index.js +2 -2
- package/lib/navigation/adapters/native.d.ts +11 -0
- package/lib/navigation/adapters/native.js +48 -0
- package/lib/navigation/adapters/nextjs.d.ts +9 -0
- package/lib/navigation/adapters/nextjs.js +35 -0
- package/lib/navigation/adapters/react-router.d.ts +4 -0
- package/lib/navigation/adapters/react-router.js +12 -0
- package/lib/navigation/components.d.ts +20 -0
- package/lib/navigation/components.js +36 -0
- package/lib/navigation/index.d.ts +4 -0
- package/lib/navigation/index.js +12 -0
- package/lib/routes/index.d.ts +1 -1
- package/lib/routes/index.js +1 -1
- package/lib/services/DatalayerServiceManager.d.ts +22 -0
- package/lib/services/DatalayerServiceManager.js +79 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/index.js +7 -0
- package/lib/services/reconnectToRuntime.d.ts +32 -0
- package/lib/services/reconnectToRuntime.js +59 -0
- package/lib/state/State.d.ts +1 -1
- package/lib/state/State.js +1 -1
- package/lib/state/index.d.ts +1 -1
- package/lib/state/index.js +1 -1
- package/lib/state/storage/IAMStorage.js +14 -2
- package/lib/state/storage/index.d.ts +1 -1
- package/lib/state/storage/index.js +1 -1
- package/lib/state/substates/AIAgentState.js +4 -2
- package/lib/state/substates/CellState.js +6 -5
- package/lib/state/substates/CoreState.d.ts +1 -1
- package/lib/state/substates/CoreState.js +23 -15
- package/lib/state/substates/DatasourceState.js +1 -1
- package/lib/state/substates/IAMState.d.ts +4 -0
- package/lib/state/substates/IAMState.js +75 -56
- package/lib/state/substates/JupyterLabState.js +1 -1
- package/lib/state/substates/LayoutState.d.ts +2 -2
- package/lib/state/substates/LayoutState.js +41 -28
- package/lib/state/substates/OrganizationState.js +1 -1
- package/lib/state/substates/RuntimesState.js +6 -5
- package/lib/state/substates/SpaceState.js +1 -1
- package/lib/state/substates/SurveysState.js +4 -4
- package/lib/state/substates/TeamState.js +1 -1
- package/lib/test-setup.js +25 -3
- package/lib/theme/DatalayerTheme.js +1 -1
- package/lib/theme/DatalayerThemeProvider.js +17 -14
- package/lib/theme/Palette.js +1 -1
- package/lib/utils/Avatar.js +2 -2
- package/lib/utils/Browser.js +6 -6
- package/lib/utils/Cells.d.ts +1 -1
- package/lib/utils/Cookie.js +1 -1
- package/lib/utils/Date.js +2 -2
- package/lib/utils/Download.js +5 -3
- package/lib/utils/DownloadFile.js +4 -2
- package/lib/utils/Env.js +2 -1
- package/lib/utils/Lazy.d.ts +1 -1
- package/lib/utils/Lazy.js +2 -2
- package/lib/utils/Name.js +10 -8
- package/lib/utils/Notebook.d.ts +1 -1
- package/lib/utils/Notebook.js +3 -3
- package/lib/utils/Number.js +13 -9
- package/lib/utils/Plots.js +4 -4
- package/lib/utils/Screenshot.js +1 -1
- package/lib/utils/Sleep.js +1 -1
- package/lib/utils/Snapshot.js +2 -2
- package/lib/utils/String.js +2 -2
- package/lib/utils/Uri.js +1 -1
- package/lib/utils/WithSuspense.js +3 -6
- package/package.json +41 -5
- package/lib/__tests__/App.test.js +0 -17
- /package/lib/{__tests__/App.test.d.ts → examples/main.d.ts} +0 -0
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export const LANDING_ANIMATION_DELAY_SEC = 3;
|
|
6
6
|
export const LANDING_ROLES = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
'✨ AI Engineers',
|
|
8
|
+
'🧑💻 Data Scientists',
|
|
9
|
+
'🤖 ML Developers',
|
|
10
|
+
'🌎 Earth Scientists',
|
|
11
|
+
'⚗️ Biochemists',
|
|
12
|
+
'📊 Data Analysts',
|
|
13
|
+
'🗺️ GIS Specialists',
|
|
14
|
+
'🧪 Biophysicists',
|
|
15
|
+
'🛰️ EO Researchers',
|
|
16
|
+
'🚀 Geospatial Engineers',
|
|
17
|
+
'🧬 Computational Biologists',
|
|
18
|
+
'🌐 Geospatial Scientists',
|
|
19
19
|
];
|
|
20
20
|
export const LANDING_STUDIO_EASES = [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
'🧑💻 real-time editing',
|
|
22
|
+
'✨ AI-powered content',
|
|
23
|
+
'🤖 version control efficiency',
|
|
24
|
+
'🌎 real-time synchronisation',
|
|
25
|
+
'⚗️ amazing content experience',
|
|
26
|
+
'📊 whiteboard collaboration',
|
|
27
27
|
];
|
package/lib/models/Lesson.d.ts
CHANGED
package/lib/models/Member.d.ts
CHANGED
package/lib/models/Notebook.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITeam } from
|
|
2
|
-
import { ISchool } from
|
|
3
|
-
import { IOrganizationMember } from
|
|
1
|
+
import { ITeam } from './Team';
|
|
2
|
+
import { ISchool } from './School';
|
|
3
|
+
import { IOrganizationMember } from './OrganizationMember';
|
|
4
4
|
/**
|
|
5
5
|
* Convert the raw user object to {@link IOrganization}.
|
|
6
6
|
*
|
|
@@ -21,7 +21,7 @@ export type IBaseOrganization = {
|
|
|
21
21
|
setMembers: (members: IOrganizationMember[]) => void;
|
|
22
22
|
};
|
|
23
23
|
export type IOrganization = IBaseOrganization & {
|
|
24
|
-
type:
|
|
24
|
+
type: 'organization';
|
|
25
25
|
teams: ITeam[];
|
|
26
26
|
};
|
|
27
27
|
export default IOrganization;
|
|
@@ -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
|
|
6
|
-
import { asUser } from
|
|
5
|
+
import { asArray } from '../utils';
|
|
6
|
+
import { asUser } from './User';
|
|
7
7
|
/**
|
|
8
8
|
* Convert the raw user object to {@link IOrganization}.
|
|
9
9
|
*
|
package/lib/models/Page.js
CHANGED
|
@@ -14,10 +14,12 @@ export const asPage = (s) => {
|
|
|
14
14
|
theme: s.theme_s,
|
|
15
15
|
nbformat: s.nbformat_s ? JSON.parse(s.nbformat_s) : undefined,
|
|
16
16
|
screenCapture: s.screen_capture_s,
|
|
17
|
-
tags:
|
|
17
|
+
tags: s.tags_ss ?? [],
|
|
18
18
|
creator: s.creator ? asUser(s.creator) : undefined,
|
|
19
19
|
creatorId: s.creator_uid,
|
|
20
|
-
kernelSnapshot: s.kernel_snapshot
|
|
20
|
+
kernelSnapshot: s.kernel_snapshot
|
|
21
|
+
? asRuntimeSnapshot(s.kernel_snapshot)
|
|
22
|
+
: undefined,
|
|
21
23
|
kernelSnapshotId: s.kernel_snapshot_uid,
|
|
22
24
|
};
|
|
23
25
|
};
|
package/lib/models/PageTag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardIconColors } from '@primer/react-brand';
|
|
2
2
|
import { Icon } from '@primer/octicons-react';
|
|
3
|
-
type CardIconColorsType = typeof CardIconColors[number];
|
|
3
|
+
type CardIconColorsType = (typeof CardIconColors)[number];
|
|
4
4
|
export type PageTagMetadata = {
|
|
5
5
|
fillColor: React.CSSProperties['backgroundColor'];
|
|
6
6
|
};
|
package/lib/models/PageTag.js
CHANGED
|
@@ -3,15 +3,62 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { CopilotIcon, ZapIcon } from '@primer/octicons-react';
|
|
6
|
-
export const PAGE_TAGE_NONE = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
export const PAGE_TAGE_NONE = {
|
|
7
|
+
id: '0',
|
|
8
|
+
text: undefined,
|
|
9
|
+
Icon: CopilotIcon,
|
|
10
|
+
color: 'pink',
|
|
11
|
+
};
|
|
12
|
+
const PAGE_TAGE_AI = {
|
|
13
|
+
id: '1',
|
|
14
|
+
text: 'ai',
|
|
15
|
+
Icon: CopilotIcon,
|
|
16
|
+
color: 'pink',
|
|
17
|
+
};
|
|
18
|
+
const PAGE_TAGE_DEEP_LEARNING = {
|
|
19
|
+
id: '2',
|
|
20
|
+
text: 'deep-learning',
|
|
21
|
+
Icon: ZapIcon,
|
|
22
|
+
color: 'blue',
|
|
23
|
+
};
|
|
24
|
+
const PAGE_TAGE_EXAMPLE = {
|
|
25
|
+
id: '3',
|
|
26
|
+
text: 'example',
|
|
27
|
+
Icon: CopilotIcon,
|
|
28
|
+
color: 'lime',
|
|
29
|
+
};
|
|
30
|
+
const PAGE_TAGE_LLM = {
|
|
31
|
+
id: '4',
|
|
32
|
+
text: 'llm',
|
|
33
|
+
Icon: CopilotIcon,
|
|
34
|
+
color: 'coral',
|
|
35
|
+
};
|
|
36
|
+
const PAGE_TAGE_PYTHON = {
|
|
37
|
+
id: '5',
|
|
38
|
+
text: 'python',
|
|
39
|
+
Icon: CopilotIcon,
|
|
40
|
+
color: 'gray',
|
|
41
|
+
metadata: { fillColor: 'var(--base-color-green-0)' },
|
|
42
|
+
};
|
|
43
|
+
const PAGE_TAGE_PYTORCH = {
|
|
44
|
+
id: '6',
|
|
45
|
+
text: 'pytorch',
|
|
46
|
+
Icon: CopilotIcon,
|
|
47
|
+
color: 'green',
|
|
48
|
+
};
|
|
49
|
+
const PAGE_TAGE_SPATIAL = {
|
|
50
|
+
id: '7',
|
|
51
|
+
text: 'spatial',
|
|
52
|
+
Icon: CopilotIcon,
|
|
53
|
+
color: 'lemon',
|
|
54
|
+
};
|
|
55
|
+
const PAGE_TAGE_TUTORIAL = {
|
|
56
|
+
id: '8',
|
|
57
|
+
text: 'tutorial',
|
|
58
|
+
Icon: CopilotIcon,
|
|
59
|
+
color: 'orange',
|
|
60
|
+
metadata: { fillColor: 'yellow' },
|
|
61
|
+
};
|
|
15
62
|
export const PAGE_TAGS = [
|
|
16
63
|
PAGE_TAGE_AI,
|
|
17
64
|
PAGE_TAGE_DEEP_LEARNING,
|
package/lib/models/Profile.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type IProfileType =
|
|
1
|
+
export type IProfileType = 'user' | 'organization' | undefined;
|
|
@@ -3,18 +3,10 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { AlienIcon } from '@datalayer/icons-react';
|
|
6
|
-
const ORGANIZATION_MEMBER_PERMSSIONS = [
|
|
7
|
-
|
|
8
|
-
];
|
|
9
|
-
const
|
|
10
|
-
"view_landings",
|
|
11
|
-
];
|
|
12
|
-
const ORGANIZATION_USAGE_REVIEWER_PERMSSIONS = [
|
|
13
|
-
"view_users",
|
|
14
|
-
];
|
|
15
|
-
const ORGANIZATION_ADMIN_PERMSSIONS = ORGANIZATION_MEMBER_PERMSSIONS.concat(...[
|
|
16
|
-
"manage_users",
|
|
17
|
-
]);
|
|
6
|
+
const ORGANIZATION_MEMBER_PERMSSIONS = ['invite_users'];
|
|
7
|
+
const ORGANIZATION_SECURITY_AUDITOR_PERMSSIONS = ['view_landings'];
|
|
8
|
+
const ORGANIZATION_USAGE_REVIEWER_PERMSSIONS = ['view_users'];
|
|
9
|
+
const ORGANIZATION_ADMIN_PERMSSIONS = ORGANIZATION_MEMBER_PERMSSIONS.concat(...['manage_users']);
|
|
18
10
|
export class OrganizationRoles {
|
|
19
11
|
constructor() { }
|
|
20
12
|
static Member = {
|
|
@@ -2,40 +2,18 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { AlienIcon, UserIcon, PersonIcon, PassportControlIcon } from '@datalayer/icons-react';
|
|
6
|
-
const PLATFORM_ANONYMOUS_PERMSSIONS = [
|
|
7
|
-
|
|
8
|
-
];
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
];
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
];
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
];
|
|
18
|
-
const PLATFORM_GUEST_PERMSSIONS = PLATFORM_ANONYMOUS_PERMSSIONS.concat(...[
|
|
19
|
-
"view_users",
|
|
20
|
-
]);
|
|
21
|
-
const PLATFORM_MEMBER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...[
|
|
22
|
-
"invite_users",
|
|
23
|
-
]);
|
|
24
|
-
const PLATFORM_SUPPORT_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...[
|
|
25
|
-
"invite_users",
|
|
26
|
-
]);
|
|
27
|
-
const PLATFORM_GROWTH_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...[
|
|
28
|
-
"invite_users",
|
|
29
|
-
]);
|
|
30
|
-
const PLATFORM_SUCCESS_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...[
|
|
31
|
-
"invite_users",
|
|
32
|
-
]);
|
|
33
|
-
const PLATFORM_IAM_TOKEN_PERMSSIONS = PLATFORM_MEMBER_PERMSSIONS.concat(...[
|
|
34
|
-
"invite_users",
|
|
35
|
-
]);
|
|
36
|
-
const PLATFORM_ADMIN_PERMSSIONS = PLATFORM_MEMBER_PERMSSIONS.concat(...[
|
|
37
|
-
"manage_users",
|
|
38
|
-
]);
|
|
5
|
+
import { AlienIcon, UserIcon, PersonIcon, PassportControlIcon, } from '@datalayer/icons-react';
|
|
6
|
+
const PLATFORM_ANONYMOUS_PERMSSIONS = ['view_landings'];
|
|
7
|
+
const PLATFORM_SECURITY_AUDITOR_PERMSSIONS = ['view_landings'];
|
|
8
|
+
const PLATFORM_USAGE_REVIEWER_PERMSSIONS = ['view_landings'];
|
|
9
|
+
const PLATFORM_FEATURES_PREVIEWER_PERMSSIONS = ['view_landings'];
|
|
10
|
+
const PLATFORM_GUEST_PERMSSIONS = PLATFORM_ANONYMOUS_PERMSSIONS.concat(...['view_users']);
|
|
11
|
+
const PLATFORM_MEMBER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...['invite_users']);
|
|
12
|
+
const PLATFORM_SUPPORT_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...['invite_users']);
|
|
13
|
+
const PLATFORM_GROWTH_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...['invite_users']);
|
|
14
|
+
const PLATFORM_SUCCESS_MANAGER_PERMSSIONS = PLATFORM_GUEST_PERMSSIONS.concat(...['invite_users']);
|
|
15
|
+
const PLATFORM_IAM_TOKEN_PERMSSIONS = PLATFORM_MEMBER_PERMSSIONS.concat(...['invite_users']);
|
|
16
|
+
const PLATFORM_ADMIN_PERMSSIONS = PLATFORM_MEMBER_PERMSSIONS.concat(...['manage_users']);
|
|
39
17
|
export class PlatformRoles {
|
|
40
18
|
constructor() { }
|
|
41
19
|
static Anonymous = {
|
package/lib/models/RolesTeam.js
CHANGED
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { AlienIcon } from '@datalayer/icons-react';
|
|
6
|
-
const TEAM_MEMBER_PERMSSIONS = [
|
|
7
|
-
|
|
8
|
-
];
|
|
9
|
-
const TEAM_OWNER_PERMSSIONS = TEAM_MEMBER_PERMSSIONS.concat(...[
|
|
10
|
-
"assign_team_user",
|
|
11
|
-
]);
|
|
6
|
+
const TEAM_MEMBER_PERMSSIONS = ['view_team'];
|
|
7
|
+
const TEAM_OWNER_PERMSSIONS = TEAM_MEMBER_PERMSSIONS.concat(...['assign_team_user']);
|
|
12
8
|
export class TeamRoles {
|
|
13
9
|
constructor() { }
|
|
14
10
|
static Member = {
|
|
@@ -27,8 +23,5 @@ export class TeamRoles {
|
|
|
27
23
|
permissions: TEAM_OWNER_PERMSSIONS,
|
|
28
24
|
icon: AlienIcon,
|
|
29
25
|
};
|
|
30
|
-
static ALL_ROLES = [
|
|
31
|
-
TeamRoles.Member,
|
|
32
|
-
TeamRoles.Owner,
|
|
33
|
-
];
|
|
26
|
+
static ALL_ROLES = [TeamRoles.Member, TeamRoles.Owner];
|
|
34
27
|
}
|
package/lib/models/Runtime.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export const BACKWARDS_COMPATIBLE_KERNEL_TYPES_MAP = {
|
|
6
6
|
// Backwards compatible mapping.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
default: 'notebook',
|
|
8
|
+
snippet: 'cell',
|
|
9
|
+
notebook: 'notebook',
|
|
10
|
+
cell: 'cell',
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Error thrown when a runtime has been created
|
package/lib/models/School.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IDean } from
|
|
2
|
-
import { IStudent } from
|
|
3
|
-
import { ICourse } from
|
|
4
|
-
import { IBaseOrganization } from
|
|
1
|
+
import { IDean } from './Dean';
|
|
2
|
+
import { IStudent } from './Student';
|
|
3
|
+
import { ICourse } from './Course';
|
|
4
|
+
import { IBaseOrganization } from './Organization';
|
|
5
5
|
export type ISchool = IBaseOrganization & {
|
|
6
6
|
type: 'school';
|
|
7
7
|
dean?: IDean;
|
package/lib/models/Space.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SpaceMember } from
|
|
2
|
-
import { ISpaceItem } from
|
|
3
|
-
import { ICourse as ICourse } from
|
|
4
|
-
import { IOrganization } from
|
|
5
|
-
import { IUser } from
|
|
1
|
+
import { SpaceMember } from './SpaceMember';
|
|
2
|
+
import { ISpaceItem } from './SpaceItem';
|
|
3
|
+
import { ICourse as ICourse } from './Course';
|
|
4
|
+
import { IOrganization } from './Organization';
|
|
5
|
+
import { IUser } from './User';
|
|
6
6
|
/**
|
|
7
7
|
* Convert the raw space object to {@link ISpace}.
|
|
8
8
|
*
|
package/lib/models/Space.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { asUser } from
|
|
6
|
-
import { asArray } from
|
|
5
|
+
import { asUser } from './User';
|
|
6
|
+
import { asArray } from '../utils';
|
|
7
7
|
import { newUserMock } from './../mocks/models';
|
|
8
8
|
/**
|
|
9
9
|
* Convert the raw space object to {@link ISpace}.
|
|
@@ -33,7 +33,7 @@ export const asSpace = (raw_space) => {
|
|
|
33
33
|
owner,
|
|
34
34
|
organization: {
|
|
35
35
|
handle: raw_space.handle_s,
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
};
|
|
38
38
|
return space;
|
|
39
39
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { INotebook } from
|
|
2
|
-
import { IDocument } from
|
|
3
|
-
import { ICell } from
|
|
4
|
-
import { IDataset } from
|
|
5
|
-
import { IEnvironment } from
|
|
6
|
-
import { ILesson } from
|
|
7
|
-
import { IExercise } from
|
|
8
|
-
import { IAssignment } from
|
|
1
|
+
import { INotebook } from './Notebook';
|
|
2
|
+
import { IDocument } from './Document';
|
|
3
|
+
import { ICell } from './Cell';
|
|
4
|
+
import { IDataset } from './Dataset';
|
|
5
|
+
import { IEnvironment } from './Environment';
|
|
6
|
+
import { ILesson } from './Lesson';
|
|
7
|
+
import { IExercise } from './Exercise';
|
|
8
|
+
import { IAssignment } from './Assignment';
|
|
9
9
|
export type ISpaceItem = IDataset | INotebook | ICell | IEnvironment | ILesson | IExercise | IAssignment | IDocument;
|
|
10
10
|
export default ISpaceItem;
|
package/lib/models/Student.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IItemType } from
|
|
2
|
-
import { IStudent } from
|
|
3
|
-
import { ISpaceItem } from
|
|
1
|
+
import { IItemType } from './ItemType';
|
|
2
|
+
import { IStudent } from './Student';
|
|
3
|
+
import { ISpaceItem } from './SpaceItem';
|
|
4
4
|
export type IStudentItem = {
|
|
5
5
|
id: string;
|
|
6
6
|
type: 'student_item';
|
package/lib/models/Team.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TeamMember } from
|
|
2
|
-
import IOrganization from
|
|
1
|
+
import { TeamMember } from './TeamMember';
|
|
2
|
+
import IOrganization from './Organization';
|
|
3
3
|
export type IAnyTeam = ITeam;
|
|
4
4
|
export declare function asTeam(t: any, organizationId: string): ITeam;
|
|
5
5
|
export type IBaseTeam = {
|
|
@@ -16,7 +16,7 @@ export type IBaseTeam = {
|
|
|
16
16
|
};
|
|
17
17
|
export type ITeam = IBaseTeam & {
|
|
18
18
|
type: 'team';
|
|
19
|
-
organization: Pick<IOrganization,
|
|
19
|
+
organization: Pick<IOrganization, 'id'>;
|
|
20
20
|
members: TeamMember[];
|
|
21
21
|
};
|
|
22
22
|
export default ITeam;
|
package/lib/models/Team.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { asArray } from
|
|
6
|
-
import { asUser } from
|
|
5
|
+
import { asArray } from '../utils';
|
|
6
|
+
import { asUser } from './User';
|
|
7
7
|
export function asTeam(t, organizationId) {
|
|
8
8
|
let members = new Array();
|
|
9
9
|
if (t.members) {
|
package/lib/models/URN.js
CHANGED
package/lib/models/User.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IInvite } from
|
|
2
|
-
import { IIAMProviderLinked } from
|
|
1
|
+
import { IInvite } from './Invite';
|
|
2
|
+
import { IIAMProviderLinked } from './IAMProviderLinked';
|
|
3
3
|
import { IUserOnboarding } from './UserOnboarding';
|
|
4
4
|
import { IUserSettings } from './UserSettings';
|
|
5
5
|
import { IUserEvent } from './UserEvent';
|
package/lib/models/User.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { asDisplayName, namesAsInitials } from '../utils';
|
|
6
|
-
import { asIAMProviderLinked } from
|
|
6
|
+
import { asIAMProviderLinked } from './IAMProviderLinked';
|
|
7
7
|
import { BOOTSTRAP_USER_ONBOARDING } from './UserOnboarding';
|
|
8
8
|
import { UserSettings } from './UserSettings';
|
|
9
9
|
import { asUserEvent } from './UserEvent';
|
|
@@ -56,7 +56,7 @@ export class User {
|
|
|
56
56
|
this.lastName = u.last_name_t;
|
|
57
57
|
this.initials = namesAsInitials(u.first_name_t, u.last_name_t);
|
|
58
58
|
const displayName = asDisplayName(u.first_name_t, u.last_name_t);
|
|
59
|
-
this.displayName = displayName ===
|
|
59
|
+
this.displayName = displayName === '' ? u.handle_s : displayName;
|
|
60
60
|
this.avatarUrl = u.avatar_url_s;
|
|
61
61
|
this.origin = u.origin_s;
|
|
62
62
|
this.joinDate = u.join_ts_dt ? new Date(u.join_ts_dt) : undefined;
|
|
@@ -74,7 +74,9 @@ export class User {
|
|
|
74
74
|
this.settings = new UserSettings(u.settings ?? {});
|
|
75
75
|
this.unsubscribedFromOutbounds = u.unsubscribed_from_outbounds_b ?? false;
|
|
76
76
|
this.mfaUrl = u.mfa_url_s;
|
|
77
|
-
this.onboarding = u.onboarding_s
|
|
77
|
+
this.onboarding = u.onboarding_s
|
|
78
|
+
? JSON.parse(u.onboarding_s)
|
|
79
|
+
: BOOTSTRAP_USER_ONBOARDING;
|
|
78
80
|
this.linkedContactId = u.linked_contact_uid;
|
|
79
81
|
let events = u.events ?? [];
|
|
80
82
|
if (!Array.isArray(events)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const WELCOME_RUNTIME_TOUR_NAME = "welcome-runtime";
|
|
2
2
|
export declare const BOOTSTRAP_USER_ONBOARDING: IUserOnboarding;
|
|
3
3
|
export type IOnboardingPosition = 'top' | 'bottom' | 'invisible' | 'sidebar';
|
|
4
|
-
export type ITourStatus =
|
|
4
|
+
export type ITourStatus = 'idle' | 'ready' | 'waiting' | 'running' | 'paused' | 'skipped' | 'finished' | 'error';
|
|
5
5
|
export type ITour = {
|
|
6
6
|
status: ITourStatus;
|
|
7
7
|
};
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export const WELCOME_RUNTIME_TOUR_NAME =
|
|
5
|
+
export const WELCOME_RUNTIME_TOUR_NAME = 'welcome-runtime';
|
|
6
6
|
export const BOOTSTRAP_USER_ONBOARDING = {
|
|
7
7
|
clients: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Platform: 0,
|
|
9
|
+
JupyterLab: 0,
|
|
10
|
+
CLI: 0,
|
|
11
|
+
VSCode: 0,
|
|
12
12
|
},
|
|
13
13
|
position: 'top',
|
|
14
14
|
tours: {
|
|
15
|
-
|
|
16
|
-
status:
|
|
15
|
+
'welcome-runtime': {
|
|
16
|
+
status: 'ready',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
};
|
|
@@ -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 const AI_AGENTS_URL_KEY =
|
|
6
|
-
export const CAN_INVITE_URL_KEY =
|
|
5
|
+
export const AI_AGENTS_URL_KEY = 'aiagents_url_s';
|
|
6
|
+
export const CAN_INVITE_URL_KEY = 'can_invite_b';
|
|
7
7
|
export class UserSettings {
|
|
8
8
|
_aiAgentsUrl;
|
|
9
9
|
_canInvite;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export * from './Cell';
|
|
|
5
5
|
export * from './CodeBlock';
|
|
6
6
|
export * from './CodefeedBlocks';
|
|
7
7
|
export * from './Contact';
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
8
|
+
export * from './ContactEvent';
|
|
9
|
+
export * from './ContactIAMProvider';
|
|
10
10
|
export * from './ContactTags';
|
|
11
11
|
export * from './Content';
|
|
12
12
|
export * from './Course';
|
package/lib/models/index.js
CHANGED
|
@@ -9,8 +9,8 @@ export * from './Cell';
|
|
|
9
9
|
export * from './CodeBlock';
|
|
10
10
|
export * from './CodefeedBlocks';
|
|
11
11
|
export * from './Contact';
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
12
|
+
export * from './ContactEvent';
|
|
13
|
+
export * from './ContactIAMProvider';
|
|
14
14
|
export * from './ContactTags';
|
|
15
15
|
export * from './Content';
|
|
16
16
|
export * from './Course';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create native browser navigation function
|
|
3
|
+
*/
|
|
4
|
+
export declare const createNativeNavigate: () => (to: string, options?: any) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Simple native adapter for backward compatibility
|
|
7
|
+
*/
|
|
8
|
+
export declare const createNativeAdapter: () => {
|
|
9
|
+
name: string;
|
|
10
|
+
isAvailable: () => boolean;
|
|
11
|
+
};
|