@zikojs/notebook 0.15.5 → 0.15.7

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.5",
3
+ "version": "0.15.7",
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": {
@@ -46,7 +46,7 @@
46
46
  "@codemirror/language": "^6.12.4",
47
47
  "@codemirror/state": "^6.7.4",
48
48
  "@codemirror/view": "^6.43.11",
49
- "@zikojs/console": "^0.8.0",
49
+ "@zikojs/console": "latest",
50
50
  "@zikojs/lucide": "^0.2.2",
51
51
  "acorn": "^8.18.0",
52
52
  "codemirror": "^6.0.2",
@@ -54,7 +54,6 @@
54
54
  "remark": "^15.0.1",
55
55
  "remark-rehype": "^11.1.2",
56
56
  "vanjs-core": "^1.6.1",
57
- "zextra": "^1.15.0",
58
57
  "ziko": "latest"
59
58
  },
60
59
  "scripts": {
@@ -5,7 +5,7 @@
5
5
  align-items: center;
6
6
  justify-content: center;
7
7
  gap: 6px;
8
- background: #ffffff;
8
+ background: transparent;
9
9
  border: 1px solid var(--border-color);
10
10
  padding: 6px 10px;
11
11
  border-radius: 4px;
@@ -49,7 +49,7 @@ export function CellItem({ cellData, app, store }) {
49
49
  const inputRow = div({ class: "cell-input-row" }, inPrompt, bodySlot);
50
50
  const outputRow = div({ class: "cell-output-row" }, outPrompt, div({ class: "output-wrapper" }, outputRef));
51
51
  const root = div({ class: "cell" }, inputRow, controlsEl, outputRow);
52
- root.onClick(() => app.setActiveCell(cellData.id));
52
+ root.on('click', () => app.setActiveCell(cellData.id));
53
53
 
54
54
  cellData._dom = root.element;
55
55
  cellData._inPrompt = inPrompt.element;
@@ -1,8 +1,8 @@
1
1
  /* --- HEADER & TOOLBAR --- */
2
2
 
3
3
  .ziko-notebook .header {
4
- border-bottom: 1px solid var(--border-color);
5
- background: #ffffff;
4
+ /* border-bottom: 1px solid var(--border-color);
5
+ background: #ffffff; */
6
6
  padding: 10px 16px;
7
7
  display: flex;
8
8
  align-items: center;
@@ -9,7 +9,7 @@
9
9
  padding: 2px 4px;
10
10
  border: 1px solid var(--border-color);
11
11
  border-radius: 4px;
12
- background: #ffffff;
12
+ background: transparent;
13
13
  color: #1e293b;
14
14
  cursor: pointer;
15
15
  height: 28px;
package/src/index.css CHANGED
@@ -37,7 +37,7 @@
37
37
  border-radius: 6px;
38
38
  padding: 8px;
39
39
  gap: 2px;
40
- background: #ffffff;
40
+ /* background: #ffffff; */
41
41
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
42
42
  position: relative;
43
43
  }
@@ -81,7 +81,7 @@
81
81
  .ziko-notebook .input-wrapper {
82
82
  border: 1px solid var(--border-color);
83
83
  border-radius: 4px;
84
- background: var(--bg-editor);
84
+ /* background: var(--bg-editor); */
85
85
  overflow: hidden;
86
86
  flex: 1 1 0;
87
87
  min-width: 0;
package/src/notebook.js CHANGED
@@ -7,8 +7,7 @@ import {
7
7
  ErrorOutput,
8
8
  } from "./components/index.js";
9
9
  import { evaluateCodeAsync } from "./compiler/index.js";
10
- import { tags, UIElement } from "ziko/dom";
11
- import { call_with_optional_props } from "ziko/dom/internal-utils";
10
+ import { tags, UIElement, callWithOptionalProps } from "ziko/dom";
12
11
 
13
12
  const { div } = tags;
14
13
 
@@ -814,4 +813,4 @@ getNotebookData({ inputs = true, outputs = true } = {}) {
814
813
  }
815
814
  }
816
815
 
817
- export const Notebook = call_with_optional_props(UINotebook);
816
+ export const Notebook = callWithOptionalProps(UINotebook);