@contentful/field-editor-reference 4.0.3 → 4.0.4
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-reference.cjs.development.js +3 -0
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +3 -0
- package/dist/field-editor-reference.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
|
+
## [4.0.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.0.3...@contentful/field-editor-reference@4.0.4) (2021-11-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **references:** sort content types alphabetically ([#942](https://github.com/contentful/field-editors/issues/942)) ([3afb1ee](https://github.com/contentful/field-editors/commit/3afb1ee79e19b30f776d45790c482f60cd532fb3))
|
|
11
|
+
|
|
6
12
|
## [4.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.0.2...@contentful/field-editor-reference@4.0.3) (2021-11-17)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -335,6 +335,9 @@ var CreateEntryLinkButton = function CreateEntryLinkButton(_ref) {
|
|
|
335
335
|
dropdownSettings = _ref.dropdownSettings,
|
|
336
336
|
_ref$disabled = _ref.disabled,
|
|
337
337
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
338
|
+
contentTypes = contentTypes.sort(function (a, b) {
|
|
339
|
+
return a.name.localeCompare(b.name);
|
|
340
|
+
});
|
|
338
341
|
var suggestedContentType = contentTypes.find(function (ct) {
|
|
339
342
|
return ct.sys.id === suggestedContentTypeId;
|
|
340
343
|
});
|