@blocknote/core 0.24.1 → 0.24.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.
@@ -12,7 +12,7 @@ export function formatKeyboardShortcut(shortcut: string, ctrlText = "Ctrl") {
12
12
  }
13
13
  }
14
14
 
15
- export function mergeCSSClasses(...classes: string[]) {
15
+ export function mergeCSSClasses(...classes: (string | undefined)[]) {
16
16
  return classes.filter((c) => c).join(" ");
17
17
  }
18
18
 
@@ -21,7 +21,7 @@ export declare class FormattingToolbarView implements PluginView {
21
21
  constructor(editor: BlockNoteEditor<BlockSchema, InlineContentSchema, StyleSchema>, pmView: EditorView, emitUpdate: (state: FormattingToolbarState) => void);
22
22
  blurHandler: (event: FocusEvent) => void;
23
23
  viewMousedownHandler: () => void;
24
- viewMouseupHandler: () => void;
24
+ mouseupHandler: () => void;
25
25
  dragHandler: () => void;
26
26
  scrollHandler: () => void;
27
27
  update(view: EditorView, oldState?: EditorState): void;
@@ -25,6 +25,7 @@ export declare class SideMenuView<BSchema extends BlockSchema, I extends InlineC
25
25
  updateState: (state: SideMenuState<BSchema, I, S>) => void;
26
26
  updateStateFromMousePos: () => void;
27
27
  onDrop: (event: DragEvent) => void;
28
+ onDragEnd: () => void;
28
29
  /**
29
30
  * If a block is being dragged, ProseMirror usually gets the context of what's
30
31
  * being dragged from `view.dragging`, which is automatically set when a
@@ -9,6 +9,7 @@ export * from "./it.js";
9
9
  export * from "./ja.js";
10
10
  export * from "./ko.js";
11
11
  export * from "./nl.js";
12
+ export * from "./no.js";
12
13
  export * from "./pl.js";
13
14
  export * from "./pt.js";
14
15
  export * from "./ru.js";
@@ -48,6 +48,12 @@ export declare const it: {
48
48
  aliases: string[];
49
49
  group: string;
50
50
  };
51
+ page_break: {
52
+ title: string;
53
+ subtext: string;
54
+ aliases: string[];
55
+ group: string;
56
+ };
51
57
  table: {
52
58
  title: string;
53
59
  subtext: string;
@@ -0,0 +1,2 @@
1
+ import { Dictionary } from "../dictionary.js";
2
+ export declare const no: Dictionary;
@@ -1,4 +1,4 @@
1
1
  export declare const isAppleOS: () => boolean;
2
2
  export declare function formatKeyboardShortcut(shortcut: string, ctrlText?: string): string;
3
- export declare function mergeCSSClasses(...classes: string[]): string;
3
+ export declare function mergeCSSClasses(...classes: (string | undefined)[]): string;
4
4
  export declare const isSafari: () => boolean;