@contentful/field-editor-rich-text 2.0.0-next.27 → 2.0.0-next.28
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/field-editor-rich-text.cjs.development.js +1 -62
- 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 +3 -64
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/editor.d.ts +0 -2
- package/dist/test-utils/jsx.d.ts +1 -1
- package/package.json +1 -1
package/dist/helpers/editor.d.ts
CHANGED
|
@@ -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;
|
package/dist/test-utils/jsx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Add items as needed. Don't forget to adjust hyperscript.d.ts
|
|
5
5
|
*/
|
|
6
|
-
export declare const jsx: <S extends "
|
|
6
|
+
export declare const jsx: <S extends "selection" | "text" | "element" | "editor" | "focus" | "anchor" | "cursor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
|
|
7
7
|
anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
|
|
8
8
|
cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
|
|
9
9
|
editor: (tagName: string, attributes: {
|