@datalayer/jupyter-react 0.0.1
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/LICENSE +21 -0
- package/README.md +56 -0
- package/lib/examples/Example.d.ts +1 -0
- package/lib/examples/Example.js +8 -0
- package/lib/examples/Example.js.map +1 -0
- package/lib/examples/MuiSetup.d.ts +5 -0
- package/lib/examples/MuiSetup.js +13 -0
- package/lib/examples/MuiSetup.js.map +1 -0
- package/lib/examples/bootstrap/All.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/All.bootstrap.js +84 -0
- package/lib/examples/bootstrap/All.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js +12 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js +10 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js +18 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js +12 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js +11 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js +22 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js +7 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js +154 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js +13 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js.map +1 -0
- package/lib/examples/controls/CellControl.d.ts +3 -0
- package/lib/examples/controls/CellControl.js +15 -0
- package/lib/examples/controls/CellControl.js.map +1 -0
- package/lib/examples/controls/CommandsControl.d.ts +3 -0
- package/lib/examples/controls/CommandsControl.js +12 -0
- package/lib/examples/controls/CommandsControl.js.map +1 -0
- package/lib/examples/controls/ConsoleControl.d.ts +3 -0
- package/lib/examples/controls/ConsoleControl.js +12 -0
- package/lib/examples/controls/ConsoleControl.js.map +1 -0
- package/lib/examples/controls/DialogControl.d.ts +2 -0
- package/lib/examples/controls/DialogControl.js +7 -0
- package/lib/examples/controls/DialogControl.js.map +1 -0
- package/lib/examples/controls/FileBrowserControl.d.ts +3 -0
- package/lib/examples/controls/FileBrowserControl.js +12 -0
- package/lib/examples/controls/FileBrowserControl.js.map +1 -0
- package/lib/examples/controls/InitControl.d.ts +2 -0
- package/lib/examples/controls/InitControl.js +7 -0
- package/lib/examples/controls/InitControl.js.map +1 -0
- package/lib/examples/controls/NotebookControl.d.ts +3 -0
- package/lib/examples/controls/NotebookControl.js +16 -0
- package/lib/examples/controls/NotebookControl.js.map +1 -0
- package/lib/examples/controls/OutputControl.d.ts +3 -0
- package/lib/examples/controls/OutputControl.js +7 -0
- package/lib/examples/controls/OutputControl.js.map +1 -0
- package/lib/examples/controls/SettingsControl.d.ts +3 -0
- package/lib/examples/controls/SettingsControl.js +12 -0
- package/lib/examples/controls/SettingsControl.js.map +1 -0
- package/lib/examples/controls/SimpleControl.d.ts +2 -0
- package/lib/examples/controls/SimpleControl.js +7 -0
- package/lib/examples/controls/SimpleControl.js.map +1 -0
- package/lib/examples/controls/TerminalControl.d.ts +3 -0
- package/lib/examples/controls/TerminalControl.js +22 -0
- package/lib/examples/controls/TerminalControl.js.map +1 -0
- package/lib/examples/examples/cell/CellExample.d.ts +2 -0
- package/lib/examples/examples/cell/CellExample.js +42 -0
- package/lib/examples/examples/cell/CellExample.js.map +1 -0
- package/lib/examples/examples/gallery/GalleryExample.d.ts +2 -0
- package/lib/examples/examples/gallery/GalleryExample.js +154 -0
- package/lib/examples/examples/gallery/GalleryExample.js.map +1 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.d.ts +4 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js +156 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoAdapter.css +34 -0
- package/lib/examples/examples/lumino/LuminoAdapter.d.ts +9 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js +70 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoExample.d.ts +2 -0
- package/lib/examples/examples/lumino/LuminoExample.js +10 -0
- package/lib/examples/examples/lumino/LuminoExample.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.d.ts +2 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js +39 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookExample.d.ts +1 -0
- package/lib/examples/examples/notebook/NotebookExample.js +24 -0
- package/lib/examples/examples/notebook/NotebookExample.js.map +1 -0
- package/lib/examples/theme/Layers.d.ts +2 -0
- package/lib/examples/theme/Layers.js +15 -0
- package/lib/examples/theme/Layers.js.map +1 -0
- package/lib/examples/theme/Layers.svg +14 -0
- package/lib/examples/theme/muiLightTheme.d.ts +8 -0
- package/lib/examples/theme/muiLightTheme.js +169 -0
- package/lib/examples/theme/muiLightTheme.js.map +1 -0
- package/lib/examples/theme/vintage.project.json +172 -0
- package/lib/examples/theme/westeros.project.json +168 -0
- package/lib/examples/theme/wonderland.project.json +168 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.js +45 -0
- package/lib/index.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsAttached.d.ts +8 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js +15 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.d.ts +18 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js +76 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.d.ts +15 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js +178 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsComponent.d.ts +4 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js +9 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsManager.d.ts +11 -0
- package/lib/ipywidgets/IpyWidgetsManager.js +71 -0
- package/lib/ipywidgets/IpyWidgetsManager.js.map +1 -0
- package/lib/ipywidgets/plotly/Figure.d.ts +587 -0
- package/lib/ipywidgets/plotly/Figure.js +1697 -0
- package/lib/ipywidgets/plotly/Figure.js.map +1 -0
- package/lib/ipywidgets/plotly/index.d.ts +2 -0
- package/lib/ipywidgets/plotly/index.js +4 -0
- package/lib/ipywidgets/plotly/index.js.map +1 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.d.ts +5 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js +12 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js.map +1 -0
- package/lib/ipywidgets/plotly/version.d.ts +8 -0
- package/lib/ipywidgets/plotly/version.js +16 -0
- package/lib/ipywidgets/plotly/version.js.map +1 -0
- package/lib/jupyter/AuthError.d.ts +7 -0
- package/lib/jupyter/AuthError.js +8 -0
- package/lib/jupyter/AuthError.js.map +1 -0
- package/lib/jupyter/Handlers.d.ts +8 -0
- package/lib/jupyter/Handlers.js +50 -0
- package/lib/jupyter/Handlers.js.map +1 -0
- package/lib/jupyter/Jupyter.d.ts +23 -0
- package/lib/jupyter/Jupyter.js +35 -0
- package/lib/jupyter/Jupyter.js.map +1 -0
- package/lib/jupyter/JupyterConfig.d.ts +37 -0
- package/lib/jupyter/JupyterConfig.js +59 -0
- package/lib/jupyter/JupyterConfig.js.map +1 -0
- package/lib/jupyter/JupyterContext.d.ts +35 -0
- package/lib/jupyter/JupyterContext.js +64 -0
- package/lib/jupyter/JupyterContext.js.map +1 -0
- package/lib/lumino/LuminoAttached.d.ts +9 -0
- package/lib/lumino/LuminoAttached.js +23 -0
- package/lib/lumino/LuminoAttached.js.map +1 -0
- package/lib/lumino/LuminoDetached.d.ts +9 -0
- package/lib/lumino/LuminoDetached.js +13 -0
- package/lib/lumino/LuminoDetached.js.map +1 -0
- package/lib/lumino/LuminoObservable.d.ts +6 -0
- package/lib/lumino/LuminoObservable.js +16 -0
- package/lib/lumino/LuminoObservable.js.map +1 -0
- package/lib/lumino/LuminoReactPortal.d.ts +180 -0
- package/lib/lumino/LuminoReactPortal.js +195 -0
- package/lib/lumino/LuminoReactPortal.js.map +1 -0
- package/lib/lumino/LuminoRedux.d.ts +8 -0
- package/lib/lumino/LuminoRedux.js +2 -0
- package/lib/lumino/LuminoRedux.js.map +1 -0
- package/lib/services/Services.d.ts +17 -0
- package/lib/services/Services.js +41 -0
- package/lib/services/Services.js.map +1 -0
- package/lib/services/kernel/Kernel.d.ts +18 -0
- package/lib/services/kernel/Kernel.js +95 -0
- package/lib/services/kernel/Kernel.js.map +1 -0
- package/lib/services/kernel/KernelModel.d.ts +18 -0
- package/lib/services/kernel/KernelModel.js +52 -0
- package/lib/services/kernel/KernelModel.js.map +1 -0
- package/lib/state/AllState.d.ts +8 -0
- package/lib/state/AllState.js +24 -0
- package/lib/state/AllState.js.map +1 -0
- package/lib/state/InjectableStore.d.ts +9 -0
- package/lib/state/InjectableStore.js +27 -0
- package/lib/state/InjectableStore.js.map +1 -0
- package/lib/state/init/Init.d.ts +3 -0
- package/lib/state/init/Init.js +12 -0
- package/lib/state/init/Init.js.map +1 -0
- package/lib/state/init/InitRedux.d.ts +21 -0
- package/lib/state/init/InitRedux.js +50 -0
- package/lib/state/init/InitRedux.js.map +1 -0
- package/lib/widgets/cell/CellAdapter.css +16 -0
- package/lib/widgets/cell/CellAdapter.d.ts +18 -0
- package/lib/widgets/cell/CellAdapter.js +160 -0
- package/lib/widgets/cell/CellAdapter.js.map +1 -0
- package/lib/widgets/cell/CellLumino.d.ts +9 -0
- package/lib/widgets/cell/CellLumino.js +48 -0
- package/lib/widgets/cell/CellLumino.js.map +1 -0
- package/lib/widgets/cell/CellState.d.ts +22 -0
- package/lib/widgets/cell/CellState.js +79 -0
- package/lib/widgets/cell/CellState.js.map +1 -0
- package/lib/widgets/commands/CommandsAdapter.css +3 -0
- package/lib/widgets/commands/CommandsAdapter.d.ts +9 -0
- package/lib/widgets/commands/CommandsAdapter.js +36 -0
- package/lib/widgets/commands/CommandsAdapter.js.map +1 -0
- package/lib/widgets/commands/CommandsLumino.d.ts +2 -0
- package/lib/widgets/commands/CommandsLumino.js +9 -0
- package/lib/widgets/commands/CommandsLumino.js.map +1 -0
- package/lib/widgets/commands/CommandsState.d.ts +19 -0
- package/lib/widgets/commands/CommandsState.js +50 -0
- package/lib/widgets/commands/CommandsState.js.map +1 -0
- package/lib/widgets/console/ConsoleAdapter.css +4 -0
- package/lib/widgets/console/ConsoleAdapter.d.ts +11 -0
- package/lib/widgets/console/ConsoleAdapter.js +82 -0
- package/lib/widgets/console/ConsoleAdapter.js.map +1 -0
- package/lib/widgets/console/ConsoleLumino.d.ts +2 -0
- package/lib/widgets/console/ConsoleLumino.js +9 -0
- package/lib/widgets/console/ConsoleLumino.js.map +1 -0
- package/lib/widgets/console/ConsoleState.d.ts +19 -0
- package/lib/widgets/console/ConsoleState.js +50 -0
- package/lib/widgets/console/ConsoleState.js.map +1 -0
- package/lib/widgets/dialog/DialogAdapter.css +0 -0
- package/lib/widgets/dialog/DialogAdapter.d.ts +10 -0
- package/lib/widgets/dialog/DialogAdapter.js +19 -0
- package/lib/widgets/dialog/DialogAdapter.js.map +1 -0
- package/lib/widgets/dialog/DialogLumino.d.ts +2 -0
- package/lib/widgets/dialog/DialogLumino.js +13 -0
- package/lib/widgets/dialog/DialogLumino.js.map +1 -0
- package/lib/widgets/editor/CodeMirrorEditor.d.ts +7 -0
- package/lib/widgets/editor/CodeMirrorEditor.js +62 -0
- package/lib/widgets/editor/CodeMirrorEditor.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowser.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowser.js +60 -0
- package/lib/widgets/filebrowser/FileBrowser.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.css +8 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.d.ts +13 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js +267 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js +9 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserState.d.ts +19 -0
- package/lib/widgets/filebrowser/FileBrowserState.js +50 -0
- package/lib/widgets/filebrowser/FileBrowserState.js.map +1 -0
- package/lib/widgets/notebook/NotebookAdapter.css +27 -0
- package/lib/widgets/notebook/NotebookAdapter.d.ts +26 -0
- package/lib/widgets/notebook/NotebookAdapter.js +187 -0
- package/lib/widgets/notebook/NotebookAdapter.js.map +1 -0
- package/lib/widgets/notebook/NotebookCommands.d.ts +7 -0
- package/lib/widgets/notebook/NotebookCommands.js +349 -0
- package/lib/widgets/notebook/NotebookCommands.js.map +1 -0
- package/lib/widgets/notebook/NotebookLumino.d.ts +19 -0
- package/lib/widgets/notebook/NotebookLumino.js +75 -0
- package/lib/widgets/notebook/NotebookLumino.js.map +1 -0
- package/lib/widgets/notebook/NotebookState.d.ts +43 -0
- package/lib/widgets/notebook/NotebookState.js +114 -0
- package/lib/widgets/notebook/NotebookState.js.map +1 -0
- package/lib/widgets/notebook/NotebookToolbar.d.ts +2 -0
- package/lib/widgets/notebook/NotebookToolbar.js +24 -0
- package/lib/widgets/notebook/NotebookToolbar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebar.d.ts +7 -0
- package/lib/widgets/notebook/extension/CellSidebar.js +23 -0
- package/lib/widgets/notebook/extension/CellSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.d.ts +2 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js +47 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js.map +1 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.d.ts +14 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js +20 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.d.ts +21 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js +67 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js.map +1 -0
- package/lib/widgets/outputs/OutputAdapter.css +0 -0
- package/lib/widgets/outputs/OutputAdapter.d.ts +21 -0
- package/lib/widgets/outputs/OutputAdapter.js +75 -0
- package/lib/widgets/outputs/OutputAdapter.js.map +1 -0
- package/lib/widgets/outputs/OutputLumino.d.ts +16 -0
- package/lib/widgets/outputs/OutputLumino.js +56 -0
- package/lib/widgets/outputs/OutputLumino.js.map +1 -0
- package/lib/widgets/outputs/OutputState.d.ts +19 -0
- package/lib/widgets/outputs/OutputState.js +50 -0
- package/lib/widgets/outputs/OutputState.js.map +1 -0
- package/lib/widgets/settings/SettingsAdapter.css +0 -0
- package/lib/widgets/settings/SettingsAdapter.d.ts +10 -0
- package/lib/widgets/settings/SettingsAdapter.js +16 -0
- package/lib/widgets/settings/SettingsAdapter.js.map +1 -0
- package/lib/widgets/settings/SettingsLumino.d.ts +2 -0
- package/lib/widgets/settings/SettingsLumino.js +11 -0
- package/lib/widgets/settings/SettingsLumino.js.map +1 -0
- package/lib/widgets/settings/SettingsState.d.ts +19 -0
- package/lib/widgets/settings/SettingsState.js +50 -0
- package/lib/widgets/settings/SettingsState.js.map +1 -0
- package/lib/widgets/terminal/TerminalAdapter.css +3 -0
- package/lib/widgets/terminal/TerminalAdapter.d.ts +13 -0
- package/lib/widgets/terminal/TerminalAdapter.js +28 -0
- package/lib/widgets/terminal/TerminalAdapter.js.map +1 -0
- package/lib/widgets/terminal/TerminalLumino.d.ts +2 -0
- package/lib/widgets/terminal/TerminalLumino.js +17 -0
- package/lib/widgets/terminal/TerminalLumino.js.map +1 -0
- package/lib/widgets/terminal/TerminalState.d.ts +17 -0
- package/lib/widgets/terminal/TerminalState.js +45 -0
- package/lib/widgets/terminal/TerminalState.js.map +1 -0
- package/package.json +163 -0
- package/style/index.css +3 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Datalayer Inc. All rights reserved.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[](https://datalayer.io)
|
|
2
|
+
|
|
3
|
+
# Jupyter React
|
|
4
|
+
|
|
5
|
+
> ⚛️ [React.js](https://reactjs.org) components to create your data product. Compatible with the [Jupyter](https://jupyter.org) ecosystem.
|
|
6
|
+
|
|
7
|
+
<div align="center" style="text-align: center">
|
|
8
|
+
<img alt="Jupyter React Slate" src="https://jupyter-examples.datalayer.tech/jupyter-react-slate.gif" />
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
You can create for example a custom React.js data product `a-la-google-docs` as shown above. The below image shows a gallery of the available React.js components you ready to be used in you custom React.js application.
|
|
12
|
+
|
|
13
|
+
<div align="center" style="text-align: center">
|
|
14
|
+
<img alt="Jupyter React Gallery" src="https://jupyter-examples.datalayer.tech/jupyter-react-gallery.gif" />
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
Please open [issues](https://github.com/datalayer/jupyter-react/issues) for questions, feature requests, bug reports... We also welcome [pull requests](https://github.com/datalayer/jupyter-react/pulls).
|
|
18
|
+
|
|
19
|
+
Follow the below steps to create your development environment. You will need [Miniconda](https://docs.conda.io/en/latest/miniconda.html) up-and-running on your machine (MacOS or Linux, Windows is not supported as development platform for the time-being).
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Clone this repository.
|
|
23
|
+
git clone https://github.com/datalayer/jupyter-react.git && \
|
|
24
|
+
cd jupyter-react
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Setup your development environment.
|
|
29
|
+
conda deactivate && \
|
|
30
|
+
make env-rm # If you want to reset your environment.
|
|
31
|
+
make env && \
|
|
32
|
+
conda activate jupyter-react
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Clean, install and build.
|
|
37
|
+
make clean install build
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
You can launch an example and hack the source code. The changes will build automatically and will be available in your browser.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Start jupyter-react example.
|
|
44
|
+
echo open http://localhost:3208
|
|
45
|
+
yarn start
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
Install the latest `@datalayer/jupyter-react` npm package and get inspired by the [examples](./src/examples). The typedoc documentation is [available online](https://typedoc.datalayer.io/datalayer/jupyter-react/0.0.1).
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
Copyright (c) 2022 Datalayer, Inc.
|
|
55
|
+
|
|
56
|
+
Released under the terms of the MIT license (see [LICENSE](./LICENSE)).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./../../style/index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Example.js","sourceRoot":"","sources":["../../src/examples/Example.tsx"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,SAAS,MAAM,+BAA+B,CAAC;AAEtD,OAAO,yBAAyB,CAAC;AAEjC;;GAEG;AACH,SAAS,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { create } from 'jss';
|
|
2
|
+
import { jssPreset } from '@mui/styles';
|
|
3
|
+
import createCache from '@emotion/cache';
|
|
4
|
+
const setupMui = (id) => {
|
|
5
|
+
const jss = create(Object.assign(Object.assign({}, jssPreset()), { insertionPoint: document.getElementById(id) }));
|
|
6
|
+
const cache = createCache({
|
|
7
|
+
key: 'css',
|
|
8
|
+
prepend: true,
|
|
9
|
+
});
|
|
10
|
+
return { jss, cache };
|
|
11
|
+
};
|
|
12
|
+
export default setupMui;
|
|
13
|
+
//# sourceMappingURL=MuiSetup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MuiSetup.js","sourceRoot":"","sources":["../../src/examples/MuiSetup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,EAAE;IAC9B,MAAM,GAAG,GAAG,MAAM,iCACb,SAAS,EAAE,KACd,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAgB,IAC1D,CAAC;IACH,MAAM,KAAK,GAAG,WAAW,CAAC;QACxB,GAAG,EAAE,KAAK;QACV,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IACH,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;AACvB,CAAC,CAAA;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { render } from 'react-dom';
|
|
4
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
5
|
+
import muiLightTheme from '../theme/muiLightTheme';
|
|
6
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
7
|
+
import { useJupyter } from '../../jupyter/JupyterContext';
|
|
8
|
+
import CellLumino from '../../widgets/cell/CellLumino';
|
|
9
|
+
import CellControl from './../controls/CellControl';
|
|
10
|
+
import CommandsLumino from '../../widgets/commands/CommandsLumino';
|
|
11
|
+
import CommandsControl from '../controls/CommandsControl';
|
|
12
|
+
import ConsoleLumino from '../../widgets/console/ConsoleLumino';
|
|
13
|
+
import ConsoleControl from '../controls/ConsoleControl';
|
|
14
|
+
// import DialogLumino from './../examples/dialog/DialogLumino';
|
|
15
|
+
import DialogControl from '../controls/DialogControl';
|
|
16
|
+
import FileBrowser from '../../widgets/filebrowser/FileBrowser';
|
|
17
|
+
import FileBrowserLumino from '../../widgets/filebrowser/FileBrowserLumino';
|
|
18
|
+
import FileBrowserControl from '../controls/FileBrowserControl';
|
|
19
|
+
import NotebookLumino from '../../widgets/notebook/NotebookLumino';
|
|
20
|
+
import NotebookControl from '../controls/NotebookControl';
|
|
21
|
+
import OutputLumino from '../../widgets/outputs/OutputLumino';
|
|
22
|
+
import OutputControl from '../controls/OutputControl';
|
|
23
|
+
import Kernel from '../../services/kernel/Kernel';
|
|
24
|
+
import SettingsLumino from '../../widgets/settings/SettingsLumino';
|
|
25
|
+
import SettingsControl from '../controls/SettingsControl';
|
|
26
|
+
import SimpleLumino from '../examples/lumino/LuminoExample';
|
|
27
|
+
import SimpleControl from '../controls/SimpleControl';
|
|
28
|
+
import TerminalLumino from '../../widgets/terminal/TerminalLumino';
|
|
29
|
+
import TerminalControl from '../controls/TerminalControl';
|
|
30
|
+
/**
|
|
31
|
+
* The source to be shown in the examples.
|
|
32
|
+
*/
|
|
33
|
+
const source = `from IPython.display import display
|
|
34
|
+
for i in range(3):
|
|
35
|
+
display('😃 String {} added to the DOM in separated DIV.'.format(i))
|
|
36
|
+
|
|
37
|
+
import numpy as np
|
|
38
|
+
import matplotlib.pyplot as plt
|
|
39
|
+
x1 = np.linspace(0.0, 5.0)
|
|
40
|
+
x2 = np.linspace(0.0, 2.0)
|
|
41
|
+
y1 = np.cos(2 * np.pi * x1) * np.exp(-x1)
|
|
42
|
+
y2 = np.cos(2 * np.pi * x2)
|
|
43
|
+
fig, (ax1, ax2) = plt.subplots(2, 1)
|
|
44
|
+
fig.suptitle('A tale of 2 subplots')
|
|
45
|
+
ax1.plot(x1, y1, 'o-')
|
|
46
|
+
ax1.set_ylabel('Damped oscillation')
|
|
47
|
+
ax2.plot(x2, y2, '.-')
|
|
48
|
+
ax2.set_xlabel('time (s)')
|
|
49
|
+
ax2.set_ylabel('Undamped')
|
|
50
|
+
plt.show()`;
|
|
51
|
+
/**
|
|
52
|
+
* A simple example for the Jupyter React.
|
|
53
|
+
*/
|
|
54
|
+
const Example = () => {
|
|
55
|
+
const { baseUrl, wsUrl } = useJupyter();
|
|
56
|
+
const [kernel,] = useState(new Kernel({ baseUrl, wsUrl }));
|
|
57
|
+
useEffect(() => { window.scrollTo(0, 0); }, []);
|
|
58
|
+
return _jsxs(_Fragment, { children: [_jsx(OutputControl, {}, void 0),
|
|
59
|
+
_jsx(OutputLumino, { showEditor: true, autoRun: false, kernel: kernel, code: "print('Hello Datalayer 👍')" }, void 0),
|
|
60
|
+
_jsx(OutputLumino, { showEditor: true, autoRun: true, kernel: kernel, code: source }, void 0),
|
|
61
|
+
_jsx(OutputLumino, { showEditor: false, autoRun: true, kernel: kernel, code: "print('=> Hello Datalayer again... I am the output of an non-shown editor 👍 <=')" }, void 0),
|
|
62
|
+
_jsx(CellControl, {}, void 0),
|
|
63
|
+
_jsx(CellLumino, { source: source }, void 0),
|
|
64
|
+
_jsx(CommandsControl, {}, void 0),
|
|
65
|
+
_jsx(CommandsLumino, {}, void 0),
|
|
66
|
+
_jsx(ConsoleControl, {}, void 0),
|
|
67
|
+
_jsx(ConsoleLumino, {}, void 0),
|
|
68
|
+
_jsx(DialogControl, {}, void 0),
|
|
69
|
+
_jsx(FileBrowserControl, {}, void 0),
|
|
70
|
+
_jsx(FileBrowser, {}, void 0),
|
|
71
|
+
_jsx(FileBrowserLumino, {}, void 0),
|
|
72
|
+
_jsx(NotebookControl, {}, void 0),
|
|
73
|
+
_jsx(NotebookLumino, { path: 'ping.ipynb', ipywidgets: 'classic' }, void 0),
|
|
74
|
+
_jsx(SettingsControl, {}, void 0),
|
|
75
|
+
_jsx(SettingsLumino, {}, void 0),
|
|
76
|
+
_jsx(SimpleControl, {}, void 0),
|
|
77
|
+
_jsx(SimpleLumino, {}, void 0),
|
|
78
|
+
_jsx(TerminalControl, {}, void 0),
|
|
79
|
+
_jsx(TerminalLumino, {}, void 0)] }, void 0);
|
|
80
|
+
};
|
|
81
|
+
const div = document.createElement('div');
|
|
82
|
+
document.body.appendChild(div);
|
|
83
|
+
render(_jsx(ThemeProvider, Object.assign({ theme: muiLightTheme }, { children: _jsx(Jupyter, Object.assign({ collaborative: true, terminals: true }, { children: _jsx(Example, {}, void 0) }), void 0) }), void 0), div);
|
|
84
|
+
//# sourceMappingURL=All.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"All.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/All.bootstrap.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
4
|
+
import muiLightTheme from '../theme/muiLightTheme';
|
|
5
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
6
|
+
import Layers from '../theme/Layers';
|
|
7
|
+
import CellExample from './../examples/cell/CellExample';
|
|
8
|
+
const div = document.createElement('div');
|
|
9
|
+
document.body.appendChild(div);
|
|
10
|
+
render(_jsx(ThemeProvider, Object.assign({ theme: muiLightTheme }, { children: _jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
11
|
+
_jsx(CellExample, {}, void 0)] }), void 0) }), void 0), div);
|
|
12
|
+
//# sourceMappingURL=Cell.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Cell.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,gCAAgC,CAAC;AAEzD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,KAAC,aAAa,kBAAC,KAAK,EAAE,aAAa,gBACjC,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;YACV,KAAC,WAAW,aAAG,aACP,YACI,EAEhB,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
4
|
+
import Layers from '../theme/Layers';
|
|
5
|
+
import FileBrowserLumino from './../../widgets/filebrowser/FileBrowserLumino';
|
|
6
|
+
const div = document.createElement('div');
|
|
7
|
+
document.body.appendChild(div);
|
|
8
|
+
render(_jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
9
|
+
_jsx(Jupyter, Object.assign({ collaborative: false, terminals: true }, { children: _jsx(FileBrowserLumino, {}, void 0) }), void 0)] }), void 0), div);
|
|
10
|
+
//# sourceMappingURL=FileBrowser.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBrowser.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/FileBrowser.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,iBAAiB,MAAM,+CAA+C,CAAC;AAE9E,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;QACV,KAAC,OAAO,kBAAC,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,gBAC5C,KAAC,iBAAiB,aAAG,YACb,aACF,EAEV,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
|
+
import { CacheProvider } from '@emotion/react';
|
|
5
|
+
import { StylesProvider } from '@mui/styles';
|
|
6
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
7
|
+
import muiLightTheme from '../theme/muiLightTheme';
|
|
8
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
9
|
+
import setupMui from '../MuiSetup';
|
|
10
|
+
import Gallery from '../examples/gallery/GalleryExample';
|
|
11
|
+
const { jss, cache } = setupMui('datalayer-jss-insertion-point');
|
|
12
|
+
const div = document.createElement('div');
|
|
13
|
+
document.body.appendChild(div);
|
|
14
|
+
const Header = () => _jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ variant: "h4", gutterBottom: true }, { children: "Jupyter React Gallery" }), void 0),
|
|
15
|
+
_jsx(Typography, Object.assign({ variant: "subtitle1", gutterBottom: true }, { children: "\u00A9 Datalayer, 2022" }), void 0)] }, void 0);
|
|
16
|
+
render(_jsx(ThemeProvider, Object.assign({ theme: muiLightTheme }, { children: _jsx(CacheProvider, Object.assign({ value: cache }, { children: _jsx(StylesProvider, Object.assign({ jss: jss }, { children: _jsxs(Jupyter, Object.assign({ collaborative: true, terminals: true }, { children: [_jsx(Header, {}, void 0),
|
|
17
|
+
_jsx(Gallery, {}, void 0)] }), void 0) }), void 0) }), void 0) }), void 0), div);
|
|
18
|
+
//# sourceMappingURL=Gallery.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Gallery.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,OAAO,MAAM,oCAAoC,CAAC;AAEzD,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,+BAA+B,CAAC,CAAC;AAEjE,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,MAAM,GAAG,GAAG,EAAE,CAAE,8BAClB,KAAC,UAAU,kBAAC,OAAO,EAAC,IAAI,EAAC,YAAY,yDAExB;QACb,KAAC,UAAU,kBAAC,OAAO,EAAC,WAAW,EAAC,YAAY,0DAE/B,YACZ,CAAA;AAEL,MAAM,CACJ,KAAC,aAAa,kBAAC,KAAK,EAAE,aAAa,gBACjC,KAAC,aAAa,kBAAC,KAAK,EAAE,KAAK,gBACzB,KAAC,cAAc,kBAAC,GAAG,EAAE,GAAG,gBACtB,MAAC,OAAO,kBAAC,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,iBAC3C,KAAC,MAAM,aAAE;oBACT,KAAC,OAAO,aAAE,aACF,YACK,YACH,YACF,EAEhB,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
4
|
+
import IpyWidgetsComponent from '../../ipywidgets/IpyWidgetsComponent';
|
|
5
|
+
import IpyWidgetsExample from '../examples/ipywidgets/IpyWidgetsExample';
|
|
6
|
+
import Layers from '../theme/Layers';
|
|
7
|
+
const div = document.createElement('div');
|
|
8
|
+
document.body.appendChild(div);
|
|
9
|
+
render(_jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
10
|
+
_jsxs(_Fragment, { children: [_jsx("h3", { children: "IPyWidget" }, void 0),
|
|
11
|
+
_jsx(IpyWidgetsComponent, { widget: IpyWidgetsExample }, void 0)] }, void 0)] }), void 0), div);
|
|
12
|
+
//# sourceMappingURL=IPyWidgets.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPyWidgets.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/IPyWidgets.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,sCAAsC,CAAC;AACvE,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;QACV,8BACE,6CAAkB;gBAClB,KAAC,mBAAmB,IAAC,MAAM,EAAE,iBAAiB,WAAG,YAChD,aACK,EAEV,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import LuminoExample from './../examples/lumino/LuminoExample';
|
|
4
|
+
import Jupyter from './../../jupyter/Jupyter';
|
|
5
|
+
import Layers from './../theme/Layers';
|
|
6
|
+
const div = document.createElement('div');
|
|
7
|
+
document.body.appendChild(div);
|
|
8
|
+
render(_jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
9
|
+
_jsx("h3", { children: "Lumino" }, void 0),
|
|
10
|
+
_jsx(LuminoExample, {}, void 0)] }), void 0), div);
|
|
11
|
+
//# sourceMappingURL=Lumino.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lumino.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Lumino.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;QACV,0CAAe;QACf,KAAC,aAAa,aAAE,aACR,EAEV,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { render } from 'react-dom';
|
|
4
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
5
|
+
import NotebookLumino from '../../widgets/notebook/NotebookLumino';
|
|
6
|
+
import NotebookControl from '../controls/NotebookControl';
|
|
7
|
+
import Layers from '../theme/Layers';
|
|
8
|
+
/**
|
|
9
|
+
* A simple example for the Jupyter React.
|
|
10
|
+
*/
|
|
11
|
+
const Example = () => {
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
window.scrollTo(0, 0);
|
|
14
|
+
}, []);
|
|
15
|
+
return (_jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
16
|
+
_jsx(NotebookControl, {}, void 0),
|
|
17
|
+
_jsx(NotebookLumino, { path: 'ping.ipynb', ipywidgets: 'classic' }, void 0)] }), void 0));
|
|
18
|
+
};
|
|
19
|
+
const div = document.createElement('div');
|
|
20
|
+
document.body.appendChild(div);
|
|
21
|
+
render(_jsx(Example, {}, void 0), div);
|
|
22
|
+
//# sourceMappingURL=Notebook.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notebook.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Notebook.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAA;AAEpC;;GAEG;AACH,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;YACV,KAAC,eAAe,aAAG;YACnB,KAAC,cAAc,IACb,IAAI,EAAC,YAAY,EACjB,UAAU,EAAC,SAAS,WACpB,aACM,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,KAAC,OAAO,aAAE,EAEV,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import NotebookExample from '../examples/notebook/NotebookExample';
|
|
4
|
+
const div = document.createElement('div');
|
|
5
|
+
document.body.appendChild(div);
|
|
6
|
+
render(_jsx(NotebookExample, {}, void 0), div);
|
|
7
|
+
//# sourceMappingURL=NotebookCustom.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotebookCustom.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/NotebookCustom.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,eAAe,MAAM,sCAAsC,CAAC;AAEnE,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,KAAC,eAAe,aAAE,EAElB,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { render } from 'react-dom';
|
|
4
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
5
|
+
import muiLightTheme from '../theme/muiLightTheme';
|
|
6
|
+
import { useJupyter } from '../../jupyter/JupyterContext';
|
|
7
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
8
|
+
import OutputLumino from '../../widgets/outputs/OutputLumino';
|
|
9
|
+
import Kernel from '../../services/kernel/Kernel';
|
|
10
|
+
import Layers from '../theme/Layers';
|
|
11
|
+
const SOURCE_1 = `import ipywidgets as widgets
|
|
12
|
+
widgets.IntSlider(
|
|
13
|
+
value=7,
|
|
14
|
+
min=0,
|
|
15
|
+
max=10,
|
|
16
|
+
step=1
|
|
17
|
+
)`;
|
|
18
|
+
/*
|
|
19
|
+
const OUTPUT_1 = (
|
|
20
|
+
[
|
|
21
|
+
{
|
|
22
|
+
"data": {
|
|
23
|
+
"application/vdom.v1+json": {
|
|
24
|
+
"attributes": {},
|
|
25
|
+
"children": [
|
|
26
|
+
{
|
|
27
|
+
"attributes": {},
|
|
28
|
+
"children": [
|
|
29
|
+
"Our Incredibly Declarative Example"
|
|
30
|
+
],
|
|
31
|
+
"tagName": "h1"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"attributes": {},
|
|
35
|
+
"children": [
|
|
36
|
+
"Can you believe we wrote this ",
|
|
37
|
+
{
|
|
38
|
+
"attributes": {},
|
|
39
|
+
"children": [
|
|
40
|
+
"in Python"
|
|
41
|
+
],
|
|
42
|
+
"tagName": "b"
|
|
43
|
+
},
|
|
44
|
+
"?"
|
|
45
|
+
],
|
|
46
|
+
"tagName": "p"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"attributes": {
|
|
50
|
+
"src": "https://media.giphy.com/media/xUPGcguWZHRC2HyBRS/giphy.gif"
|
|
51
|
+
},
|
|
52
|
+
"children": [],
|
|
53
|
+
"tagName": "img"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"attributes": {},
|
|
57
|
+
"children": [
|
|
58
|
+
"What will ",
|
|
59
|
+
{
|
|
60
|
+
"attributes": {},
|
|
61
|
+
"children": [
|
|
62
|
+
"you"
|
|
63
|
+
],
|
|
64
|
+
"tagName": "b"
|
|
65
|
+
},
|
|
66
|
+
" create next?"
|
|
67
|
+
],
|
|
68
|
+
"tagName": "p"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"tagName": "div"
|
|
72
|
+
},
|
|
73
|
+
"text/html": [
|
|
74
|
+
"<div><h1>Our Incredibly Declarative Example</h1><p>Can you believe we wrote this <b>in Python</b>?</p><img src=\"https://media.giphy.com/media/xUPGcguWZHRC2HyBRS/giphy.gif\"></img><p>What will <b>you</b> create next?</p></div>"
|
|
75
|
+
],
|
|
76
|
+
"text/plain": [
|
|
77
|
+
"<div><h1>Our Incredibly Declarative Example</h1><p>Can you believe we wrote this <b>in Python</b>?</p><img src=\"https://media.giphy.com/media/xUPGcguWZHRC2HyBRS/giphy.gif\"></img><p>What will <b>you</b> create next?</p></div>"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"metadata": {},
|
|
81
|
+
"output_type": "display_data"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
) as any;
|
|
85
|
+
*/
|
|
86
|
+
const OUTPUT_2 = ([
|
|
87
|
+
{
|
|
88
|
+
"data": {
|
|
89
|
+
"application/json": {
|
|
90
|
+
"array": [
|
|
91
|
+
1,
|
|
92
|
+
2,
|
|
93
|
+
3
|
|
94
|
+
],
|
|
95
|
+
"bool": true,
|
|
96
|
+
"object": {
|
|
97
|
+
"foo": "bar"
|
|
98
|
+
},
|
|
99
|
+
"string": "string"
|
|
100
|
+
},
|
|
101
|
+
"text/plain": [
|
|
102
|
+
"<IPython.core.display.JSON object>"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"execution_count": 8,
|
|
106
|
+
"metadata": {
|
|
107
|
+
"application/json": {
|
|
108
|
+
"expanded": false,
|
|
109
|
+
"root": "root"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"output_type": "execute_result"
|
|
113
|
+
}
|
|
114
|
+
]);
|
|
115
|
+
/*
|
|
116
|
+
const OUTPUT_3 = [
|
|
117
|
+
{
|
|
118
|
+
"data": {
|
|
119
|
+
"application/vnd.jupyter.widget-view+json": {
|
|
120
|
+
"model_id": "8a70de37cd284b289ac4a54ae95ef622",
|
|
121
|
+
"version_major": 2,
|
|
122
|
+
"version_minor": 0
|
|
123
|
+
},
|
|
124
|
+
"text/plain": [
|
|
125
|
+
"Dropdown(description='Number:', index=1, options=('1', '2', '3'), value='2')"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"execution_count": 3,
|
|
129
|
+
"metadata": {},
|
|
130
|
+
"output_type": "execute_result"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* A simple example for the React Editor.
|
|
136
|
+
*/
|
|
137
|
+
const Example = () => {
|
|
138
|
+
const { baseUrl, wsUrl } = useJupyter();
|
|
139
|
+
const [kernel,] = useState(new Kernel({ baseUrl, wsUrl }));
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
window.scrollTo(0, 0);
|
|
142
|
+
}, []);
|
|
143
|
+
return _jsxs(_Fragment, { children: [_jsx("h3", { children: "Output" }, void 0),
|
|
144
|
+
_jsx(OutputLumino, { initialOutput: OUTPUT_2, showEditor: false, autoRun: false, kernel: kernel }, void 0),
|
|
145
|
+
_jsx("h3", { children: "Simple Output" }, void 0),
|
|
146
|
+
_jsx(OutputLumino, { showEditor: true, autoRun: true, kernel: kernel, code: "print('Hello Datalayer 👍')" }, void 0),
|
|
147
|
+
_jsx("h3", { children: "IPyWidget Output" }, void 0),
|
|
148
|
+
_jsx(OutputLumino, { showEditor: true, autoRun: true, kernel: kernel, code: SOURCE_1 }, void 0)] }, void 0);
|
|
149
|
+
};
|
|
150
|
+
const div = document.createElement('div');
|
|
151
|
+
document.body.appendChild(div);
|
|
152
|
+
render(_jsx(ThemeProvider, Object.assign({ theme: muiLightTheme }, { children: _jsxs(Jupyter, Object.assign({ collaborative: false, terminals: false }, { children: [_jsx(Layers, {}, void 0),
|
|
153
|
+
_jsx(Example, {}, void 0)] }), void 0) }), void 0), div);
|
|
154
|
+
//# sourceMappingURL=Outputs.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outputs.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Outputs.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,QAAQ,GAAG;;;;;;EAMf,CAAA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF,MAAM,QAAQ,GAAG,CACf;IACE;QACC,MAAM,EAAE;YACP,kBAAkB,EAAE;gBACnB,OAAO,EAAE;oBACR,CAAC;oBACD,CAAC;oBACD,CAAC;iBACD;gBACD,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE;oBACT,KAAK,EAAE,KAAK;iBACZ;gBACD,QAAQ,EAAE,QAAQ;aAClB;YACD,YAAY,EAAE;gBACb,oCAAoC;aACpC;SACD;QACD,iBAAiB,EAAE,CAAC;QACpB,UAAU,EAAE;YACX,kBAAkB,EAAE;gBACnB,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,MAAM;aACd;SACD;QACD,aAAa,EAAE,gBAAgB;KAC/B;CACF,CACF,CAAC;AACF;;;;;;;;;;;;;;;;;;EAkBE;AACF;;GAEG;AACH,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,CAAC;IACxC,MAAM,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAC3D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,8BACL,0CAAe;YACf,KAAC,YAAY,IACX,aAAa,EAAE,QAAe,EAC9B,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,MAAM,WACd;YASF,iDAAsB;YACtB,KAAC,YAAY,IACX,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE,IAAI,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,6BAA6B,WACnC;YACF,oDAAyB;YACzB,KAAC,YAAY,IACX,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE,IAAI,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,QAAQ,WACd,YACD,CAAA;AACL,CAAC,CAAA;AAED,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,KAAC,aAAa,kBAAC,KAAK,EAAE,aAAa,gBACjC,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,KAAK,iBAEhB,KAAC,MAAM,aAAG;YACV,KAAC,OAAO,aAAG,aACH,YACI,EAEhB,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { render } from 'react-dom';
|
|
3
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
4
|
+
import muiLightTheme from '../theme/muiLightTheme';
|
|
5
|
+
import Jupyter from '../../jupyter/Jupyter';
|
|
6
|
+
import TerminalLumino from './../../widgets/terminal/TerminalLumino';
|
|
7
|
+
import Layers from '../theme/Layers';
|
|
8
|
+
const Example = () => _jsx(_Fragment, { children: _jsx(TerminalLumino, {}, void 0) }, void 0);
|
|
9
|
+
const div = document.createElement('div');
|
|
10
|
+
document.body.appendChild(div);
|
|
11
|
+
render(_jsx(ThemeProvider, Object.assign({ theme: muiLightTheme }, { children: _jsxs(Jupyter, Object.assign({ collaborative: false, terminals: true }, { children: [_jsx(Layers, {}, void 0),
|
|
12
|
+
_jsx(Example, {}, void 0)] }), void 0) }), void 0), div);
|
|
13
|
+
//# sourceMappingURL=Terminal.bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Terminal.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/Terminal.bootstrap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,4BAClB,KAAC,cAAc,aAAG,WACjB,CAAA;AAEL,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,MAAM,CACJ,KAAC,aAAa,kBAAC,KAAK,EAAE,aAAa,gBACjC,MAAC,OAAO,kBACN,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,IAAI,iBAEf,KAAC,MAAM,aAAG;YACV,KAAC,OAAO,aAAG,aACH,YACI,EAEhB,GAAG,CACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDispatch } from "react-redux";
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
|
+
import Button from '@mui/material/Button';
|
|
5
|
+
import { selectCell, cellActions } from './../../index';
|
|
6
|
+
const CellControl = () => {
|
|
7
|
+
const cell = selectCell();
|
|
8
|
+
const dispatch = useDispatch();
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ variant: "h5", gutterBottom: true }, { children: "Cell Control" }), void 0),
|
|
10
|
+
_jsxs("div", { children: [_jsx(Button, Object.assign({ variant: "contained", color: "primary", onClick: () => dispatch(cellActions.execute.started()) }, { children: "Execute" }), void 0),
|
|
11
|
+
_jsx(Button, Object.assign({ variant: "outlined", color: "secondary", onClick: () => dispatch(cellActions.outputsCount.started(0)) }, { children: "Reset outputs count" }), void 0)] }, void 0),
|
|
12
|
+
_jsxs(Typography, Object.assign({ variant: "subtitle1", gutterBottom: true }, { children: ["Outputs count: ", cell.outputsCount] }), void 0)] }, void 0));
|
|
13
|
+
};
|
|
14
|
+
export default CellControl;
|
|
15
|
+
//# sourceMappingURL=CellControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellControl.js","sourceRoot":"","sources":["../../../src/examples/controls/CellControl.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,GAAa,GAAG,EAAE;IACjC,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC;IAC1B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,OAAO,CACL,8BACE,KAAC,UAAU,kBAAC,OAAO,EAAC,IAAI,EAAC,YAAY,gDAExB;YACb,0BACE,KAAC,MAAM,kBACL,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,qCAG/C;oBACT,KAAC,MAAM,kBACL,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iDAGrD,YACL;YACN,MAAC,UAAU,kBAAC,OAAO,EAAC,WAAW,EAAC,YAAY,0CAC1B,IAAI,CAAC,YAAY,aACtB,YACZ,CACJ,CAAC;AACJ,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import Typography from '@mui/material/Typography';
|
|
3
|
+
// import { useDispatch } from "react-redux";
|
|
4
|
+
// import Button from '@mui/material/Button';
|
|
5
|
+
// import { selectCommands, commandsActions } from './CommandsRedux';
|
|
6
|
+
const CommandControl = () => {
|
|
7
|
+
// const commands = selectCommands();
|
|
8
|
+
// const dispatch = useDispatch();
|
|
9
|
+
return (_jsx(_Fragment, { children: _jsx(Typography, Object.assign({ variant: "h5", gutterBottom: true }, { children: "Commands Control" }), void 0) }, void 0));
|
|
10
|
+
};
|
|
11
|
+
export default CommandControl;
|
|
12
|
+
//# sourceMappingURL=CommandsControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandsControl.js","sourceRoot":"","sources":["../../../src/examples/controls/CommandsControl.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,6CAA6C;AAC7C,6CAA6C;AAC7C,qEAAqE;AAErE,MAAM,cAAc,GAAa,GAAG,EAAE;IACtC,sCAAsC;IACtC,mCAAmC;IACjC,OAAO,CACL,4BACE,KAAC,UAAU,kBAAC,OAAO,EAAC,IAAI,EAAC,YAAY,oDAExB,WAsBZ,CACJ,CAAC;AACJ,CAAC,CAAA;AAED,eAAe,cAAc,CAAC"}
|