@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.
@@ -1792,7 +1792,9 @@ var ScheduledIconWithTooltip = function ScheduledIconWithTooltip(_ref) {
1792
1792
  type: 'error',
1793
1793
  error: e
1794
1794
  });
1795
- });
1795
+ }); // This should only be ever called once. Following the eslint hint to add used
1796
+ // dependencies will cause page freeze (infinite loop)
1797
+ // eslint-disable-next-line
1796
1798
  }, []);
1797
1799
 
1798
1800
  if (status.type === 'loading' || status.type === 'error') {
@@ -1826,7 +1828,7 @@ function AssetThumbnail(props) {
1826
1828
  }
1827
1829
 
1828
1830
  function reducer(state, action) {
1829
- var _extends2, _extends3, _extends4, _extends5;
1831
+ var _extends2, _extends3, _extends4, _extends5, _extends6;
1830
1832
 
1831
1833
  switch (action.type) {
1832
1834
  case 'set_entry':
@@ -1849,6 +1851,11 @@ function reducer(state, action) {
1849
1851
  assets: _extends({}, state.assets, (_extends5 = {}, _extends5[action.id] = 'failed', _extends5))
1850
1852
  });
1851
1853
 
1854
+ case 'set_scheduled_actions':
1855
+ return _extends({}, state, {
1856
+ scheduledActions: _extends({}, state.scheduledActions, (_extends6 = {}, _extends6[action.key] = action.actions, _extends6))
1857
+ });
1858
+
1852
1859
  default:
1853
1860
  return state;
1854
1861
  }
@@ -2351,7 +2358,9 @@ function useEditorPermissions(props) {
2351
2358
  if (entityType === 'Entry') {
2352
2359
  // Hardcoded `true` value following https://contentful.atlassian.net/browse/DANTE-486
2353
2360
  // TODO: refine permissions check in order to account for tags in rules
2354
- _canRead = readableContentTypes.length > 0 || true;
2361
+ // TODO: always show every content type (it's just a filter) to avoid people not seeing
2362
+ // their (partly limited) content types
2363
+ _canRead = true;
2355
2364
  setCanLinkEntity(_canRead);
2356
2365
  }
2357
2366