@contentful/field-editor-reference 4.6.4 → 4.6.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.
@@ -2,7 +2,7 @@ import React__default, { useState, useRef, useEffect, createElement, Fragment, u
2
2
  import { css, cx } from 'emotion';
3
3
  import tokens from '@contentful/f36-tokens';
4
4
  import get from 'lodash-es/get';
5
- import { Menu, TextInput, Button, Paragraph, Card, SectionHeading, IconButton, Tooltip, Flex, Text, EntryCard, MenuItem, MenuDivider, AssetCard } from '@contentful/f36-components';
5
+ import { Menu, TextInput, Button, Paragraph, Card, Flex, SectionHeading, IconButton, Tooltip, Text, EntryCard, MenuItem, MenuDivider, AssetCard } from '@contentful/f36-components';
6
6
  import { SearchIcon, PlusIcon, ChevronDownIcon, LinkIcon, CloseIcon, FolderOpenTrimmedIcon, ClockIcon } from '@contentful/f36-icons';
7
7
  import moment from 'moment';
8
8
  import deepEqual from 'deep-equal';
@@ -620,30 +620,27 @@ var squareCard = /*#__PURE__*/css({
620
620
  height: '160px',
621
621
  textAlign: 'center'
622
622
  });
623
- var close = /*#__PURE__*/css({
624
- position: 'absolute',
625
- top: tokens.spacingS,
626
- right: tokens.spacingS
627
- });
628
623
 
629
624
  function MissingEntityCard(props) {
630
625
  return React__default.createElement(Card, {
631
626
  className: card
627
+ }, React__default.createElement(Flex, {
628
+ alignItems: "center",
629
+ justifyContent: "space-between"
632
630
  }, React__default.createElement("div", {
633
631
  className: props.asSquare ? squareCard : ''
634
632
  }, React__default.createElement(SectionHeading, {
635
633
  marginBottom: "none"
636
- }, props.entityType === 'Entry' && 'Entry is missing or inaccessible', props.entityType === 'Asset' && 'Asset is missing or inaccessible')), !props.isDisabled && props.onRemove && React__default.createElement(IconButton, {
634
+ }, props.entityType, " is missing or inaccessible")), !props.isDisabled && props.onRemove && React__default.createElement(IconButton, {
637
635
  variant: "transparent",
638
636
  icon: React__default.createElement(CloseIcon, {
639
637
  variant: "muted"
640
638
  }),
641
- className: close,
642
639
  "aria-label": "Delete",
643
640
  onClick: function onClick() {
644
641
  props.onRemove && props.onRemove();
645
642
  }
646
- }));
643
+ })));
647
644
  }
648
645
 
649
646
  function createCommonjsModule(fn, module) {