File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ node_modules/
40
40
# Version file is handled by hatchling
41
41
** /jupyter_react /_version.py
42
42
43
+ ** /jupyter_react /static
44
+
43
45
# Integration tests
44
46
test-results /
45
47
playwright-report /
@@ -169,3 +171,4 @@ packages/*/content
169
171
! .licenserc.yaml
170
172
! ** /static /README.md
171
173
! docs /static /img
174
+ ! ** /jupyter_react /static /README.md
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @datalayer/jupyter-react" ,
3
- "version" : " 0.17 .0" ,
3
+ "version" : " 0.18 .0" ,
4
4
"description" : " Jupyter React - React.js components 100% compatible with Jupyter." ,
5
5
"license" : " MIT" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change 6
6
7
7
import { useState , useRef , useEffect } from 'react' ;
8
8
import { basicSetup } from 'codemirror' ;
9
- import { EditorState , Compartment } from '@codemirror/state' ;
9
+ import { EditorState } from '@codemirror/state' ;
10
+ // import { Compartment } from '@codemirror/state';
10
11
import { keymap , EditorView , ViewUpdate } from '@codemirror/view' ;
11
- import { python } from '@codemirror/lang-python' ;
12
+ // import { python } from '@codemirror/lang-python';
12
13
import Kernel from '../../jupyter/kernel/Kernel' ;
13
14
import codeMirrorTheme from './CodeMirrorTheme' ;
14
15
import OutputAdapter from '../output/OutputAdapter' ;
@@ -79,7 +80,7 @@ export const CodeMirrorEditor = (props: {
79
80
} ;
80
81
useEffect ( ( ) => {
81
82
outputStore . setInput ( sourceId , code ) ;
82
- const language = new Compartment ( ) ;
83
+ // const language = new Compartment();
83
84
const keyBinding = [
84
85
{
85
86
key : 'Shift-Enter' ,
@@ -91,7 +92,7 @@ export const CodeMirrorEditor = (props: {
91
92
doc : code ,
92
93
extensions : [
93
94
basicSetup ,
94
- language . of ( python ( ) ) ,
95
+ // language.of(python()), // TODO CodeMirrorEditor imported by Output breaks the JupyterLab extension loading. https://github.com/datalayer/jupyter-ui/issues/170
95
96
EditorView . lineWrapping ,
96
97
keymap . of ( [ ...keyBinding ] ) ,
97
98
codeMirrorTheme ,
Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ export * from './components/cell/Cell';
44
44
export * from './components/cell/CellAdapter' ;
45
45
export * from './components/cell/CellState' ;
46
46
47
- // CodeMirror Editor.
48
- // @todo CodeMirrorEditor breaks the JupyterLab extension loading.
49
- // @see https://github.com/datalayer/jupyter-ui/issues/170
50
- // export * from './components/codemirror/CodeMirrorEditor';
51
-
52
47
// Commands.
53
48
export * from './components/commands/Commands' ;
54
49
@@ -75,6 +70,9 @@ export * from './components/jupyterlab/JupyterLabAppAdapter';
75
70
export * from './components/jupyterlab/JupyterLabAppPlugins' ;
76
71
export * from './components/jupyterlab/JupyterLabAppCss' ;
77
72
73
+ // CodeMirrorEditor.
74
+ export * from './components/codemirror/CodeMirrorEditor' ;
75
+
78
76
// Kernel.
79
77
export * from './components/kernel' ;
80
78
@@ -98,9 +96,6 @@ export * from './components/notebook/cell/sidebar/CellSidebarWidget';
98
96
export * from './components/notebook/cell/sidebar/CellSidebar' ;
99
97
export * from './components/notebook/cell/sidebar/CellSidebarRun' ;
100
98
101
- // Outputs.
102
- // @todo CodeMirrorEditor imported by Output breaks the JupyterLab extension loading.
103
- // @see https://github.com/datalayer/jupyter-ui/issues/170
104
99
export * from './components/output/Output' ;
105
100
export * from './components/output/OutputAdapter' ;
106
101
export * from './components/output/OutputState' ;
You can’t perform that action at this time.
0 commit comments