@contentful/field-editor-rich-text 3.4.4 → 3.4.6
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 +12 -0
- package/dist/field-editor-rich-text.cjs.development.js +33 -6
- 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 +33 -6
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/plugins/CommandPalette/useCommands.d.ts +5 -0
- package/dist/plugins/Hyperlink/useEntityInfo.d.ts +2 -2
- package/package.json +5 -5
|
@@ -11,4 +11,9 @@ export interface CommandGroup {
|
|
|
11
11
|
commands: Command[];
|
|
12
12
|
}
|
|
13
13
|
export declare type CommandList = (Command | CommandGroup)[];
|
|
14
|
+
export declare function isCommandPromptPluginEnabled(sdk: FieldExtensionSDK): {
|
|
15
|
+
inlineAllowed: boolean;
|
|
16
|
+
entriesAllowed: boolean;
|
|
17
|
+
assetsAllowed: boolean;
|
|
18
|
+
};
|
|
14
19
|
export declare const useCommands: (sdk: FieldExtensionSDK, query: string, editor: PlateEditor) => CommandList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset, ContentEntityType, Entry, FieldExtensionSDK, Link, ScheduledAction } from '@contentful/app-sdk';
|
|
2
2
|
import { entityHelpers } from '@contentful/field-editor-shared';
|
|
3
3
|
export declare type FetchedEntityData = {
|
|
4
4
|
jobs: ScheduledAction[];
|
|
@@ -9,7 +9,7 @@ export declare type FetchedEntityData = {
|
|
|
9
9
|
contentTypeName: string;
|
|
10
10
|
};
|
|
11
11
|
export declare type EntityInfoProps = {
|
|
12
|
-
target: Link
|
|
12
|
+
target: Link<ContentEntityType>;
|
|
13
13
|
sdk: FieldExtensionSDK;
|
|
14
14
|
onEntityFetchComplete?: VoidFunction;
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.6",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "dist/field-editor-rich-text.esm.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
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.8.
|
|
34
|
-
"@contentful/field-editor-shared": "^1.1.
|
|
33
|
+
"@contentful/field-editor-reference": "^5.8.3",
|
|
34
|
+
"@contentful/field-editor-shared": "^1.1.5",
|
|
35
35
|
"@contentful/rich-text-plain-text-renderer": "^15.12.1",
|
|
36
36
|
"@contentful/rich-text-types": "15.14.1",
|
|
37
37
|
"@popperjs/core": "^2.11.5",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"@babel/plugin-transform-runtime": "^7.9.6",
|
|
69
69
|
"@babel/preset-env": "7.12.11",
|
|
70
70
|
"@babel/preset-react": "7.13.13",
|
|
71
|
-
"@contentful/field-editor-test-utils": "^1.2.
|
|
71
|
+
"@contentful/field-editor-test-utils": "^1.2.4",
|
|
72
72
|
"@contentful/rich-text-react-renderer": "^15.11.0",
|
|
73
73
|
"@types/is-hotkey": "^0.1.6",
|
|
74
74
|
"@udecode/plate-test-utils": "^3.2.0",
|
|
75
75
|
"react": ">=16.14.0"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "b7cd2dbf16d2d8a638db6817cfda5e50ce65dc88"
|
|
78
78
|
}
|