@datalayer/jupyter-react 0.5.0 → 0.5.2

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 (147) hide show
  1. package/README.md +7 -7
  2. package/lib/app/App.js +6 -0
  3. package/lib/app/App.js.map +1 -0
  4. package/lib/app/JupyterReact.d.ts +2 -0
  5. package/lib/{jupyter/lab/component/MockComponent.js → app/JupyterReact.js} +5 -5
  6. package/lib/app/JupyterReact.js.map +1 -0
  7. package/lib/app/tabs/CellTab.d.ts +2 -0
  8. package/lib/app/tabs/CellTab.js +9 -0
  9. package/lib/app/tabs/CellTab.js.map +1 -0
  10. package/lib/components/cell/Cell.js.map +1 -1
  11. package/lib/components/ipywidgets/IPyWidgetsComponent.d.ts +5 -0
  12. package/lib/components/ipywidgets/{IpyWidgetsComponent.js → IPyWidgetsComponent.js} +4 -4
  13. package/lib/components/ipywidgets/{IpyWidgetsComponent.js.map → IPyWidgetsComponent.js.map} +1 -1
  14. package/lib/components/notebook/Notebook.d.ts +1 -1
  15. package/lib/components/notebook/Notebook.js.map +1 -1
  16. package/lib/components/notebook/NotebookAdapter.js +18 -16
  17. package/lib/components/notebook/NotebookAdapter.js.map +1 -1
  18. package/lib/components/notebook/cell/sidebar/CellSidebarDefault.d.ts +1 -1
  19. package/lib/components/notebook/cell/sidebar/CellSidebarDefault.js +1 -1
  20. package/lib/components/notebook/cell/sidebar/CellSidebarDefault.js.map +1 -1
  21. package/lib/components/notebook/cell/sidebar/CellSidebarNew.d.ts +1 -1
  22. package/lib/components/notebook/cell/sidebar/CellSidebarNew.js +1 -1
  23. package/lib/components/notebook/cell/sidebar/CellSidebarNew.js.map +1 -1
  24. package/lib/components/notebook/cell/sidebar/CellSidebarRun.d.ts +1 -1
  25. package/lib/components/notebook/cell/sidebar/CellSidebarRun.js +1 -1
  26. package/lib/components/notebook/cell/sidebar/CellSidebarRun.js.map +1 -1
  27. package/lib/components/notebook/cell/sidebar/lumino/CellSidebarWidget.js.map +1 -0
  28. package/lib/components/notebook/{cell/sidebar/base/CellSidebarContentFactory.d.ts → content/JupyterReactContentFactory.d.ts} +3 -3
  29. package/lib/components/notebook/{cell/sidebar/base/CellSidebarContentFactory.js → content/JupyterReactContentFactory.js} +4 -4
  30. package/lib/components/notebook/content/JupyterReactContentFactory.js.map +1 -0
  31. package/lib/components/notebook/model/{DatalayerNotebookModelFactory.d.ts → JupyterReactNotebookModelFactory.d.ts} +2 -2
  32. package/lib/components/notebook/model/{DatalayerNotebookModelFactory.js → JupyterReactNotebookModelFactory.js} +3 -3
  33. package/lib/components/notebook/model/JupyterReactNotebookModelFactory.js.map +1 -0
  34. package/lib/components/output/Output.js.map +1 -1
  35. package/lib/components/terminal/Terminal.js.map +1 -1
  36. package/lib/examples/All.js +2 -2
  37. package/lib/examples/All.js.map +1 -1
  38. package/lib/examples/Bokeh.js +14 -0
  39. package/lib/examples/Bokeh.js.map +1 -0
  40. package/lib/examples/Bqplot.d.ts +1 -0
  41. package/lib/examples/Bqplot.js +14 -0
  42. package/lib/examples/Bqplot.js.map +1 -0
  43. package/lib/examples/Dashboard.d.ts +1 -0
  44. package/lib/examples/Dashboard.js +15 -0
  45. package/lib/examples/Dashboard.js.map +1 -0
  46. package/lib/examples/FileBrowser.d.ts +1 -0
  47. package/lib/examples/FileBrowser.js +10 -0
  48. package/lib/examples/FileBrowser.js.map +1 -0
  49. package/lib/examples/IPyWidgets.d.ts +1 -0
  50. package/lib/examples/IPyWidgets.js +15 -0
  51. package/lib/examples/IPyWidgets.js.map +1 -0
  52. package/lib/examples/IpyReact.d.ts +1 -0
  53. package/lib/examples/IpyReact.js +14 -0
  54. package/lib/examples/IpyReact.js.map +1 -0
  55. package/lib/examples/NotebookModel.js +4 -3
  56. package/lib/examples/NotebookModel.js.map +1 -1
  57. package/lib/examples/NotebookModelChange.js.map +1 -1
  58. package/lib/examples/NotebookRedux.d.ts +1 -0
  59. package/lib/examples/NotebookRedux.js +33 -0
  60. package/lib/examples/NotebookRedux.js.map +1 -0
  61. package/lib/examples/Panel.d.ts +1 -0
  62. package/lib/examples/Panel.js +14 -0
  63. package/lib/examples/Panel.js.map +1 -0
  64. package/lib/examples/Plotly.d.ts +1 -0
  65. package/lib/examples/Plotly.js +14 -0
  66. package/lib/examples/Plotly.js.map +1 -0
  67. package/lib/examples/notebooks/IPyWidgetsExample1.ipynb.json +136 -0
  68. package/lib/examples/redux/ExampleState.d.ts +12 -0
  69. package/lib/examples/redux/ExampleState.js +31 -0
  70. package/lib/examples/redux/ExampleState.js.map +1 -0
  71. package/lib/index.d.ts +6 -4
  72. package/lib/index.js +9 -5
  73. package/lib/index.js.map +1 -1
  74. package/lib/jupyter/Jupyter.d.ts +2 -2
  75. package/lib/jupyter/Jupyter.js +3 -3
  76. package/lib/jupyter/Jupyter.js.map +1 -1
  77. package/lib/jupyter/JupyterContext.d.ts +3 -2
  78. package/lib/jupyter/JupyterContext.js.map +1 -1
  79. package/lib/jupyter/ipywidgets/IPyWidgetsClassicManager.d.ts +1 -1
  80. package/lib/jupyter/ipywidgets/IPyWidgetsClassicManager.js +1 -1
  81. package/lib/jupyter/ipywidgets/IPyWidgetsClassicManager.js.map +1 -1
  82. package/lib/jupyter/ipywidgets/IPyWidgetsJupyterLabPlugin.js +13 -13
  83. package/lib/jupyter/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +1 -1
  84. package/lib/jupyter/ipywidgets/{IpyWidgetsManager.d.ts → IPyWidgetsManager.d.ts} +2 -2
  85. package/lib/jupyter/ipywidgets/{IpyWidgetsManager.js → IPyWidgetsManager.js} +3 -3
  86. package/lib/jupyter/ipywidgets/{IpyWidgetsManager.js.map → IPyWidgetsManager.js.map} +1 -1
  87. package/lib/jupyter/lab/index.d.ts +2 -5
  88. package/lib/jupyter/lab/index.js +27 -16
  89. package/lib/jupyter/lab/index.js.map +1 -1
  90. package/lib/jupyter/lab/notebook/classic/classic.d.ts +27 -0
  91. package/lib/jupyter/lab/notebook/classic/classic.js +100 -0
  92. package/lib/jupyter/lab/notebook/classic/classic.js.map +1 -0
  93. package/lib/jupyter/lab/notebook/classic/icons.d.ts +2 -0
  94. package/lib/jupyter/lab/notebook/classic/icons.js +7 -0
  95. package/lib/jupyter/lab/notebook/classic/icons.js.map +1 -0
  96. package/lib/jupyter/lab/notebook/classic/index.d.ts +11 -0
  97. package/lib/jupyter/lab/notebook/classic/index.js +154 -0
  98. package/lib/jupyter/lab/notebook/classic/index.js.map +1 -0
  99. package/lib/jupyter/lab/notebook/header/index.d.ts +6 -0
  100. package/lib/jupyter/lab/notebook/header/index.js +21 -0
  101. package/lib/jupyter/lab/notebook/header/index.js.map +1 -0
  102. package/lib/jupyter/lab/widget.d.ts +1 -1
  103. package/lib/jupyter/lab/widget.js +3 -3
  104. package/lib/jupyter/lab/widget.js.map +1 -1
  105. package/lib/jupyter/lumino/Lumino.js +3 -0
  106. package/lib/jupyter/lumino/Lumino.js.map +1 -1
  107. package/lib/jupyter/lumino/LuminoNotebook.js +9 -8
  108. package/lib/jupyter/lumino/LuminoNotebook.js.map +1 -1
  109. package/lib/jupyter/renderers/index.d.ts +0 -0
  110. package/lib/jupyter/renderers/index.js +1 -0
  111. package/lib/jupyter/renderers/index.js.map +1 -0
  112. package/lib/jupyter/renderers/plotly/PlotlyRenderer.d.ts +50 -0
  113. package/lib/jupyter/renderers/plotly/PlotlyRenderer.js +208 -0
  114. package/lib/jupyter/renderers/plotly/PlotlyRenderer.js.map +1 -0
  115. package/lib/jupyter/renderers/plotly/plotly.css +27 -0
  116. package/lib/{state → redux}/InitState.js.map +1 -1
  117. package/lib/{state → redux}/State.d.ts +1 -2
  118. package/lib/{state → redux}/State.js.map +1 -1
  119. package/lib/redux/Store.d.ts +13 -0
  120. package/lib/{state → redux}/Store.js +17 -12
  121. package/lib/redux/Store.js.map +1 -0
  122. package/package.json +46 -41
  123. package/style/base.css +4 -0
  124. package/style/svg/notebookClassic.svg +3 -0
  125. package/lib/components/ipywidgets/IpyWidgetsComponent.d.ts +0 -5
  126. package/lib/components/notebook/cell/sidebar/base/CellSidebarContentFactory.js.map +0 -1
  127. package/lib/components/notebook/cell/sidebar/base/CellSidebarWidget.js.map +0 -1
  128. package/lib/components/notebook/model/DatalayerNotebookModelFactory.js.map +0 -1
  129. package/lib/examples/NotebookIpyWidgets.js +0 -13
  130. package/lib/examples/NotebookIpyWidgets.js.map +0 -1
  131. package/lib/jupyter/lab/Example.js +0 -6
  132. package/lib/jupyter/lab/Example.js.map +0 -1
  133. package/lib/jupyter/lab/component/MockComponent.d.ts +0 -2
  134. package/lib/jupyter/lab/component/MockComponent.js.map +0 -1
  135. package/lib/jupyter/lab/component/MockTab1.d.ts +0 -2
  136. package/lib/jupyter/lab/component/MockTab1.js +0 -9
  137. package/lib/jupyter/lab/component/MockTab1.js.map +0 -1
  138. package/lib/state/Store.d.ts +0 -6
  139. package/lib/state/Store.js.map +0 -1
  140. /package/lib/{jupyter/lab/Example.d.ts → app/App.d.ts} +0 -0
  141. /package/lib/components/ipywidgets/{IpyWidgetsComponent.css → IPyWidgetsComponent.css} +0 -0
  142. /package/lib/components/notebook/cell/sidebar/{base → lumino}/CellSidebarWidget.d.ts +0 -0
  143. /package/lib/components/notebook/cell/sidebar/{base → lumino}/CellSidebarWidget.js +0 -0
  144. /package/lib/examples/{NotebookIpyWidgets.d.ts → Bokeh.d.ts} +0 -0
  145. /package/lib/{state → redux}/InitState.d.ts +0 -0
  146. /package/lib/{state → redux}/InitState.js +0 -0
  147. /package/lib/{state → redux}/State.js +0 -0
@@ -7,12 +7,21 @@ function createReducer(asyncReducers) {
7
7
  ...asyncReducers,
8
8
  });
9
9
  }
10
- function createInjectableStore() {
11
- const injectableStore = createStore(createReducer([initReducer]), applyMiddleware(epicMiddleware));
10
+ /*
11
+ export const createEpics = (initEpics: any) => {
12
+ const epic$ = new BehaviorSubject(initEpics);
13
+ const rootEpic = (action$: any, state$: any, deps: any) => epic$.pipe(
14
+ mergeMap(epic => epic(action$, state$, deps))
15
+ );
16
+ epicMiddleware.run(rootEpic as any);
17
+ }
18
+ */
19
+ export const createInjectableStore = (store) => {
20
+ const injectableStore = store;
12
21
  injectableStore.asyncReducers = {};
13
22
  injectableStore.inject = (key, asyncReducer, epic) => {
14
23
  const reducer = injectableStore.asyncReducers[key];
15
- if (!reducer) {
24
+ if (key === 'init' || !reducer) {
16
25
  if (epic) {
17
26
  epicMiddleware.run(epic);
18
27
  }
@@ -22,14 +31,10 @@ function createInjectableStore() {
22
31
  }
23
32
  };
24
33
  return injectableStore;
25
- }
26
- /*
27
- export const epic$ = new BehaviorSubject(initEpics);
28
- const rootEpic = (action$: any, state$: any, deps: any) => epic$.pipe(
29
- mergeMap(epic => epic(action$, state$, deps))
30
- );
31
- epicMiddleware.run(rootEpic);
32
- */
33
- const injectableStore = createInjectableStore();
34
+ };
35
+ export const createReduxEpicStore = () => createStore(createReducer({ initReducer }), applyMiddleware(epicMiddleware));
36
+ const store = createReduxEpicStore();
37
+ const injectableStore = createInjectableStore(store);
38
+ injectableStore.inject('init', initReducer);
34
39
  export default injectableStore;
35
40
  //# sourceMappingURL=Store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/redux/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAA4B,MAAM,OAAO,CAAC;AAChG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,cAAc,GAAG,oBAAoB,EAAgD,CAAC;AAE5F,SAAS,aAAa,CAAC,aAAgC;IACrD,OAAO,eAAe,CAAC;QACrB,GAAG,aAAa;KACjB,CAAC,CAAC;AACL,CAAC;AACD;;;;;;;;EAQE;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAmB,EAAE;IACrE,MAAM,eAAe,GAAG,KAAwB,CAAC;IACjD,eAAe,CAAC,aAAa,GAAG,EAAE,CAAC;IACnC,eAAe,CAAC,MAAM,GAAG,CAAC,GAAW,EAAE,YAAiB,EAAE,IAAU,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,GAAG,KAAK,MAAM,IAAI,CAAC,OAAO,EAAE;YAC9B,IAAI,IAAI,EAAE;gBACR,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aAC1B;YACD,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC;YAClD,MAAM,UAAU,GAAG,aAAa,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;YAChE,eAAe,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;SAC5C;IACH,CAAC,CAAA;IACD,OAAO,eAAkC,CAAC;AAC5C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,WAAW,CACnD,aAAa,CAAC,EAAC,WAAW,EAAC,CAAC,EAC5B,eAAe,CAAC,cAAc,CAAC,CAChC,CAAC;AAEF,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;AACrC,MAAM,eAAe,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AACrD,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAE5C,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/jupyter-react",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Jupyter React",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -28,6 +28,7 @@
28
28
  "build:prod": "gulp resources-to-lib && tsc && jlpm clean && jlpm build:lib && jlpm build:labextension",
29
29
  "build:tsc:watch:res": "gulp resources-to-lib-watch",
30
30
  "build:tsc:watch:tsc": "tsc --watch",
31
+ "build:webpack": "cross-env BUILD_APP=true webpack-cli build",
31
32
  "clean": "rimraf node_modules lib dist build tsconfig.tsbuildinfo",
32
33
  "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
33
34
  "clean:labextension": "rimraf datalayer/labextension",
@@ -65,40 +66,44 @@
65
66
  "@datalayer/jupyterlite-kernel": "0.1.0-beta.13",
66
67
  "@datalayer/jupyterlite-server": "0.1.0-beta.13",
67
68
  "@datalayer/jupyterlite-server-extension": "0.1.0-beta.13",
68
- "@datalayer/primer-addons": "0.0.16",
69
+ "@datalayer/primer-addons": "0.0.18",
69
70
  "@datalayer/typescript-fsa-redux-observable": "0.18.0",
70
- "@jupyter-widgets/base": "6.0.4",
71
- "@jupyter-widgets/controls": "5.0.5",
72
- "@jupyter-widgets/html-manager": "1.0.7",
73
- "@jupyter-widgets/jupyterlab-manager": "5.0.7",
74
- "@jupyter-widgets/output": "6.0.2",
75
- "@jupyter/ydoc": "1.0.2",
76
- "@jupyterlab/apputils": "4.0.0",
77
- "@jupyterlab/cells": "4.0.0",
78
- "@jupyterlab/codemirror": "4.0.0",
79
- "@jupyterlab/completer": "4.0.0",
80
- "@jupyterlab/console": "4.0.0",
81
- "@jupyterlab/coreutils": "6.0.0",
82
- "@jupyterlab/docmanager": "4.0.0",
83
- "@jupyterlab/docregistry": "4.0.0",
84
- "@jupyterlab/documentsearch": "4.0.0",
85
- "@jupyterlab/filebrowser": "4.0.0",
86
- "@jupyterlab/fileeditor": "4.0.0",
87
- "@jupyterlab/javascript-extension": "4.0.0",
88
- "@jupyterlab/json-extension": "4.0.0",
89
- "@jupyterlab/markedparser-extension": "4.0.0",
71
+ "@jupyter-widgets/base": "6.0.5",
72
+ "@jupyter-widgets/controls": "5.0.6",
73
+ "@jupyter-widgets/html-manager": "1.0.8",
74
+ "@jupyter-widgets/jupyterlab-manager": "5.0.8",
75
+ "@jupyter-widgets/output": "6.0.5",
76
+ "@jupyter/ydoc": "1.1.0-a0",
77
+ "@jupyterlab/apputils": "4.1.3",
78
+ "@jupyterlab/cells": "4.0.3",
79
+ "@jupyterlab/codemirror": "4.0.3",
80
+ "@jupyterlab/completer": "4.0.3",
81
+ "@jupyterlab/console": "4.0.3",
82
+ "@jupyterlab/coreutils": "6.0.3",
83
+ "@jupyterlab/docmanager": "4.0.3",
84
+ "@jupyterlab/docmanager-extension": "4.0.3",
85
+ "@jupyterlab/docregistry": "4.0.3",
86
+ "@jupyterlab/documentsearch": "4.0.3",
87
+ "@jupyterlab/filebrowser": "4.0.3",
88
+ "@jupyterlab/fileeditor": "4.0.3",
89
+ "@jupyterlab/javascript-extension": "4.0.3",
90
+ "@jupyterlab/json-extension": "4.0.3",
91
+ "@jupyterlab/markedparser-extension": "4.0.3",
90
92
  "@jupyterlab/mathjax-extension": "4.0.0",
91
- "@jupyterlab/nbconvert-css": "4.0.0",
92
- "@jupyterlab/notebook": "4.0.0",
93
- "@jupyterlab/outputarea": "4.0.0",
94
- "@jupyterlab/rendermime": "4.0.0",
95
- "@jupyterlab/rendermime-extension": "4.0.0",
96
- "@jupyterlab/rendermime-interfaces": "3.8.0",
97
- "@jupyterlab/services": "7.0.0",
98
- "@jupyterlab/terminal": "4.0.0",
99
- "@jupyterlab/theme-dark-extension": "4.0.0",
100
- "@jupyterlab/theme-light-extension": "4.0.0",
101
- "@lumino/default-theme": "2.1.1",
93
+ "@jupyterlab/metadataform": "4.0.3",
94
+ "@jupyterlab/nbconvert-css": "4.0.3",
95
+ "@jupyterlab/notebook": "4.0.3",
96
+ "@jupyterlab/observables": "5.0.3",
97
+ "@jupyterlab/outputarea": "4.0.3",
98
+ "@jupyterlab/property-inspector": "4.0.3",
99
+ "@jupyterlab/rendermime": "4.0.3",
100
+ "@jupyterlab/rendermime-extension": "4.0.3",
101
+ "@jupyterlab/rendermime-interfaces": "3.8.3",
102
+ "@jupyterlab/services": "7.0.3",
103
+ "@jupyterlab/terminal": "4.0.3",
104
+ "@jupyterlab/theme-dark-extension": "4.0.3",
105
+ "@jupyterlab/theme-light-extension": "4.0.3",
106
+ "@lumino/default-theme": "2.1.2",
102
107
  "assert": "2.0.0",
103
108
  "codemirror": "6.0.1",
104
109
  "cross-env": "7.0.3",
@@ -123,10 +128,10 @@
123
128
  "@babel/preset-env": "7.20.2",
124
129
  "@babel/preset-react": "7.18.6",
125
130
  "@babel/preset-typescript": "7.21.0",
126
- "@jupyterlab/builder": "4.0.0",
131
+ "@jupyterlab/builder": "4.0.3",
127
132
  "@jupyterlab/geojson-extension": "3.3.1",
128
- "@jupyterlab/launcher": "4.0.0",
129
- "@jupyterlab/testutils": "4.0.0",
133
+ "@jupyterlab/launcher": "4.0.3",
134
+ "@jupyterlab/testutils": "4.0.3",
130
135
  "@jupyterlab/vega3-extension": "3.1.3",
131
136
  "@mui/icons-material": "5.10.16",
132
137
  "@mui/lab": "5.0.0-alpha.85",
@@ -136,8 +141,8 @@
136
141
  "@types/codemirror": "5.60.4",
137
142
  "@types/jest": "29.4.0",
138
143
  "@types/marked": "4.0.1",
139
- "@types/node": "18.11.9",
140
- "@types/plotly.js": "1.54.11",
144
+ "@types/node": "18.15.3",
145
+ "@types/plotly.js": "2.12.25",
141
146
  "@types/react": "18.2.12",
142
147
  "@types/react-dom": "18.2.5",
143
148
  "@types/styled-components": "5.1.26",
@@ -160,9 +165,9 @@
160
165
  "jest": "29.4.3",
161
166
  "mkdirp": "1.0.3",
162
167
  "npm-run-all": "4.1.5",
163
- "plotly.js": "2.11.1",
168
+ "plotly.js": "2.25.0",
164
169
  "prettier": "2.1.1",
165
- "process": "^0.11.10",
170
+ "process": "0.11.10",
166
171
  "raw-loader": "~4.0.0",
167
172
  "rimraf": "3.0.2",
168
173
  "stream-browserify": "2.0.2",
@@ -209,7 +214,7 @@
209
214
  "jupyter-releaser": {
210
215
  "hooks": {
211
216
  "before-build-npm": [
212
- "python -m pip install jupyterlab==4.0.0",
217
+ "python -m pip install jupyterlab==4.0.3",
213
218
  "jlpm"
214
219
  ],
215
220
  "before-build-python": [
package/style/base.css CHANGED
@@ -8,3 +8,7 @@ body {
8
8
  padding: 0;
9
9
  overflow-y: scroll;
10
10
  }
11
+
12
+ .dla-Notebook-header {
13
+ min-height: 100%;
14
+ }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 21 21" aria-hidden="true">
2
+ <path fill="#F37726" d="M10.385 16.574c-3.755 0-7.055-1.348-8.761-3.338a9.34 9.34 0 0017.522 0c-1.702 1.99-4.99 3.338-8.761 3.338zM10.385 3.633c3.755 0 7.054 1.348 8.76 3.338a9.342 9.342 0 00-17.521 0c1.706-1.994 4.99-3.338 8.76-3.338z"/>
3
+ </svg>
@@ -1,5 +0,0 @@
1
- import './IpyWidgetsComponent.css';
2
- export declare const IpyWidgetsComponent: (props: {
3
- Widget: any;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default IpyWidgetsComponent;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellSidebarContentFactory.js","sourceRoot":"","sources":["../../../../../../src/components/notebook/cell/sidebar/base/CellSidebarContentFactory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qBAAqB,CAAC;AAC1E,oDAAoD;AACpD,+DAA+D;AAE/D;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,aAAa,CAAC,cAAc;IACxD,WAAW,CAA2C;IACtD,UAAU,CAAS;IACnB,QAAQ,CAAU;IAClB,QAAQ,CAAkB;IAC1B,KAAK,CAAQ;IAC9B,YACE,WAAqD,EACrD,UAAkB,EAClB,QAAiB,EACjB,QAAyB,EACzB,OAAqC,EACrC,KAAa;QAEb,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAK,CAAC,cAAc,CAAA;QACpB,IAAI,CAAC,UAAU,GAAG,UAAU;YAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAM,CAAC;IACtB,CAAC;IACD,gBAAgB;IAChB,gBAAgB;QACd,OAAO,IAAI,iBAAiB,CAC1B,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,CACT,CAAC;IACN,CAAC;CAMF;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellSidebarWidget.js","sourceRoot":"","sources":["../../../../../../src/components/notebook/cell/sidebar/base/CellSidebarWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIzC,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,0BAA0B,CAAC;AAStE,MAAM,OAAO,iBAAkB,SAAQ,iBAAiB;IACrC,QAAQ,CAAkB;IAC3C,YACE,WAAqD,EACrD,UAAkB,EAClB,QAAiB,EACjB,QAAyB,EACzB,KAAY;QAEZ,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC/B,IAAI,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;QACpB,MAAM,KAAK,GAAqB;YAC9B,UAAU;YACV,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,QAAQ;SACT,CAAC;QACF,MAAM,OAAO,GAAG,aAAa,CAC3B,WAAW,EACX,KAAK,CACN,CAAC;QACF,MAAM,MAAM,GAAG,YAAY,CACzB,cAAK,SAAS,EAAE,2BAA2B,YACxC,OAAO,GACJ,EAEN,IAAI,CAAC,IAAI,CACV,CAAC;QACF,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC;CACF;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatalayerNotebookModelFactory.js","sourceRoot":"","sources":["../../../../src/components/notebook/model/DatalayerNotebookModelFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI3F,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;IAC7D,SAAS,CAAoB;IAErC,gBAAgB;IAChB,YAAY,OAA+C;QACzD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IACpC,CAAC;IAED,gBAAgB;IAChB,SAAS,CACP,OAAwD;QAExD,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;YAClC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/B,OAAO,KAAK,CAAC;SACd;QACD,OAAO,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CAEF;AASD,eAAe,6BAA6B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createRoot } from 'react-dom/client';
3
- import Jupyter from '../jupyter/Jupyter';
4
- import Notebook from '../components/notebook/Notebook';
5
- import NotebookToolbar from "./toolbars/NotebookToolbar";
6
- import CellSidebarNew from "../components/notebook/cell/sidebar/CellSidebarNew";
7
- import "./../../style/index.css";
8
- const div = document.createElement('div');
9
- document.body.appendChild(div);
10
- const root = createRoot(div);
11
- root.render(_jsx(Jupyter, { children: _jsx(Notebook, { path: "ipywidgets.ipynb", CellSidebar: CellSidebarNew, Toolbar: NotebookToolbar, height: 'calc(100vh - 2.6rem)' // (Height - Toolbar Height).
12
- , uid: "notebook-uid" }) }));
13
- //# sourceMappingURL=NotebookIpyWidgets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotebookIpyWidgets.js","sourceRoot":"","sources":["../../src/examples/NotebookIpyWidgets.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,cAAc,MAAM,oDAAoD,CAAC;AAEhF,OAAO,yBAAyB,CAAC;AAEjC,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAC/B,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,CAAA;AAE5B,IAAI,CAAC,MAAM,CACT,KAAC,OAAO,cACN,KAAC,QAAQ,IACP,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,eAAe,EACxB,MAAM,EAAC,sBAAsB,CAAC,6BAA6B;UAC3D,GAAG,EAAC,cAAc,GAClB,GACM,CACX,CAAC"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createRoot } from 'react-dom/client';
3
- import MockComponent from './component/MockComponent';
4
- const root = createRoot(document.getElementById('datalayer-root'));
5
- root.render(_jsx(MockComponent, {}));
6
- //# sourceMappingURL=Example.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Example.js","sourceRoot":"","sources":["../../../src/jupyter/lab/Example.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAEtD,MAAM,IAAI,GAAG,UAAU,CACrB,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAgB,CACzD,CAAC;AAEF,IAAI,CAAC,MAAM,CAAC,KAAC,aAAa,KAAG,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const MockComponent: () => JSX.Element;
2
- export default MockComponent;
@@ -1 +0,0 @@
1
- {"version":3,"file":"MockComponent.js","sourceRoot":"","sources":["../../../../src/jupyter/lab/component/MockComponent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,aAAa,GAAG,GAAgB,EAAE;IACtC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClC,OAAO,CACL,4BACE,KAAC,aAAa,cACZ,KAAC,UAAU,cACT,MAAC,GAAG,IAAC,KAAK,EAAE,EAAC,QAAQ,EAAE,GAAG,EAAC,aACzB,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,YACR,KAAC,YAAY,cACX,KAAC,YAAY,CAAC,IAAI,oBAAc,MAAM,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAE,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,wBAEjF,GACP,GACX,EACN,KAAC,GAAG,cACD,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,KAAC,QAAQ,KAAE,GACvB,IACF,GACK,GACC,GACf,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const MockTab1: () => JSX.Element;
2
- export default MockTab1;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { ActionList, Avatar, ActionMenu, ProgressBar, Box, } from '@primer/react';
3
- import { LinkIcon, AlertIcon } from '@primer/octicons-react';
4
- import { DaskIcon, PyTorchIcon, TensorFlowIcon } from "@datalayer/icons-react";
5
- const MockTab1 = () => {
6
- return (_jsxs(_Fragment, { children: [_jsxs(ActionMenu, { children: [_jsx(ActionMenu.Button, { children: "Kernels" }), _jsx(ActionMenu.Overlay, { children: _jsxs(ActionList, { children: [_jsx(ActionList.Item, { onSelect: event => console.log('New file'), children: "New kernel" }), _jsx(ActionList.Item, { children: "Copy kernel" }), _jsx(ActionList.Item, { children: "Edit kernel" }), _jsx(ActionList.Divider, {}), _jsx(ActionList.Item, { variant: "danger", children: "Delete kernel" })] }) })] }), _jsxs(ActionList, { children: [_jsxs(ActionList.Item, { children: [_jsx(ActionList.LeadingVisual, { children: _jsx(DaskIcon, {}) }), "Dask kernel"] }), _jsxs(ActionList.Item, { children: [_jsx(ActionList.LeadingVisual, { children: _jsx(PyTorchIcon, {}) }), "PyTorch Kernel"] }), _jsxs(ActionList.Item, { children: [_jsx(ActionList.LeadingVisual, { children: _jsx(TensorFlowIcon, {}) }), "Tensorflow Kernel"] }), _jsx(Box, { borderColor: "border.default", borderBottomWidth: 1, borderBottomStyle: "solid", pb: 3 }), _jsxs(ActionList.Item, { children: [_jsx(ActionList.LeadingVisual, { children: _jsx(LinkIcon, {}) }), "Starting..."] }), _jsx(ProgressBar, { progress: 80 }), _jsx(Box, { borderColor: "border.default", borderBottomWidth: 1, borderBottomStyle: "solid", pb: 3 }), _jsxs(ActionList.Item, { children: [_jsx(ActionList.LeadingVisual, { children: _jsx(Avatar, { src: "https://github.com/mona.png" }) }), "Me"] }), _jsxs(ActionList.Item, { variant: "danger", children: [_jsx(ActionList.LeadingVisual, { children: _jsx(AlertIcon, {}) }), "4 vulnerabilities"] })] })] }));
7
- };
8
- export default MockTab1;
9
- //# sourceMappingURL=MockTab1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MockTab1.js","sourceRoot":"","sources":["../../../../src/jupyter/lab/component/MockTab1.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,MAAM,EACN,UAAU,EACV,WAAW,EACX,GAAG,GACJ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE/E,MAAM,QAAQ,GAAG,GAAgB,EAAE;IACjC,OAAO,CACL,8BACE,MAAC,UAAU,eACT,KAAC,UAAU,CAAC,MAAM,0BAA4B,EAC9C,KAAC,UAAU,CAAC,OAAO,cACjB,MAAC,UAAU,eACT,KAAC,UAAU,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,2BAEzC,EAClB,KAAC,UAAU,CAAC,IAAI,8BAA8B,EAC9C,KAAC,UAAU,CAAC,IAAI,8BAA8B,EAC9C,KAAC,UAAU,CAAC,OAAO,KAAG,EACtB,KAAC,UAAU,CAAC,IAAI,IAAC,OAAO,EAAC,QAAQ,8BAAgC,IACtD,GACM,IACV,EACb,MAAC,UAAU,eACT,MAAC,UAAU,CAAC,IAAI,eACd,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,QAAQ,KAAG,GACa,mBAEX,EAClB,MAAC,UAAU,CAAC,IAAI,eACd,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,WAAW,KAAG,GACU,sBAEX,EAClB,MAAC,UAAU,CAAC,IAAI,eACd,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,cAAc,KAAG,GACO,yBAEX,EAClB,KAAC,GAAG,IAAC,WAAW,EAAC,gBAAgB,EAAC,iBAAiB,EAAE,CAAC,EAAE,iBAAiB,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,GAAG,EAC1F,MAAC,UAAU,CAAC,IAAI,eACd,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,QAAQ,KAAG,GACa,mBAEX,EAClB,KAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,GAAI,EAC7B,KAAC,GAAG,IAAC,WAAW,EAAC,gBAAgB,EAAC,iBAAiB,EAAE,CAAC,EAAE,iBAAiB,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,GAAG,EAC1F,MAAC,UAAU,CAAC,IAAI,eACd,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,MAAM,IAAC,GAAG,EAAC,6BAA6B,GAAG,GACnB,UAEX,EAClB,MAAC,UAAU,CAAC,IAAI,IAAC,OAAO,EAAC,QAAQ,aAC/B,KAAC,UAAU,CAAC,aAAa,cACvB,KAAC,SAAS,KAAG,GACY,yBAEX,IACP,IACZ,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,6 +0,0 @@
1
- declare const injectableStore: import("redux").Store<import("redux").EmptyObject & {
2
- [x: string]: unknown;
3
- }, never> & {
4
- dispatch: unknown;
5
- };
6
- export default injectableStore;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/state/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,cAAc,GAAG,oBAAoB,EAAgD,CAAC;AAE5F,SAAS,aAAa,CAAC,aAAkB;IACvC,OAAO,eAAe,CAAC;QACrB,GAAG,aAAa;KACjB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,qBAAqB;IAC5B,MAAM,eAAe,GAAG,WAAW,CACjC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC,EAC5B,eAAe,CAAC,cAAc,CAAC,CAChC,CAAC;IACD,eAAuB,CAAC,aAAa,GAAG,EAAE,CAAC;IAC3C,eAAuB,CAAC,MAAM,GAAG,CAAC,GAAW,EAAE,YAAiB,EAAE,IAAU,EAAE,EAAE;QAC/E,MAAM,OAAO,GAAI,eAAuB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,EAAE;YACZ,IAAI,IAAI,EAAE;gBACR,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aAC1B;YACA,eAAuB,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC;YAC3D,MAAM,UAAU,GAAG,aAAa,CAAE,eAAuB,CAAC,aAAa,CAAC,CAAC;YACzE,eAAe,CAAC,cAAc,CAAC,UAAiB,CAAC,CAAC;SACnD;IACH,CAAC,CAAA;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AACD;;;;;;EAME;AACF,MAAM,eAAe,GAAG,qBAAqB,EAAE,CAAC;AAEhD,eAAe,eAAe,CAAC"}
File without changes
File without changes
File without changes
File without changes