@contentful/field-editor-reference 5.27.3 → 5.27.5

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.
@@ -20,6 +20,7 @@ function MissingEntityCard(props) {
20
20
  const providerName = props.providerName ?? 'Source';
21
21
  const description = props.customMessage ?? 'Content missing or inaccessible';
22
22
  function CustomActionButton() {
23
+ if (props.isDisabled || !props.onRemove) return null;
23
24
  return _react.default.createElement(_f36components.IconButton, {
24
25
  "aria-label": "Actions",
25
26
  icon: _react.default.createElement(_f36icons.CloseIcon, {
@@ -5,6 +5,7 @@ export function MissingEntityCard(props) {
5
5
  const providerName = props.providerName ?? 'Source';
6
6
  const description = props.customMessage ?? 'Content missing or inaccessible';
7
7
  function CustomActionButton() {
8
+ if (props.isDisabled || !props.onRemove) return null;
8
9
  return React.createElement(IconButton, {
9
10
  "aria-label": "Actions",
10
11
  icon: React.createElement(CloseIcon, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "5.27.3",
3
+ "version": "5.27.5",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "@contentful/f36-components": "^4.60.0",
39
39
  "@contentful/f36-icons": "^4.27.0",
40
40
  "@contentful/f36-tokens": "^4.0.4",
41
- "@contentful/field-editor-shared": "^1.4.8",
41
+ "@contentful/field-editor-shared": "^1.4.9",
42
42
  "@contentful/mimetype": "^2.2.29",
43
43
  "@dnd-kit/core": "^6.0.8",
44
44
  "@dnd-kit/modifiers": "^6.0.1",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "registry": "https://npm.pkg.github.com/"
69
69
  },
70
- "gitHead": "4dfb84c2d6e620067bb539985a80e292110e7160"
70
+ "gitHead": "29cf5fb16a8d61f6c23678dad618c61aceec320d"
71
71
  }