@contentful/field-editor-reference 4.3.4 → 4.3.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-reference.cjs.development.js +12 -3
- 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 +12 -3
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
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
|
+
## [4.3.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.6...@contentful/field-editor-reference@4.3.7) (2022-06-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **reference:** avoid infinite getEntityScheduledActions calls ([#1159](https://github.com/contentful/field-editors/issues/1159)) ([620111b](https://github.com/contentful/field-editors/commit/620111bdca45a083369bdb42be8e93a16b670937))
|
|
11
|
+
|
|
12
|
+
## [4.3.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.5...@contentful/field-editor-reference@4.3.6) (2022-05-24)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **reference:** show all content types for reference CT filter [HOMER-836] ([#1152](https://github.com/contentful/field-editors/issues/1152)) ([fe1f38d](https://github.com/contentful/field-editors/commit/fe1f38d093649f31701ead308720a64ffaba44b0))
|
|
17
|
+
|
|
18
|
+
## [4.3.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.4...@contentful/field-editor-reference@4.3.5) (2022-05-09)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- fix caching in references entity store ([#1137](https://github.com/contentful/field-editors/issues/1137)) ([1cd8c86](https://github.com/contentful/field-editors/commit/1cd8c861d41d32898ab7bf6b02044462c9f2ca91))
|
|
23
|
+
|
|
6
24
|
## [4.3.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.3...@contentful/field-editor-reference@4.3.4) (2022-05-06)
|
|
7
25
|
|
|
8
26
|
### Bug Fixes
|
|
@@ -1799,7 +1799,9 @@ var ScheduledIconWithTooltip = function ScheduledIconWithTooltip(_ref) {
|
|
|
1799
1799
|
type: 'error',
|
|
1800
1800
|
error: e
|
|
1801
1801
|
});
|
|
1802
|
-
});
|
|
1802
|
+
}); // This should only be ever called once. Following the eslint hint to add used
|
|
1803
|
+
// dependencies will cause page freeze (infinite loop)
|
|
1804
|
+
// eslint-disable-next-line
|
|
1803
1805
|
}, []);
|
|
1804
1806
|
|
|
1805
1807
|
if (status.type === 'loading' || status.type === 'error') {
|
|
@@ -1833,7 +1835,7 @@ function AssetThumbnail(props) {
|
|
|
1833
1835
|
}
|
|
1834
1836
|
|
|
1835
1837
|
function reducer(state, action) {
|
|
1836
|
-
var _extends2, _extends3, _extends4, _extends5;
|
|
1838
|
+
var _extends2, _extends3, _extends4, _extends5, _extends6;
|
|
1837
1839
|
|
|
1838
1840
|
switch (action.type) {
|
|
1839
1841
|
case 'set_entry':
|
|
@@ -1856,6 +1858,11 @@ function reducer(state, action) {
|
|
|
1856
1858
|
assets: _extends({}, state.assets, (_extends5 = {}, _extends5[action.id] = 'failed', _extends5))
|
|
1857
1859
|
});
|
|
1858
1860
|
|
|
1861
|
+
case 'set_scheduled_actions':
|
|
1862
|
+
return _extends({}, state, {
|
|
1863
|
+
scheduledActions: _extends({}, state.scheduledActions, (_extends6 = {}, _extends6[action.key] = action.actions, _extends6))
|
|
1864
|
+
});
|
|
1865
|
+
|
|
1859
1866
|
default:
|
|
1860
1867
|
return state;
|
|
1861
1868
|
}
|
|
@@ -2358,7 +2365,9 @@ function useEditorPermissions(props) {
|
|
|
2358
2365
|
if (entityType === 'Entry') {
|
|
2359
2366
|
// Hardcoded `true` value following https://contentful.atlassian.net/browse/DANTE-486
|
|
2360
2367
|
// TODO: refine permissions check in order to account for tags in rules
|
|
2361
|
-
|
|
2368
|
+
// TODO: always show every content type (it's just a filter) to avoid people not seeing
|
|
2369
|
+
// their (partly limited) content types
|
|
2370
|
+
_canRead = true;
|
|
2362
2371
|
setCanLinkEntity(_canRead);
|
|
2363
2372
|
}
|
|
2364
2373
|
|