@contentful/field-editor-rich-text 2.0.0-next.16 → 2.0.0-next.19
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/README.md +4 -0
- package/dist/ContentfulEditorProvider.d.ts +3 -3
- package/dist/field-editor-rich-text.cjs.development.js +964 -644
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +967 -647
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/editor.d.ts +4 -0
- package/dist/plugins/List/transforms/toggleList.d.ts +4 -0
- package/dist/test-utils/assertOutput.d.ts +0 -1
- package/package.json +4 -4
package/dist/helpers/editor.d.ts
CHANGED
|
@@ -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[];
|
|
@@ -10,6 +11,8 @@ declare type NodeType = BLOCKS | INLINES;
|
|
|
10
11
|
export declare function getNodeEntryFromSelection(editor: RichTextEditor, nodeTypeOrTypes: NodeType | NodeType[]): NodeEntry | [];
|
|
11
12
|
export declare function isNodeTypeSelected(editor: RichTextEditor, nodeType: BLOCKS | INLINES): boolean;
|
|
12
13
|
export declare function moveToTheNextLine(editor: RichTextEditor): void;
|
|
14
|
+
export declare function moveToTheNextChar(editor: RichTextEditor): void;
|
|
15
|
+
export declare function insertEmptyParagraph(editor: RichTextEditor): void;
|
|
13
16
|
export declare function getElementFromCurrentSelection(editor: RichTextEditor): (import("slate").BaseEditor | CustomElement<unknown> | import("../types").CustomText | Path)[];
|
|
14
17
|
export declare function isList(editor?: RichTextEditor): boolean;
|
|
15
18
|
export declare function getTableSize(table: CustomElement): Record<'numRows' | 'numColumns', number> | null;
|
|
@@ -36,4 +39,5 @@ export declare function currentSelectionPrecedesTableCell(editor: RichTextEditor
|
|
|
36
39
|
export declare const INLINE_TYPES: string[];
|
|
37
40
|
export declare const isInlineOrText: (node: Node) => boolean;
|
|
38
41
|
export declare const focus: (editor: RichTextEditor) => void;
|
|
42
|
+
export declare function toggleElement(editor: RichTextEditor, options: ToggleNodeTypeOptions, editorOptions?: Omit<EditorNodesOptions, 'match'>): void;
|
|
39
43
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"tag": "next"
|
|
6
6
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@contentful/contentful-slatejs-adapter": "^15.11.0",
|
|
31
|
-
"@contentful/f36-components": "^4.0.
|
|
32
|
-
"@contentful/f36-icons": "^4.
|
|
33
|
-
"@contentful/f36-tokens": "^4.0.
|
|
31
|
+
"@contentful/f36-components": "^4.0.33",
|
|
32
|
+
"@contentful/f36-icons": "^4.1.1",
|
|
33
|
+
"@contentful/f36-tokens": "^4.0.0",
|
|
34
34
|
"@contentful/field-editor-reference": "^4.0.7",
|
|
35
35
|
"@contentful/field-editor-shared": "^1.0.3",
|
|
36
36
|
"@contentful/rich-text-plain-text-renderer": "^15.11.1",
|