@blocknote/core 0.12.4 → 0.13.2
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/README.md +6 -2
- package/dist/blocknote.js +2362 -1544
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +6 -6
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +1 -1
- package/src/editor/BlockNoteEditor.ts +24 -8
- package/src/editor/BlockNoteExtensions.ts +23 -12
- package/src/editor/BlockNoteTipTapEditor.ts +9 -6
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +24 -41
- package/src/extensions/ImagePanel/ImageToolbarPlugin.ts +27 -30
- package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +25 -3
- package/src/extensions/NonEditableBlocks/NonEditableBlockPlugin.ts +43 -12
- package/src/extensions/Placeholder/PlaceholderPlugin.ts +95 -0
- package/src/extensions/SideMenu/SideMenuPlugin.ts +3 -2
- package/src/extensions/SuggestionMenu/DefaultSuggestionItem.ts +3 -0
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +6 -2
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +18 -44
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +1 -1
- package/src/i18n/dictionary.ts +17 -0
- package/src/i18n/locales/en.ts +196 -0
- package/src/i18n/locales/fr.ts +196 -0
- package/src/i18n/locales/index.ts +4 -0
- package/src/i18n/locales/nl.ts +197 -0
- package/src/i18n/locales/zh.ts +213 -0
- package/src/index.ts +4 -1
- package/src/pm-nodes/BlockContainer.ts +20 -2
- package/src/util/browser.ts +2 -2
- package/src/util/typescript.ts +8 -0
- package/types/src/editor/BlockNoteEditor.d.ts +11 -1
- package/types/src/editor/BlockNoteExtensions.d.ts +3 -3
- package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +5 -4
- package/types/src/extensions/ImagePanel/ImageToolbarPlugin.d.ts +7 -5
- package/types/src/extensions/LinkToolbar/LinkToolbarPlugin.d.ts +3 -1
- package/types/src/extensions/Placeholder/PlaceholderPlugin.d.ts +3 -0
- package/types/src/extensions/SuggestionMenu/DefaultSuggestionItem.d.ts +2 -0
- package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +2 -1
- package/types/src/i18n/dictionary.d.ts +2 -0
- package/types/src/i18n/locales/en.d.ts +184 -0
- package/types/src/i18n/locales/fr.d.ts +184 -0
- package/types/src/i18n/locales/index.d.ts +4 -0
- package/types/src/i18n/locales/nl.d.ts +2 -0
- package/types/src/i18n/locales/zh.d.ts +2 -0
- package/types/src/index.d.ts +4 -1
- package/types/src/pm-nodes/BlockContainer.d.ts +1 -1
- package/types/src/util/browser.d.ts +1 -1
- package/types/src/util/typescript.d.ts +1 -0
- package/src/extensions/Placeholder/PlaceholderExtension.ts +0 -124
- package/types/src/extensions/Placeholder/PlaceholderExtension.d.ts +0 -12
package/README.md
CHANGED
|
@@ -34,9 +34,10 @@ See our homepage @ [https://www.blocknotejs.org](https://www.blocknotejs.org/) o
|
|
|
34
34
|
[](https://badge.fury.io/js/%40blocknote%2Freact)
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import {
|
|
37
|
+
import { useCreateBlockNote } from "@blocknote/react";
|
|
38
|
+
import { BlockNoteView } from "@blocknote/mantine";
|
|
38
39
|
import "@blocknote/core/fonts/inter.css";
|
|
39
|
-
import "@blocknote/
|
|
40
|
+
import "@blocknote/mantine/style.css";
|
|
40
41
|
|
|
41
42
|
function App() {
|
|
42
43
|
const editor = useCreateBlockNote();
|
|
@@ -95,6 +96,9 @@ Directory structure:
|
|
|
95
96
|
blocknote
|
|
96
97
|
├── packages/core - The core of the editor
|
|
97
98
|
├── packages/react - The main library for use in React apps
|
|
99
|
+
├── packages/mantine - Mantine (default) implementation of BlockNote UI
|
|
100
|
+
├── packages/ariakit - AriaKit implementation of BlockNote UI
|
|
101
|
+
├── packages/shadcn - ShadCN / Tailwind / Radix implementation of BlockNote UI
|
|
98
102
|
├── examples - Example apps
|
|
99
103
|
├── playground - App to browse the example apps (https://playground.blocknotejs.org)
|
|
100
104
|
└── tests - Playwright end to end tests
|