@contentful/field-editor-rich-text 2.0.0-next.17 → 2.0.0-next.18

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.
@@ -1,5 +1,6 @@
1
1
  import { Link } from '@contentful/field-editor-reference/dist/types';
2
2
  import { BLOCKS, INLINES } from '@contentful/rich-text-types';
3
+ import { EditorNodesOptions, ToggleNodeTypeOptions } from '@udecode/plate-core';
3
4
  import { Path, Node } from 'slate';
4
5
  import { CustomElement, RichTextEditor } from '../types';
5
6
  export declare const LINK_TYPES: INLINES[];
@@ -36,4 +37,5 @@ export declare function currentSelectionPrecedesTableCell(editor: RichTextEditor
36
37
  export declare const INLINE_TYPES: string[];
37
38
  export declare const isInlineOrText: (node: Node) => boolean;
38
39
  export declare const focus: (editor: RichTextEditor) => void;
40
+ export declare function toggleElement(editor: RichTextEditor, options: ToggleNodeTypeOptions, editorOptions?: Omit<EditorNodesOptions, 'match'>): void;
39
41
  export {};
@@ -0,0 +1,4 @@
1
+ import { PlateEditor } from '@udecode/plate-core';
2
+ export declare const toggleList: (editor: PlateEditor, { type }: {
3
+ type: string;
4
+ }) => void;
@@ -4,5 +4,4 @@ export declare const assertOutput: (options: {
4
4
  expected: any;
5
5
  editor?: RichTextEditor;
6
6
  log?: boolean;
7
- skipCursor?: boolean;
8
7
  }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.17",
3
+ "version": "2.0.0-next.18",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },