@contentful/field-editor-rich-text 3.2.2 → 3.3.1
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/CHANGELOG.md +10 -0
- package/dist/field-editor-rich-text.cjs.development.js +99 -34
- 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 +100 -35
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/plugins/Marks/Code.d.ts +6 -0
- package/dist/plugins/Marks/Subscript.d.ts +6 -0
- package/dist/plugins/Marks/Superscript.d.ts +6 -0
- package/dist/plugins/Marks/components/MarkToolbarButton.d.ts +1 -1
- package/package.json +3 -3
|
@@ -7,5 +7,11 @@ export declare const ToolbarCodeButton: {
|
|
|
7
7
|
}): JSX.Element | null;
|
|
8
8
|
displayName: MARKS;
|
|
9
9
|
};
|
|
10
|
+
export declare const ToolbarDropdownCodeButton: {
|
|
11
|
+
({ isDisabled }: {
|
|
12
|
+
isDisabled?: boolean | undefined;
|
|
13
|
+
}): JSX.Element | null;
|
|
14
|
+
displayName: MARKS;
|
|
15
|
+
};
|
|
10
16
|
export declare function Code(props: Slate.RenderLeafProps): JSX.Element;
|
|
11
17
|
export declare const createCodePlugin: () => RichTextPlugin;
|
|
@@ -7,5 +7,11 @@ export declare const ToolbarSubscriptButton: {
|
|
|
7
7
|
}): JSX.Element | null;
|
|
8
8
|
displayName: MARKS;
|
|
9
9
|
};
|
|
10
|
+
export declare const ToolbarDropdownSubscriptButton: {
|
|
11
|
+
({ isDisabled }: {
|
|
12
|
+
isDisabled?: boolean | undefined;
|
|
13
|
+
}): JSX.Element | null;
|
|
14
|
+
displayName: MARKS;
|
|
15
|
+
};
|
|
10
16
|
export declare function Subscript(props: Slate.RenderLeafProps): JSX.Element;
|
|
11
17
|
export declare const createSubscriptPlugin: () => RichTextPlugin;
|
|
@@ -7,5 +7,11 @@ export declare const ToolbarSuperscriptButton: {
|
|
|
7
7
|
}): JSX.Element | null;
|
|
8
8
|
displayName: MARKS;
|
|
9
9
|
};
|
|
10
|
+
export declare const ToolbarDropdownSuperscriptButton: {
|
|
11
|
+
({ isDisabled }: {
|
|
12
|
+
isDisabled?: boolean | undefined;
|
|
13
|
+
}): JSX.Element | null;
|
|
14
|
+
displayName: MARKS;
|
|
15
|
+
};
|
|
10
16
|
export declare function Superscript(props: Slate.RenderLeafProps): JSX.Element;
|
|
11
17
|
export declare const createSuperscriptPlugin: () => RichTextPlugin;
|
|
@@ -3,7 +3,7 @@ import { MARKS } from '@contentful/rich-text-types';
|
|
|
3
3
|
export interface MarkOptions {
|
|
4
4
|
mark: MARKS;
|
|
5
5
|
title: string;
|
|
6
|
-
icon
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
7
|
}
|
|
8
8
|
export declare const createMarkToolbarButton: ({ mark, title, icon }: MarkOptions) => {
|
|
9
9
|
({ isDisabled }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "dist/field-editor-rich-text.esm.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@contentful/f36-icons": "^4.1.1",
|
|
31
31
|
"@contentful/f36-tokens": "^4.0.0",
|
|
32
32
|
"@contentful/f36-utils": "^4.19.0",
|
|
33
|
-
"@contentful/field-editor-reference": "^5.5.
|
|
33
|
+
"@contentful/field-editor-reference": "^5.5.4",
|
|
34
34
|
"@contentful/field-editor-shared": "^1.1.4",
|
|
35
35
|
"@contentful/rich-text-plain-text-renderer": "^15.12.1",
|
|
36
36
|
"@contentful/rich-text-types": "15.14.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"@udecode/plate-test-utils": "^3.2.0",
|
|
74
74
|
"react": ">=16.14.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "57ed47aa5991c0f0e09981090f4a3bcd67a88d30"
|
|
77
77
|
}
|