@datalayer/core 0.0.1 β 0.0.3
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 +187 -7
- package/lib/App.css +47 -0
- package/lib/App.d.ts +3 -0
- package/lib/App.js +21 -5
- package/lib/__tests__/App.test.d.ts +1 -0
- package/lib/__tests__/App.test.js +17 -0
- package/lib/__tests__/hooks.test.d.ts +1 -0
- package/lib/__tests__/hooks.test.js +19 -0
- package/lib/__tests__/index.test.d.ts +1 -0
- package/lib/__tests__/index.test.js +27 -0
- package/lib/__tests__/integration.test.d.ts +1 -0
- package/lib/__tests__/integration.test.js +57 -0
- package/lib/__tests__/utils.test.d.ts +1 -0
- package/lib/__tests__/utils.test.js +59 -0
- package/lib/api/DatalayerApi.d.ts +75 -0
- package/lib/api/DatalayerApi.js +145 -0
- package/lib/api/index.d.ts +3 -0
- package/lib/api/index.js +7 -0
- package/lib/api/jupyter/exec/Python.d.ts +5 -0
- package/lib/api/jupyter/exec/Python.js +100 -0
- package/lib/api/jupyter/exec/Snippets.d.ts +145 -0
- package/lib/api/jupyter/exec/Snippets.js +120 -0
- package/lib/api/jupyter/exec/index.d.ts +2 -0
- package/lib/api/jupyter/exec/index.js +6 -0
- package/lib/api/jupyter/index.d.ts +2 -0
- package/lib/api/jupyter/index.js +6 -0
- package/lib/api/jupyter/kernelsHandler.d.ts +8 -0
- package/lib/api/jupyter/kernelsHandler.js +39 -0
- package/lib/api/runtimes/actions.d.ts +102 -0
- package/lib/api/runtimes/actions.js +264 -0
- package/lib/api/runtimes/apis.d.ts +273 -0
- package/lib/api/runtimes/apis.js +5 -0
- package/lib/api/runtimes/index.d.ts +5 -0
- package/lib/api/runtimes/index.js +9 -0
- package/lib/api/runtimes/settings.d.ts +15 -0
- package/lib/api/runtimes/settings.js +31 -0
- package/lib/api/runtimes/snapshots.d.ts +25 -0
- package/lib/api/runtimes/snapshots.js +150 -0
- package/lib/api/runtimes/utils.d.ts +7 -0
- package/lib/api/runtimes/utils.js +17 -0
- package/lib/assets/react.svg +1 -0
- package/lib/components/avatars/BoringAvatar.d.ts +19 -0
- package/lib/components/avatars/BoringAvatar.js +44 -0
- package/lib/components/avatars/BoringAvatar.stories.d.ts +27 -0
- package/lib/components/avatars/BoringAvatar.stories.js +23 -0
- package/lib/components/avatars/UserProfileAvatar.d.ts +13 -0
- package/lib/components/avatars/UserProfileAvatar.js +32 -0
- package/lib/components/avatars/index.d.ts +2 -0
- package/lib/components/avatars/index.js +6 -0
- package/lib/components/banners/NoAutomationBanner.d.ts +2 -0
- package/lib/components/banners/NoAutomationBanner.js +13 -0
- package/lib/components/banners/index.d.ts +1 -0
- package/lib/components/banners/index.js +5 -0
- package/lib/components/buttons/DownloadCSVButton.d.ts +13 -0
- package/lib/components/buttons/DownloadCSVButton.js +16 -0
- package/lib/components/buttons/DownloadJsonButton.d.ts +16 -0
- package/lib/components/buttons/DownloadJsonButton.js +18 -0
- package/lib/components/buttons/LongActionButton.d.ts +28 -0
- package/lib/components/buttons/LongActionButton.js +24 -0
- package/lib/components/buttons/UploadButton.d.ts +37 -0
- package/lib/components/buttons/UploadButton.js +43 -0
- package/lib/components/buttons/VariantType.d.ts +1 -0
- package/lib/components/buttons/VariantType.js +5 -0
- package/lib/components/buttons/index.d.ts +5 -0
- package/lib/components/buttons/index.js +9 -0
- package/lib/components/checkout/StripeCheckout.d.ts +32 -0
- package/lib/components/checkout/StripeCheckout.js +95 -0
- package/lib/components/checkout/index.d.ts +1 -0
- package/lib/components/checkout/index.js +5 -0
- package/lib/components/confetti/ConfettiSuccess.d.ts +2 -0
- package/lib/components/confetti/ConfettiSuccess.js +12 -0
- package/lib/components/confetti/index.d.ts +1 -0
- package/lib/components/confetti/index.js +5 -0
- package/lib/components/context/OrganizationSelect.d.ts +2 -0
- package/lib/components/context/OrganizationSelect.js +35 -0
- package/lib/components/context/SpaceSelect.d.ts +2 -0
- package/lib/components/context/SpaceSelect.js +43 -0
- package/lib/components/context/index.d.ts +2 -0
- package/lib/components/context/index.js +6 -0
- package/lib/components/display/AvatarSkeleton.d.ts +5 -0
- package/lib/components/display/AvatarSkeleton.js +11 -0
- package/lib/components/display/CenteredSpinner.d.ts +14 -0
- package/lib/components/display/CenteredSpinner.js +20 -0
- package/lib/components/display/CodePreview.d.ts +4 -0
- package/lib/components/display/CodePreview.js +15 -0
- package/lib/components/display/DatalayerBox.d.ts +8 -0
- package/lib/components/display/DatalayerBox.js +28 -0
- package/lib/components/display/HorizontalCenter.d.ts +9 -0
- package/lib/components/display/HorizontalCenter.js +14 -0
- package/lib/components/display/JupyterDialog.d.ts +69 -0
- package/lib/components/display/JupyterDialog.js +115 -0
- package/lib/components/display/Markdown.d.ts +23 -0
- package/lib/components/display/Markdown.js +20 -0
- package/lib/components/display/NavLink.d.ts +9 -0
- package/lib/components/display/NavLink.js +17 -0
- package/lib/components/display/NotebookSkeleton.d.ts +2 -0
- package/lib/components/display/NotebookSkeleton.js +11 -0
- package/lib/components/display/Placeholder.d.ts +2 -0
- package/lib/components/display/Placeholder.js +9 -0
- package/lib/components/display/ToTopBranded.d.ts +2 -0
- package/lib/components/display/ToTopBranded.js +11 -0
- package/lib/components/display/VisuallyHidden.d.ts +5 -0
- package/lib/components/display/VisuallyHidden.js +24 -0
- package/lib/components/display/index.d.ts +12 -0
- package/lib/components/display/index.js +16 -0
- package/lib/components/echarts/EChartsReact.d.ts +11 -0
- package/lib/components/echarts/EChartsReact.js +53 -0
- package/lib/components/echarts/index.d.ts +1 -0
- package/lib/components/echarts/index.js +5 -0
- package/lib/components/flashes/FlashClosable.d.ts +22 -0
- package/lib/components/flashes/FlashClosable.js +64 -0
- package/lib/components/flashes/FlashDisclaimer.d.ts +2 -0
- package/lib/components/flashes/FlashDisclaimer.js +18 -0
- package/lib/components/flashes/FlashGuest.d.ts +2 -0
- package/lib/components/flashes/FlashGuest.js +30 -0
- package/lib/components/flashes/FlashSurveys.d.ts +6 -0
- package/lib/components/flashes/FlashSurveys.js +36 -0
- package/lib/components/flashes/FlashUnauthorized.d.ts +2 -0
- package/lib/components/flashes/FlashUnauthorized.js +18 -0
- package/lib/components/flashes/index.d.ts +6 -0
- package/lib/components/flashes/index.js +10 -0
- package/lib/components/flashes/surveys/Survey2025_1.d.ts +3 -0
- package/lib/components/flashes/surveys/Survey2025_1.js +129 -0
- package/lib/components/flashes/surveys/SurveyProps.d.ts +6 -0
- package/lib/components/flashes/surveys/SurveyProps.js +5 -0
- package/lib/components/flashes/surveys/index.d.ts +2 -0
- package/lib/components/flashes/surveys/index.js +6 -0
- package/lib/components/iam/ExternalTokenSilentLogin.d.ts +5 -0
- package/lib/components/iam/ExternalTokenSilentLogin.js +33 -0
- package/lib/components/iam/index.d.ts +1 -0
- package/lib/components/iam/index.js +5 -0
- package/lib/components/icons/ArtifactIcon.d.ts +10 -0
- package/lib/components/icons/ArtifactIcon.js +58 -0
- package/lib/components/icons/index.d.ts +1 -0
- package/lib/components/icons/index.js +5 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +5 -0
- package/lib/components/labels/VisibilityLabel.d.ts +4 -0
- package/lib/components/labels/VisibilityLabel.js +17 -0
- package/lib/components/labels/index.d.ts +1 -0
- package/lib/components/labels/index.js +5 -0
- package/lib/components/landings/StepBlock.d.ts +11 -0
- package/lib/components/landings/StepBlock.js +12 -0
- package/lib/components/landings/index.d.ts +1 -0
- package/lib/components/landings/index.js +5 -0
- package/lib/components/navbar/NavigationVisbilityObserver.d.ts +5 -0
- package/lib/components/navbar/NavigationVisbilityObserver.js +58 -0
- package/lib/components/navbar/SubdomainNavBar.d.ts +81 -0
- package/lib/components/navbar/SubdomainNavBar.js +235 -0
- package/lib/components/navbar/SubdomainNavBar.module.css +718 -0
- package/lib/components/navbar/index.d.ts +2 -0
- package/lib/components/navbar/index.js +6 -0
- package/lib/components/nbgrader/NbGradesDetails.d.ts +5 -0
- package/lib/components/nbgrader/NbGradesDetails.js +17 -0
- package/lib/components/nbgrader/index.d.ts +1 -0
- package/lib/components/nbgrader/index.js +5 -0
- package/lib/components/notebooks/JupyterNotebook.d.ts +12 -0
- package/lib/components/notebooks/JupyterNotebook.js +36 -0
- package/lib/components/notebooks/JupyterNotebookToolbar.d.ts +2 -0
- package/lib/components/notebooks/JupyterNotebookToolbar.js +39 -0
- package/lib/components/notebooks/index.d.ts +2 -0
- package/lib/components/notebooks/index.js +6 -0
- package/lib/components/primer/Helper.d.ts +32 -0
- package/lib/components/primer/Helper.js +19 -0
- package/lib/components/primer/Portals.d.ts +9 -0
- package/lib/components/primer/Portals.js +26 -0
- package/lib/components/primer/Styles.d.ts +2 -0
- package/lib/components/primer/Styles.js +11 -0
- package/lib/components/primer/index.d.ts +2 -0
- package/lib/components/primer/index.js +6 -0
- package/lib/components/progress/ConsumptionBar.d.ts +40 -0
- package/lib/components/progress/ConsumptionBar.js +49 -0
- package/lib/components/progress/CreditsIndicator.d.ts +27 -0
- package/lib/components/progress/CreditsIndicator.js +24 -0
- package/lib/components/progress/ProgressBar.d.ts +2 -0
- package/lib/components/progress/ProgressBar.js +21 -0
- package/lib/components/progress/ProgressRing.d.ts +36 -0
- package/lib/components/progress/ProgressRing.js +31 -0
- package/lib/components/progress/Timer.d.ts +9 -0
- package/lib/components/progress/Timer.js +28 -0
- package/lib/components/progress/index.d.ts +5 -0
- package/lib/components/progress/index.js +9 -0
- package/lib/components/runtimes/RuntimeCellVariables.d.ts +39 -0
- package/lib/components/runtimes/RuntimeCellVariables.js +172 -0
- package/lib/components/runtimes/RuntimeCellVariablesDialog.d.ts +37 -0
- package/lib/components/runtimes/RuntimeCellVariablesDialog.js +101 -0
- package/lib/components/runtimes/RuntimeLauncherDialog.d.ts +53 -0
- package/lib/components/runtimes/RuntimeLauncherDialog.js +250 -0
- package/lib/components/runtimes/RuntimePickerBase.d.ts +69 -0
- package/lib/components/runtimes/RuntimePickerBase.js +109 -0
- package/lib/components/runtimes/RuntimePickerCell.d.ts +34 -0
- package/lib/components/runtimes/RuntimePickerCell.js +106 -0
- package/lib/components/runtimes/RuntimePickerNotebook.d.ts +42 -0
- package/lib/components/runtimes/RuntimePickerNotebook.js +168 -0
- package/lib/components/runtimes/RuntimeReservationControl.d.ts +47 -0
- package/lib/components/runtimes/RuntimeReservationControl.js +38 -0
- package/lib/components/runtimes/RuntimeSimplePicker.d.ts +34 -0
- package/lib/components/runtimes/RuntimeSimplePicker.js +156 -0
- package/lib/components/runtimes/RuntimeTransfer.d.ts +16 -0
- package/lib/components/runtimes/RuntimeTransfer.js +5 -0
- package/lib/components/runtimes/RuntimeUtils.d.ts +17 -0
- package/lib/components/runtimes/RuntimeUtils.js +168 -0
- package/lib/components/runtimes/RuntimeVariables.d.ts +38 -0
- package/lib/components/runtimes/RuntimeVariables.js +75 -0
- package/lib/components/runtimes/index.d.ts +11 -0
- package/lib/components/runtimes/index.js +15 -0
- package/lib/components/screenshot/ScreenCapture.d.ts +38 -0
- package/lib/components/screenshot/ScreenCapture.js +174 -0
- package/lib/components/screenshot/ScreenCaptureButton.d.ts +3 -0
- package/lib/components/screenshot/ScreenCaptureButton.js +21 -0
- package/lib/components/screenshot/index.d.ts +2 -0
- package/lib/components/screenshot/index.js +6 -0
- package/lib/components/snapshots/RuntimeSnapshotMenu.d.ts +36 -0
- package/lib/components/snapshots/RuntimeSnapshotMenu.js +164 -0
- package/lib/components/snapshots/index.d.ts +1 -0
- package/lib/components/snapshots/index.js +5 -0
- package/lib/components/snippets/SnippetDialog.d.ts +42 -0
- package/lib/components/snippets/SnippetDialog.js +42 -0
- package/lib/components/snippets/index.d.ts +1 -0
- package/lib/components/snippets/index.js +5 -0
- package/lib/components/storage/ContentsBrowser.d.ts +32 -0
- package/lib/components/storage/ContentsBrowser.js +255 -0
- package/lib/components/storage/ContentsItems.d.ts +58 -0
- package/lib/components/storage/ContentsItems.js +78 -0
- package/lib/components/storage/index.d.ts +2 -0
- package/lib/components/storage/index.js +6 -0
- package/lib/components/students/StudentItemStatus.d.ts +7 -0
- package/lib/components/students/StudentItemStatus.js +47 -0
- package/lib/components/students/index.d.ts +1 -0
- package/lib/components/students/index.js +5 -0
- package/lib/components/subnav/SubNav.d.ts +84 -0
- package/lib/components/subnav/SubNav.js +265 -0
- package/lib/components/subnav/SubNav.module.css +683 -0
- package/lib/components/subnav/index.d.ts +1 -0
- package/lib/components/subnav/index.js +5 -0
- package/lib/components/tables/DataTable.d.ts +5 -0
- package/lib/components/tables/DataTable.js +19 -0
- package/lib/components/tables/index.d.ts +1 -0
- package/lib/components/tables/index.js +5 -0
- package/lib/components/text-reveal/TextRevealAnimation.d.ts +6 -0
- package/lib/components/text-reveal/TextRevealAnimation.js +49 -0
- package/lib/components/text-reveal/TextRevealAnimation.module.css +43 -0
- package/lib/components/text-reveal/index.d.ts +1 -0
- package/lib/components/text-reveal/index.js +5 -0
- package/lib/components/text-reveal/useTextRevealAnimationLines.d.ts +4 -0
- package/lib/components/text-reveal/useTextRevealAnimationLines.js +47 -0
- package/lib/components/tokens/SpaceVariantToken.d.ts +5 -0
- package/lib/components/tokens/SpaceVariantToken.js +20 -0
- package/lib/components/tokens/index.d.ts +1 -0
- package/lib/components/tokens/index.js +5 -0
- package/lib/components/toolbars/AssignmentEditorToolbar.d.ts +4 -0
- package/lib/components/toolbars/AssignmentEditorToolbar.js +18 -0
- package/lib/components/toolbars/DocumentEditorToolbar.d.ts +2 -0
- package/lib/components/toolbars/DocumentEditorToolbar.js +12 -0
- package/lib/components/toolbars/NotebookEditorToolbar.d.ts +29 -0
- package/lib/components/toolbars/NotebookEditorToolbar.js +30 -0
- package/lib/components/toolbars/index.d.ts +3 -0
- package/lib/components/toolbars/index.js +7 -0
- package/lib/components/users/PeerIndicator.d.ts +18 -0
- package/lib/components/users/PeerIndicator.js +100 -0
- package/lib/components/users/index.d.ts +1 -0
- package/lib/components/users/index.js +5 -0
- package/lib/config/Configuration.d.ts +111 -0
- package/lib/config/Configuration.js +25 -0
- package/lib/config/index.d.ts +2 -0
- package/lib/config/index.js +6 -0
- package/lib/config/integrations/Loom.d.ts +1 -0
- package/lib/config/integrations/Loom.js +16 -0
- package/lib/config/integrations/index.d.ts +1 -0
- package/lib/config/integrations/index.js +5 -0
- package/lib/examples/CellExample.d.ts +6 -0
- package/lib/examples/CellExample.js +24 -0
- package/lib/examples/NotebookExample.d.ts +8 -0
- package/lib/examples/NotebookExample.js +22 -0
- package/lib/examples/NotebookExample1.ipynb.json +136 -0
- package/lib/hooks/assets/OutputshotPlaceholders.d.ts +19 -0
- package/lib/hooks/assets/OutputshotPlaceholders.js +23 -0
- package/lib/hooks/assets/index.d.ts +1 -0
- package/lib/hooks/assets/index.js +5 -0
- package/lib/hooks/index.d.ts +28 -0
- package/lib/hooks/index.js +33 -0
- package/lib/hooks/layouts/LayoutBackdrop.d.ts +2 -0
- package/lib/hooks/layouts/LayoutBackdrop.js +30 -0
- package/lib/hooks/layouts/LayoutScreenshot.css +58 -0
- package/lib/hooks/layouts/LayoutScreenshot.d.ts +3 -0
- package/lib/hooks/layouts/LayoutScreenshot.js +44 -0
- package/lib/hooks/layouts/index.d.ts +2 -0
- package/lib/hooks/layouts/index.js +6 -0
- package/lib/hooks/useAIAgents.d.ts +13 -0
- package/lib/hooks/useAIAgents.js +72 -0
- package/lib/hooks/useAuthorization.d.ts +19 -0
- package/lib/hooks/useAuthorization.js +124 -0
- package/lib/hooks/useBackdrop.d.ts +28 -0
- package/lib/hooks/useBackdrop.js +100 -0
- package/lib/hooks/useBackdropJupyterLab.d.ts +15 -0
- package/lib/hooks/useBackdropJupyterLab.js +51 -0
- package/lib/hooks/useCache.d.ts +306 -0
- package/lib/hooks/useCache.js +3098 -0
- package/lib/hooks/useCellOutputshot.d.ts +4 -0
- package/lib/hooks/useCellOutputshot.js +28 -0
- package/lib/hooks/useContainsFocus.d.ts +9 -0
- package/lib/hooks/useContainsFocus.js +43 -0
- package/lib/hooks/useDatalayer.d.ts +21 -0
- package/lib/hooks/useDatalayer.js +81 -0
- package/lib/hooks/useError.d.ts +9 -0
- package/lib/hooks/useError.js +26 -0
- package/lib/hooks/useExternalScript.d.ts +2 -0
- package/lib/hooks/useExternalScript.js +17 -0
- package/lib/hooks/useFocusTrap.d.ts +30 -0
- package/lib/hooks/useFocusTrap.js +48 -0
- package/lib/hooks/useIAM.d.ts +14 -0
- package/lib/hooks/useIAM.js +93 -0
- package/lib/hooks/useId.d.ts +19 -0
- package/lib/hooks/useId.js +100 -0
- package/lib/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/lib/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/lib/hooks/useJupyterLabTheme.d.ts +6 -0
- package/lib/hooks/useJupyterLabTheme.js +24 -0
- package/lib/hooks/useKeyboardEscape.d.ts +1 -0
- package/lib/hooks/useKeyboardEscape.js +18 -0
- package/lib/hooks/useLocationHandles.d.ts +10 -0
- package/lib/hooks/useLocationHandles.js +22 -0
- package/lib/hooks/useNavigate.d.ts +2 -0
- package/lib/hooks/useNavigate.js +24 -0
- package/lib/hooks/useNotebookAIAgent.d.ts +8 -0
- package/lib/hooks/useNotebookAIAgent.js +54 -0
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/hooks/useOnClickOutside.js +29 -0
- package/lib/hooks/useRef.d.ts +10 -0
- package/lib/hooks/useRef.js +17 -0
- package/lib/hooks/useRuntimes.d.ts +5 -0
- package/lib/hooks/useRuntimes.js +34 -0
- package/lib/hooks/useScreenshot.d.ts +21 -0
- package/lib/hooks/useScreenshot.js +60 -0
- package/lib/hooks/useToast.d.ts +42 -0
- package/lib/hooks/useToast.js +141 -0
- package/lib/hooks/useUpload.d.ts +7 -0
- package/lib/hooks/useUpload.js +46 -0
- package/lib/hooks/useUser.d.ts +3 -0
- package/lib/hooks/useUser.js +22 -0
- package/lib/hooks/useVisibilityObserver.d.ts +5 -0
- package/lib/hooks/useVisibilityObserver.js +42 -0
- package/lib/hooks/useWindowSize.d.ts +21 -0
- package/lib/hooks/useWindowSize.js +74 -0
- package/lib/i18n/Labels.d.ts +1 -0
- package/lib/i18n/Labels.js +5 -0
- package/lib/i18n/index.d.ts +1 -0
- package/lib/i18n/index.js +5 -0
- package/lib/index.css +73 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +6 -0
- package/lib/main.d.ts +1 -0
- package/lib/main.js +5 -2
- package/lib/mocks/components/FlashMock.d.ts +2 -0
- package/lib/mocks/components/FlashMock.js +13 -0
- package/lib/mocks/components/index.d.ts +1 -0
- package/lib/mocks/components/index.js +5 -0
- package/lib/mocks/hooks/index.d.ts +1 -0
- package/lib/mocks/hooks/index.js +5 -0
- package/lib/mocks/hooks/rests/index.d.ts +1 -0
- package/lib/mocks/hooks/rests/index.js +5 -0
- package/lib/mocks/hooks/rests/rests.d.ts +22 -0
- package/lib/mocks/hooks/rests/rests.js +32 -0
- package/lib/mocks/hooks/useDatalayerMock.d.ts +6 -0
- package/lib/mocks/hooks/useDatalayerMock.js +78 -0
- package/lib/mocks/index.d.ts +4 -0
- package/lib/mocks/index.js +9 -0
- package/lib/mocks/jupyter/index.d.ts +1 -0
- package/lib/mocks/jupyter/index.js +5 -0
- package/lib/mocks/models/CodeBlockMock.d.ts +1 -0
- package/lib/mocks/models/CodeBlockMock.js +5 -0
- package/lib/mocks/models/CodelineMock.d.ts +1 -0
- package/lib/mocks/models/CodelineMock.js +5 -0
- package/lib/mocks/models/CourseMock.d.ts +6 -0
- package/lib/mocks/models/CourseMock.js +29 -0
- package/lib/mocks/models/InviteMock.d.ts +6 -0
- package/lib/mocks/models/InviteMock.js +22 -0
- package/lib/mocks/models/JupyterLabUserMock.d.ts +2 -0
- package/lib/mocks/models/JupyterLabUserMock.js +17 -0
- package/lib/mocks/models/OrganisationMock.d.ts +5 -0
- package/lib/mocks/models/OrganisationMock.js +24 -0
- package/lib/mocks/models/SchoolMock.d.ts +6 -0
- package/lib/mocks/models/SchoolMock.js +25 -0
- package/lib/mocks/models/SpaceMock.d.ts +6 -0
- package/lib/mocks/models/SpaceMock.js +25 -0
- package/lib/mocks/models/TeamMock.d.ts +5 -0
- package/lib/mocks/models/TeamMock.js +26 -0
- package/lib/mocks/models/UserMock.d.ts +2 -0
- package/lib/mocks/models/UserMock.js +29 -0
- package/lib/mocks/models/index.d.ts +9 -0
- package/lib/mocks/models/index.js +13 -0
- package/lib/mocks/views/ActionMenuMock.d.ts +5 -0
- package/lib/mocks/views/ActionMenuMock.js +12 -0
- package/lib/mocks/views/ChartMock.d.ts +5 -0
- package/lib/mocks/views/ChartMock.js +15 -0
- package/lib/mocks/views/ChartMockOptions.d.ts +92 -0
- package/lib/mocks/views/ChartMockOptions.js +102 -0
- package/lib/mocks/views/DashboardMock.d.ts +2 -0
- package/lib/mocks/views/DashboardMock.js +118 -0
- package/lib/mocks/views/FormMock.d.ts +5 -0
- package/lib/mocks/views/FormMock.js +28 -0
- package/lib/mocks/views/TableMock.d.ts +5 -0
- package/lib/mocks/views/TableMock.js +155 -0
- package/lib/mocks/views/WipMock.d.ts +5 -0
- package/lib/mocks/views/WipMock.js +12 -0
- package/lib/mocks/views/index.d.ts +7 -0
- package/lib/mocks/views/index.js +11 -0
- package/lib/models/AIAgent.d.ts +17 -0
- package/lib/models/AIAgent.js +5 -0
- package/lib/models/Account.d.ts +4 -0
- package/lib/models/Account.js +5 -0
- package/lib/models/Assignment.d.ts +7 -0
- package/lib/models/Assignment.js +5 -0
- package/lib/models/Base.d.ts +16 -0
- package/lib/models/Base.js +5 -0
- package/lib/models/Cell.d.ts +8 -0
- package/lib/models/Cell.js +5 -0
- package/lib/models/CodeBlock.d.ts +10 -0
- package/lib/models/CodeBlock.js +5 -0
- package/lib/models/CodefeedBlocks.d.ts +7 -0
- package/lib/models/CodefeedBlocks.js +5 -0
- package/lib/models/Contact.d.ts +73 -0
- package/lib/models/Contact.js +90 -0
- package/lib/models/ContactEvent.d.ts +10 -0
- package/lib/models/ContactEvent.js +14 -0
- package/lib/models/ContactIAMProvider.d.ts +12 -0
- package/lib/models/ContactIAMProvider.js +20 -0
- package/lib/models/ContactTags.d.ts +23 -0
- package/lib/models/ContactTags.js +73 -0
- package/lib/models/Content.d.ts +5 -0
- package/lib/models/Content.js +5 -0
- package/lib/models/Course.d.ts +17 -0
- package/lib/models/Course.js +5 -0
- package/lib/models/Credits.d.ts +76 -0
- package/lib/models/Credits.js +11 -0
- package/lib/models/Dataset.d.ts +16 -0
- package/lib/models/Dataset.js +5 -0
- package/lib/models/Datasource.d.ts +11 -0
- package/lib/models/Datasource.js +14 -0
- package/lib/models/Dean.d.ts +3 -0
- package/lib/models/Dean.js +5 -0
- package/lib/models/Document.d.ts +8 -0
- package/lib/models/Document.js +5 -0
- package/lib/models/Environment.d.ts +82 -0
- package/lib/models/Environment.js +5 -0
- package/lib/models/Errors.d.ts +6 -0
- package/lib/models/Errors.js +13 -0
- package/lib/models/Exercise.d.ts +16 -0
- package/lib/models/Exercise.js +5 -0
- package/lib/models/GrowthKPI.d.ts +5 -0
- package/lib/models/GrowthKPI.js +9 -0
- package/lib/models/IAMProviderLinked.d.ts +9 -0
- package/lib/models/IAMProviderLinked.js +13 -0
- package/lib/models/IAMProviderPost.d.ts +8 -0
- package/lib/models/IAMProviderPost.js +22 -0
- package/lib/models/IAMProviderUsers.d.ts +49 -0
- package/lib/models/IAMProviderUsers.js +29 -0
- package/lib/models/IAMProvidersSpecs.d.ts +22 -0
- package/lib/models/IAMProvidersSpecs.js +72 -0
- package/lib/models/IAMToken.d.ts +11 -0
- package/lib/models/IAMToken.js +14 -0
- package/lib/models/Inbound.d.ts +25 -0
- package/lib/models/Inbound.js +29 -0
- package/lib/models/Instructor.d.ts +3 -0
- package/lib/models/Instructor.js +5 -0
- package/lib/models/Invite.d.ts +14 -0
- package/lib/models/Invite.js +24 -0
- package/lib/models/Item.d.ts +20 -0
- package/lib/models/Item.js +5 -0
- package/lib/models/ItemType.d.ts +2 -0
- package/lib/models/ItemType.js +5 -0
- package/lib/models/LandingRoles.d.ts +3 -0
- package/lib/models/LandingRoles.js +27 -0
- package/lib/models/Lesson.d.ts +5 -0
- package/lib/models/Lesson.js +5 -0
- package/lib/models/Library.d.ts +10 -0
- package/lib/models/Library.js +5 -0
- package/lib/models/Member.d.ts +3 -0
- package/lib/models/Member.js +5 -0
- package/lib/models/Notebook.d.ts +11 -0
- package/lib/models/Notebook.js +5 -0
- package/lib/models/Organization.d.ts +27 -0
- package/lib/models/Organization.js +36 -0
- package/lib/models/OrganizationMember.d.ts +6 -0
- package/lib/models/OrganizationMember.js +5 -0
- package/lib/models/Outbound.d.ts +41 -0
- package/lib/models/Outbound.js +45 -0
- package/lib/models/Page.d.ts +36 -0
- package/lib/models/Page.js +23 -0
- package/lib/models/PageTag.d.ts +19 -0
- package/lib/models/PageTag.js +26 -0
- package/lib/models/Profile.d.ts +1 -0
- package/lib/models/Profile.js +5 -0
- package/lib/models/Role.d.ts +9 -0
- package/lib/models/Role.js +5 -0
- package/lib/models/RolesOrganization.d.ts +9 -0
- package/lib/models/RolesOrganization.js +58 -0
- package/lib/models/RolesPlatform.d.ts +16 -0
- package/lib/models/RolesPlatform.js +142 -0
- package/lib/models/RolesTeam.d.ts +7 -0
- package/lib/models/RolesTeam.js +34 -0
- package/lib/models/Runtime.d.ts +123 -0
- package/lib/models/Runtime.js +18 -0
- package/lib/models/RuntimeSnapshot.d.ts +92 -0
- package/lib/models/RuntimeSnapshot.js +13 -0
- package/lib/models/School.d.ts +11 -0
- package/lib/models/School.js +5 -0
- package/lib/models/Secret.d.ts +10 -0
- package/lib/models/Secret.js +13 -0
- package/lib/models/Space.d.ts +34 -0
- package/lib/models/Space.js +39 -0
- package/lib/models/SpaceItem.d.ts +10 -0
- package/lib/models/SpaceItem.js +5 -0
- package/lib/models/SpaceMember.d.ts +6 -0
- package/lib/models/SpaceMember.js +5 -0
- package/lib/models/Student.d.ts +6 -0
- package/lib/models/Student.js +5 -0
- package/lib/models/StudentItem.d.ts +21 -0
- package/lib/models/StudentItem.js +5 -0
- package/lib/models/Survey.d.ts +20 -0
- package/lib/models/Survey.js +14 -0
- package/lib/models/Team.d.ts +22 -0
- package/lib/models/Team.js +32 -0
- package/lib/models/TeamMember.d.ts +6 -0
- package/lib/models/TeamMember.js +5 -0
- package/lib/models/URN.d.ts +63 -0
- package/lib/models/URN.js +40 -0
- package/lib/models/Usage.d.ts +46 -0
- package/lib/models/Usage.js +21 -0
- package/lib/models/User.d.ts +71 -0
- package/lib/models/User.js +98 -0
- package/lib/models/UserEvent.d.ts +10 -0
- package/lib/models/UserEvent.js +14 -0
- package/lib/models/UserOnboarding.d.ts +14 -0
- package/lib/models/UserOnboarding.js +19 -0
- package/lib/models/UserSettings.d.ts +16 -0
- package/lib/models/UserSettings.js +27 -0
- package/lib/models/WaitingListFormData.d.ts +6 -0
- package/lib/models/WaitingListFormData.js +5 -0
- package/lib/models/index.d.ts +65 -0
- package/lib/models/index.js +69 -0
- package/lib/routes/Routes.d.ts +3 -0
- package/lib/routes/Routes.js +7 -0
- package/lib/routes/index.d.ts +1 -0
- package/lib/routes/index.js +5 -0
- package/lib/state/State.d.ts +33 -0
- package/lib/state/State.js +44 -0
- package/lib/state/index.d.ts +3 -0
- package/lib/state/index.js +7 -0
- package/lib/state/storage/IAMStorage.d.ts +33 -0
- package/lib/state/storage/IAMStorage.js +76 -0
- package/lib/state/storage/index.d.ts +1 -0
- package/lib/state/storage/index.js +5 -0
- package/lib/state/substates/AIAgentState.d.ts +11 -0
- package/lib/state/substates/AIAgentState.js +40 -0
- package/lib/state/substates/CellState.d.ts +12 -0
- package/lib/state/substates/CellState.js +21 -0
- package/lib/state/substates/CoreState.d.ts +25 -0
- package/lib/state/substates/CoreState.js +88 -0
- package/lib/state/substates/DatasourceState.d.ts +11 -0
- package/lib/state/substates/DatasourceState.js +16 -0
- package/lib/state/substates/DocumentState.d.ts +10 -0
- package/lib/state/substates/DocumentState.js +14 -0
- package/lib/state/substates/GradeState.d.ts +10 -0
- package/lib/state/substates/GradeState.js +14 -0
- package/lib/state/substates/IAMState.d.ts +75 -0
- package/lib/state/substates/IAMState.js +291 -0
- package/lib/state/substates/JupyterLabState.d.ts +16 -0
- package/lib/state/substates/JupyterLabState.js +17 -0
- package/lib/state/substates/LayoutState.d.ts +62 -0
- package/lib/state/substates/LayoutState.js +74 -0
- package/lib/state/substates/NbformatState.d.ts +13 -0
- package/lib/state/substates/NbformatState.js +16 -0
- package/lib/state/substates/OrganizationState.d.ts +11 -0
- package/lib/state/substates/OrganizationState.js +16 -0
- package/lib/state/substates/RuntimesState.d.ts +88 -0
- package/lib/state/substates/RuntimesState.js +178 -0
- package/lib/state/substates/SpaceState.d.ts +11 -0
- package/lib/state/substates/SpaceState.js +16 -0
- package/lib/state/substates/SurveysState.d.ts +14 -0
- package/lib/state/substates/SurveysState.js +98 -0
- package/lib/state/substates/TeamState.d.ts +11 -0
- package/lib/state/substates/TeamState.js +17 -0
- package/lib/state/substates/index.d.ts +15 -0
- package/lib/state/substates/index.js +19 -0
- package/lib/stories/assets/accessibility.png +0 -0
- package/lib/stories/assets/accessibility.svg +1 -0
- package/lib/stories/assets/addon-library.png +0 -0
- package/lib/stories/assets/assets.png +0 -0
- package/lib/stories/assets/context.png +0 -0
- package/lib/stories/assets/discord.svg +1 -0
- package/lib/stories/assets/docs.png +0 -0
- package/lib/stories/assets/figma-plugin.png +0 -0
- package/lib/stories/assets/github.svg +1 -0
- package/lib/stories/assets/share.png +0 -0
- package/lib/stories/assets/styling.png +0 -0
- package/lib/stories/assets/testing.png +0 -0
- package/lib/stories/assets/theming.png +0 -0
- package/lib/stories/assets/tutorials.svg +1 -0
- package/lib/stories/assets/youtube.svg +1 -0
- package/lib/stories/button.css +35 -0
- package/lib/stories/header.css +37 -0
- package/lib/stories/page.css +73 -0
- package/lib/test-setup.d.ts +1 -0
- package/lib/test-setup.js +57 -0
- package/lib/theme/DatalayerTheme.d.ts +37 -0
- package/lib/theme/DatalayerTheme.js +62 -0
- package/lib/theme/DatalayerThemeProvider.d.ts +17 -0
- package/lib/theme/DatalayerThemeProvider.js +69 -0
- package/lib/theme/Palette.d.ts +5 -0
- package/lib/theme/Palette.js +22 -0
- package/lib/theme/index.d.ts +3 -0
- package/lib/theme/index.js +7 -0
- package/lib/utils/Array.d.ts +2 -0
- package/lib/utils/Array.js +16 -0
- package/lib/utils/Avatar.d.ts +9 -0
- package/lib/utils/Avatar.js +34 -0
- package/lib/utils/Browser.d.ts +3 -0
- package/lib/utils/Browser.js +63 -0
- package/lib/utils/Cells.d.ts +2 -0
- package/lib/utils/Cells.js +28 -0
- package/lib/utils/Cookie.d.ts +12 -0
- package/lib/utils/Cookie.js +48 -0
- package/lib/utils/Date.d.ts +2 -0
- package/lib/utils/Date.js +60 -0
- package/lib/utils/Download.d.ts +3 -0
- package/lib/utils/Download.js +48 -0
- package/lib/utils/DownloadFile.d.ts +10 -0
- package/lib/utils/DownloadFile.js +36 -0
- package/lib/utils/Env.d.ts +1 -0
- package/lib/utils/Env.js +7 -0
- package/lib/utils/File.d.ts +7 -0
- package/lib/utils/File.js +16 -0
- package/lib/utils/Format.d.ts +17 -0
- package/lib/utils/Format.js +54 -0
- package/lib/utils/Ids.d.ts +2 -0
- package/lib/utils/Ids.js +12 -0
- package/lib/utils/Jupyter.d.ts +1 -0
- package/lib/utils/Jupyter.js +12 -0
- package/lib/utils/Lazy.d.ts +8 -0
- package/lib/utils/Lazy.js +23 -0
- package/lib/utils/Msc.d.ts +16 -0
- package/lib/utils/Msc.js +28 -0
- package/lib/utils/Name.d.ts +7 -0
- package/lib/utils/Name.js +34 -0
- package/lib/utils/Notebook.d.ts +19 -0
- package/lib/utils/Notebook.js +37 -0
- package/lib/utils/Number.d.ts +1 -0
- package/lib/utils/Number.js +21 -0
- package/lib/utils/Plots.d.ts +16 -0
- package/lib/utils/Plots.js +56 -0
- package/lib/utils/Random.d.ts +1 -0
- package/lib/utils/Random.js +7 -0
- package/lib/utils/Screenshot.d.ts +1 -0
- package/lib/utils/Screenshot.js +27 -0
- package/lib/utils/Scroll.d.ts +2 -0
- package/lib/utils/Scroll.js +32 -0
- package/lib/utils/Sleep.d.ts +2 -0
- package/lib/utils/Sleep.js +8 -0
- package/lib/utils/Snapshot.d.ts +7 -0
- package/lib/utils/Snapshot.js +21 -0
- package/lib/utils/String.d.ts +1 -0
- package/lib/utils/String.js +13 -0
- package/lib/utils/Uri.d.ts +2 -0
- package/lib/utils/Uri.js +26 -0
- package/lib/utils/Validator.d.ts +12 -0
- package/lib/utils/Validator.js +44 -0
- package/lib/utils/WithSuspense.d.ts +2 -0
- package/lib/utils/WithSuspense.js +21 -0
- package/lib/utils/index.d.ts +26 -0
- package/lib/utils/index.js +31 -0
- package/package.json +86 -17
- package/style/animation/Animation.module.css +174 -0
- package/style/base.css +62 -3
- package/style/index.css +2 -3
- package/style/index.js +0 -7
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IContent } from "./Content";
|
|
2
|
+
import { IItem } from "./Item";
|
|
3
|
+
export type IEnvironment = IItem & {
|
|
4
|
+
type: 'environment';
|
|
5
|
+
};
|
|
6
|
+
export interface IResources {
|
|
7
|
+
cpu: string;
|
|
8
|
+
memory: string;
|
|
9
|
+
'nvidia.com/gpu'?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Code snippet
|
|
13
|
+
*/
|
|
14
|
+
export interface ISnippet {
|
|
15
|
+
/**
|
|
16
|
+
* Snippet summary
|
|
17
|
+
*/
|
|
18
|
+
title: string;
|
|
19
|
+
/**
|
|
20
|
+
* Snippet long description
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Code snippet
|
|
25
|
+
*/
|
|
26
|
+
code: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Datalayer environment
|
|
30
|
+
*/
|
|
31
|
+
export interface IDatalayerEnvironment {
|
|
32
|
+
/**
|
|
33
|
+
* Name
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Title
|
|
38
|
+
*/
|
|
39
|
+
title: string;
|
|
40
|
+
/**
|
|
41
|
+
* Description
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
* Execution language
|
|
46
|
+
*/
|
|
47
|
+
language: string;
|
|
48
|
+
/**
|
|
49
|
+
* Docker image
|
|
50
|
+
*/
|
|
51
|
+
dockerImage: string;
|
|
52
|
+
/**
|
|
53
|
+
* Example notebook URL
|
|
54
|
+
*/
|
|
55
|
+
example?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Example code snippets
|
|
58
|
+
*/
|
|
59
|
+
snippets?: ISnippet[];
|
|
60
|
+
/**
|
|
61
|
+
* Associate kernel attributes
|
|
62
|
+
*/
|
|
63
|
+
kernel?: {
|
|
64
|
+
/**
|
|
65
|
+
* Proposed display name
|
|
66
|
+
*/
|
|
67
|
+
givenNameTemplate?: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Environment credits burning rate
|
|
71
|
+
*/
|
|
72
|
+
burning_rate: number;
|
|
73
|
+
/**
|
|
74
|
+
* Environment server resources
|
|
75
|
+
*/
|
|
76
|
+
resources?: IResources;
|
|
77
|
+
/**
|
|
78
|
+
* Environment contents.
|
|
79
|
+
*/
|
|
80
|
+
contents?: IContent[];
|
|
81
|
+
}
|
|
82
|
+
export default IEnvironment;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Error emitted when the user tries to create more runtimes than allowed.
|
|
7
|
+
*/
|
|
8
|
+
export class MaxRuntimesExceededError extends Error {
|
|
9
|
+
constructor(message, options) {
|
|
10
|
+
super(message, options);
|
|
11
|
+
this.name = 'MaxRuntimesExceededError';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDataset } from './Dataset';
|
|
2
|
+
import { IItem } from "./Item";
|
|
3
|
+
export type ICode = string;
|
|
4
|
+
export type IHelp = string;
|
|
5
|
+
export type IExercise = IItem & {
|
|
6
|
+
type: 'exercise';
|
|
7
|
+
help: IHelp;
|
|
8
|
+
codePre: ICode;
|
|
9
|
+
codeSolution: ICode;
|
|
10
|
+
codeQuestion: ICode;
|
|
11
|
+
codeTest: ICode;
|
|
12
|
+
datasets: Array<IDataset>;
|
|
13
|
+
lastUpdateDate?: Date;
|
|
14
|
+
lastPublicationDate?: Date;
|
|
15
|
+
};
|
|
16
|
+
export default IExercise;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSONObject } from '@lumino/coreutils';
|
|
2
|
+
import { IIAMProviderName } from './IAMProvidersSpecs';
|
|
3
|
+
export declare function asIAMProviderLinked(iamProvider: any): IIAMProviderLinked;
|
|
4
|
+
export type IIAMProviderLinked = {
|
|
5
|
+
iamProviderName: IIAMProviderName;
|
|
6
|
+
linkedAccount: JSONObject;
|
|
7
|
+
linkedAccountUrl: string;
|
|
8
|
+
linkedAccountId: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export function asIAMProviderLinked(iamProvider) {
|
|
6
|
+
const info = iamProvider.linkedAccount.replaceAll("'", '"');
|
|
7
|
+
return {
|
|
8
|
+
iamProviderName: iamProvider.iam_ProviderName,
|
|
9
|
+
linkedAccount: JSON.parse(info === "" ? "{}" : info),
|
|
10
|
+
linkedAccountUrl: iamProvider.linkedAccountUrl,
|
|
11
|
+
linkedAccountId: iamProvider.linkedAccountId,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export class LinkedInPost {
|
|
6
|
+
iamProvider = 'linkedin';
|
|
7
|
+
urn;
|
|
8
|
+
id;
|
|
9
|
+
/*
|
|
10
|
+
How does LinkedIn URN urn:li:share:7264291213959204866 translate to URL https://www.linkedin.com/feed/update/urn:li:activity:7264291214332456960 ?
|
|
11
|
+
@see Documentation: A successful response will return 201 Created, and the newly created post will be identified by the X-RestLi-Id response header.
|
|
12
|
+
*/
|
|
13
|
+
constructor(urn) {
|
|
14
|
+
this.urn = urn;
|
|
15
|
+
const splits = urn.split(':');
|
|
16
|
+
this.id = splits[3];
|
|
17
|
+
}
|
|
18
|
+
getURL() {
|
|
19
|
+
// return `https://www.linkedin.com/feed/update/urn:li:activity:${this.id}`
|
|
20
|
+
return `https://www.linkedin.com/feed/update/${this.urn}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IIAMProviderName } from './IAMProvidersSpecs';
|
|
2
|
+
export type IGitHubUser = {
|
|
3
|
+
iamProvider: IIAMProviderName;
|
|
4
|
+
login: string;
|
|
5
|
+
avatar_url: string;
|
|
6
|
+
gravatar_id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
name: string;
|
|
9
|
+
company: string;
|
|
10
|
+
blog: string;
|
|
11
|
+
location: string;
|
|
12
|
+
email: string;
|
|
13
|
+
bio: string;
|
|
14
|
+
};
|
|
15
|
+
export type ILinkedInUser = {
|
|
16
|
+
iamProvider: IIAMProviderName;
|
|
17
|
+
sub: string;
|
|
18
|
+
email_verified: boolean;
|
|
19
|
+
name: string;
|
|
20
|
+
given_name: string;
|
|
21
|
+
family_name: string;
|
|
22
|
+
displayName: string;
|
|
23
|
+
email: string;
|
|
24
|
+
picture: string;
|
|
25
|
+
getUrn(): string;
|
|
26
|
+
};
|
|
27
|
+
export type IXUser = {
|
|
28
|
+
iamProvider: IIAMProviderName;
|
|
29
|
+
sub: string;
|
|
30
|
+
email_verified: boolean;
|
|
31
|
+
name: string;
|
|
32
|
+
given_name: string;
|
|
33
|
+
family_name: string;
|
|
34
|
+
email: string;
|
|
35
|
+
picture: string;
|
|
36
|
+
};
|
|
37
|
+
export declare class LinkedInUser implements ILinkedInUser {
|
|
38
|
+
iamProvider: IIAMProviderName;
|
|
39
|
+
sub: string;
|
|
40
|
+
email_verified: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
given_name: string;
|
|
43
|
+
displayName: string;
|
|
44
|
+
family_name: string;
|
|
45
|
+
email: string;
|
|
46
|
+
picture: string;
|
|
47
|
+
constructor(u: any);
|
|
48
|
+
getUrn(): string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
import { asDisplayName } from '../utils';
|
|
6
|
+
export class LinkedInUser {
|
|
7
|
+
iamProvider = 'linkedin';
|
|
8
|
+
sub;
|
|
9
|
+
email_verified;
|
|
10
|
+
name;
|
|
11
|
+
given_name;
|
|
12
|
+
displayName;
|
|
13
|
+
family_name;
|
|
14
|
+
email;
|
|
15
|
+
picture;
|
|
16
|
+
constructor(u) {
|
|
17
|
+
this.sub = u.sub;
|
|
18
|
+
this.email_verified = u.email_verified;
|
|
19
|
+
this.name = u.sub;
|
|
20
|
+
this.given_name = u.given_name;
|
|
21
|
+
this.family_name = u.family_name;
|
|
22
|
+
this.email = u.email;
|
|
23
|
+
this.picture = u.picture;
|
|
24
|
+
this.displayName = asDisplayName(this.given_name, this.family_name);
|
|
25
|
+
}
|
|
26
|
+
getUrn() {
|
|
27
|
+
return `urn:li:person:${this.sub}`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IUser } from './User';
|
|
2
|
+
export type IIAMProviderName = 'bluesky' | 'discord' | 'github' | 'linkedin' | 'okta' | 'x';
|
|
3
|
+
export type IIAMProviderSpec = {
|
|
4
|
+
name: IIAMProviderName;
|
|
5
|
+
oauth2CallbackServerRoute: string;
|
|
6
|
+
oauth2CallbackUIRoute: string;
|
|
7
|
+
accessTokenCookieName: (user: IUser) => string;
|
|
8
|
+
refreshTokenCookieName: string;
|
|
9
|
+
userInfoURL: string;
|
|
10
|
+
tokenRefreshURL: string;
|
|
11
|
+
postShareURL: string;
|
|
12
|
+
registerUploadURL: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class IAMProvidersSpecs {
|
|
15
|
+
private constructor();
|
|
16
|
+
static getProvider(providerIAMProvidersType: any): IIAMProviderSpec;
|
|
17
|
+
static readonly Bluesky: IIAMProviderSpec;
|
|
18
|
+
static readonly GitHub: IIAMProviderSpec;
|
|
19
|
+
static readonly LinkedIn: IIAMProviderSpec;
|
|
20
|
+
static readonly Okta: IIAMProviderSpec;
|
|
21
|
+
}
|
|
22
|
+
export default IAMProvidersSpecs;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export class IAMProvidersSpecs {
|
|
6
|
+
constructor() { }
|
|
7
|
+
static getProvider(providerIAMProvidersType) {
|
|
8
|
+
switch (providerIAMProvidersType) {
|
|
9
|
+
case 'bluesky': {
|
|
10
|
+
return this.Bluesky;
|
|
11
|
+
}
|
|
12
|
+
case 'github': {
|
|
13
|
+
return this.GitHub;
|
|
14
|
+
}
|
|
15
|
+
case 'linkedin': {
|
|
16
|
+
return this.LinkedIn;
|
|
17
|
+
}
|
|
18
|
+
case 'okta': {
|
|
19
|
+
return this.Okta;
|
|
20
|
+
}
|
|
21
|
+
default: {
|
|
22
|
+
// TODO revisit this...
|
|
23
|
+
return this.GitHub;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
static Bluesky = {
|
|
28
|
+
name: 'bluesky',
|
|
29
|
+
oauth2CallbackServerRoute: 'jupyter_iam/oauth2/callback',
|
|
30
|
+
oauth2CallbackUIRoute: '/iam/oauth2/bluesky/callback',
|
|
31
|
+
accessTokenCookieName: (user) => `__datalayer__bluesky_access_token_${user.id}`,
|
|
32
|
+
refreshTokenCookieName: '__datalayer__bluesky_refresh_token',
|
|
33
|
+
userInfoURL: '',
|
|
34
|
+
tokenRefreshURL: '',
|
|
35
|
+
postShareURL: '',
|
|
36
|
+
registerUploadURL: '',
|
|
37
|
+
};
|
|
38
|
+
static GitHub = {
|
|
39
|
+
name: 'github',
|
|
40
|
+
oauth2CallbackServerRoute: 'jupyter_iam/oauth2/callback',
|
|
41
|
+
oauth2CallbackUIRoute: '/iam/oauth2/github/callback',
|
|
42
|
+
accessTokenCookieName: (user) => `__datalayer__github_access_token_${user.id}`,
|
|
43
|
+
refreshTokenCookieName: '__datalayer__github_refresh_token',
|
|
44
|
+
userInfoURL: 'https://api.github.com/user',
|
|
45
|
+
tokenRefreshURL: 'https://github.com/login/oauth/access_token',
|
|
46
|
+
postShareURL: '',
|
|
47
|
+
registerUploadURL: '',
|
|
48
|
+
};
|
|
49
|
+
static LinkedIn = {
|
|
50
|
+
name: 'linkedin',
|
|
51
|
+
oauth2CallbackServerRoute: 'jupyter_iam/oauth2/callback',
|
|
52
|
+
oauth2CallbackUIRoute: '/iam/oauth2/linkedin/callback',
|
|
53
|
+
accessTokenCookieName: (user) => `__datalayer__linkedin_access_token_${user.id}`,
|
|
54
|
+
refreshTokenCookieName: '__datalayer__linkedin_refresh_token',
|
|
55
|
+
userInfoURL: 'https://api.linkedin.com/v2/userinfo',
|
|
56
|
+
tokenRefreshURL: '',
|
|
57
|
+
postShareURL: 'https://api.linkedin.com/v2/ugcPosts',
|
|
58
|
+
registerUploadURL: 'https://api.linkedin.com/v2/assets?action=registerUpload',
|
|
59
|
+
};
|
|
60
|
+
static Okta = {
|
|
61
|
+
name: 'okta',
|
|
62
|
+
oauth2CallbackServerRoute: 'jupyter_iam/oauth2/callback',
|
|
63
|
+
oauth2CallbackUIRoute: '/iam/oauth2/linkedin/callback',
|
|
64
|
+
accessTokenCookieName: (user) => `__datalayer__okta_access_token_${user.id}`,
|
|
65
|
+
refreshTokenCookieName: '__datalayer__okta_refresh_token',
|
|
66
|
+
userInfoURL: 'https://trial-4368308.okta.com/oauth2/default/v1/userinfo',
|
|
67
|
+
tokenRefreshURL: '',
|
|
68
|
+
postShareURL: '',
|
|
69
|
+
registerUploadURL: '',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export default IAMProvidersSpecs;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const asToken: (s: any) => IIAMToken;
|
|
2
|
+
export type IIAMTokenVariant = 'user_token';
|
|
3
|
+
export type IIAMToken = {
|
|
4
|
+
id: string;
|
|
5
|
+
variant: IIAMTokenVariant;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
value: string;
|
|
9
|
+
expirationDate: Date;
|
|
10
|
+
};
|
|
11
|
+
export default IIAMToken;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export const asToken = (s) => {
|
|
6
|
+
return {
|
|
7
|
+
id: s.uid,
|
|
8
|
+
variant: s.variant_s,
|
|
9
|
+
name: s.name_s,
|
|
10
|
+
expirationDate: new Date(s.expiration_ts_dt),
|
|
11
|
+
description: s.description_t,
|
|
12
|
+
value: s.value_s,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class Inbound implements IInbound {
|
|
2
|
+
id: string;
|
|
3
|
+
subType: string;
|
|
4
|
+
handle: string;
|
|
5
|
+
payloadJson: string;
|
|
6
|
+
creationDate?: Date;
|
|
7
|
+
lastUpdateDate?: Date;
|
|
8
|
+
constructor(u: any);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Convert the raw user object to {@link IInbound}.
|
|
12
|
+
*
|
|
13
|
+
* @param u Raw user object from DB
|
|
14
|
+
* @returns Inbound
|
|
15
|
+
*/
|
|
16
|
+
export declare function asInbound(u: any): IInbound;
|
|
17
|
+
export type IInbound = {
|
|
18
|
+
id: string;
|
|
19
|
+
subType: string;
|
|
20
|
+
handle: string;
|
|
21
|
+
payloadJson: string;
|
|
22
|
+
creationDate?: Date;
|
|
23
|
+
lastUpdateDate?: Date;
|
|
24
|
+
};
|
|
25
|
+
export default IInbound;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export class Inbound {
|
|
6
|
+
id;
|
|
7
|
+
subType;
|
|
8
|
+
handle;
|
|
9
|
+
payloadJson;
|
|
10
|
+
creationDate;
|
|
11
|
+
lastUpdateDate;
|
|
12
|
+
constructor(u) {
|
|
13
|
+
this.id = u.uid;
|
|
14
|
+
this.subType = u.subType;
|
|
15
|
+
this.handle = u.handle;
|
|
16
|
+
this.payloadJson = u.payloadJson;
|
|
17
|
+
this.creationDate = new Date(u.creationDate);
|
|
18
|
+
this.lastUpdateDate = new Date(u.lastUpdateDate);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Convert the raw user object to {@link IInbound}.
|
|
23
|
+
*
|
|
24
|
+
* @param u Raw user object from DB
|
|
25
|
+
* @returns Inbound
|
|
26
|
+
*/
|
|
27
|
+
export function asInbound(u) {
|
|
28
|
+
return new Inbound(u);
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IUser } from "./User";
|
|
2
|
+
import { IContact } from "./Contact";
|
|
3
|
+
export declare const asInvite: (i: any) => IInvite;
|
|
4
|
+
export type IInvite = {
|
|
5
|
+
id: string;
|
|
6
|
+
token?: string;
|
|
7
|
+
from?: IUser;
|
|
8
|
+
to: Partial<IContact>;
|
|
9
|
+
sentDate: Date;
|
|
10
|
+
joinDate?: Date;
|
|
11
|
+
message: string;
|
|
12
|
+
brand: string;
|
|
13
|
+
};
|
|
14
|
+
export default IInvite;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
import { asDisplayName, namesAsInitials } from "../utils";
|
|
6
|
+
export const asInvite = (i) => {
|
|
7
|
+
const to = {
|
|
8
|
+
id: i.to_contact_uid,
|
|
9
|
+
email: i.to_email_s,
|
|
10
|
+
firstName: i.to_first_name_t,
|
|
11
|
+
lastName: i.to_last_name_t,
|
|
12
|
+
initials: namesAsInitials(i.to_first_name_t, i.to_last_name_t),
|
|
13
|
+
displayName: asDisplayName(i.to_first_name_t, i.to_last_name_t),
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
id: '',
|
|
17
|
+
token: i.token_s,
|
|
18
|
+
to,
|
|
19
|
+
message: i.message_t,
|
|
20
|
+
sentDate: new Date(i.sent_ts_dt),
|
|
21
|
+
joinDate: i.join_ts_dt ? new Date(i.join_ts_dt) : undefined,
|
|
22
|
+
brand: i.brand_s ?? 'datalayer',
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ISpaceItem } from "./SpaceItem";
|
|
2
|
+
import { IUser } from "./User";
|
|
3
|
+
import { IAnyOrganization } from "./Organization";
|
|
4
|
+
import { IAnySpace } from "./Space";
|
|
5
|
+
import { IItemType } from "./ItemType";
|
|
6
|
+
export type IAnyItem = ISpaceItem;
|
|
7
|
+
export type IItem = {
|
|
8
|
+
id: string;
|
|
9
|
+
type: IItemType;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
public: boolean;
|
|
13
|
+
creationDate: Date;
|
|
14
|
+
lastUpdateDate?: Date;
|
|
15
|
+
lastPublicationDate?: Date;
|
|
16
|
+
owner: IUser;
|
|
17
|
+
space: Partial<IAnySpace>;
|
|
18
|
+
organization: Partial<IAnyOrganization>;
|
|
19
|
+
};
|
|
20
|
+
export default IItem;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type IItemType = 'assignment' | 'authoring' | 'cell' | 'content' | 'credits' | 'dataset' | 'datasource' | 'document' | 'documentation' | 'environment' | 'exercise' | 'growth' | 'home' | 'invite' | 'lesson' | 'library' | 'mail' | 'management' | 'notebook' | 'onboarding' | 'organization' | 'page' | 'runtime' | 'runtime-snapshot' | 'settings' | 'share' | 'space' | 'storage' | 'success' | 'support' | 'tag' | 'team' | 'usage' | 'user' | 'undefined';
|
|
2
|
+
export default IItemType;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
export const LANDING_ANIMATION_DELAY_SEC = 3;
|
|
6
|
+
export const LANDING_ROLES = [
|
|
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
|
+
];
|
|
20
|
+
export const LANDING_STUDIO_EASES = [
|
|
21
|
+
"π§βπ» real-time editing",
|
|
22
|
+
"β¨ AI-powered content",
|
|
23
|
+
"π€ version control efficiency",
|
|
24
|
+
"π real-time synchronisation",
|
|
25
|
+
"βοΈ amazing content experience",
|
|
26
|
+
"π whiteboard collaboration",
|
|
27
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExercise } from './Exercise';
|
|
2
|
+
import { IDataset } from './Dataset';
|
|
3
|
+
export type LibraryType = 'public' | 'private';
|
|
4
|
+
export type Library = {
|
|
5
|
+
id: string;
|
|
6
|
+
type: LibraryType;
|
|
7
|
+
exercises: Array<IExercise>;
|
|
8
|
+
datasets: Array<IDataset>;
|
|
9
|
+
};
|
|
10
|
+
export default Library;
|