@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.
@@ -287,7 +287,7 @@ export declare const defaultBlockSpecs: {
287
287
  };
288
288
  content: "none";
289
289
  isFileBlock: true;
290
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- fileBlockAcceptMimeTypes: string[];
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
- openSelectionMenu(triggerCharacter: string): void;
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.
@@ -29,7 +29,7 @@ export type FileBlockConfig = {
29
29
  };
30
30
  content: "none";
31
31
  isFileBlock: true;
32
- fileBlockAcceptMimeTypes?: string[];
32
+ fileBlockAccept?: string[];
33
33
  };
34
34
  export type BlockConfig = {
35
35
  type: string;