@contentful/field-editor-reference 5.5.4 → 5.6.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.
- package/CHANGELOG.md +10 -0
- package/dist/field-editor-reference.cjs.development.js +7 -4
- 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 +7 -4
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect, createElement, Fragment, useMemo, useCallback } from 'react';
|
|
2
2
|
import { css, cx } from 'emotion';
|
|
3
3
|
import tokens from '@contentful/f36-tokens';
|
|
4
|
-
import get from 'lodash-es/get';
|
|
5
4
|
import { Menu, TextInput, Button, Paragraph, Card, Flex, SectionHeading, IconButton, Tooltip, Text, EntryCard, MenuItem, MenuDivider, AssetCard } from '@contentful/f36-components';
|
|
6
5
|
import { SearchIcon, PlusIcon, ChevronDownIcon, LinkIcon, CloseIcon, FolderOpenTrimmedIcon, ClockIcon } from '@contentful/f36-icons';
|
|
6
|
+
import get from 'lodash-es/get';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
import { FieldConnector, isValidImage, entityHelpers, shortenStorageUnit } from '@contentful/field-editor-shared';
|
|
9
9
|
import deepEqual from 'deep-equal';
|
|
@@ -190,7 +190,7 @@ var action = /*#__PURE__*/css({
|
|
|
190
190
|
});
|
|
191
191
|
|
|
192
192
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
193
|
-
var MAX_ITEMS_WITHOUT_SEARCH =
|
|
193
|
+
var MAX_ITEMS_WITHOUT_SEARCH = 5;
|
|
194
194
|
var menuPlacementMap = {
|
|
195
195
|
'bottom-left': 'bottom-start',
|
|
196
196
|
'bottom-right': 'bottom-end'
|
|
@@ -396,7 +396,8 @@ var standardStyles = {
|
|
|
396
396
|
var redesignStyles = /*#__PURE__*/_extends({}, standardStyles, {
|
|
397
397
|
action: /*#__PURE__*/css({
|
|
398
398
|
textDecoration: 'none',
|
|
399
|
-
fontWeight: 'bold'
|
|
399
|
+
fontWeight: 'bold',
|
|
400
|
+
maxWidth: '300px'
|
|
400
401
|
})
|
|
401
402
|
});
|
|
402
403
|
|
|
@@ -3357,7 +3358,9 @@ var styles$3 = {
|
|
|
3357
3358
|
position: 'relative'
|
|
3358
3359
|
}),
|
|
3359
3360
|
item: /*#__PURE__*/css({
|
|
3360
|
-
marginBottom: tokens.spacingM
|
|
3361
|
+
marginBottom: tokens.spacingM,
|
|
3362
|
+
zIndex: tokens.zIndexModalContent // setting this to an index above 99 fixes dragged item disappearing issue
|
|
3363
|
+
|
|
3361
3364
|
})
|
|
3362
3365
|
};
|
|
3363
3366
|
|