@zikojs/notebook 0.15.7 → 0.15.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/code-editor/index.js +19 -11
- package/src/index.css +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zikojs/notebook",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"description": "A lightweight, extensible JavaScript notebook component with Markdown, executable cells, persistent state, and pluggable runtimes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
package/src/code-editor/index.js
CHANGED
|
@@ -164,18 +164,26 @@ export function createCodeEditor(app, cellData, actions) {
|
|
|
164
164
|
const state = EditorState.create({
|
|
165
165
|
doc: cellData.code,
|
|
166
166
|
extensions: [
|
|
167
|
-
|
|
167
|
+
lineNumbers(),
|
|
168
168
|
highlightActiveLine(),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
169
|
+
EditorView.theme({
|
|
170
|
+
".cm-scroller, .cm-content, .cm-line, .cm-gutterElement": {
|
|
171
|
+
lineHeight: "17px",
|
|
172
|
+
margin : 0,
|
|
173
|
+
},
|
|
174
|
+
'.cm-gutters': {
|
|
175
|
+
background : 'transparent'
|
|
176
|
+
},
|
|
177
|
+
".cm-gutterElement":{
|
|
178
|
+
display : 'flex',
|
|
179
|
+
justifyContent : 'center',
|
|
180
|
+
// alignItems : 'center',
|
|
181
|
+
fontFamily : 'cursive',
|
|
182
|
+
fontSize : '.75em'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
// { dark : true}
|
|
186
|
+
),
|
|
179
187
|
|
|
180
188
|
history(),
|
|
181
189
|
bracketMatching(),
|
package/src/index.css
CHANGED
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
padding: 0;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.ziko-notebook .cm-line{
|
|
124
|
+
/* .ziko-notebook .cm-line{
|
|
125
125
|
line-height: 1.3 !important;
|
|
126
|
-
}
|
|
126
|
+
} */
|
|
127
127
|
|
|
128
128
|
/* --- OUTPUT --- */
|
|
129
129
|
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* TEMP */
|
|
165
165
|
|
|
166
|
-
.ziko-notebook .cm-editor{
|
|
166
|
+
/* .ziko-notebook .cm-editor{
|
|
167
167
|
margin: 1px;
|
|
168
168
|
outline: none;
|
|
169
169
|
}
|
|
@@ -173,4 +173,4 @@
|
|
|
173
173
|
}
|
|
174
174
|
.ziko-notebook .cm-line{
|
|
175
175
|
margin: 1px;
|
|
176
|
-
}
|
|
176
|
+
} */
|