@datalayer/jupyter-react 0.2.2 → 0.3.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.
Files changed (76) hide show
  1. package/README.md +8 -6
  2. package/lib/components/cell/Cell.d.ts +1 -1
  3. package/lib/components/cell/CellAdapter.js +51 -6
  4. package/lib/components/cell/CellAdapter.js.map +1 -1
  5. package/lib/components/codemirror/CodeMirrorOutputToolbar.d.ts +1 -1
  6. package/lib/components/commands/CommandsState.d.ts +1 -1
  7. package/lib/components/console/Console.js +2 -2
  8. package/lib/components/console/Console.js.map +1 -1
  9. package/lib/components/console/ConsoleAdapter.d.ts +2 -2
  10. package/lib/components/console/ConsoleAdapter.js +65 -21
  11. package/lib/components/console/ConsoleAdapter.js.map +1 -1
  12. package/lib/components/console/ConsoleState.d.ts +1 -1
  13. package/lib/components/filebrowser/FileBrowserAdapter.js +20 -3
  14. package/lib/components/filebrowser/FileBrowserAdapter.js.map +1 -1
  15. package/lib/components/filebrowser/FileBrowserState.d.ts +1 -1
  16. package/lib/components/notebook/Notebook.d.ts +1 -1
  17. package/lib/components/notebook/NotebookAdapter.js +47 -5
  18. package/lib/components/notebook/NotebookAdapter.js.map +1 -1
  19. package/lib/components/notebook/NotebookCommands.js +2 -1
  20. package/lib/components/notebook/NotebookCommands.js.map +1 -1
  21. package/lib/components/notebook/NotebookState.d.ts +13 -12
  22. package/lib/components/notebook/NotebookState.js +6 -0
  23. package/lib/components/notebook/NotebookState.js.map +1 -1
  24. package/lib/components/notebook/cell/metadata/CellMetadataEditor.d.ts +1 -1
  25. package/lib/components/notebook/cell/sidebar/base/CellSidebarContentFactory.d.ts +1 -1
  26. package/lib/components/notebook/cell/sidebar/base/CellSidebarContentFactory.js +1 -1
  27. package/lib/components/notebook/cell/sidebar/base/CellSidebarContentFactory.js.map +1 -1
  28. package/lib/components/notebook/cell/sidebar/base/CellSidebarWidget.d.ts +1 -1
  29. package/lib/components/notebook/marked/marked.d.ts +2 -1
  30. package/lib/components/notebook/marked/marked.js +17 -25
  31. package/lib/components/notebook/marked/marked.js.map +1 -1
  32. package/lib/components/output/Output.d.ts +1 -1
  33. package/lib/components/output/Output.js +0 -6
  34. package/lib/components/output/Output.js.map +1 -1
  35. package/lib/components/output/OutputRenderer.d.ts +1 -1
  36. package/lib/components/output/OutputState.d.ts +1 -1
  37. package/lib/components/settings/SettingsState.d.ts +1 -1
  38. package/lib/components/terminal/TerminalState.d.ts +1 -1
  39. package/lib/examples/Cell.js +2 -2
  40. package/lib/examples/Cell.js.map +1 -1
  41. package/lib/examples/Console.d.ts +1 -0
  42. package/lib/examples/Console.js +11 -0
  43. package/lib/examples/Console.js.map +1 -0
  44. package/lib/examples/Notebook.js +4 -3
  45. package/lib/examples/Notebook.js.map +1 -1
  46. package/lib/examples/notebooks/NotebookExample1.ipynb.json +2 -2
  47. package/lib/examples/notebooks/NotebookExample2.ipynb.json +2 -2
  48. package/lib/examples/toolbars/NotebookToolbarStatus.d.ts +4 -0
  49. package/lib/examples/toolbars/NotebookToolbarStatus.js +9 -0
  50. package/lib/examples/toolbars/NotebookToolbarStatus.js.map +1 -0
  51. package/lib/index.d.ts +1 -0
  52. package/lib/index.js +1 -0
  53. package/lib/index.js.map +1 -1
  54. package/lib/jupyter/Jupyter.d.ts +2 -2
  55. package/lib/jupyter/Jupyter.js +1 -1
  56. package/lib/jupyter/Jupyter.js.map +1 -1
  57. package/lib/jupyter/JupyterConfig.d.ts +1 -1
  58. package/lib/jupyter/JupyterConfig.js +1 -1
  59. package/lib/jupyter/JupyterConfig.js.map +1 -1
  60. package/lib/jupyter/JupyterContext.d.ts +2 -1
  61. package/lib/jupyter/JupyterContext.js +42 -25
  62. package/lib/jupyter/JupyterContext.js.map +1 -1
  63. package/lib/jupyter/ipywidgets/plotly/Figure.d.ts +3 -3
  64. package/lib/jupyter/ipywidgets/plotly/Figure.js +2 -1
  65. package/lib/jupyter/ipywidgets/plotly/Figure.js.map +1 -1
  66. package/lib/jupyter/lab/__tests__/datalayer.spec.d.ts +0 -3
  67. package/lib/jupyter/lab/__tests__/datalayer.spec.js +0 -3
  68. package/lib/jupyter/lab/__tests__/datalayer.spec.js.map +1 -1
  69. package/lib/jupyter/lab/index.js +5 -5
  70. package/lib/jupyter/lab/index.js.map +1 -1
  71. package/lib/jupyter/lite/LiteServer.js.map +1 -1
  72. package/lib/jupyter/lumino/LuminoReactPortal.d.ts +1 -1
  73. package/lib/jupyter/services/kernel/Kernel.d.ts +1 -1
  74. package/lib/jupyter/services/kernel/Kernel.js +2 -2
  75. package/lib/jupyter/services/kernel/Kernel.js.map +1 -1
  76. package/package.json +62 -64
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@datalayer/jupyter-react",
3
- "version": "0.2.2",
4
- "description": "Jupyter React",
3
+ "version": "0.3.1",
4
+ "description": "Jupyter UI",
5
5
  "license": "MIT",
6
- "private": false,
7
6
  "main": "lib/index.js",
8
7
  "files": [
9
8
  "lib",
@@ -11,13 +10,13 @@
11
10
  ],
12
11
  "keywords": [
13
12
  "jupyter",
14
- "react",
15
13
  "jupyterlab",
16
- "jupyterlab-extension"
14
+ "jupyterlab-extension",
15
+ "react"
17
16
  ],
18
17
  "repository": {
19
18
  "type": "git",
20
- "url": "https://github.com/datalayer/jupyter-react.git",
19
+ "url": "https://github.com/datalayer/jupyter-ui.git",
21
20
  "directory": "packages/react"
22
21
  },
23
22
  "scripts": {
@@ -46,8 +45,7 @@
46
45
  "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
47
46
  "prettier:check": "jlpm prettier:base --check",
48
47
  "start": "run-p -c start:*",
49
- "start:jupyter": "cd ./../.. && make start-jupyter-server",
50
- "start:jupyter-server": "cd ./../../dev/sh && ./start-jupyter-server.sh",
48
+ "start-jupyter": "cd ./../.. && make start-jupyter-server",
51
49
  "start:webpack": "webpack serve",
52
50
  "stylelint": "jlpm stylelint:check --fix",
53
51
  "stylelint:check": "stylelint --cache \"style/**/*.css\"",
@@ -59,6 +57,7 @@
59
57
  },
60
58
  "dependencies": {
61
59
  "@codemirror/lang-python": "6.0.1",
60
+ "@datalayer/icons": "0.0.10",
62
61
  "@datalayer/jupyterlite-ipykernel": "0.1.0-beta.13",
63
62
  "@datalayer/jupyterlite-ipykernel-extension": "0.1.0-beta.13",
64
63
  "@datalayer/jupyterlite-kernel": "0.1.0-beta.13",
@@ -70,36 +69,35 @@
70
69
  "@jupyter-widgets/html-manager": "1.0.5",
71
70
  "@jupyter-widgets/jupyterlab-manager": "5.0.5",
72
71
  "@jupyter-widgets/output": "6.0.2",
73
- "@jupyter/ydoc": "0.3.1",
74
- "@jupyterlab/apputils": "4.0.0-alpha.18",
75
- "@jupyterlab/cells": "4.0.0-alpha.18",
76
- "@jupyterlab/codemirror": "4.0.0-alpha.18",
77
- "@jupyterlab/completer": "4.0.0-alpha.18",
78
- "@jupyterlab/console": "4.0.0-alpha.18",
79
- "@jupyterlab/coreutils": "6.0.0-alpha.18",
80
- "@jupyterlab/docmanager": "4.0.0-alpha.18",
81
- "@jupyterlab/docprovider": "4.0.0-alpha.18",
82
- "@jupyterlab/docregistry": "4.0.0-alpha.18",
83
- "@jupyterlab/documentsearch": "4.0.0-alpha.18",
84
- "@jupyterlab/filebrowser": "4.0.0-alpha.18",
85
- "@jupyterlab/fileeditor": "4.0.0-alpha.18",
86
- "@jupyterlab/javascript-extension": "4.0.0-alpha.18",
87
- "@jupyterlab/json-extension": "4.0.0-alpha.18",
88
- "@jupyterlab/markedparser-extension": "4.0.0-alpha.18",
89
- "@jupyterlab/mathjax2": "4.0.0-alpha.18",
90
- "@jupyterlab/nbconvert-css": "4.0.0-alpha.18",
91
- "@jupyterlab/notebook": "4.0.0-alpha.18",
92
- "@jupyterlab/outputarea": "4.0.0-alpha.18",
93
- "@jupyterlab/rendermime": "4.0.0-alpha.18",
94
- "@jupyterlab/rendermime-extension": "4.0.0-alpha.18",
95
- "@jupyterlab/rendermime-interfaces": "3.8.0-alpha.18",
96
- "@jupyterlab/services": "7.0.0-alpha.18",
97
- "@jupyterlab/terminal": "4.0.0-alpha.18",
98
- "@jupyterlab/theme-dark-extension": "4.0.0-alpha.18",
99
- "@jupyterlab/theme-light-extension": "4.0.0-alpha.18",
100
- "@lumino/default-theme": "2.0.0-beta.1",
101
- "@primer/octicons-react": "17.10.0",
102
- "@primer/react": "35.18.0",
72
+ "@jupyter/ydoc": "1.0.2",
73
+ "@jupyterlab/apputils": "4.0.0-beta.1",
74
+ "@jupyterlab/cells": "4.0.0-beta.1",
75
+ "@jupyterlab/codemirror": "4.0.0-beta.1",
76
+ "@jupyterlab/completer": "4.0.0-beta.1",
77
+ "@jupyterlab/console": "4.0.0-beta.1",
78
+ "@jupyterlab/coreutils": "6.0.0-beta.1",
79
+ "@jupyterlab/docmanager": "4.0.0-beta.1",
80
+ "@jupyterlab/docregistry": "4.0.0-beta.1",
81
+ "@jupyterlab/documentsearch": "4.0.0-beta.1",
82
+ "@jupyterlab/filebrowser": "4.0.0-beta.1",
83
+ "@jupyterlab/fileeditor": "4.0.0-beta.1",
84
+ "@jupyterlab/javascript-extension": "4.0.0-beta.1",
85
+ "@jupyterlab/json-extension": "4.0.0-beta.1",
86
+ "@jupyterlab/markedparser-extension": "4.0.0-beta.1",
87
+ "@jupyterlab/mathjax2": "4.0.0-alpha.21",
88
+ "@jupyterlab/nbconvert-css": "4.0.0-beta.1",
89
+ "@jupyterlab/notebook": "4.0.0-beta.1",
90
+ "@jupyterlab/outputarea": "4.0.0-beta.1",
91
+ "@jupyterlab/rendermime": "4.0.0-beta.1",
92
+ "@jupyterlab/rendermime-extension": "4.0.0-beta.1",
93
+ "@jupyterlab/rendermime-interfaces": "3.8.0-beta.1",
94
+ "@jupyterlab/services": "7.0.0-beta.1",
95
+ "@jupyterlab/terminal": "4.0.0-beta.1",
96
+ "@jupyterlab/theme-dark-extension": "4.0.0-beta.1",
97
+ "@jupyterlab/theme-light-extension": "4.0.0-beta.1",
98
+ "@lumino/default-theme": "2.1.0",
99
+ "@primer/octicons-react": "18.2.0",
100
+ "@primer/react": "35.22.0",
103
101
  "assert": "2.0.0",
104
102
  "codemirror": "6.0.1",
105
103
  "lodash": "^4.17.4",
@@ -109,7 +107,7 @@
109
107
  "react-dom": "18.2.0",
110
108
  "react-error-boundary": "3.1.3",
111
109
  "react-redux": "7.2.4",
112
- "redux": "4.1.0",
110
+ "redux": "4.0.5",
113
111
  "redux-observable": "1.2.0",
114
112
  "rxjs": "6.6.0",
115
113
  "stream": "0.0.2",
@@ -119,33 +117,33 @@
119
117
  "uuid": "8.3.2"
120
118
  },
121
119
  "devDependencies": {
122
- "@babel/core": "7.19.6",
120
+ "@babel/core": "7.21.0",
123
121
  "@babel/plugin-proposal-class-properties": "7.18.6",
124
- "@babel/preset-env": "7.0.0",
122
+ "@babel/preset-env": "7.20.2",
125
123
  "@babel/preset-react": "7.18.6",
126
- "@babel/preset-typescript": "7.18.6",
127
- "@jupyterlab/builder": "4.0.0-alpha.18",
124
+ "@babel/preset-typescript": "7.21.0",
125
+ "@jupyterlab/builder": "4.0.0-beta.1",
128
126
  "@jupyterlab/geojson-extension": "3.3.1",
129
- "@jupyterlab/launcher": "4.0.0-alpha.18",
130
- "@jupyterlab/testutils": "4.0.0-alpha.18",
127
+ "@jupyterlab/launcher": "4.0.0-beta.1",
128
+ "@jupyterlab/testutils": "4.0.0-beta.1",
131
129
  "@jupyterlab/vega3-extension": "3.1.3",
132
- "@mui/material": "5.10.7",
133
130
  "@mui/icons-material": "5.10.16",
134
131
  "@mui/lab": "5.0.0-alpha.85",
132
+ "@mui/material": "5.10.7",
135
133
  "@mui/styles": "5.10.7",
136
134
  "@mui/system": "5.10.7",
137
135
  "@types/codemirror": "5.60.4",
138
- "@types/jest": "26.0.0",
136
+ "@types/jest": "29.4.0",
139
137
  "@types/marked": "4.0.1",
140
138
  "@types/node": "18.11.9",
141
139
  "@types/plotly.js": "1.54.11",
142
- "@types/react": "18.0.27",
143
- "@types/react-dom": "18.0.10",
140
+ "@types/react": "18.0.28",
141
+ "@types/react-dom": "18.0.11",
144
142
  "@types/styled-components": "5.1.26",
145
143
  "@types/uuid": "8.3.0",
146
144
  "@typescript-eslint/eslint-plugin": "4.8.1",
147
145
  "@typescript-eslint/parser": "4.8.1",
148
- "babel-loader": "8.3.0",
146
+ "babel-loader": "9.1.2",
149
147
  "bundle-loader": "0.5.6",
150
148
  "css-loader": "5.2.4",
151
149
  "eslint": "7.14.0",
@@ -158,7 +156,7 @@
158
156
  "gulp-watch": "5.0.1",
159
157
  "html-webpack-plugin": "5.3.1",
160
158
  "html-webpack-tags-plugin": "2.0.17",
161
- "jest": "26.0.0",
159
+ "jest": "29.4.3",
162
160
  "mkdirp": "1.0.3",
163
161
  "npm-run-all": "4.1.5",
164
162
  "prettier": "2.1.1",
@@ -173,9 +171,9 @@
173
171
  "stylelint-config-standard": "~24.0.0",
174
172
  "stylelint-prettier": "2.0.0",
175
173
  "svg-url-loader": "~3.0.3",
176
- "ts-jest": "26.0.0",
177
- "typedoc": "0.23.24",
178
- "typescript": "4.8.1-rc",
174
+ "ts-jest": "29.0.5",
175
+ "typedoc": "0.24.4",
176
+ "typescript": "5.0.3",
179
177
  "url-loader": "~3.0.0",
180
178
  "watch": "~1.0.2",
181
179
  "webpack": "5.74.0",
@@ -184,8 +182,8 @@
184
182
  },
185
183
  "sideEffects": [
186
184
  "style/*.css",
187
- "style/index.js",
188
- "src/**/*.css"
185
+ "src/**/*.css",
186
+ "style/index.js"
189
187
  ],
190
188
  "styleModule": "style/index.js",
191
189
  "publishConfig": {
@@ -193,14 +191,14 @@
193
191
  },
194
192
  "jupyterlab": {
195
193
  "discovery": {
196
- "server": {
197
- "managers": [
198
- "pip"
199
- ],
200
- "base": {
201
- "name": "jupyter_react"
202
- }
194
+ "server": {
195
+ "managers": [
196
+ "pip"
197
+ ],
198
+ "base": {
199
+ "name": "jupyter_react"
203
200
  }
201
+ }
204
202
  },
205
203
  "extension": "./lib/jupyter/lab/index.js",
206
204
  "outputDir": "jupyter_react/labextension",
@@ -209,7 +207,7 @@
209
207
  "jupyter-releaser": {
210
208
  "hooks": {
211
209
  "before-build-npm": [
212
- "python -m pip install jupyterlab==4.0.0a33",
210
+ "python -m pip install jupyterlab==4.0.0b1",
213
211
  "jlpm"
214
212
  ],
215
213
  "before-build-python": [