@deepnote/blocks 1.4.0 → 2.0.0
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30,7 +30,7 @@ ts_dedent = __toESM(ts_dedent);
|
|
|
30
30
|
|
|
31
31
|
//#region src/deserialize-file/deepnote-file-schema.ts
|
|
32
32
|
const deepnoteBlockSchema = zod.z.object({
|
|
33
|
-
blockGroup: zod.z.string()
|
|
33
|
+
blockGroup: zod.z.string(),
|
|
34
34
|
content: zod.z.string().optional(),
|
|
35
35
|
contentHash: zod.z.string().regex(/^(md5|sha256):[a-f0-9]+$/i).optional(),
|
|
36
36
|
executionCount: zod.z.number().optional(),
|
package/dist/index.d.cts
CHANGED
|
@@ -28,7 +28,7 @@ interface TableState {
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/deserialize-file/deepnote-file-schema.d.ts
|
|
30
30
|
declare const deepnoteBlockSchema: z.ZodObject<{
|
|
31
|
-
blockGroup: z.
|
|
31
|
+
blockGroup: z.ZodString;
|
|
32
32
|
content: z.ZodOptional<z.ZodString>;
|
|
33
33
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
34
34
|
executionCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -41,10 +41,10 @@ declare const deepnoteBlockSchema: z.ZodObject<{
|
|
|
41
41
|
type: z.ZodString;
|
|
42
42
|
version: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
blockGroup: string;
|
|
44
45
|
id: string;
|
|
45
46
|
type: string;
|
|
46
47
|
sortingKey: string;
|
|
47
|
-
blockGroup?: string | undefined;
|
|
48
48
|
content?: string | undefined;
|
|
49
49
|
contentHash?: string | undefined;
|
|
50
50
|
executionCount?: number | undefined;
|
|
@@ -54,10 +54,10 @@ declare const deepnoteBlockSchema: z.ZodObject<{
|
|
|
54
54
|
outputs?: any[] | undefined;
|
|
55
55
|
version?: number | undefined;
|
|
56
56
|
}, {
|
|
57
|
+
blockGroup: string;
|
|
57
58
|
id: string;
|
|
58
59
|
type: string;
|
|
59
60
|
sortingKey: string;
|
|
60
|
-
blockGroup?: string | undefined;
|
|
61
61
|
content?: string | undefined;
|
|
62
62
|
contentHash?: string | undefined;
|
|
63
63
|
executionCount?: number | undefined;
|
|
@@ -339,7 +339,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
339
339
|
name: z.ZodString;
|
|
340
340
|
notebooks: z.ZodArray<z.ZodObject<{
|
|
341
341
|
blocks: z.ZodArray<z.ZodObject<{
|
|
342
|
-
blockGroup: z.
|
|
342
|
+
blockGroup: z.ZodString;
|
|
343
343
|
content: z.ZodOptional<z.ZodString>;
|
|
344
344
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
345
345
|
executionCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -352,10 +352,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
352
352
|
type: z.ZodString;
|
|
353
353
|
version: z.ZodOptional<z.ZodNumber>;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
blockGroup: string;
|
|
355
356
|
id: string;
|
|
356
357
|
type: string;
|
|
357
358
|
sortingKey: string;
|
|
358
|
-
blockGroup?: string | undefined;
|
|
359
359
|
content?: string | undefined;
|
|
360
360
|
contentHash?: string | undefined;
|
|
361
361
|
executionCount?: number | undefined;
|
|
@@ -365,10 +365,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
365
365
|
outputs?: any[] | undefined;
|
|
366
366
|
version?: number | undefined;
|
|
367
367
|
}, {
|
|
368
|
+
blockGroup: string;
|
|
368
369
|
id: string;
|
|
369
370
|
type: string;
|
|
370
371
|
sortingKey: string;
|
|
371
|
-
blockGroup?: string | undefined;
|
|
372
372
|
content?: string | undefined;
|
|
373
373
|
contentHash?: string | undefined;
|
|
374
374
|
executionCount?: number | undefined;
|
|
@@ -387,10 +387,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
387
387
|
id: string;
|
|
388
388
|
name: string;
|
|
389
389
|
blocks: {
|
|
390
|
+
blockGroup: string;
|
|
390
391
|
id: string;
|
|
391
392
|
type: string;
|
|
392
393
|
sortingKey: string;
|
|
393
|
-
blockGroup?: string | undefined;
|
|
394
394
|
content?: string | undefined;
|
|
395
395
|
contentHash?: string | undefined;
|
|
396
396
|
executionCount?: number | undefined;
|
|
@@ -407,10 +407,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
407
407
|
id: string;
|
|
408
408
|
name: string;
|
|
409
409
|
blocks: {
|
|
410
|
+
blockGroup: string;
|
|
410
411
|
id: string;
|
|
411
412
|
type: string;
|
|
412
413
|
sortingKey: string;
|
|
413
|
-
blockGroup?: string | undefined;
|
|
414
414
|
content?: string | undefined;
|
|
415
415
|
contentHash?: string | undefined;
|
|
416
416
|
executionCount?: number | undefined;
|
|
@@ -463,10 +463,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
463
463
|
id: string;
|
|
464
464
|
name: string;
|
|
465
465
|
blocks: {
|
|
466
|
+
blockGroup: string;
|
|
466
467
|
id: string;
|
|
467
468
|
type: string;
|
|
468
469
|
sortingKey: string;
|
|
469
|
-
blockGroup?: string | undefined;
|
|
470
470
|
content?: string | undefined;
|
|
471
471
|
contentHash?: string | undefined;
|
|
472
472
|
executionCount?: number | undefined;
|
|
@@ -501,10 +501,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
501
501
|
id: string;
|
|
502
502
|
name: string;
|
|
503
503
|
blocks: {
|
|
504
|
+
blockGroup: string;
|
|
504
505
|
id: string;
|
|
505
506
|
type: string;
|
|
506
507
|
sortingKey: string;
|
|
507
|
-
blockGroup?: string | undefined;
|
|
508
508
|
content?: string | undefined;
|
|
509
509
|
contentHash?: string | undefined;
|
|
510
510
|
executionCount?: number | undefined;
|
|
@@ -549,10 +549,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
549
549
|
id: string;
|
|
550
550
|
name: string;
|
|
551
551
|
blocks: {
|
|
552
|
+
blockGroup: string;
|
|
552
553
|
id: string;
|
|
553
554
|
type: string;
|
|
554
555
|
sortingKey: string;
|
|
555
|
-
blockGroup?: string | undefined;
|
|
556
556
|
content?: string | undefined;
|
|
557
557
|
contentHash?: string | undefined;
|
|
558
558
|
executionCount?: number | undefined;
|
|
@@ -623,10 +623,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
623
623
|
id: string;
|
|
624
624
|
name: string;
|
|
625
625
|
blocks: {
|
|
626
|
+
blockGroup: string;
|
|
626
627
|
id: string;
|
|
627
628
|
type: string;
|
|
628
629
|
sortingKey: string;
|
|
629
|
-
blockGroup?: string | undefined;
|
|
630
630
|
content?: string | undefined;
|
|
631
631
|
contentHash?: string | undefined;
|
|
632
632
|
executionCount?: number | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface TableState {
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/deserialize-file/deepnote-file-schema.d.ts
|
|
30
30
|
declare const deepnoteBlockSchema: z.ZodObject<{
|
|
31
|
-
blockGroup: z.
|
|
31
|
+
blockGroup: z.ZodString;
|
|
32
32
|
content: z.ZodOptional<z.ZodString>;
|
|
33
33
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
34
34
|
executionCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -41,10 +41,10 @@ declare const deepnoteBlockSchema: z.ZodObject<{
|
|
|
41
41
|
type: z.ZodString;
|
|
42
42
|
version: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
blockGroup: string;
|
|
44
45
|
id: string;
|
|
45
46
|
type: string;
|
|
46
47
|
sortingKey: string;
|
|
47
|
-
blockGroup?: string | undefined;
|
|
48
48
|
content?: string | undefined;
|
|
49
49
|
contentHash?: string | undefined;
|
|
50
50
|
executionCount?: number | undefined;
|
|
@@ -54,10 +54,10 @@ declare const deepnoteBlockSchema: z.ZodObject<{
|
|
|
54
54
|
outputs?: any[] | undefined;
|
|
55
55
|
version?: number | undefined;
|
|
56
56
|
}, {
|
|
57
|
+
blockGroup: string;
|
|
57
58
|
id: string;
|
|
58
59
|
type: string;
|
|
59
60
|
sortingKey: string;
|
|
60
|
-
blockGroup?: string | undefined;
|
|
61
61
|
content?: string | undefined;
|
|
62
62
|
contentHash?: string | undefined;
|
|
63
63
|
executionCount?: number | undefined;
|
|
@@ -339,7 +339,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
339
339
|
name: z.ZodString;
|
|
340
340
|
notebooks: z.ZodArray<z.ZodObject<{
|
|
341
341
|
blocks: z.ZodArray<z.ZodObject<{
|
|
342
|
-
blockGroup: z.
|
|
342
|
+
blockGroup: z.ZodString;
|
|
343
343
|
content: z.ZodOptional<z.ZodString>;
|
|
344
344
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
345
345
|
executionCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -352,10 +352,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
352
352
|
type: z.ZodString;
|
|
353
353
|
version: z.ZodOptional<z.ZodNumber>;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
blockGroup: string;
|
|
355
356
|
id: string;
|
|
356
357
|
type: string;
|
|
357
358
|
sortingKey: string;
|
|
358
|
-
blockGroup?: string | undefined;
|
|
359
359
|
content?: string | undefined;
|
|
360
360
|
contentHash?: string | undefined;
|
|
361
361
|
executionCount?: number | undefined;
|
|
@@ -365,10 +365,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
365
365
|
outputs?: any[] | undefined;
|
|
366
366
|
version?: number | undefined;
|
|
367
367
|
}, {
|
|
368
|
+
blockGroup: string;
|
|
368
369
|
id: string;
|
|
369
370
|
type: string;
|
|
370
371
|
sortingKey: string;
|
|
371
|
-
blockGroup?: string | undefined;
|
|
372
372
|
content?: string | undefined;
|
|
373
373
|
contentHash?: string | undefined;
|
|
374
374
|
executionCount?: number | undefined;
|
|
@@ -387,10 +387,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
387
387
|
id: string;
|
|
388
388
|
name: string;
|
|
389
389
|
blocks: {
|
|
390
|
+
blockGroup: string;
|
|
390
391
|
id: string;
|
|
391
392
|
type: string;
|
|
392
393
|
sortingKey: string;
|
|
393
|
-
blockGroup?: string | undefined;
|
|
394
394
|
content?: string | undefined;
|
|
395
395
|
contentHash?: string | undefined;
|
|
396
396
|
executionCount?: number | undefined;
|
|
@@ -407,10 +407,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
407
407
|
id: string;
|
|
408
408
|
name: string;
|
|
409
409
|
blocks: {
|
|
410
|
+
blockGroup: string;
|
|
410
411
|
id: string;
|
|
411
412
|
type: string;
|
|
412
413
|
sortingKey: string;
|
|
413
|
-
blockGroup?: string | undefined;
|
|
414
414
|
content?: string | undefined;
|
|
415
415
|
contentHash?: string | undefined;
|
|
416
416
|
executionCount?: number | undefined;
|
|
@@ -463,10 +463,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
463
463
|
id: string;
|
|
464
464
|
name: string;
|
|
465
465
|
blocks: {
|
|
466
|
+
blockGroup: string;
|
|
466
467
|
id: string;
|
|
467
468
|
type: string;
|
|
468
469
|
sortingKey: string;
|
|
469
|
-
blockGroup?: string | undefined;
|
|
470
470
|
content?: string | undefined;
|
|
471
471
|
contentHash?: string | undefined;
|
|
472
472
|
executionCount?: number | undefined;
|
|
@@ -501,10 +501,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
501
501
|
id: string;
|
|
502
502
|
name: string;
|
|
503
503
|
blocks: {
|
|
504
|
+
blockGroup: string;
|
|
504
505
|
id: string;
|
|
505
506
|
type: string;
|
|
506
507
|
sortingKey: string;
|
|
507
|
-
blockGroup?: string | undefined;
|
|
508
508
|
content?: string | undefined;
|
|
509
509
|
contentHash?: string | undefined;
|
|
510
510
|
executionCount?: number | undefined;
|
|
@@ -549,10 +549,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
549
549
|
id: string;
|
|
550
550
|
name: string;
|
|
551
551
|
blocks: {
|
|
552
|
+
blockGroup: string;
|
|
552
553
|
id: string;
|
|
553
554
|
type: string;
|
|
554
555
|
sortingKey: string;
|
|
555
|
-
blockGroup?: string | undefined;
|
|
556
556
|
content?: string | undefined;
|
|
557
557
|
contentHash?: string | undefined;
|
|
558
558
|
executionCount?: number | undefined;
|
|
@@ -623,10 +623,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
623
623
|
id: string;
|
|
624
624
|
name: string;
|
|
625
625
|
blocks: {
|
|
626
|
+
blockGroup: string;
|
|
626
627
|
id: string;
|
|
627
628
|
type: string;
|
|
628
629
|
sortingKey: string;
|
|
629
|
-
blockGroup?: string | undefined;
|
|
630
630
|
content?: string | undefined;
|
|
631
631
|
contentHash?: string | undefined;
|
|
632
632
|
executionCount?: number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { dedent } from "ts-dedent";
|
|
|
4
4
|
|
|
5
5
|
//#region src/deserialize-file/deepnote-file-schema.ts
|
|
6
6
|
const deepnoteBlockSchema = z.object({
|
|
7
|
-
blockGroup: z.string()
|
|
7
|
+
blockGroup: z.string(),
|
|
8
8
|
content: z.string().optional(),
|
|
9
9
|
contentHash: z.string().regex(/^(md5|sha256):[a-f0-9]+$/i).optional(),
|
|
10
10
|
executionCount: z.number().optional(),
|