@contentful/field-editor-reference 5.24.0 → 5.26.0

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.
@@ -98,7 +98,7 @@ function ExternalResourceCardDescription({ subtitle, description }) {
98
98
  }, truncatedDescription));
99
99
  }
100
100
  ExternalResourceCardDescription.displayName = 'ExternalResourceCardDescription';
101
- function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick }) {
101
+ function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, isSelected }) {
102
102
  const { resource: entity, resourceType } = info;
103
103
  const badge = ExternalEntityBadge(entity.fields.badge);
104
104
  return _react.createElement(_f36components.EntryCard, {
@@ -114,6 +114,7 @@ function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop,
114
114
  dragHandleRender: renderDragHandle,
115
115
  withDragHandle: !!renderDragHandle,
116
116
  badge: badge,
117
+ isSelected: isSelected,
117
118
  actions: [
118
119
  hasCardEditActions && onEdit ? _react.createElement(_f36components.MenuItem, {
119
120
  key: "edit",
@@ -42,7 +42,7 @@ function ExternalResourceCardDescription({ subtitle, description }) {
42
42
  }, truncatedDescription));
43
43
  }
44
44
  ExternalResourceCardDescription.displayName = 'ExternalResourceCardDescription';
45
- export function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick }) {
45
+ export function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, isSelected }) {
46
46
  const { resource: entity, resourceType } = info;
47
47
  const badge = ExternalEntityBadge(entity.fields.badge);
48
48
  return React.createElement(EntryCard, {
@@ -58,6 +58,7 @@ export function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMo
58
58
  dragHandleRender: renderDragHandle,
59
59
  withDragHandle: !!renderDragHandle,
60
60
  badge: badge,
61
+ isSelected: isSelected,
61
62
  actions: [
62
63
  hasCardEditActions && onEdit ? React.createElement(MenuItem, {
63
64
  key: "edit",
@@ -16,7 +16,7 @@ export interface ExternalResourceCardProps {
16
16
  hasCardMoveActions?: boolean;
17
17
  hasCardRemoveActions?: boolean;
18
18
  }
19
- export declare function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, }: ExternalResourceCardProps): JSX.Element;
19
+ export declare function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, isSelected, }: ExternalResourceCardProps): JSX.Element;
20
20
  export declare namespace ExternalResourceCard {
21
21
  var defaultProps: {
22
22
  isClickable: boolean;
@@ -39,7 +39,7 @@ export type ResourceType = {
39
39
  export interface ExternalResource {
40
40
  sys: {
41
41
  type: 'Resource';
42
- id: string;
42
+ urn: string;
43
43
  resourceProvider: SysExternalResource<'ResourceProvider'>;
44
44
  resourceType: SysExternalResource<'ResourceType'>;
45
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "5.24.0",
3
+ "version": "5.26.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "registry": "https://npm.pkg.github.com/"
69
69
  },
70
- "gitHead": "49604b4ca3f3eefb173d40e365352686e65eeaef"
70
+ "gitHead": "b8bb055da4124068226d373e10a4687051b32e43"
71
71
  }