@datalayer/core 0.0.3 β 0.0.5
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 +112 -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 +69 -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 +26 -17
- package/lib/state/substates/DatasourceState.js +1 -1
- package/lib/state/substates/IAMState.d.ts +4 -0
- package/lib/state/substates/IAMState.js +39 -23
- 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 +11 -6
- 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/lib/utils/logger.d.ts +16 -0
- package/lib/utils/logger.js +52 -0
- package/package.json +49 -5
- package/lib/__tests__/App.test.js +0 -17
- /package/lib/{__tests__/App.test.d.ts β examples/main.d.ts} +0 -0
|
@@ -25,10 +25,10 @@ export const ECHART_MOCK_1 = {
|
|
|
25
25
|
export const ECHART_MOCK_2 = {
|
|
26
26
|
xAxis: {
|
|
27
27
|
type: 'category',
|
|
28
|
-
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
|
28
|
+
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
29
29
|
},
|
|
30
30
|
yAxis: {
|
|
31
|
-
type: 'value'
|
|
31
|
+
type: 'value',
|
|
32
32
|
},
|
|
33
33
|
series: [
|
|
34
34
|
{
|
|
@@ -37,35 +37,35 @@ export const ECHART_MOCK_2 = {
|
|
|
37
37
|
{
|
|
38
38
|
value: 200,
|
|
39
39
|
itemStyle: {
|
|
40
|
-
color: '#a90000'
|
|
41
|
-
}
|
|
40
|
+
color: '#a90000',
|
|
41
|
+
},
|
|
42
42
|
},
|
|
43
43
|
150,
|
|
44
44
|
80,
|
|
45
45
|
70,
|
|
46
46
|
110,
|
|
47
|
-
130
|
|
47
|
+
130,
|
|
48
48
|
],
|
|
49
|
-
type: 'bar'
|
|
50
|
-
}
|
|
51
|
-
]
|
|
49
|
+
type: 'bar',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
52
|
};
|
|
53
53
|
export const ECHART_MOCK_3 = {
|
|
54
54
|
title: [
|
|
55
55
|
{
|
|
56
|
-
text: 'Radial Polar Bar Label Position (middle)'
|
|
57
|
-
}
|
|
56
|
+
text: 'Radial Polar Bar Label Position (middle)',
|
|
57
|
+
},
|
|
58
58
|
],
|
|
59
59
|
polar: {
|
|
60
|
-
radius: [30, '80%']
|
|
60
|
+
radius: [30, '80%'],
|
|
61
61
|
},
|
|
62
62
|
radiusAxis: {
|
|
63
|
-
max: 4
|
|
63
|
+
max: 4,
|
|
64
64
|
},
|
|
65
65
|
angleAxis: {
|
|
66
66
|
type: 'category',
|
|
67
67
|
data: ['a', 'b', 'c', 'd'],
|
|
68
|
-
startAngle: 75
|
|
68
|
+
startAngle: 75,
|
|
69
69
|
},
|
|
70
70
|
tooltip: {},
|
|
71
71
|
series: {
|
|
@@ -75,28 +75,28 @@ export const ECHART_MOCK_3 = {
|
|
|
75
75
|
label: {
|
|
76
76
|
show: true,
|
|
77
77
|
position: 'middle',
|
|
78
|
-
formatter: '{b}: {c}'
|
|
79
|
-
}
|
|
78
|
+
formatter: '{b}: {c}',
|
|
79
|
+
},
|
|
80
80
|
},
|
|
81
|
-
animation: true
|
|
81
|
+
animation: true,
|
|
82
82
|
};
|
|
83
83
|
export const CHART_4 = {
|
|
84
84
|
grid: { top: 20, right: 40, bottom: 20, left: 40 },
|
|
85
85
|
xAxis: {
|
|
86
|
-
type:
|
|
87
|
-
data: [
|
|
86
|
+
type: 'category',
|
|
87
|
+
data: ['Item 1', 'Item 2', 'Item 3', 'Item 4', 'Item 5'],
|
|
88
88
|
},
|
|
89
89
|
yAxis: {
|
|
90
|
-
type:
|
|
90
|
+
type: 'value',
|
|
91
91
|
},
|
|
92
92
|
series: [
|
|
93
93
|
{
|
|
94
94
|
data: [400, 300, 350, 200, 280],
|
|
95
|
-
type:
|
|
96
|
-
smooth: true
|
|
97
|
-
}
|
|
95
|
+
type: 'bar',
|
|
96
|
+
smooth: true,
|
|
97
|
+
},
|
|
98
98
|
],
|
|
99
99
|
tooltip: {
|
|
100
|
-
trigger:
|
|
101
|
-
}
|
|
100
|
+
trigger: 'axis',
|
|
101
|
+
},
|
|
102
102
|
};
|
|
@@ -3,40 +3,40 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
|
-
import { Box, Link, Text, LabelGroup, Label, ActionMenu, ActionList } from
|
|
7
|
-
import { ArrowRightIcon, CloudIcon, StarIcon, DotFillIcon, RepoForkedIcon, LinkIcon } from
|
|
8
|
-
import { ReactJsIcon } from
|
|
9
|
-
import { lazyWithPreload, WithSuspense } from
|
|
10
|
-
import { ECHART_MOCK_1, ECHART_MOCK_2, ECHART_MOCK_3, FlashMock } from
|
|
11
|
-
const ReactECharts = WithSuspense(lazyWithPreload(() => import(
|
|
6
|
+
import { Box, Link, Text, LabelGroup, Label, ActionMenu, ActionList, } from '@primer/react';
|
|
7
|
+
import { ArrowRightIcon, CloudIcon, StarIcon, DotFillIcon, RepoForkedIcon, LinkIcon, } from '@primer/octicons-react';
|
|
8
|
+
import { ReactJsIcon } from '@datalayer/icons-react';
|
|
9
|
+
import { lazyWithPreload, WithSuspense } from '../../utils';
|
|
10
|
+
import { ECHART_MOCK_1, ECHART_MOCK_2, ECHART_MOCK_3, FlashMock, } from '../../mocks';
|
|
11
|
+
const ReactECharts = WithSuspense(lazyWithPreload(() => import('echarts-for-react')), true);
|
|
12
12
|
export const DashboardMock = () => {
|
|
13
13
|
return (_jsxs(_Fragment, { children: [_jsx(Box, { mb: 3, children: _jsx(FlashMock, {}) }), _jsxs(Box, { sx: {
|
|
14
|
-
display:
|
|
15
|
-
gridTemplateColumns:
|
|
14
|
+
display: 'grid',
|
|
15
|
+
gridTemplateColumns: '1fr 1fr 1fr',
|
|
16
16
|
gap: 4,
|
|
17
17
|
}, children: [_jsxs(Box, { sx: {
|
|
18
|
-
gridColumn:
|
|
19
|
-
minHeight:
|
|
18
|
+
gridColumn: '1 / 3',
|
|
19
|
+
minHeight: '200px',
|
|
20
20
|
}, children: [_jsxs(Box, { sx: {
|
|
21
|
-
display:
|
|
22
|
-
alignItems:
|
|
23
|
-
justifyContent:
|
|
24
|
-
paddingRight: 4
|
|
25
|
-
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft:
|
|
26
|
-
display:
|
|
27
|
-
gridTemplateColumns:
|
|
21
|
+
display: 'flex',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
justifyContent: 'space-between',
|
|
24
|
+
paddingRight: 4,
|
|
25
|
+
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft: '4px solid #28b899', paddingLeft: 2 }, children: "My latest work" }), _jsxs(Link, { children: ["View all work", _jsx(ArrowRightIcon, {})] })] }), _jsxs(Box, { sx: {
|
|
26
|
+
display: 'grid',
|
|
27
|
+
gridTemplateColumns: '1fr 1fr',
|
|
28
28
|
gap: 4,
|
|
29
29
|
}, children: [_jsxs(Box, { sx: {
|
|
30
|
-
borderColor:
|
|
31
|
-
borderStyle:
|
|
32
|
-
borderWidth:
|
|
33
|
-
borderRadius:
|
|
30
|
+
borderColor: 'border.default',
|
|
31
|
+
borderStyle: 'solid',
|
|
32
|
+
borderWidth: '1',
|
|
33
|
+
borderRadius: '2',
|
|
34
34
|
padding: 4,
|
|
35
|
-
}, children: [_jsxs(Text, { as: "h3", sx: { paddingBottom: 2 }, children: ["clouder ", _jsx(Label, { children: "Public" })] }), _jsxs(Text, { as: "p", sx: { color:
|
|
35
|
+
}, children: [_jsxs(Text, { as: "h3", sx: { paddingBottom: 2 }, children: ["clouder ", _jsx(Label, { children: "Public" })] }), _jsxs(Text, { as: "p", sx: { color: 'fg.subtle', fontWeight: 'semibold' }, children: [_jsx(CloudIcon
|
|
36
36
|
// sx={{ margin: "0 4px" }}
|
|
37
37
|
, {}), "Create, manage and share Kubernetes clusters."] }), _jsxs(LabelGroup, { sx: { paddingTop: 2, paddingBottom: 2 }, children: [_jsx(Label, { variant: "accent", children: "Kubernetes" }), _jsx(Label, { variant: "accent", children: "cloud" }), _jsx(Label, { variant: "accent", children: "kubernets-cluster" }), _jsx(Label, { variant: "accent", children: "datalayer" })] }), _jsxs(Text, { as: "p", sx: {
|
|
38
|
-
color:
|
|
39
|
-
|
|
38
|
+
color: 'fg.subtle',
|
|
39
|
+
'> *': { paddingLeft: 1, paddingRight: 1 },
|
|
40
40
|
}, children: [_jsxs(Text, { children: [_jsx(DotFillIcon
|
|
41
41
|
// sx={{
|
|
42
42
|
// fill: "#4f729d",
|
|
@@ -48,71 +48,71 @@ export const DashboardMock = () => {
|
|
|
48
48
|
, {}), "3"] }), _jsxs(Text, { children: [_jsx(StarIcon
|
|
49
49
|
// sx={{ marginRight: 1, marginBottom: "3px" }}
|
|
50
50
|
, {}), "11"] })] })] }), _jsxs(Box, { sx: {
|
|
51
|
-
borderColor:
|
|
52
|
-
borderStyle:
|
|
53
|
-
borderWidth:
|
|
54
|
-
borderRadius:
|
|
51
|
+
borderColor: 'border.default',
|
|
52
|
+
borderStyle: 'solid',
|
|
53
|
+
borderWidth: '1',
|
|
54
|
+
borderRadius: '2',
|
|
55
55
|
padding: 4,
|
|
56
|
-
}, children: [_jsxs(Text, { as: "h3", sx: { paddingBottom: 2 }, children: ["jupyter-ui ", _jsx(Label, { children: "Public" })] }), _jsxs(Text, { as: "p", children: [_jsx(ReactJsIcon, { style: { margin:
|
|
57
|
-
color:
|
|
58
|
-
|
|
56
|
+
}, children: [_jsxs(Text, { as: "h3", sx: { paddingBottom: 2 }, children: ["jupyter-ui ", _jsx(Label, { children: "Public" })] }), _jsxs(Text, { as: "p", children: [_jsx(ReactJsIcon, { style: { margin: '0 4px' } }), "React.js components 100% compatible with Jupyter.", ' ', _jsx(Link, { href: "https://jupyter-ui-storybook.datalayer.tech", children: "https://jupyter-ui-storybook.datalayer.tech" })] }), _jsxs(LabelGroup, { sx: { paddingTop: 2, paddingBottom: 2 }, children: [_jsx(Label, { variant: "accent", children: "data-science" }), _jsx(Label, { variant: "accent", children: "data" }), _jsx(Label, { variant: "accent", children: "ui" }), _jsx(Label, { variant: "accent", children: "jupyter" }), _jsx(Label, { children: "+4" })] }), _jsxs(Text, { as: "p", sx: {
|
|
57
|
+
color: 'fg.subtle',
|
|
58
|
+
'> *': { paddingLeft: 1, paddingRight: 1 },
|
|
59
59
|
}, children: [_jsxs(Text, { children: [_jsx(DotFillIcon
|
|
60
60
|
/*
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
sx={{
|
|
62
|
+
fill: "#4f729d",
|
|
63
|
+
marginRight: 1,
|
|
64
|
+
marginBottom: "3px",
|
|
65
|
+
}}
|
|
66
|
+
*/
|
|
67
67
|
, {}), "Typescript"] }), _jsxs(Text, { children: [_jsx(RepoForkedIcon
|
|
68
68
|
// sx={{ marginRight: 1, marginBottom: "3px" }}
|
|
69
69
|
, {}), "3"] }), _jsxs(Text, { children: [_jsx(StarIcon
|
|
70
70
|
// sx={{ marginRight: 1, marginBottom: "3px" }}
|
|
71
71
|
, {}), "11"] })] })] })] })] }), _jsxs(Box, { sx: {
|
|
72
|
-
gridColumn:
|
|
73
|
-
gridRow:
|
|
74
|
-
minHeight:
|
|
72
|
+
gridColumn: '3 / 4',
|
|
73
|
+
gridRow: '1 / 3',
|
|
74
|
+
minHeight: '200px',
|
|
75
75
|
}, children: [_jsxs(Box, { sx: {
|
|
76
|
-
display:
|
|
77
|
-
alignItems:
|
|
78
|
-
justifyContent:
|
|
79
|
-
paddingRight: 4
|
|
80
|
-
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft:
|
|
81
|
-
borderColor:
|
|
82
|
-
borderStyle:
|
|
83
|
-
borderWidth:
|
|
84
|
-
borderRadius:
|
|
85
|
-
padding: 4
|
|
76
|
+
display: 'flex',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
justifyContent: 'space-between',
|
|
79
|
+
paddingRight: 4,
|
|
80
|
+
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft: '4px solid #28b899', paddingLeft: 2 }, children: "Usage" }), _jsxs(Link, { children: ["More Usage", _jsx(ArrowRightIcon, {})] })] }), _jsxs(Box, { sx: {
|
|
81
|
+
borderColor: 'border.default',
|
|
82
|
+
borderStyle: 'solid',
|
|
83
|
+
borderWidth: '1',
|
|
84
|
+
borderRadius: '2',
|
|
85
|
+
padding: 4,
|
|
86
86
|
}, children: [_jsxs(Box, { sx: {
|
|
87
|
-
display:
|
|
88
|
-
flexDirection:
|
|
89
|
-
alignItems:
|
|
90
|
-
}, children: [_jsx(Text, { as: "h3", sx: { marginRight:
|
|
91
|
-
gridColumn:
|
|
92
|
-
minHeight:
|
|
87
|
+
display: 'inline-flex',
|
|
88
|
+
flexDirection: 'row',
|
|
89
|
+
alignItems: 'center',
|
|
90
|
+
}, children: [_jsx(Text, { as: "h3", sx: { marginRight: '20px' }, children: "Kernels Activity" }), _jsxs(ActionMenu, { children: [_jsxs(ActionMenu.Button, { children: [_jsx(Box, { sx: { color: 'fg.muted', display: 'inline-block' }, children: "View:" }), ' ', 'All kernels'] }), _jsx(ActionMenu.Overlay, { width: "auto", children: _jsx(ActionList, { selectionVariant: "single", children: _jsx(ActionList.Item, { selected: true, children: "All kernels" }) }) })] })] }), _jsx(Text, { as: "h3", children: "Credits usage" }), _jsx(Text, { as: "p", sx: { color: 'fg.subtle' }, children: "Amount today" }), _jsx(Text, { as: "p", sx: { color: 'fg.subtle' }, children: "Balance yesterday" }), _jsx(Text, { as: "h3", children: "Last invoice" }), _jsx(Text, { as: "p", sx: { color: 'fg.subtle', fontSize: '3', fontWeight: 'bold' }, children: "$216" })] })] }), _jsxs(Box, { sx: {
|
|
91
|
+
gridColumn: '1 / 3',
|
|
92
|
+
minHeight: '200px',
|
|
93
93
|
}, children: [_jsxs(Box, { sx: {
|
|
94
|
-
display:
|
|
95
|
-
alignItems:
|
|
96
|
-
justifyContent:
|
|
97
|
-
paddingRight: 4
|
|
98
|
-
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft:
|
|
99
|
-
borderColor:
|
|
100
|
-
borderStyle:
|
|
101
|
-
borderWidth:
|
|
102
|
-
borderRadius:
|
|
103
|
-
display:
|
|
104
|
-
gridTemplateColumns:
|
|
105
|
-
|
|
106
|
-
borderRightColor:
|
|
107
|
-
borderRightStyle:
|
|
108
|
-
borderRightWidth:
|
|
94
|
+
display: 'flex',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
justifyContent: 'space-between',
|
|
97
|
+
paddingRight: 4,
|
|
98
|
+
}, children: [_jsx(Text, { as: "h2", sx: { borderLeft: '4px solid #28b899', paddingLeft: 2 }, children: "Trending Notebooks" }), _jsxs(Link, { children: ["All Notebooks", _jsx(ArrowRightIcon, {})] })] }), _jsxs(Box, { sx: {
|
|
99
|
+
borderColor: 'border.default',
|
|
100
|
+
borderStyle: 'solid',
|
|
101
|
+
borderWidth: '1',
|
|
102
|
+
borderRadius: '2',
|
|
103
|
+
display: 'grid',
|
|
104
|
+
gridTemplateColumns: '1fr 1fr',
|
|
105
|
+
'> :not(:last-child)': {
|
|
106
|
+
borderRightColor: 'border.default',
|
|
107
|
+
borderRightStyle: 'solid',
|
|
108
|
+
borderRightWidth: '1',
|
|
109
109
|
},
|
|
110
110
|
}, children: [_jsxs(Box, { sx: {
|
|
111
111
|
padding: 4,
|
|
112
|
-
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color:
|
|
112
|
+
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color: 'fg.subtle' }, children: "Subtitle comes here" }), _jsxs(Box, { sx: { height: '300px', maxWidth: '380px' }, children: [_jsx(ReactECharts, { option: ECHART_MOCK_1 }), ";"] }), _jsxs(Text, { as: "p", sx: { display: 'flex', justifyContent: 'space-between' }, children: [_jsx(Link, { children: "Link to somewhere" }), _jsxs(Link, { children: ["Second link", _jsx(LinkIcon, {})] })] })] }), _jsxs(Box, { sx: {
|
|
113
113
|
padding: 4,
|
|
114
|
-
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color:
|
|
114
|
+
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color: 'fg.subtle' }, children: "Subtitle comes here" }), _jsxs(Box, { sx: { height: '300px', maxWidth: '380px' }, children: [_jsx(ReactECharts, { option: ECHART_MOCK_3 }), ";"] }), _jsxs(Text, { as: "p", sx: { display: 'flex', justifyContent: 'space-between' }, children: [_jsx(Link, { children: "Link to somewhere" }), _jsxs(Link, { children: ["Second link", _jsx(LinkIcon, {})] })] })] }), _jsxs(Box, { sx: {
|
|
115
115
|
padding: 4,
|
|
116
|
-
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color:
|
|
116
|
+
}, children: [_jsx(Text, { as: "h3", children: "Notebook name abc" }), _jsx(Text, { sx: { color: 'fg.subtle' }, children: "Subtitle comes here" }), _jsxs(Box, { sx: { height: '300px', maxWidth: '380px' }, children: [_jsx(ReactECharts, { option: ECHART_MOCK_2 }), ";"] }), _jsxs(Text, { as: "p", sx: { display: 'flex', justifyContent: 'space-between' }, children: [_jsx(Link, { children: "Link to somewhere" }), _jsxs(Link, { children: ["Second link", _jsx(LinkIcon, {})] })] })] })] })] })] })] }));
|
|
117
117
|
};
|
|
118
118
|
export default DashboardMock;
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
import { useState } from 'react';
|
|
7
|
-
import { Box, FormControl, TextInputWithTokens, Autocomplete, Select, Textarea, Heading } from '@primer/react';
|
|
7
|
+
import { Box, FormControl, TextInputWithTokens, Autocomplete, Select, Textarea, Heading, } from '@primer/react';
|
|
8
8
|
export const FormMock = (props) => {
|
|
9
9
|
const { title } = props;
|
|
10
10
|
const [tokens, setTokens] = useState([
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
|
-
import { Box, LabelGroup, ActionMenu, ActionList, IconButton, Label, RelativeTime } from '@primer/react';
|
|
6
|
+
import { Box, LabelGroup, ActionMenu, ActionList, IconButton, Label, RelativeTime, } from '@primer/react';
|
|
7
7
|
import { Table, DataTable } from '@primer/react/experimental';
|
|
8
8
|
import { KebabHorizontalIcon, DownloadIcon } from '@primer/octicons-react';
|
|
9
9
|
import { VisuallyHidden } from './../../components/display';
|
package/lib/models/Account.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBaseNotebook } from
|
|
2
|
-
import { IStudentItem } from
|
|
1
|
+
import { IBaseNotebook } from './Notebook';
|
|
2
|
+
import { IStudentItem } from './StudentItem';
|
|
3
3
|
export type IAssignment = IBaseNotebook & {
|
|
4
4
|
type: 'assignment';
|
|
5
5
|
studentItem?: IStudentItem;
|
package/lib/models/Cell.d.ts
CHANGED
package/lib/models/Contact.d.ts
CHANGED
package/lib/models/Contact.js
CHANGED
|
@@ -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 { asContactIAMProvider } from
|
|
5
|
+
import { asContactIAMProvider, } from './ContactIAMProvider';
|
|
6
6
|
import { asContactEvent } from './ContactEvent';
|
|
7
7
|
import { asDisplayName, namesAsInitials } from '../utils';
|
|
8
8
|
export class Contact {
|
|
@@ -36,23 +36,23 @@ export class Contact {
|
|
|
36
36
|
constructor(c) {
|
|
37
37
|
this.id = c.uid;
|
|
38
38
|
this.handle = c.handle;
|
|
39
|
-
this.firstName = c.firstName ??
|
|
40
|
-
this.lastName = c.lastName ??
|
|
41
|
-
this.jobTitle = c.jobTitle ??
|
|
42
|
-
this.email = c.email ??
|
|
43
|
-
this.emailPersonal = c.emailPersonal ??
|
|
44
|
-
this.countryCode = c.countryCode ??
|
|
39
|
+
this.firstName = c.firstName ?? '';
|
|
40
|
+
this.lastName = c.lastName ?? '';
|
|
41
|
+
this.jobTitle = c.jobTitle ?? '';
|
|
42
|
+
this.email = c.email ?? '';
|
|
43
|
+
this.emailPersonal = c.emailPersonal ?? '';
|
|
44
|
+
this.countryCode = c.countryCode ?? '';
|
|
45
45
|
this.initials = namesAsInitials(this.firstName, this.lastName);
|
|
46
46
|
const displayName = asDisplayName(this.firstName, this.lastName);
|
|
47
47
|
this.displayName = displayName || 'β';
|
|
48
48
|
this.text = this.displayName;
|
|
49
|
-
this.avatarUrl = c.avatarUrl ??
|
|
50
|
-
this.affiliation = c.affiliation ??
|
|
51
|
-
this.affiliationUrl = c.affiliationUrl ??
|
|
52
|
-
this.affiliationLinkedinUrl = c.affiliationLinkedinUrl ??
|
|
53
|
-
this.affiliationSecondary = c.affiliationSecondary ??
|
|
54
|
-
this.affiliationTertiary = c.affiliationTertiary ??
|
|
55
|
-
this.notes = c.notes ??
|
|
49
|
+
this.avatarUrl = c.avatarUrl ?? '';
|
|
50
|
+
this.affiliation = c.affiliation ?? '';
|
|
51
|
+
this.affiliationUrl = c.affiliationUrl ?? '';
|
|
52
|
+
this.affiliationLinkedinUrl = c.affiliationLinkedinUrl ?? '';
|
|
53
|
+
this.affiliationSecondary = c.affiliationSecondary ?? '';
|
|
54
|
+
this.affiliationTertiary = c.affiliationTertiary ?? '';
|
|
55
|
+
this.notes = c.notes ?? '';
|
|
56
56
|
this.tags = c.tags ?? [];
|
|
57
57
|
let iamProviders = c.iamProviders ?? [];
|
|
58
58
|
if (!Array.isArray(iamProviders)) {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
export function asContactIAMProvider(iamProvider) {
|
|
6
6
|
return {
|
|
7
7
|
iamProviderName: iamProvider.iamProviderName,
|
|
8
|
-
linkedAccount: iamProvider.linkedAccount ??
|
|
8
|
+
linkedAccount: iamProvider.linkedAccount ?? '',
|
|
9
9
|
linkedAccountUrl: iamProvider.linkedAccountUrl,
|
|
10
|
-
linkedAccountId: iamProvider.linkedAccountId ??
|
|
10
|
+
linkedAccountId: iamProvider.linkedAccountId ?? '',
|
|
11
11
|
isConnected: iamProvider.isConnected ?? false,
|
|
12
12
|
};
|
|
13
13
|
}
|
package/lib/models/Course.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IBaseSpace } from
|
|
2
|
-
import { Instructor } from
|
|
3
|
-
import { IStudent } from
|
|
4
|
-
import { ISchool } from
|
|
5
|
-
import { ISpace } from
|
|
6
|
-
import { ISpaceItem } from
|
|
1
|
+
import { IBaseSpace } from './Space';
|
|
2
|
+
import { Instructor } from './Instructor';
|
|
3
|
+
import { IStudent } from './Student';
|
|
4
|
+
import { ISchool } from './School';
|
|
5
|
+
import { ISpace } from './Space';
|
|
6
|
+
import { ISpaceItem } from './SpaceItem';
|
|
7
7
|
export type ICourse = IBaseSpace & {
|
|
8
8
|
type: 'space';
|
|
9
|
-
variant:
|
|
9
|
+
variant: 'course';
|
|
10
10
|
seedSpace?: ISpace;
|
|
11
11
|
school?: ISchool;
|
|
12
12
|
instructor?: Instructor;
|
package/lib/models/Dataset.d.ts
CHANGED
package/lib/models/Dean.d.ts
CHANGED
package/lib/models/Document.d.ts
CHANGED
package/lib/models/Exercise.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export function asIAMProviderLinked(iamProvider) {
|
|
|
6
6
|
const info = iamProvider.linkedAccount.replaceAll("'", '"');
|
|
7
7
|
return {
|
|
8
8
|
iamProviderName: iamProvider.iam_ProviderName,
|
|
9
|
-
linkedAccount: JSON.parse(info ===
|
|
9
|
+
linkedAccount: JSON.parse(info === '' ? '{}' : info),
|
|
10
10
|
linkedAccountUrl: iamProvider.linkedAccountUrl,
|
|
11
11
|
linkedAccountId: iamProvider.linkedAccountId,
|
|
12
12
|
};
|
package/lib/models/Invite.d.ts
CHANGED
package/lib/models/Invite.js
CHANGED
|
@@ -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 { asDisplayName, namesAsInitials } from
|
|
5
|
+
import { asDisplayName, namesAsInitials } from '../utils';
|
|
6
6
|
export const asInvite = (i) => {
|
|
7
7
|
const to = {
|
|
8
8
|
id: i.to_contact_uid,
|
package/lib/models/Item.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ISpaceItem } from
|
|
2
|
-
import { IUser } from
|
|
3
|
-
import { IAnyOrganization } from
|
|
4
|
-
import { IAnySpace } from
|
|
5
|
-
import { IItemType } from
|
|
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
6
|
export type IAnyItem = ISpaceItem;
|
|
7
7
|
export type IItem = {
|
|
8
8
|
id: string;
|
|
@@ -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