@contentful/field-editor-rich-text 4.16.0 → 4.16.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/README.md +27 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,6 +11,33 @@ import 'codemirror/lib/codemirror.css';
|
|
|
11
11
|
import { RichTextEditor } from '@contentful/field-editor-rich-text';
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## ⚠️ Important: Package Configuration
|
|
15
|
+
|
|
16
|
+
Due to peer dependency resolution in npm, you must add the following to your `package.json` to ensure compatible versions are installed:
|
|
17
|
+
This is a temporary workaround until we have upgraded the underlying rich text packages.
|
|
18
|
+
|
|
19
|
+
**For npm:**
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"overrides": {
|
|
24
|
+
"slate": "0.94.1",
|
|
25
|
+
"slate-react": "0.102.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**For yarn:**
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"resolutions": {
|
|
35
|
+
"slate": "0.94.1",
|
|
36
|
+
"slate-react": "0.102.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
14
41
|
## Migrating to v2
|
|
15
42
|
|
|
16
43
|
To bring support for Rich Text Tables we rewrote most of the internals of this package to adapt the latest version of [Slate][slate]. We are releasing this change as v2.0.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.1",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@contentful/f36-icons": "^5.4.1",
|
|
45
45
|
"@contentful/f36-tokens": "^5.1.0",
|
|
46
46
|
"@contentful/f36-utils": "^5.1.0",
|
|
47
|
-
"@contentful/field-editor-reference": "^6.15.
|
|
47
|
+
"@contentful/field-editor-reference": "^6.15.1",
|
|
48
48
|
"@contentful/field-editor-shared": "^2.16.0",
|
|
49
49
|
"@contentful/rich-text-plain-text-renderer": "^17.0.0",
|
|
50
50
|
"@contentful/rich-text-types": "^17.0.0",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"@lingui/core": "5.3.0",
|
|
86
86
|
"@types/is-hotkey": "^0.1.6",
|
|
87
87
|
"@udecode/plate-test-utils": "^3.2.0",
|
|
88
|
-
"prism-react-renderer": "2.4.
|
|
88
|
+
"prism-react-renderer": "2.4.1",
|
|
89
89
|
"react": "18.3.1"
|
|
90
90
|
},
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"registry": "https://npm.pkg.github.com/"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "c29a501efe92281b4a990adc129b78270ce1acff"
|
|
95
95
|
}
|