Skip to content

Commit 5120d9e

Browse files
Test @deepnote/blocks
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
1 parent a4fa6c7 commit 5120d9e

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"watch:labextension": "jupyter labextension watch ."
5959
},
6060
"dependencies": {
61+
"@deepnote/blocks": "file:/Users/work/repos/deepnote/deepnote/packages/blocks",
6162
"@jupyterlab/application": "^4.0.0",
6263
"@jupyterlab/coreutils": "^6.0.0",
6364
"@jupyterlab/notebook": "^4.4.7",

src/deepnote-convert/deepnote-file-schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { z } from 'zod';
2-
import { CELL_TYPES } from './types';
32

43
// Below schema has been modified from the original deepnote-internal schema
54

@@ -20,7 +19,7 @@ export const deepnoteFileBlockSchema = z.object({
2019
metadata: z.record(z.string(), z.any()).optional(),
2120
outputs: z.array(z.any()).optional(),
2221
sortingKey: z.string(),
23-
type: z.enum(CELL_TYPES),
22+
type: z.string(),
2423
version: z.number().optional()
2524
});
2625

src/transform-deepnote-yaml-to-notebook-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { deserializeDeepnoteFile } from './deepnote-convert/deserialize-deepnote-file';
21
import { IDeepnoteNotebookContent } from './types';
32
import { blankCodeCell, blankDeepnoteNotebookContent } from './fallback-data';
3+
import { deserializeDeepnoteFile } from '@deepnote/blocks';
44

55
export async function transformDeepnoteYamlToNotebookContent(
66
yamlString: string

yarn.lock

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,17 @@ __metadata:
15771577
languageName: node
15781578
linkType: hard
15791579

1580+
"@deepnote/blocks@file:/Users/work/repos/deepnote/deepnote/packages/blocks::locator=jupyterlab-deepnote%40workspace%3A.":
1581+
version: 1.0.0
1582+
resolution: "@deepnote/blocks@file:/Users/work/repos/deepnote/deepnote/packages/blocks#/Users/work/repos/deepnote/deepnote/packages/blocks::hash=193053&locator=jupyterlab-deepnote%40workspace%3A."
1583+
dependencies:
1584+
ts-dedent: ^2.2.0
1585+
yaml: ^2.8.1
1586+
zod: ^4.1.12
1587+
checksum: d47ee3fe23825c2f3012c50cd87216a4099d0abb07a46de67c50650943448baf624c3ec93e9a4fc6626995c9fae33d3fc3500e37e3044d99c9660887ea88e2de
1588+
languageName: node
1589+
linkType: hard
1590+
15801591
"@discoveryjs/json-ext@npm:^0.5.0":
15811592
version: 0.5.7
15821593
resolution: "@discoveryjs/json-ext@npm:0.5.7"
@@ -6794,6 +6805,7 @@ __metadata:
67946805
version: 0.0.0-use.local
67956806
resolution: "jupyterlab-deepnote@workspace:."
67966807
dependencies:
6808+
"@deepnote/blocks": "file:/Users/work/repos/deepnote/deepnote/packages/blocks"
67976809
"@jupyterlab/application": ^4.0.0
67986810
"@jupyterlab/builder": ^4.0.0
67996811
"@jupyterlab/coreutils": ^6.0.0
@@ -9018,6 +9030,13 @@ __metadata:
90189030
languageName: node
90199031
linkType: hard
90209032

9033+
"ts-dedent@npm:^2.2.0":
9034+
version: 2.2.0
9035+
resolution: "ts-dedent@npm:2.2.0"
9036+
checksum: 93ed8f7878b6d5ed3c08d99b740010eede6bccfe64bce61c5a4da06a2c17d6ddbb80a8c49c2d15251de7594a4f93ffa21dd10e7be75ef66a4dc9951b4a94e2af
9037+
languageName: node
9038+
linkType: hard
9039+
90219040
"ts-jest@npm:^29.1.0":
90229041
version: 29.4.1
90239042
resolution: "ts-jest@npm:29.4.1"
@@ -9823,3 +9842,10 @@ __metadata:
98239842
checksum: 022d59f85ebe054835fbcdc96a93c01479a64321104f846cb5644812c91e00d17ae3479f823956ec9b04e4351dd32841e1f12c567e81bc43f6e21ef5cc02ce3c
98249843
languageName: node
98259844
linkType: hard
9845+
9846+
"zod@npm:^4.1.12":
9847+
version: 4.1.12
9848+
resolution: "zod@npm:4.1.12"
9849+
checksum: 91174acc7d2ca5572ad522643474ddd60640cf6877b5d76e5d583eb25e3c4072c6f5eb92ab94f231ec5ce61c6acdfc3e0166de45fb1005b1ea54986b026b765f
9850+
languageName: node
9851+
linkType: hard

0 commit comments

Comments
 (0)