@contentful/field-editor-rich-text 3.1.7 → 3.1.8
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 +6 -0
- package/dist/field-editor-rich-text.cjs.development.js +1 -5
- 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 +1 -5
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.1.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.1.7...@contentful/field-editor-rich-text@3.1.8) (2022-10-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- [] Check content for undefined ([#1215](https://github.com/contentful/field-editors/issues/1215)) ([1ff49f4](https://github.com/contentful/field-editors/commit/1ff49f40cd563e1a78a56e049edbf77d59156a33))
|
|
11
|
+
|
|
6
12
|
## [3.1.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.1.6...@contentful/field-editor-rich-text@3.1.7) (2022-10-11)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
@@ -7122,11 +7122,7 @@ function sanitizeIncomingSlateDoc(nodes) {
|
|
|
7122
7122
|
*/
|
|
7123
7123
|
|
|
7124
7124
|
var hasContent = function hasContent(doc) {
|
|
7125
|
-
|
|
7126
|
-
return false;
|
|
7127
|
-
}
|
|
7128
|
-
|
|
7129
|
-
return doc.content.length > 0;
|
|
7125
|
+
return ((doc == null ? void 0 : doc.content) || []).length > 0;
|
|
7130
7126
|
};
|
|
7131
7127
|
/*
|
|
7132
7128
|
Plate api doesn't allow to modify (easily) the editor value programmatically
|