@zikojs/notebook 0.15.7 → 0.15.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zikojs/notebook",
3
- "version": "0.15.7",
3
+ "version": "0.15.9",
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": {
@@ -47,7 +47,7 @@
47
47
  "@codemirror/state": "^6.7.4",
48
48
  "@codemirror/view": "^6.43.11",
49
49
  "@zikojs/console": "latest",
50
- "@zikojs/lucide": "^0.2.2",
50
+ "@zikojs/lucide": "^1.1.0",
51
51
  "acorn": "^8.18.0",
52
52
  "codemirror": "^6.0.2",
53
53
  "rehype-stringify": "^10.0.1",
@@ -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
- // lineNumbers(),
167
+ lineNumbers(),
168
168
  highlightActiveLine(),
169
- // EditorView.theme({
170
- // "&": {
171
- // fontFamily: '"Fira Code", SFMono-Regular, Consolas, monospace',
172
- // fontSize: "13px",
173
- // lineHeight: "17px",
174
- // },
175
- // ".cm-scroller, .cm-content, .cm-line, .cm-gutterElement": {
176
- // lineHeight: "17px",
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
 
@@ -158,19 +158,4 @@
158
158
  font-size: 10px;
159
159
  padding-top: 6px;
160
160
  }
161
- }
162
-
163
-
164
- /* TEMP */
165
-
166
- .ziko-notebook .cm-editor{
167
- margin: 1px;
168
- outline: none;
169
- }
170
- .ziko-notebook .cm-scroller{
171
- margin: 1px;
172
- outline: none;
173
- }
174
- .ziko-notebook .cm-line{
175
- margin: 1px;
176
- }
161
+ }
File without changes