@contentful/field-editor-rich-text 2.0.0-next.14 → 2.0.0-next.17
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 +57 -37
- 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 +60 -40
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/editor.d.ts +0 -2
- package/dist/plugins/List/utils.d.ts +2 -0
- package/dist/plugins/PasteHTML/createPasteHTMLPlugin.d.ts +6 -0
- package/dist/test-utils/jsx.d.ts +1 -1
- package/package.json +4 -4
package/dist/helpers/editor.d.ts
CHANGED
|
@@ -25,8 +25,6 @@ export declare function isLinkActive(editor?: RichTextEditor): boolean;
|
|
|
25
25
|
export declare function unwrapLink(editor: any): void;
|
|
26
26
|
export declare function wrapLink(editor: any, { text, url, target, type, path }: InsertLinkOptions): void;
|
|
27
27
|
export declare function getAncestorPathFromSelection(editor: RichTextEditor): Path | undefined;
|
|
28
|
-
export declare function shouldUnwrapBlockquote(editor: RichTextEditor, type: BLOCKS): boolean;
|
|
29
|
-
export declare function unwrapFromRoot(editor: RichTextEditor): void;
|
|
30
28
|
export declare const isAtEndOfTextSelection: (editor: RichTextEditor) => boolean;
|
|
31
29
|
export declare function currentSelectionStartsTableCell(editor: RichTextEditor): boolean;
|
|
32
30
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BLOCKS } from '@contentful/rich-text-types';
|
|
1
2
|
import { NodeEntry, Node } from 'slate';
|
|
2
3
|
import { CustomElement, RichTextEditor } from '../../types';
|
|
3
4
|
export declare const hasListAsDirectParent: (editor: RichTextEditor, [, path]: NodeEntry<Node>) => boolean;
|
|
@@ -11,3 +12,4 @@ export declare const isNonEmptyListItem: (editor: RichTextEditor, [, path]: Node
|
|
|
11
12
|
export declare const firstNodeIsNotList: (_editor: RichTextEditor, [node]: NodeEntry<CustomElement<unknown>>) => boolean;
|
|
12
13
|
export declare const insertParagraphAsChild: (editor: RichTextEditor, [, path]: NodeEntry<Node>) => void;
|
|
13
14
|
export declare const replaceNodeWithListItems: (editor: any, entry: any) => void;
|
|
15
|
+
export declare const isListTypeActive: (editor: RichTextEditor, type: BLOCKS) => boolean;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { RichTextPlugin } from '../../types';
|
|
2
|
+
export declare const getSlateFragmentAttribute: (dataTransfer: DataTransfer) => string | void;
|
|
3
|
+
/**
|
|
4
|
+
* Get the x-slate-fragment attribute that exist in text/html data
|
|
5
|
+
* and append it to the DataTransfer object
|
|
6
|
+
*/
|
|
7
|
+
export declare const ensureXSlateFragment: (dataTransfer: DataTransfer) => DataTransfer;
|
|
2
8
|
export declare const createPasteHTMLPlugin: () => RichTextPlugin;
|
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 "editor" | "text" | "selection" | "element" | "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: {
|
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.17",
|
|
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",
|