@contentful/field-editor-rich-text 2.0.0-next.26 → 2.0.0-next.29

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 declare function getNodeEntryFromSelection(editor: RichTextEditor, nodeTy
12
12
  export declare function isNodeTypeSelected(editor: RichTextEditor, nodeType: BLOCKS | INLINES): boolean;
13
13
  export declare function moveToTheNextLine(editor: RichTextEditor): void;
14
14
  export declare function moveToTheNextChar(editor: RichTextEditor): void;
15
- export declare function insertEmptyParagraph(editor: RichTextEditor): void;
15
+ export declare function insertEmptyParagraph(editor: RichTextEditor, options?: any): void;
16
16
  export declare function getElementFromCurrentSelection(editor: RichTextEditor): (import("slate").BaseEditor | CustomElement<unknown> | import("../types").CustomText | Path)[];
17
17
  export declare function isList(editor?: RichTextEditor): boolean;
18
18
  export declare function getTableSize(table: CustomElement): Record<'numRows' | 'numColumns', number> | null;
@@ -29,13 +29,11 @@ export declare function unwrapLink(editor: any): void;
29
29
  export declare function wrapLink(editor: any, { text, url, target, type, path }: InsertLinkOptions): void;
30
30
  export declare function getAncestorPathFromSelection(editor: RichTextEditor): Path | undefined;
31
31
  export declare const isAtEndOfTextSelection: (editor: RichTextEditor) => boolean;
32
- export declare function currentSelectionStartsTableCell(editor: RichTextEditor): boolean;
33
32
  /**
34
33
  * This traversal strategy is unfortunately necessary because Slate doesn't
35
34
  * expose something like Node.next(editor).
36
35
  */
37
36
  export declare function getNextNode(editor: RichTextEditor): CustomElement | null;
38
- export declare function currentSelectionPrecedesTableCell(editor: RichTextEditor): boolean;
39
37
  export declare const INLINE_TYPES: string[];
40
38
  export declare const isInlineOrText: (node: Node) => boolean;
41
39
  export declare const focus: (editor: RichTextEditor) => void;
@@ -0,0 +1,3 @@
1
+ import { Node } from 'slate';
2
+ import { RichTextEditor } from '../../types';
3
+ export declare const insertTableFragment: (editor: RichTextEditor) => (fragments: Node[]) => void;
@@ -0,0 +1,3 @@
1
+ import { HotkeyPlugin, KeyboardHandler } from '@udecode/plate-core';
2
+ import { RichTextEditor } from '../../types';
3
+ export declare const onKeyDownTable: KeyboardHandler<RichTextEditor, HotkeyPlugin>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.26",
3
+ "version": "2.0.0-next.29",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },