@zikojs/notebook 0.15.5 → 0.15.6

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.6",
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": {
@@ -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;
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);