Skip to content

Commit aaafd39

Browse files
committed
chore: bump notebook-kit version
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent e0dd2c2 commit aaafd39

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/observablehq-compiler/index-kit-preview.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<script type="importmap">
2727
{
2828
"imports": {
29-
"@observablehq/notebook-kit/runtime": "https://cdn.jsdelivr.net/npm/@observablehq/notebook-kit@1.1.0-rc.9/dist/src/index.js",
30-
"@observablehq/notebook-kit/index.css": "https://cdn.jsdelivr.net/npm/@observablehq/notebook-kit@1.1.0-rc.9/dist/src/styles/index.css",
29+
"@observablehq/notebook-kit/runtime": "https://cdn.jsdelivr.net/npm/@observablehq/notebook-kit@1.1.1/dist/src/index.js",
30+
"@observablehq/notebook-kit/index.css": "https://cdn.jsdelivr.net/npm/@observablehq/notebook-kit@1.1.1/dist/src/styles/index.css",
3131
"acorn": "https://cdn.jsdelivr.net/npm/acorn@8.15.0/dist/acorn.js",
3232
"@observablehq/parser": "https://cdn.jsdelivr.net/npm/@observablehq/parser@6.1.0/dist/parser.min.js",
3333
"acorn-walk": "https://cdn.jsdelivr.net/npm/acorn-walk@8.3.4/dist/walk.mjs",
@@ -42,8 +42,8 @@
4242
<h1>ESM Quick Test</h1>
4343
<div id="placeholder"></div>
4444
<script type="module">
45-
// import { NotebookRuntime } from "@observablehq/notebook-kit/runtime";
46-
import { kit, omd2notebookKit, ojs2notebookKit, NotebookRuntime } from "@hpcc-js/observablehq-compiler";
45+
import { NotebookRuntime } from "@observablehq/notebook-kit/runtime";
46+
import { omd2notebookKit, ojs2notebookKit } from "@hpcc-js/observablehq-compiler";
4747

4848
class NotebookRuntimeEx extends NotebookRuntime {
4949

@@ -53,7 +53,7 @@ <h1>ESM Quick Test</h1>
5353
super();
5454
}
5555

56-
add(cellId , definition, placeholderDiv) {
56+
add(cellId, definition, placeholderDiv) {
5757
let state = this.stateById.get(cellId);
5858
if (state) {
5959
state.variables.forEach((v) => v.delete());

packages/observablehq-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"devDependencies": {
5252
"@hpcc-js/esbuild-plugins": "^1.5.0",
53-
"@observablehq/notebook-kit": "1.1.0-rc.17",
53+
"@observablehq/notebook-kit": "1.1.1",
5454
"@observablehq/parser": "6.1.0",
5555
"@observablehq/runtime": "5.9.9",
5656
"@types/jsdom": "21.1.7",

packages/observablehq-compiler/tests/index-notebookkit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NotebookRuntime, type DefineState, type Definition } from "@observablehq/notebook-kit/runtime";
22

3-
import { kit, omd2notebookKit, ojs2notebookKit } from "../src/index.ts";
3+
import { omd2notebookKit, ojs2notebookKit, compileKit, html2notebook } from "../src/index.ts";
44

55
import "@observablehq/notebook-kit/index.css";
66
import "@observablehq/notebook-kit/theme-slate.css";
@@ -236,8 +236,8 @@ export function testHtml(target: string): void {
236236
</notebook>
237237
`;
238238
const runtime = new NotebookRuntimeEx();
239-
const notebook = kit.html2notebook(html);
240-
const compiled = kit.compile(notebook);
239+
const notebook = html2notebook(html);
240+
const compiled = compileKit(notebook);
241241
compiled.forEach((cell, cellId) => {
242242
let container = element.querySelector(`#${target}-${cellId}`) as HTMLDivElement;
243243
if (!container) {

0 commit comments

Comments
 (0)