@datalayer/jupyter-react 0.0.1 → 0.0.7

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.
Files changed (331) hide show
  1. package/README.md +1 -54
  2. package/lib/{widgets/cell/CellAdapter.css → components/cell/Cell.css} +4 -0
  3. package/lib/components/cell/Cell.d.ts +15 -0
  4. package/lib/components/cell/Cell.js +48 -0
  5. package/lib/{widgets → components}/cell/CellAdapter.d.ts +1 -5
  6. package/lib/{widgets → components}/cell/CellAdapter.js +16 -43
  7. package/lib/components/cell/CellCommands.d.ts +6 -0
  8. package/lib/components/cell/CellCommands.js +37 -0
  9. package/lib/{widgets → components}/cell/CellState.d.ts +6 -6
  10. package/lib/components/cell/CellState.js +45 -0
  11. package/lib/components/commands/Commands.d.ts +2 -0
  12. package/lib/components/commands/Commands.js +8 -0
  13. package/lib/{widgets → components}/commands/CommandsAdapter.css +0 -0
  14. package/lib/{widgets → components}/commands/CommandsAdapter.d.ts +0 -0
  15. package/lib/{widgets → components}/commands/CommandsAdapter.js +0 -1
  16. package/lib/{widgets → components}/commands/CommandsState.d.ts +2 -6
  17. package/lib/components/commands/CommandsState.js +29 -0
  18. package/lib/components/console/Console.d.ts +2 -0
  19. package/lib/components/console/Console.js +8 -0
  20. package/lib/{widgets → components}/console/ConsoleAdapter.css +1 -1
  21. package/lib/{widgets → components}/console/ConsoleAdapter.d.ts +0 -0
  22. package/lib/{widgets → components}/console/ConsoleAdapter.js +12 -9
  23. package/lib/{widgets → components}/console/ConsoleState.d.ts +2 -6
  24. package/lib/components/console/ConsoleState.js +29 -0
  25. package/lib/components/dialog/Dialog.d.ts +2 -0
  26. package/lib/components/dialog/Dialog.js +12 -0
  27. package/lib/{widgets → components}/dialog/DialogAdapter.css +0 -0
  28. package/lib/{widgets → components}/dialog/DialogAdapter.d.ts +3 -3
  29. package/lib/{widgets → components}/dialog/DialogAdapter.js +5 -6
  30. package/lib/{widgets → components}/editor/CodeMirrorEditor.d.ts +0 -0
  31. package/lib/{widgets → components}/editor/CodeMirrorEditor.js +1 -2
  32. package/lib/{widgets → components}/filebrowser/FileBrowser.d.ts +0 -0
  33. package/lib/components/filebrowser/FileBrowser.js +8 -0
  34. package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.css +0 -0
  35. package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.d.ts +0 -0
  36. package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.js +0 -1
  37. package/lib/{widgets → components}/filebrowser/FileBrowserState.d.ts +2 -6
  38. package/lib/components/filebrowser/FileBrowserState.js +29 -0
  39. package/lib/components/filebrowser/FileBrowserTree.d.ts +2 -0
  40. package/lib/{widgets/filebrowser/FileBrowser.js → components/filebrowser/FileBrowserTree.js} +4 -5
  41. package/lib/components/ipywidgets/IpyWidgetsComponent.css +3 -0
  42. package/lib/{ipywidgets → components/ipywidgets}/IpyWidgetsComponent.d.ts +1 -0
  43. package/lib/{ipywidgets → components/ipywidgets}/IpyWidgetsComponent.js +2 -3
  44. package/lib/{widgets/notebook/NotebookAdapter.css → components/notebook/Notebook.css} +1 -1
  45. package/lib/components/notebook/Notebook.d.ts +25 -0
  46. package/lib/components/notebook/Notebook.js +78 -0
  47. package/lib/components/notebook/NotebookAdapter.d.ts +25 -0
  48. package/lib/components/notebook/NotebookAdapter.js +186 -0
  49. package/lib/components/notebook/NotebookCommands.d.ts +38 -0
  50. package/lib/{widgets → components}/notebook/NotebookCommands.js +45 -26
  51. package/lib/{widgets → components}/notebook/NotebookState.d.ts +18 -12
  52. package/lib/components/notebook/NotebookState.js +116 -0
  53. package/lib/{widgets/notebook/extension → components/notebook/content}/CellSidebar.d.ts +3 -2
  54. package/lib/{widgets/notebook/extension → components/notebook/content}/CellSidebar.js +4 -5
  55. package/lib/{widgets/notebook/extension → components/notebook/content}/ContentFactoryWithSidebar.d.ts +2 -2
  56. package/lib/{widgets/notebook/extension → components/notebook/content}/ContentFactoryWithSidebar.js +3 -4
  57. package/lib/{widgets/notebook/extension → components/notebook/content}/NotebookInputPrompt.d.ts +0 -0
  58. package/lib/{widgets/notebook/extension → components/notebook/content}/NotebookInputPrompt.js +0 -1
  59. package/lib/components/notebook/render/marked.d.ts +3 -0
  60. package/lib/components/notebook/render/marked.js +71 -0
  61. package/lib/{widgets/outputs/OutputLumino.d.ts → components/outputs/Output.d.ts} +3 -3
  62. package/lib/{widgets/outputs/OutputLumino.js → components/outputs/Output.js} +10 -11
  63. package/lib/components/outputs/OutputAdapter.css +3 -0
  64. package/lib/{widgets → components}/outputs/OutputAdapter.d.ts +1 -2
  65. package/lib/{widgets → components}/outputs/OutputAdapter.js +3 -9
  66. package/lib/{widgets → components}/outputs/OutputState.d.ts +2 -6
  67. package/lib/components/outputs/OutputState.js +29 -0
  68. package/lib/components/settings/Settings.d.ts +2 -0
  69. package/lib/components/settings/Settings.js +8 -0
  70. package/lib/{widgets → components}/settings/SettingsAdapter.css +0 -0
  71. package/lib/{widgets → components}/settings/SettingsAdapter.d.ts +0 -0
  72. package/lib/{widgets → components}/settings/SettingsAdapter.js +0 -1
  73. package/lib/{widgets → components}/settings/SettingsState.d.ts +2 -6
  74. package/lib/components/settings/SettingsState.js +29 -0
  75. package/lib/components/terminal/Terminal.d.ts +2 -0
  76. package/lib/components/terminal/Terminal.js +15 -0
  77. package/lib/components/terminal/TerminalAdapter.css +3 -0
  78. package/lib/{widgets → components}/terminal/TerminalAdapter.d.ts +1 -1
  79. package/lib/{widgets → components}/terminal/TerminalAdapter.js +2 -3
  80. package/lib/{widgets → components}/terminal/TerminalState.d.ts +4 -6
  81. package/lib/components/terminal/TerminalState.js +37 -0
  82. package/lib/index.d.ts +22 -30
  83. package/lib/index.js +33 -43
  84. package/lib/jupyter/AuthError.js +0 -1
  85. package/lib/jupyter/Handlers.js +0 -1
  86. package/lib/jupyter/Jupyter.d.ts +1 -1
  87. package/lib/jupyter/Jupyter.js +2 -3
  88. package/lib/jupyter/JupyterConfig.js +0 -1
  89. package/lib/jupyter/JupyterContext.js +0 -1
  90. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsAttached.d.ts +0 -0
  91. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsAttached.js +0 -1
  92. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsClassicManager.d.ts +0 -0
  93. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsClassicManager.js +0 -1
  94. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsJupyterLabPlugin.d.ts +0 -0
  95. package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsJupyterLabPlugin.js +1 -2
  96. package/lib/{ipywidgets → jupyter/ipywidgets}/IpyWidgetsManager.d.ts +0 -0
  97. package/lib/{ipywidgets → jupyter/ipywidgets}/IpyWidgetsManager.js +0 -1
  98. package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/Figure.d.ts +0 -0
  99. package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/Figure.js +2 -3
  100. package/lib/{ipywidgets/plotly/jupyterlab-plugin.d.ts → jupyter/ipywidgets/plotly/JupyterlabPlugin.d.ts} +0 -0
  101. package/lib/{ipywidgets/plotly/jupyterlab-plugin.js → jupyter/ipywidgets/plotly/JupyterlabPlugin.js} +1 -2
  102. package/lib/{ipywidgets/plotly/version.d.ts → jupyter/ipywidgets/plotly/Version.d.ts} +0 -0
  103. package/lib/{ipywidgets/plotly/version.js → jupyter/ipywidgets/plotly/Version.js} +1 -2
  104. package/lib/jupyter/ipywidgets/plotly/index.d.ts +2 -0
  105. package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/index.js +1 -2
  106. package/lib/{lumino → jupyter/lumino}/LuminoAttached.d.ts +1 -1
  107. package/lib/{lumino → jupyter/lumino}/LuminoAttached.js +0 -1
  108. package/lib/{lumino → jupyter/lumino}/LuminoDetached.d.ts +0 -0
  109. package/lib/{lumino → jupyter/lumino}/LuminoDetached.js +0 -1
  110. package/lib/{lumino → jupyter/lumino}/LuminoObservable.d.ts +0 -0
  111. package/lib/{lumino → jupyter/lumino}/LuminoObservable.js +0 -1
  112. package/lib/{lumino → jupyter/lumino}/LuminoReactPortal.d.ts +0 -0
  113. package/lib/{lumino → jupyter/lumino}/LuminoReactPortal.js +0 -1
  114. package/lib/{lumino → jupyter/lumino}/LuminoRedux.d.ts +0 -0
  115. package/lib/{examples/bootstrap/All.bootstrap.d.ts → jupyter/lumino/LuminoRedux.js} +0 -0
  116. package/lib/jupyter/services/Services.d.ts +16 -0
  117. package/lib/{services → jupyter/services}/Services.js +0 -1
  118. package/lib/{services → jupyter/services}/kernel/Kernel.d.ts +2 -5
  119. package/lib/{services → jupyter/services}/kernel/Kernel.js +7 -38
  120. package/lib/{services → jupyter/services}/kernel/KernelModel.d.ts +1 -1
  121. package/lib/{services → jupyter/services}/kernel/KernelModel.js +1 -2
  122. package/lib/state/{AllState.d.ts → State.d.ts} +7 -1
  123. package/lib/state/State.js +31 -0
  124. package/lib/state/Store.d.ts +4 -0
  125. package/lib/state/Store.js +38 -0
  126. package/lib/state/init/Init.js +3 -4
  127. package/lib/state/init/{InitRedux.d.ts → InitState.d.ts} +5 -7
  128. package/lib/state/init/{InitRedux.js → InitState.js} +12 -15
  129. package/package.json +65 -99
  130. package/style/index.css +5 -2
  131. package/LICENSE +0 -21
  132. package/lib/examples/Example.d.ts +0 -1
  133. package/lib/examples/Example.js +0 -8
  134. package/lib/examples/Example.js.map +0 -1
  135. package/lib/examples/MuiSetup.d.ts +0 -5
  136. package/lib/examples/MuiSetup.js +0 -13
  137. package/lib/examples/MuiSetup.js.map +0 -1
  138. package/lib/examples/bootstrap/All.bootstrap.js +0 -84
  139. package/lib/examples/bootstrap/All.bootstrap.js.map +0 -1
  140. package/lib/examples/bootstrap/Cell.bootstrap.d.ts +0 -1
  141. package/lib/examples/bootstrap/Cell.bootstrap.js +0 -12
  142. package/lib/examples/bootstrap/Cell.bootstrap.js.map +0 -1
  143. package/lib/examples/bootstrap/FileBrowser.bootstrap.d.ts +0 -1
  144. package/lib/examples/bootstrap/FileBrowser.bootstrap.js +0 -10
  145. package/lib/examples/bootstrap/FileBrowser.bootstrap.js.map +0 -1
  146. package/lib/examples/bootstrap/Gallery.bootstrap.d.ts +0 -1
  147. package/lib/examples/bootstrap/Gallery.bootstrap.js +0 -18
  148. package/lib/examples/bootstrap/Gallery.bootstrap.js.map +0 -1
  149. package/lib/examples/bootstrap/IPyWidgets.bootstrap.d.ts +0 -1
  150. package/lib/examples/bootstrap/IPyWidgets.bootstrap.js +0 -12
  151. package/lib/examples/bootstrap/IPyWidgets.bootstrap.js.map +0 -1
  152. package/lib/examples/bootstrap/Lumino.bootstrap.d.ts +0 -1
  153. package/lib/examples/bootstrap/Lumino.bootstrap.js +0 -11
  154. package/lib/examples/bootstrap/Lumino.bootstrap.js.map +0 -1
  155. package/lib/examples/bootstrap/Notebook.bootstrap.d.ts +0 -1
  156. package/lib/examples/bootstrap/Notebook.bootstrap.js +0 -22
  157. package/lib/examples/bootstrap/Notebook.bootstrap.js.map +0 -1
  158. package/lib/examples/bootstrap/NotebookCustom.bootstrap.d.ts +0 -1
  159. package/lib/examples/bootstrap/NotebookCustom.bootstrap.js +0 -7
  160. package/lib/examples/bootstrap/NotebookCustom.bootstrap.js.map +0 -1
  161. package/lib/examples/bootstrap/Outputs.bootstrap.d.ts +0 -1
  162. package/lib/examples/bootstrap/Outputs.bootstrap.js +0 -154
  163. package/lib/examples/bootstrap/Outputs.bootstrap.js.map +0 -1
  164. package/lib/examples/bootstrap/Terminal.bootstrap.d.ts +0 -1
  165. package/lib/examples/bootstrap/Terminal.bootstrap.js +0 -13
  166. package/lib/examples/bootstrap/Terminal.bootstrap.js.map +0 -1
  167. package/lib/examples/controls/CellControl.d.ts +0 -3
  168. package/lib/examples/controls/CellControl.js +0 -15
  169. package/lib/examples/controls/CellControl.js.map +0 -1
  170. package/lib/examples/controls/CommandsControl.d.ts +0 -3
  171. package/lib/examples/controls/CommandsControl.js +0 -12
  172. package/lib/examples/controls/CommandsControl.js.map +0 -1
  173. package/lib/examples/controls/ConsoleControl.d.ts +0 -3
  174. package/lib/examples/controls/ConsoleControl.js +0 -12
  175. package/lib/examples/controls/ConsoleControl.js.map +0 -1
  176. package/lib/examples/controls/DialogControl.d.ts +0 -2
  177. package/lib/examples/controls/DialogControl.js +0 -7
  178. package/lib/examples/controls/DialogControl.js.map +0 -1
  179. package/lib/examples/controls/FileBrowserControl.d.ts +0 -3
  180. package/lib/examples/controls/FileBrowserControl.js +0 -12
  181. package/lib/examples/controls/FileBrowserControl.js.map +0 -1
  182. package/lib/examples/controls/InitControl.d.ts +0 -2
  183. package/lib/examples/controls/InitControl.js +0 -7
  184. package/lib/examples/controls/InitControl.js.map +0 -1
  185. package/lib/examples/controls/NotebookControl.d.ts +0 -3
  186. package/lib/examples/controls/NotebookControl.js +0 -16
  187. package/lib/examples/controls/NotebookControl.js.map +0 -1
  188. package/lib/examples/controls/OutputControl.d.ts +0 -3
  189. package/lib/examples/controls/OutputControl.js +0 -7
  190. package/lib/examples/controls/OutputControl.js.map +0 -1
  191. package/lib/examples/controls/SettingsControl.d.ts +0 -3
  192. package/lib/examples/controls/SettingsControl.js +0 -12
  193. package/lib/examples/controls/SettingsControl.js.map +0 -1
  194. package/lib/examples/controls/SimpleControl.d.ts +0 -2
  195. package/lib/examples/controls/SimpleControl.js +0 -7
  196. package/lib/examples/controls/SimpleControl.js.map +0 -1
  197. package/lib/examples/controls/TerminalControl.d.ts +0 -3
  198. package/lib/examples/controls/TerminalControl.js +0 -22
  199. package/lib/examples/controls/TerminalControl.js.map +0 -1
  200. package/lib/examples/examples/cell/CellExample.d.ts +0 -2
  201. package/lib/examples/examples/cell/CellExample.js +0 -42
  202. package/lib/examples/examples/cell/CellExample.js.map +0 -1
  203. package/lib/examples/examples/gallery/GalleryExample.d.ts +0 -2
  204. package/lib/examples/examples/gallery/GalleryExample.js +0 -154
  205. package/lib/examples/examples/gallery/GalleryExample.js.map +0 -1
  206. package/lib/examples/examples/ipywidgets/IpyWidgetsExample.d.ts +0 -4
  207. package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js +0 -156
  208. package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js.map +0 -1
  209. package/lib/examples/examples/lumino/LuminoAdapter.css +0 -34
  210. package/lib/examples/examples/lumino/LuminoAdapter.d.ts +0 -9
  211. package/lib/examples/examples/lumino/LuminoAdapter.js +0 -70
  212. package/lib/examples/examples/lumino/LuminoAdapter.js.map +0 -1
  213. package/lib/examples/examples/lumino/LuminoExample.d.ts +0 -2
  214. package/lib/examples/examples/lumino/LuminoExample.js +0 -10
  215. package/lib/examples/examples/lumino/LuminoExample.js.map +0 -1
  216. package/lib/examples/examples/notebook/NotebookCustomHeader.d.ts +0 -2
  217. package/lib/examples/examples/notebook/NotebookCustomHeader.js +0 -39
  218. package/lib/examples/examples/notebook/NotebookCustomHeader.js.map +0 -1
  219. package/lib/examples/examples/notebook/NotebookExample.d.ts +0 -1
  220. package/lib/examples/examples/notebook/NotebookExample.js +0 -24
  221. package/lib/examples/examples/notebook/NotebookExample.js.map +0 -1
  222. package/lib/examples/theme/Layers.d.ts +0 -2
  223. package/lib/examples/theme/Layers.js +0 -15
  224. package/lib/examples/theme/Layers.js.map +0 -1
  225. package/lib/examples/theme/Layers.svg +0 -14
  226. package/lib/examples/theme/muiLightTheme.d.ts +0 -8
  227. package/lib/examples/theme/muiLightTheme.js +0 -169
  228. package/lib/examples/theme/muiLightTheme.js.map +0 -1
  229. package/lib/examples/theme/vintage.project.json +0 -172
  230. package/lib/examples/theme/westeros.project.json +0 -168
  231. package/lib/examples/theme/wonderland.project.json +0 -168
  232. package/lib/index.js.map +0 -1
  233. package/lib/ipywidgets/IPyWidgetsAttached.js.map +0 -1
  234. package/lib/ipywidgets/IPyWidgetsClassicManager.js.map +0 -1
  235. package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +0 -1
  236. package/lib/ipywidgets/IpyWidgetsComponent.js.map +0 -1
  237. package/lib/ipywidgets/IpyWidgetsManager.js.map +0 -1
  238. package/lib/ipywidgets/plotly/Figure.js.map +0 -1
  239. package/lib/ipywidgets/plotly/index.d.ts +0 -2
  240. package/lib/ipywidgets/plotly/index.js.map +0 -1
  241. package/lib/ipywidgets/plotly/jupyterlab-plugin.js.map +0 -1
  242. package/lib/ipywidgets/plotly/version.js.map +0 -1
  243. package/lib/jupyter/AuthError.js.map +0 -1
  244. package/lib/jupyter/Handlers.js.map +0 -1
  245. package/lib/jupyter/Jupyter.js.map +0 -1
  246. package/lib/jupyter/JupyterConfig.js.map +0 -1
  247. package/lib/jupyter/JupyterContext.js.map +0 -1
  248. package/lib/lumino/LuminoAttached.js.map +0 -1
  249. package/lib/lumino/LuminoDetached.js.map +0 -1
  250. package/lib/lumino/LuminoObservable.js.map +0 -1
  251. package/lib/lumino/LuminoReactPortal.js.map +0 -1
  252. package/lib/lumino/LuminoRedux.js +0 -2
  253. package/lib/lumino/LuminoRedux.js.map +0 -1
  254. package/lib/services/Services.d.ts +0 -17
  255. package/lib/services/Services.js.map +0 -1
  256. package/lib/services/kernel/Kernel.js.map +0 -1
  257. package/lib/services/kernel/KernelModel.js.map +0 -1
  258. package/lib/state/AllState.js +0 -24
  259. package/lib/state/AllState.js.map +0 -1
  260. package/lib/state/InjectableStore.d.ts +0 -9
  261. package/lib/state/InjectableStore.js +0 -27
  262. package/lib/state/InjectableStore.js.map +0 -1
  263. package/lib/state/init/Init.js.map +0 -1
  264. package/lib/state/init/InitRedux.js.map +0 -1
  265. package/lib/widgets/cell/CellAdapter.js.map +0 -1
  266. package/lib/widgets/cell/CellLumino.d.ts +0 -9
  267. package/lib/widgets/cell/CellLumino.js +0 -48
  268. package/lib/widgets/cell/CellLumino.js.map +0 -1
  269. package/lib/widgets/cell/CellState.js +0 -79
  270. package/lib/widgets/cell/CellState.js.map +0 -1
  271. package/lib/widgets/commands/CommandsAdapter.js.map +0 -1
  272. package/lib/widgets/commands/CommandsLumino.d.ts +0 -2
  273. package/lib/widgets/commands/CommandsLumino.js +0 -9
  274. package/lib/widgets/commands/CommandsLumino.js.map +0 -1
  275. package/lib/widgets/commands/CommandsState.js +0 -50
  276. package/lib/widgets/commands/CommandsState.js.map +0 -1
  277. package/lib/widgets/console/ConsoleAdapter.js.map +0 -1
  278. package/lib/widgets/console/ConsoleLumino.d.ts +0 -2
  279. package/lib/widgets/console/ConsoleLumino.js +0 -9
  280. package/lib/widgets/console/ConsoleLumino.js.map +0 -1
  281. package/lib/widgets/console/ConsoleState.js +0 -50
  282. package/lib/widgets/console/ConsoleState.js.map +0 -1
  283. package/lib/widgets/dialog/DialogAdapter.js.map +0 -1
  284. package/lib/widgets/dialog/DialogLumino.d.ts +0 -2
  285. package/lib/widgets/dialog/DialogLumino.js +0 -13
  286. package/lib/widgets/dialog/DialogLumino.js.map +0 -1
  287. package/lib/widgets/editor/CodeMirrorEditor.js.map +0 -1
  288. package/lib/widgets/filebrowser/FileBrowser.js.map +0 -1
  289. package/lib/widgets/filebrowser/FileBrowserAdapter.js.map +0 -1
  290. package/lib/widgets/filebrowser/FileBrowserLumino.d.ts +0 -2
  291. package/lib/widgets/filebrowser/FileBrowserLumino.js +0 -9
  292. package/lib/widgets/filebrowser/FileBrowserLumino.js.map +0 -1
  293. package/lib/widgets/filebrowser/FileBrowserState.js +0 -50
  294. package/lib/widgets/filebrowser/FileBrowserState.js.map +0 -1
  295. package/lib/widgets/notebook/NotebookAdapter.d.ts +0 -26
  296. package/lib/widgets/notebook/NotebookAdapter.js +0 -187
  297. package/lib/widgets/notebook/NotebookAdapter.js.map +0 -1
  298. package/lib/widgets/notebook/NotebookCommands.d.ts +0 -7
  299. package/lib/widgets/notebook/NotebookCommands.js.map +0 -1
  300. package/lib/widgets/notebook/NotebookLumino.d.ts +0 -19
  301. package/lib/widgets/notebook/NotebookLumino.js +0 -75
  302. package/lib/widgets/notebook/NotebookLumino.js.map +0 -1
  303. package/lib/widgets/notebook/NotebookState.js +0 -114
  304. package/lib/widgets/notebook/NotebookState.js.map +0 -1
  305. package/lib/widgets/notebook/NotebookToolbar.d.ts +0 -2
  306. package/lib/widgets/notebook/NotebookToolbar.js +0 -24
  307. package/lib/widgets/notebook/NotebookToolbar.js.map +0 -1
  308. package/lib/widgets/notebook/extension/CellSidebar.js.map +0 -1
  309. package/lib/widgets/notebook/extension/CellSidebarDefault.d.ts +0 -2
  310. package/lib/widgets/notebook/extension/CellSidebarDefault.js +0 -47
  311. package/lib/widgets/notebook/extension/CellSidebarDefault.js.map +0 -1
  312. package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js.map +0 -1
  313. package/lib/widgets/notebook/extension/NotebookInputPrompt.js.map +0 -1
  314. package/lib/widgets/outputs/OutputAdapter.css +0 -0
  315. package/lib/widgets/outputs/OutputAdapter.js.map +0 -1
  316. package/lib/widgets/outputs/OutputLumino.js.map +0 -1
  317. package/lib/widgets/outputs/OutputState.js +0 -50
  318. package/lib/widgets/outputs/OutputState.js.map +0 -1
  319. package/lib/widgets/settings/SettingsAdapter.js.map +0 -1
  320. package/lib/widgets/settings/SettingsLumino.d.ts +0 -2
  321. package/lib/widgets/settings/SettingsLumino.js +0 -11
  322. package/lib/widgets/settings/SettingsLumino.js.map +0 -1
  323. package/lib/widgets/settings/SettingsState.js +0 -50
  324. package/lib/widgets/settings/SettingsState.js.map +0 -1
  325. package/lib/widgets/terminal/TerminalAdapter.css +0 -3
  326. package/lib/widgets/terminal/TerminalAdapter.js.map +0 -1
  327. package/lib/widgets/terminal/TerminalLumino.d.ts +0 -2
  328. package/lib/widgets/terminal/TerminalLumino.js +0 -17
  329. package/lib/widgets/terminal/TerminalLumino.js.map +0 -1
  330. package/lib/widgets/terminal/TerminalState.js +0 -45
  331. package/lib/widgets/terminal/TerminalState.js.map +0 -1
@@ -0,0 +1,31 @@
1
+ import { combineReducers } from "redux";
2
+ import { combineEpics } from "redux-observable";
3
+ import { initInitialState, initReducer, initEpics } from "./init/InitState";
4
+ import { cellInitialState, cellReducer } from "../components/cell/CellState";
5
+ import { notebookInitialState, notebookEpics, notebookReducer } from "../components/notebook/NotebookState";
6
+ import { terminalInitialState, terminalReducer } from "../components/terminal/TerminalState";
7
+ export const initialState = {
8
+ counter: initInitialState,
9
+ cell: cellInitialState,
10
+ notebook: notebookInitialState,
11
+ terminal: terminalInitialState,
12
+ };
13
+ /* Actions
14
+ export type ActionUnion<
15
+ A extends { [asyncActionCreator: string]: (...args: any[]) => any; }
16
+ > = Exclude<ReturnType<A[keyof A]>, (...args: any[]) => Promise<void>>;
17
+
18
+ export type CellAction = ActionUnion<typeof cellActions>;
19
+ export type NotebookAction = ActionUnion<typeof notebookActions>;
20
+
21
+ export type AppAction = CellAction | NotebookAction;
22
+ */
23
+ /* Epics */
24
+ export const epics = combineEpics(initEpics, notebookEpics);
25
+ /* Reducers */
26
+ export const reducers = combineReducers({
27
+ counter: initReducer,
28
+ cell: cellReducer,
29
+ notebook: notebookReducer,
30
+ terminal: terminalReducer,
31
+ });
@@ -0,0 +1,4 @@
1
+ declare const injectableStore: import("redux").Store<import("redux").EmptyObject & import("./State").IState, import("redux").AnyAction> & {
2
+ dispatch: unknown;
3
+ };
4
+ export default injectableStore;
@@ -0,0 +1,38 @@
1
+ import { applyMiddleware, createStore } from "redux";
2
+ import { createEpicMiddleware } from "redux-observable";
3
+ import { reducers, epics } from "./State";
4
+ // import { BehaviorSubject } from 'rxjs';
5
+ // import { mergeMap } from 'rxjs/operators';
6
+ // import { initEpics } from "./init/InitState";
7
+ const epicMiddleware = createEpicMiddleware();
8
+ /*
9
+ function createReducer(asyncReducers: any) {
10
+ return combineReducers({
11
+ ...reducers,
12
+ ...asyncReducers,
13
+ });
14
+ }
15
+ */
16
+ function createInjectableStore() {
17
+ const injectableStore = createStore(
18
+ // createReducer({}),
19
+ reducers, applyMiddleware(epicMiddleware));
20
+ /*
21
+ (injectableStore as any).asyncReducers = {};
22
+ (injectableStore as any).injectReducer = (key: any, asyncReducer: any) => {
23
+ (injectableStore as any).asyncReducers[key] = asyncReducer;
24
+ injectableStore.replaceReducer(createReducer((injectableStore as any).asyncReducers));
25
+ }
26
+ */
27
+ epicMiddleware.run(epics);
28
+ return injectableStore;
29
+ }
30
+ /*
31
+ export const epic$ = new BehaviorSubject(initEpics);
32
+ const rootEpic = (action$: any, state$: any, deps: any) => epic$.pipe(
33
+ mergeMap(epic => epic(action$, state$, deps))
34
+ );
35
+ epicMiddleware.run(rootEpic);
36
+ */
37
+ const injectableStore = createInjectableStore();
38
+ export default injectableStore;
@@ -1,12 +1,11 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
2
2
  import { useDispatch } from "react-redux";
3
- import { selectInit, initActions } from './InitRedux';
3
+ import { selectInit, initActions } from './InitState';
4
4
  const Init = () => {
5
5
  const init = selectInit();
6
6
  const dispatch = useDispatch();
7
7
  return (_jsxs(_Fragment, { children: [_jsxs("h2", { children: ["Init value: ", init] }, void 0),
8
- _jsx("button", Object.assign({ onClick: () => dispatch(initActions.increment.started(undefined)) }, { children: "Increment Init (1 second delay)" }), void 0),
9
- _jsx("button", Object.assign({ onClick: () => dispatch(initActions.decrement.started(undefined)) }, { children: "Decrement Init (0.2 second delay)" }), void 0)] }, void 0));
8
+ _jsx("button", Object.assign({ onClick: () => dispatch(initActions.increment.started()) }, { children: "Increment Init (1 second delay)" }), void 0),
9
+ _jsx("button", Object.assign({ onClick: () => dispatch(initActions.decrement.started()) }, { children: "Decrement Init (0.2 second delay)" }), void 0)] }, void 0));
10
10
  };
11
11
  export default Init;
12
- //# sourceMappingURL=Init.js.map
@@ -1,5 +1,3 @@
1
- import { Epic } from "redux-observable";
2
- import { AnyAction } from "typescript-fsa";
3
1
  export declare type IInit = number;
4
2
  export interface IInitState {
5
3
  init: IInit;
@@ -7,14 +5,14 @@ export interface IInitState {
7
5
  export declare const initInitialState: IInitState;
8
6
  export declare const selectInit: () => any;
9
7
  export declare enum ActionType {
10
- INCREMENT_init = "init/INCREMENT_init",
11
- DECREMENT_init = "init/DECREMENT_init"
8
+ INCREMENT = "init/INCREMENT",
9
+ DECREMENT = "init/DECREMENT"
12
10
  }
13
11
  export declare const initActions: {
14
- increment: import("typescript-fsa").AsyncActionCreators<undefined, undefined, {}>;
15
- decrement: import("typescript-fsa").AsyncActionCreators<undefined, undefined, {}>;
12
+ increment: import("typescript-fsa").AsyncActionCreators<void, void, {}>;
13
+ decrement: import("typescript-fsa").AsyncActionCreators<void, void, {}>;
16
14
  };
17
- export declare const initEpics: Epic<AnyAction, AnyAction, IInitState, any>;
15
+ export declare const initEpics: any;
18
16
  export declare const initReducer: import("typescript-fsa-reducers").ReducerBuilder<IInitState, IInitState>;
19
17
  export declare const initReducers: {
20
18
  initReducer: import("typescript-fsa-reducers").ReducerBuilder<IInitState, IInitState>;
@@ -1,7 +1,7 @@
1
1
  import { useSelector } from "react-redux";
2
2
  import actionCreatorFactory from "typescript-fsa";
3
3
  import { combineEpics } from "redux-observable";
4
- import { delay, map, ignoreElements } from "rxjs/operators";
4
+ import { delay, map, tap, ignoreElements } from "rxjs/operators";
5
5
  import { ofAction } from "@datalayer/typescript-fsa-redux-observable";
6
6
  import { reducerWithInitialState } from "typescript-fsa-reducers";
7
7
  export const initInitialState = {
@@ -14,29 +14,27 @@ export const selectInit = () => useSelector((state) => {
14
14
  /* Actions */
15
15
  export var ActionType;
16
16
  (function (ActionType) {
17
- ActionType["INCREMENT_init"] = "init/INCREMENT_init";
18
- ActionType["DECREMENT_init"] = "init/DECREMENT_init";
17
+ ActionType["INCREMENT"] = "init/INCREMENT";
18
+ ActionType["DECREMENT"] = "init/DECREMENT";
19
19
  })(ActionType || (ActionType = {}));
20
20
  const actionCreator = actionCreatorFactory('jupyterReact');
21
21
  export const initActions = {
22
- increment: actionCreator.async(ActionType.INCREMENT_init),
23
- decrement: actionCreator.async(ActionType.DECREMENT_init)
22
+ increment: actionCreator.async(ActionType.INCREMENT),
23
+ decrement: actionCreator.async(ActionType.DECREMENT)
24
24
  };
25
25
  /* Epics */
26
26
  const initIncrementEpic = action$ => action$.pipe(ofAction(initActions.increment.started), delay(2000), map(action => initActions.increment.done({
27
27
  params: action.payload,
28
28
  result: undefined
29
29
  })));
30
- const initDecrementEpic = action$ => action$.pipe(ofAction(initActions.decrement.started), delay(100), map(action => initActions.decrement.done({
31
- params: action.payload,
32
- result: undefined
33
- })));
30
+ const initDecrementEpic = action$ => {
31
+ return action$.pipe(ofAction(initActions.decrement.started), delay(100), map(action => initActions.decrement.done({
32
+ params: action.payload,
33
+ result: undefined
34
+ })));
35
+ };
34
36
  const loggingEpic = action$ => action$
35
- .pipe(ofAction(initActions.decrement.started, initActions.increment.started),
36
- // tap(action => console.log(action.type)),
37
- ignoreElements()).pipe(ofAction(initActions.increment.started),
38
- // tap(action => console.log(action.type)),
39
- ignoreElements());
37
+ .pipe(ofAction(initActions.decrement.started), tap(action => console.log(action.type)), ignoreElements()).pipe(ofAction(initActions.increment.started), tap(action => console.log(action.type)), ignoreElements());
40
38
  export const initEpics = combineEpics(initIncrementEpic, initDecrementEpic, loggingEpic);
41
39
  /* Reducers */
42
40
  export const initReducer = reducerWithInitialState(initInitialState)
@@ -47,4 +45,3 @@ export const initReducer = reducerWithInitialState(initInitialState)
47
45
  export const initReducers = {
48
46
  initReducer: initReducer
49
47
  };
50
- //# sourceMappingURL=InitRedux.js.map
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@datalayer/jupyter-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.7",
4
+ "description": "Jupyter React",
4
5
  "license": "MIT",
5
6
  "private": false,
6
7
  "main": "lib/index.js",
@@ -8,13 +9,18 @@
8
9
  "lib",
9
10
  "style"
10
11
  ],
12
+ "keywords": [
13
+ "jupyter",
14
+ "react",
15
+ "jupyterlab"
16
+ ],
11
17
  "scripts": {
12
- "build": "gulp resources-to-lib && tsc && webpack",
13
- "build:prod": "gulp resources-to-lib && tsc && webpack --mode=production",
18
+ "build": "gulp resources-to-lib && tsc && NODE_OPTIONS=\"${NODE_OPTIONS}\" webpack",
19
+ "build:prod": "gulp resources-to-lib && tsc && NODE_OPTIONS=\"${NODE_OPTIONS}\"",
14
20
  "clean": "rimraf lib build dist tsconfig.tsbuildinfo",
15
21
  "start": "run-p -c start:*",
16
- "start:webpack": "webpack serve",
17
- "start:jupyter": "./dev/sh/kill-jupyter-server.sh || true && cd ./dev/sh && ./start-jupyter-server.sh",
22
+ "start:jupyter": "cd ./../.. && make start-jupyter-server",
23
+ "start:webpack": "NODE_OPTIONS=\"${NODE_OPTIONS}\" webpack serve",
18
24
  "build:tsc:watch:tsc": "tsc --watch",
19
25
  "build:tsc:watch:res": "gulp resources-to-lib-watch",
20
26
  "typedoc": "typedoc ./src",
@@ -25,61 +31,74 @@
25
31
  "@codemirror/basic-setup": "0.19.0",
26
32
  "@codemirror/lang-python": "0.19.2",
27
33
  "@datalayer/typescript-fsa-redux-observable": "0.18.0",
28
- "@emotion/react": "11.4.0",
29
- "@emotion/styled": "11.3.0",
30
- "@jupyter-widgets/base": "5.0.0-beta.1",
31
- "@jupyter-widgets/controls": "4.0.0-beta.1",
32
- "@jupyter-widgets/html-manager": "0.21.0-beta.1",
33
- "@jupyter-widgets/jupyterlab-manager": "4.0.0-beta.1",
34
- "@jupyter-widgets/output": "5.0.0-beta.1",
35
- "@jupyterlab/apputils": "3.1.0",
36
- "@jupyterlab/cells": "3.1.0",
37
- "@jupyterlab/codemirror": "3.1.0",
38
- "@jupyterlab/completer": "3.1.0",
39
- "@jupyterlab/console": "3.1.0",
40
- "@jupyterlab/coreutils": "5.1.0",
41
- "@jupyterlab/documentsearch": "3.1.0",
42
- "@jupyterlab/filebrowser": "3.1.0",
43
- "@jupyterlab/json-extension": "3.1.0",
44
- "@jupyterlab/mathjax2": "3.1.0",
45
- "@jupyterlab/notebook": "3.1.0",
46
- "@jupyterlab/rendermime": "3.1.0",
47
- "@jupyterlab/services": "6.1.0",
48
- "@jupyterlab/terminal": "3.1.0",
49
- "@jupyterlab/theme-dark-extension": "^3.0.7",
50
- "@jupyterlab/theme-light-extension": "3.1.0",
51
- "@lumino/commands": "1.15.0",
52
- "@lumino/default-theme": "0.14.0",
53
- "@lumino/widgets": "1.23.0",
34
+ "@jupyter-widgets/base": "6.0.0-rc.1",
35
+ "@jupyter-widgets/controls": "5.0.0-rc.1",
36
+ "@jupyter-widgets/html-manager": "1.0.0-rc.1",
37
+ "@jupyter-widgets/jupyterlab-manager": "5.0.0-rc.1",
38
+ "@jupyter-widgets/output": "6.0.0-rc.1",
39
+ "@jupyterlab/apputils": "4.0.0-alpha.11",
40
+ "@jupyterlab/cells": "4.0.0-alpha.11",
41
+ "@jupyterlab/codemirror": "4.0.0-alpha.11",
42
+ "@jupyterlab/completer": "4.0.0-alpha.11",
43
+ "@jupyterlab/console": "4.0.0-alpha.11",
44
+ "@jupyterlab/coreutils": "6.0.0-alpha.11",
45
+ "@jupyterlab/docmanager": "4.0.0-alpha.11",
46
+ "@jupyterlab/docprovider": "4.0.0-alpha.11",
47
+ "@jupyterlab/docregistry": "4.0.0-alpha.11",
48
+ "@jupyterlab/documentsearch": "4.0.0-alpha.11",
49
+ "@jupyterlab/filebrowser": "4.0.0-alpha.11",
50
+ "@jupyterlab/fileeditor": "4.0.0-alpha.11",
51
+ "@jupyterlab/json-extension": "4.0.0-alpha.11",
52
+ "@jupyterlab/javascript-extension": "4.0.0-alpha.11",
53
+ "@jupyterlab/mathjax2": "4.0.0-alpha.11",
54
+ "@jupyterlab/markedparser-extension": "4.0.0-alpha.11",
55
+ "@jupyterlab/notebook": "4.0.0-alpha.11",
56
+ "@jupyterlab/outputarea": "4.0.0-alpha.11",
57
+ "@jupyterlab/rendermime": "4.0.0-alpha.11",
58
+ "@jupyterlab/rendermime-extension": "4.0.0-alpha.11",
59
+ "@jupyterlab/rendermime-interfaces": "3.8.0-alpha.11",
60
+ "@jupyterlab/services": "7.0.0-alpha.11",
61
+ "@jupyterlab/terminal": "4.0.0-alpha.11",
62
+ "@jupyterlab/theme-dark-extension": "4.0.0-alpha.11",
63
+ "@jupyterlab/theme-light-extension": "4.0.0-alpha.11",
64
+ "@lumino/commands": "1.20.0",
65
+ "@lumino/coreutils": "1.12.0",
66
+ "@lumino/default-theme": "0.21.1",
67
+ "@lumino/widgets": "1.31.1",
68
+ "marked": "4.0.10",
54
69
  "lodash": "^4.17.4",
55
- "plotly.js": "2.2.1",
56
- "react": "17.0.2",
57
- "react-dom": "17.0.2",
70
+ "plotly.js": "2.11.1",
71
+ "react": "18.1.0",
72
+ "react-dom": "18.1.0",
58
73
  "react-error-boundary": "3.1.3",
59
74
  "react-redux": "7.2.4",
60
75
  "redux": "4.1.0",
61
76
  "redux-observable": "1.2.0",
62
- "rxjs": "6.5.5",
77
+ "rxjs": "6.6.0",
63
78
  "typescript-fsa": "3.0.0",
64
79
  "typescript-fsa-reducers": "1.2.1",
65
80
  "uuid": "8.3.2"
66
81
  },
67
82
  "devDependencies": {
83
+ "@types/marked": "4.0.1",
68
84
  "@babel/core": "7.14.6",
69
85
  "@babel/plugin-proposal-class-properties": "7.14.5",
70
86
  "@babel/preset-react": "7.14.5",
71
87
  "@babel/preset-typescript": "7.14.5",
72
- "@mui/material": "5.0.0",
73
- "@mui/icons-material": "5.0.0",
74
- "@mui/lab": "5.0.0-alpha.47",
75
- "@mui/styles": "5.0.0",
76
- "@mui/system": "5.0.0",
77
88
  "@types/codemirror": "5.60.4",
78
89
  "@types/node": "15.6.1",
79
90
  "@types/plotly.js": "1.54.11",
80
- "@types/react": "17.0.6",
81
- "@types/react-dom": "17.0.5",
91
+ "@types/react": "18.0.9",
92
+ "@types/react-dom": "18.0.5",
82
93
  "@types/uuid": "8.3.0",
94
+ "@emotion/react": "11.4.0",
95
+ "@emotion/styled": "11.3.0",
96
+ "@mui/material": "5.8.3",
97
+ "@mui/icons-material": "5.8.3",
98
+ "@mui/lab": "5.0.0-alpha.85",
99
+ "@mui/styles": "5.8.3",
100
+ "@mui/system": "5.8.3",
101
+ "@primer/react": "35.3.0",
83
102
  "assert": "2.0.0",
84
103
  "babel-loader": "8.2.2",
85
104
  "bundle-loader": "0.5.6",
@@ -100,64 +119,11 @@
100
119
  "style-loader": "2.0.0",
101
120
  "svg-url-loader": "~3.0.3",
102
121
  "typedoc": "0.20.37",
103
- "typescript": "4.2.2",
122
+ "typescript": "4.2.4",
104
123
  "url-loader": "~3.0.0",
105
124
  "watch": "~1.0.2",
106
- "webpack": "5.57.1",
107
- "webpack-cli": "4.9.0",
108
- "webpack-dev-middleware": "3.7.2",
109
- "webpack-dev-server": "4.3.1"
110
- },
111
- "resolutions": {
112
- "**/@jupyterlab/application": "3.1.0",
113
- "**/@jupyterlab/apputils": "3.1.0",
114
- "**/@jupyterlab/cells": "3.1.0",
115
- "**/@jupyterlab/codemirror": "3.1.0",
116
- "**/@jupyterlab/completer": "3.1.0",
117
- "**/@jupyterlab/console": "3.1.0",
118
- "**/@jupyterlab/coreutils": "5.1.0",
119
- "**/@jupyterlab/docmanager": "3.1.0",
120
- "**/@jupyterlab/docregistry": "3.1.0",
121
- "**/@jupyterlab/documentsearch": "3.1.0",
122
- "**/@jupyterlab/filebrowser": "3.1.0",
123
- "**/@jupyterlab/json-extension": "3.1.0",
124
- "**/@jupyterlab/launcher": "3.1.0",
125
- "**/@jupyterlab/mainmenu": "3.1.0",
126
- "**/@jupyterlab/mathjax2": "3.1.0",
127
- "**/@jupyterlab/notebook": "3.1.0",
128
- "**/@jupyterlab/rendermime": "3.1.0",
129
- "**/@jupyterlab/services": "6.1.0",
130
- "**/@jupyterlab/settingregistry": "3.1.0",
131
- "**/@jupyterlab/terminal": "3.1.0",
132
- "**/@jupyterlab/theme-dark-extension": "3.1.0",
133
- "**/@jupyterlab/theme-light-extension": "3.1.0",
134
- "**/@jupyterlab/ui-components": "3.1.0",
135
- "**/@lumino/commands": "1.15.0",
136
- "**/@lumino/coreutils": "1.11.1",
137
- "**/@lumino/default-theme": "0.14.0",
138
- "**/@lumino/widgets": "1.23.0",
139
- "**/@jupyter-widgets/base": "5.0.0-beta.1",
140
- "**/@jupyter-widgets/controls": "4.0.0-beta.1",
141
- "**/@jupyter-widgets/html-manager": "0.21.0-beta.1",
142
- "**/@jupyter-widgets/jupyterlab-manager": "4.0.0-beta.1",
143
- "**/@jupyter-widgets/output": "5.0.0-beta.1",
144
- "**/@mui/material": "5.0.0",
145
- "**/@mui/icons-material": "5.0.0",
146
- "**/@mui/styles": "5.0.0",
147
- "**/@mui/system": "5.0.0",
148
- "**/@mui/lab": "5.0.0-alpha.47",
149
- "**/@types/react": "17.0.6",
150
- "**/@types/react-dom": "17.0.5",
151
- "**/react": "17.0.2",
152
- "**/react-dom": "17.0.2",
153
- "**/react-redux": "7.2.4",
154
- "**/redux": "4.1.0",
155
- "**/redux-observable": "1.2.0",
156
- "**/rxjs": "6.5.5",
157
- "**/typescript": "4.2.4",
158
- "**/html-webpack-plugin": "5.3.1",
159
- "**/webpack": "5.57.1",
160
- "**/webpack-cli": "4.9.0",
161
- "**/webpack-dev-server": "4.3.1"
125
+ "webpack": "5.74.0",
126
+ "webpack-cli": "4.10.0",
127
+ "webpack-dev-server": "4.9.3"
162
128
  }
163
129
  }
package/style/index.css CHANGED
@@ -1,3 +1,6 @@
1
1
  body {
2
- margin: 0px;
3
- }
2
+ background: white;
3
+ overflow-y: scroll;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
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.
@@ -1 +0,0 @@
1
- import "./../../style/index.css";
@@ -1,8 +0,0 @@
1
- // @ts-ignore
2
- import bootstrap from "./bootstrap/Gallery.bootstrap";
3
- import "./../../style/index.css";
4
- /**
5
- * Boostrap the example application.
6
- */
7
- bootstrap(() => { });
8
- //# sourceMappingURL=Example.js.map
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- declare const setupMui: (id: string) => {
2
- jss: import("jss").Jss;
3
- cache: import("@emotion/utils").EmotionCache;
4
- };
5
- export default setupMui;
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,84 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"All.bootstrap.js","sourceRoot":"","sources":["../../../src/examples/bootstrap/All.bootstrap.tsx"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};