@blocknote/xl-multi-column 0.26.0 → 0.27.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.
@@ -1 +1 @@
1
- {"builtAt":1742379517726,"assets":[{"name":"blocknote-xl-multi-column.cjs","size":20693},{"name":"blocknote-xl-multi-column.cjs.map","size":3430139}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote-xl-multi-column.cjs"],"names":["blocknote-xl-multi-column"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":364,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":400,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":378,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":392,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":398,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":396,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":376,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":284,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":390,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":394,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":388,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":370,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":340,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":274,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/i18n/dictionary.ts","size":189,"chunks":["a1ee98a"]},{"name":"./src/extensions/ColumnResize/ColumnResizeExtension.ts","size":8309,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Column.ts","size":2567,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/ColumnList.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/blocks/Columns/index.ts","size":210,"chunks":["a1ee98a"]},{"name":"./src/blocks/schema.ts","size":425,"chunks":["a1ee98a"]},{"name":"./src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts","size":12035,"chunks":["a1ee98a"]},{"name":"../../node_modules/react-icons/lib/iconContext.mjs","size":251,"chunks":["a1ee98a"]},{"name":"../../node_modules/react-icons/lib/iconBase.mjs","size":4014,"chunks":["a1ee98a"]},{"name":"../../node_modules/react-icons/tb/index.mjs","size":732,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.tsx","size":2073,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
1
+ {"builtAt":1743781124469,"assets":[{"name":"blocknote-xl-multi-column.cjs","size":20662},{"name":"blocknote-xl-multi-column.cjs.map","size":3792252}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote-xl-multi-column.cjs"],"names":["blocknote-xl-multi-column"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":364,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":400,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":378,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":392,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":398,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":396,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":376,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":284,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":390,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":394,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":388,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":370,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":340,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":274,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/i18n/dictionary.ts","size":189,"chunks":["a1ee98a"]},{"name":"./src/extensions/ColumnResize/ColumnResizeExtension.ts","size":8309,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Column.ts","size":2567,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/ColumnList.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/blocks/Columns/index.ts","size":210,"chunks":["a1ee98a"]},{"name":"./src/blocks/schema.ts","size":425,"chunks":["a1ee98a"]},{"name":"./src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts","size":12035,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/lib/iconContext.mjs","size":251,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/lib/iconBase.mjs","size":4003,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/tb/index.mjs","size":708,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.tsx","size":2073,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
package/package.json CHANGED
@@ -2,8 +2,14 @@
2
2
  "name": "@blocknote/xl-multi-column",
3
3
  "homepage": "https://github.com/TypeCellOS/BlockNote",
4
4
  "private": false,
5
+ "sideEffects": false,
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/TypeCellOS/BlockNote.git",
9
+ "directory": "packages/xl-multi-column"
10
+ },
5
11
  "license": "AGPL-3.0 OR PROPRIETARY",
6
- "version": "0.26.0",
12
+ "version": "0.27.0",
7
13
  "files": [
8
14
  "dist",
9
15
  "types",
@@ -35,18 +41,9 @@
35
41
  "require": "./dist/blocknote-xl-multi-column.cjs"
36
42
  }
37
43
  },
38
- "scripts": {
39
- "dev": "vite",
40
- "build": "tsc && vite build",
41
- "preview": "vite preview",
42
- "lint": "eslint src --max-warnings 0",
43
- "test": "vitest",
44
- "test-watch": "vitest watch",
45
- "clean": "rimraf dist && rimraf types"
46
- },
47
44
  "dependencies": {
48
- "@blocknote/core": "^0.26.0",
49
- "@blocknote/react": "^0.26.0",
45
+ "@blocknote/core": "^0.27.0",
46
+ "@blocknote/react": "^0.27.0",
50
47
  "@tiptap/core": "^2.7.1",
51
48
  "prosemirror-model": "^1.23.0",
52
49
  "prosemirror-state": "^1.4.3",
@@ -56,6 +53,8 @@
56
53
  "react-icons": "^5.2.1"
57
54
  },
58
55
  "devDependencies": {
56
+ "@types/react": "^19",
57
+ "@types/react-dom": "^19",
59
58
  "@vitest/ui": "^2.1.4",
60
59
  "eslint": "^8.10.0",
61
60
  "jsdom": "^21.1.0",
@@ -65,7 +64,9 @@
65
64
  "typescript": "^5.3.3",
66
65
  "vite": "^5.3.4",
67
66
  "vite-plugin-eslint": "^1.8.1",
68
- "vitest": "^2.0.3"
67
+ "vitest": "^2.0.3",
68
+ "react": "^19",
69
+ "react-dom": "^19"
69
70
  },
70
71
  "peerDependencies": {
71
72
  "react": "^18.0 || ^19.0 || >= 19.0.0-rc",
@@ -80,5 +81,13 @@
80
81
  "access": "public",
81
82
  "registry": "https://registry.npmjs.org/"
82
83
  },
83
- "gitHead": "7d8c79c62c750db921208c373e6ae7b0c42f994c"
84
- }
84
+ "scripts": {
85
+ "dev": "vite",
86
+ "build": "tsc && vite build",
87
+ "preview": "vite preview",
88
+ "lint": "eslint src --max-warnings 0",
89
+ "test": "vitest --run",
90
+ "test-watch": "vitest watch",
91
+ "clean": "rimraf dist && rimraf types"
92
+ }
93
+ }
@@ -35,7 +35,7 @@ async function convertToHTMLAndCompareSnapshots<
35
35
  "/" +
36
36
  snapshotName +
37
37
  "/internal.html";
38
- expect(internalHTML).toMatchFileSnapshot(internalHTMLSnapshotPath);
38
+ await expect(internalHTML).toMatchFileSnapshot(internalHTMLSnapshotPath);
39
39
 
40
40
  // turn the internalHTML back into blocks, and make sure no data was lost
41
41
  const fullBlocks = partialBlocksToBlocksForTesting(editor.schema, blocks);
@@ -52,7 +52,7 @@ async function convertToHTMLAndCompareSnapshots<
52
52
  "/" +
53
53
  snapshotName +
54
54
  "/external.html";
55
- expect(externalHTML).toMatchFileSnapshot(externalHTMLSnapshotPath);
55
+ await expect(externalHTML).toMatchFileSnapshot(externalHTMLSnapshotPath);
56
56
  }
57
57
 
58
58
  const testCases = [multiColumnSchemaTestCases];
@@ -1,4 +1,4 @@
1
- import { BlockNoteSchema, InlineContentSchema, StyleSchema } from "@blocknote/core";
1
+ import { BlockNoteSchema, BlockSchema, InlineContentSchema, StyleSchema } from "@blocknote/core";
2
2
  import { ColumnBlock, ColumnListBlock } from "./Columns/index.js";
3
3
  export declare const multiColumnSchema: BlockNoteSchema<import("@blocknote/core").BlockSchemaFromSpecs<{
4
4
  column: {
@@ -96,7 +96,7 @@ export declare const multiColumnSchema: BlockNoteSchema<import("@blocknote/core"
96
96
  /**
97
97
  * Adds multi-column support to the given schema.
98
98
  */
99
- export declare const withMultiColumn: <B extends Record<string, import("@blocknote/core").BlockConfig>, I extends InlineContentSchema, S extends StyleSchema>(schema: BlockNoteSchema<B, I, S>) => BlockNoteSchema<B & {
99
+ export declare const withMultiColumn: <B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema: BlockNoteSchema<B, I, S>) => BlockNoteSchema<B & {
100
100
  column: typeof ColumnBlock.config;
101
101
  columnList: typeof ColumnListBlock.config;
102
102
  }, I, S>;
@@ -1,19 +1,4 @@
1
1
  import type { en } from "./locales/index.js";
2
2
  import { BlockNoteEditor } from "@blocknote/core";
3
- export declare function getMultiColumnDictionary(editor: BlockNoteEditor<any, any, any>): {
4
- slash_menu: {
5
- two_columns: {
6
- title: string;
7
- subtext: string;
8
- aliases: string[];
9
- group: string;
10
- };
11
- three_columns: {
12
- title: string;
13
- subtext: string;
14
- aliases: string[];
15
- group: string;
16
- };
17
- };
18
- };
3
+ export declare function getMultiColumnDictionary(editor: BlockNoteEditor<any, any, any>): MultiColumnDictionary;
19
4
  export type MultiColumnDictionary = typeof en;
@@ -76,6 +76,40 @@ export declare const testEditorSchema: BlockNoteSchema<import("@blocknote/core")
76
76
  };
77
77
  }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
78
78
  };
79
+ quote: {
80
+ config: {
81
+ type: "quote";
82
+ content: "inline";
83
+ propSchema: {
84
+ backgroundColor: {
85
+ default: "default";
86
+ };
87
+ textColor: {
88
+ default: "default";
89
+ };
90
+ textAlignment: {
91
+ default: "left";
92
+ values: readonly ["left", "center", "right", "justify"];
93
+ };
94
+ };
95
+ };
96
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
97
+ type: "quote";
98
+ content: "inline";
99
+ propSchema: {
100
+ backgroundColor: {
101
+ default: "default";
102
+ };
103
+ textColor: {
104
+ default: "default";
105
+ };
106
+ textAlignment: {
107
+ default: "left";
108
+ values: readonly ["left", "center", "right", "justify"];
109
+ };
110
+ };
111
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
112
+ };
79
113
  codeBlock: {
80
114
  config: {
81
115
  type: "codeBlock";
@@ -83,7 +117,6 @@ export declare const testEditorSchema: BlockNoteSchema<import("@blocknote/core")
83
117
  propSchema: {
84
118
  language: {
85
119
  default: string;
86
- values: string[];
87
120
  };
88
121
  };
89
122
  };
@@ -93,7 +126,6 @@ export declare const testEditorSchema: BlockNoteSchema<import("@blocknote/core")
93
126
  propSchema: {
94
127
  language: {
95
128
  default: string;
96
- values: string[];
97
129
  };
98
130
  };
99
131
  }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
@@ -598,6 +630,40 @@ export declare function setupTestEnv(): () => BlockNoteEditor<import("@blocknote
598
630
  };
599
631
  }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
600
632
  };
633
+ quote: {
634
+ config: {
635
+ type: "quote";
636
+ content: "inline";
637
+ propSchema: {
638
+ backgroundColor: {
639
+ default: "default";
640
+ };
641
+ textColor: {
642
+ default: "default";
643
+ };
644
+ textAlignment: {
645
+ default: "left";
646
+ values: readonly ["left", "center", "right", "justify"];
647
+ };
648
+ };
649
+ };
650
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
651
+ type: "quote";
652
+ content: "inline";
653
+ propSchema: {
654
+ backgroundColor: {
655
+ default: "default";
656
+ };
657
+ textColor: {
658
+ default: "default";
659
+ };
660
+ textAlignment: {
661
+ default: "left";
662
+ values: readonly ["left", "center", "right", "justify"];
663
+ };
664
+ };
665
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
666
+ };
601
667
  codeBlock: {
602
668
  config: {
603
669
  type: "codeBlock";
@@ -605,7 +671,6 @@ export declare function setupTestEnv(): () => BlockNoteEditor<import("@blocknote
605
671
  propSchema: {
606
672
  language: {
607
673
  default: string;
608
- values: string[];
609
674
  };
610
675
  };
611
676
  };
@@ -615,7 +680,6 @@ export declare function setupTestEnv(): () => BlockNoteEditor<import("@blocknote
615
680
  propSchema: {
616
681
  language: {
617
682
  default: string;
618
- values: string[];
619
683
  };
620
684
  };
621
685
  }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;