@blocknote/xl-multi-column 0.34.0 → 0.36.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/LICENSE +218 -205
- package/dist/blocknote-xl-multi-column.cjs +1 -1
- package/dist/blocknote-xl-multi-column.cjs.map +1 -1
- package/dist/blocknote-xl-multi-column.js +44 -44
- package/dist/blocknote-xl-multi-column.js.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -5
- package/src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts +8 -2
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1756129047393,"assets":[{"name":"blocknote-xl-multi-column.cjs","size":20598},{"name":"blocknote-xl-multi-column.cjs.map","size":3792185}],"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":2611,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/ColumnList.ts","size":1164,"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":11843,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lib/iconContext.mjs","size":251,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lib/iconBase.mjs","size":4003,"chunks":["a1ee98a"]},{"name":"../../node_modules/.pnpm/react-icons@5.5.0_react@19.1.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
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"url": "git+https://github.com/TypeCellOS/BlockNote.git",
|
|
9
9
|
"directory": "packages/xl-multi-column"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
12
|
-
"version": "0.
|
|
11
|
+
"license": "GPL-3.0 OR PROPRIETARY",
|
|
12
|
+
"version": "0.36.0",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
15
|
"types",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@blocknote/core": "0.
|
|
46
|
-
"@blocknote/react": "0.
|
|
47
|
-
"@tiptap/core": "^2.
|
|
45
|
+
"@blocknote/core": "0.36.0",
|
|
46
|
+
"@blocknote/react": "0.36.0",
|
|
47
|
+
"@tiptap/core": "^2.26.1",
|
|
48
48
|
"prosemirror-model": "^1.25.1",
|
|
49
49
|
"prosemirror-state": "^1.4.3",
|
|
50
50
|
"prosemirror-tables": "^1.3.7",
|
|
@@ -145,7 +145,9 @@ export function multiColumnDropCursor(
|
|
|
145
145
|
id: UniqueID.options.generateID(),
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
editor.
|
|
148
|
+
if (editor.getBlock(draggedBlock.id)) {
|
|
149
|
+
editor.removeBlocks([draggedBlock]);
|
|
150
|
+
}
|
|
149
151
|
|
|
150
152
|
editor.updateBlock(columnList, {
|
|
151
153
|
children: newChildren,
|
|
@@ -162,7 +164,11 @@ export function multiColumnDropCursor(
|
|
|
162
164
|
|
|
163
165
|
const blocks =
|
|
164
166
|
position === "left" ? [draggedBlock, block] : [block, draggedBlock];
|
|
165
|
-
|
|
167
|
+
|
|
168
|
+
if (editor.getBlock(draggedBlock.id)) {
|
|
169
|
+
editor.removeBlocks([draggedBlock]);
|
|
170
|
+
}
|
|
171
|
+
|
|
166
172
|
editor.replaceBlocks(
|
|
167
173
|
[block],
|
|
168
174
|
[
|