@contentful/field-editor-rich-text 1.0.3 → 1.0.7
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 +18 -0
- package/dist/field-editor-rich-text.cjs.development.js +8 -14
- 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 +8 -14
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [1.0.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.6...@contentful/field-editor-rich-text@1.0.7) (2021-12-22)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- cache content types for Hyperlink ([#967](https://github.com/contentful/field-editors/issues/967)) ([07e376d](https://github.com/contentful/field-editors/commit/07e376de5157fa6477f060550aacf96af3ab5e85))
|
|
11
|
+
|
|
12
|
+
## [1.0.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.5...@contentful/field-editor-rich-text@1.0.6) (2021-12-20)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
15
|
+
|
|
16
|
+
## [1.0.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.4...@contentful/field-editor-rich-text@1.0.5) (2021-11-27)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
19
|
+
|
|
20
|
+
## [1.0.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.3...@contentful/field-editor-rich-text@1.0.4) (2021-11-26)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
23
|
+
|
|
6
24
|
## [1.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.2...@contentful/field-editor-rich-text@1.0.3) (2021-11-17)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
|
@@ -2775,19 +2775,13 @@ function _fetchAllData() {
|
|
|
2775
2775
|
case 4:
|
|
2776
2776
|
entity = _context.sent;
|
|
2777
2777
|
|
|
2778
|
-
if (
|
|
2779
|
-
|
|
2780
|
-
|
|
2778
|
+
if (entity.sys.contentType) {
|
|
2779
|
+
contentTypeId = entity.sys.contentType.sys.id;
|
|
2780
|
+
contentType = sdk.space.getCachedContentTypes().find(function (ct) {
|
|
2781
|
+
return ct.sys.id === contentTypeId;
|
|
2782
|
+
});
|
|
2781
2783
|
}
|
|
2782
2784
|
|
|
2783
|
-
contentTypeId = entity.sys.contentType.sys.id;
|
|
2784
|
-
_context.next = 9;
|
|
2785
|
-
return sdk.space.getContentType(contentTypeId);
|
|
2786
|
-
|
|
2787
|
-
case 9:
|
|
2788
|
-
contentType = _context.sent;
|
|
2789
|
-
|
|
2790
|
-
case 10:
|
|
2791
2785
|
entityTitle = entityType === 'Entry' ? fieldEditorShared.entityHelpers.getEntryTitle({
|
|
2792
2786
|
entry: entity,
|
|
2793
2787
|
contentType: contentType,
|
|
@@ -2806,10 +2800,10 @@ function _fetchAllData() {
|
|
|
2806
2800
|
localeCode: localeCode,
|
|
2807
2801
|
defaultLocaleCode: defaultLocaleCode
|
|
2808
2802
|
});
|
|
2809
|
-
_context.next =
|
|
2803
|
+
_context.next = 10;
|
|
2810
2804
|
return sdk.space.getEntityScheduledActions(entityType, entityId);
|
|
2811
2805
|
|
|
2812
|
-
case
|
|
2806
|
+
case 10:
|
|
2813
2807
|
jobs = _context.sent;
|
|
2814
2808
|
entityStatus = fieldEditorShared.entityHelpers.getEntryStatus(entity.sys);
|
|
2815
2809
|
return _context.abrupt("return", {
|
|
@@ -2821,7 +2815,7 @@ function _fetchAllData() {
|
|
|
2821
2815
|
contentTypeName: contentType ? contentType.name : ''
|
|
2822
2816
|
});
|
|
2823
2817
|
|
|
2824
|
-
case
|
|
2818
|
+
case 13:
|
|
2825
2819
|
case "end":
|
|
2826
2820
|
return _context.stop();
|
|
2827
2821
|
}
|