@contentful/field-editor-rich-text 2.3.7 → 2.3.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 +4 -0
- 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 +4 -0
- 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
|
+
## [2.3.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.7...@contentful/field-editor-rich-text@2.3.8) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- no embedded entries check rich text commands [TOL-273] ([#1192](https://github.com/contentful/field-editors/issues/1192)) ([c9983cf](https://github.com/contentful/field-editors/commit/c9983cf183ce95993b7cb1fb1a23728d373df736))
|
|
11
|
+
|
|
6
12
|
## [2.3.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.6...@contentful/field-editor-rich-text@2.3.7) (2022-07-19)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -373,6 +373,10 @@ var _constate = /*#__PURE__*/constate(useSdk),
|
|
|
373
373
|
var useCommandList = function useCommandList(commandItems, container) {
|
|
374
374
|
var _React$useState = React.useState(function () {
|
|
375
375
|
// select the first item on initial render
|
|
376
|
+
if (!commandItems.length) {
|
|
377
|
+
return '';
|
|
378
|
+
}
|
|
379
|
+
|
|
376
380
|
if ('group' in commandItems[0]) {
|
|
377
381
|
return commandItems[0].commands[0].id;
|
|
378
382
|
}
|