@blocknote/core 0.15.6 → 0.15.7
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/blocknote.js +342 -308
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +4 -4
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/api/parsers/handleFileInsertion.ts +65 -14
- package/src/blocks/AudioBlockContent/AudioBlockContent.ts +1 -1
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +1 -1
- package/src/blocks/VideoBlockContent/VideoBlockContent.ts +1 -1
- package/src/editor/BlockNoteEditor.ts +18 -7
- package/src/extensions/SideMenu/SideMenuPlugin.ts +1 -1
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +16 -7
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +6 -1
- package/src/schema/blocks/types.ts +1 -1
- package/types/src/api/testUtil/cases/customBlocks.d.ts +6 -6
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +6 -6
- package/types/src/api/testUtil/cases/customStyles.d.ts +6 -6
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +3 -3
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +3 -3
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +3 -3
- package/types/src/blocks/defaultBlocks.d.ts +12 -12
- package/types/src/editor/BlockNoteEditor.d.ts +4 -1
- package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +1 -0
- package/types/src/schema/blocks/types.d.ts +1 -1
|
@@ -287,7 +287,7 @@ export declare const defaultBlockSpecs: {
|
|
|
287
287
|
};
|
|
288
288
|
content: "none";
|
|
289
289
|
isFileBlock: true;
|
|
290
|
-
|
|
290
|
+
fileBlockAccept: string[];
|
|
291
291
|
};
|
|
292
292
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
293
293
|
type: "image";
|
|
@@ -317,7 +317,7 @@ export declare const defaultBlockSpecs: {
|
|
|
317
317
|
};
|
|
318
318
|
content: "none";
|
|
319
319
|
isFileBlock: true;
|
|
320
|
-
|
|
320
|
+
fileBlockAccept: string[];
|
|
321
321
|
}, any, InlineContentSchema, StyleSchema>;
|
|
322
322
|
};
|
|
323
323
|
video: {
|
|
@@ -349,7 +349,7 @@ export declare const defaultBlockSpecs: {
|
|
|
349
349
|
};
|
|
350
350
|
content: "none";
|
|
351
351
|
isFileBlock: true;
|
|
352
|
-
|
|
352
|
+
fileBlockAccept: string[];
|
|
353
353
|
};
|
|
354
354
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
355
355
|
type: "video";
|
|
@@ -379,7 +379,7 @@ export declare const defaultBlockSpecs: {
|
|
|
379
379
|
};
|
|
380
380
|
content: "none";
|
|
381
381
|
isFileBlock: true;
|
|
382
|
-
|
|
382
|
+
fileBlockAccept: string[];
|
|
383
383
|
}, any, InlineContentSchema, StyleSchema>;
|
|
384
384
|
};
|
|
385
385
|
audio: {
|
|
@@ -404,7 +404,7 @@ export declare const defaultBlockSpecs: {
|
|
|
404
404
|
};
|
|
405
405
|
content: "none";
|
|
406
406
|
isFileBlock: true;
|
|
407
|
-
|
|
407
|
+
fileBlockAccept: string[];
|
|
408
408
|
};
|
|
409
409
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
410
410
|
type: "audio";
|
|
@@ -427,7 +427,7 @@ export declare const defaultBlockSpecs: {
|
|
|
427
427
|
};
|
|
428
428
|
content: "none";
|
|
429
429
|
isFileBlock: true;
|
|
430
|
-
|
|
430
|
+
fileBlockAccept: string[];
|
|
431
431
|
}, any, InlineContentSchema, StyleSchema>;
|
|
432
432
|
};
|
|
433
433
|
};
|
|
@@ -719,7 +719,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
719
719
|
};
|
|
720
720
|
content: "none";
|
|
721
721
|
isFileBlock: true;
|
|
722
|
-
|
|
722
|
+
fileBlockAccept: string[];
|
|
723
723
|
};
|
|
724
724
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
725
725
|
type: "image";
|
|
@@ -749,7 +749,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
749
749
|
};
|
|
750
750
|
content: "none";
|
|
751
751
|
isFileBlock: true;
|
|
752
|
-
|
|
752
|
+
fileBlockAccept: string[];
|
|
753
753
|
}, any, InlineContentSchema, StyleSchema>;
|
|
754
754
|
};
|
|
755
755
|
video: {
|
|
@@ -781,7 +781,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
781
781
|
};
|
|
782
782
|
content: "none";
|
|
783
783
|
isFileBlock: true;
|
|
784
|
-
|
|
784
|
+
fileBlockAccept: string[];
|
|
785
785
|
};
|
|
786
786
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
787
787
|
type: "video";
|
|
@@ -811,7 +811,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
811
811
|
};
|
|
812
812
|
content: "none";
|
|
813
813
|
isFileBlock: true;
|
|
814
|
-
|
|
814
|
+
fileBlockAccept: string[];
|
|
815
815
|
}, any, InlineContentSchema, StyleSchema>;
|
|
816
816
|
};
|
|
817
817
|
audio: {
|
|
@@ -836,7 +836,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
836
836
|
};
|
|
837
837
|
content: "none";
|
|
838
838
|
isFileBlock: true;
|
|
839
|
-
|
|
839
|
+
fileBlockAccept: string[];
|
|
840
840
|
};
|
|
841
841
|
implementation: import("../schema").TiptapBlockImplementation<{
|
|
842
842
|
type: "audio";
|
|
@@ -859,7 +859,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
|
|
|
859
859
|
};
|
|
860
860
|
content: "none";
|
|
861
861
|
isFileBlock: true;
|
|
862
|
-
|
|
862
|
+
fileBlockAccept: string[];
|
|
863
863
|
}, any, InlineContentSchema, StyleSchema>;
|
|
864
864
|
};
|
|
865
865
|
}>;
|
|
@@ -369,5 +369,8 @@ export declare class BlockNoteEditor<BSchema extends BlockSchema = DefaultBlockS
|
|
|
369
369
|
* @returns A function to remove the callback.
|
|
370
370
|
*/
|
|
371
371
|
onSelectionChange(callback: (editor: BlockNoteEditor<BSchema, ISchema, SSchema>) => void): (() => void) | undefined;
|
|
372
|
-
|
|
372
|
+
openSuggestionMenu(triggerCharacter: string, pluginState?: {
|
|
373
|
+
deleteTriggerCharacter?: boolean;
|
|
374
|
+
ignoreQueryLength?: boolean;
|
|
375
|
+
}): void;
|
|
373
376
|
}
|
|
@@ -5,6 +5,7 @@ import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
|
5
5
|
import { EventEmitter } from "../../util/EventEmitter";
|
|
6
6
|
export type SuggestionMenuState = UiElementPosition & {
|
|
7
7
|
query: string;
|
|
8
|
+
ignoreQueryLength?: boolean;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
11
|
* A ProseMirror plugin for suggestions, designed to make '/'-commands possible as well as mentions.
|