@atlaskit/editor-common 134.13.0 → 134.14.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 134.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1754902b31de6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1754902b31de6) -
8
+ Element Browser (platform_editor_slash_command experiment): Quick Insert preview images accept an
9
+ optional `objectFit` (`contain` by default, or `cover` to crop the image to fill its area). Item
10
+ titles in Element Browser tiles and slash-menu previews use `color.text`. Adds Element Browser
11
+ messages for the dialog title, search, category and result labels.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 134.13.0
4
18
 
5
19
  ### Minor Changes
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "134.12.0";
30
+ var packageVersion = "134.14.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -27,6 +27,7 @@
27
27
  ._4t3i1osq{height:100%}
28
28
  ._4t3i68cl{height:90pt}
29
29
  ._4t3i7vkz{height:1pc}
30
+ ._5ral1dfr{object-fit:cover}
30
31
  ._5ral1f51{object-fit:contain}
31
32
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
32
33
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
@@ -28,13 +28,14 @@ var layoutStyles = {
28
28
  var styles = {
29
29
  root: "_1e0c1txw _2lx21bp4 _16jlkb7n _1ul9idpf",
30
30
  content: "_zulpu2gc _1e0c1txw _2lx21bp4 _16jlkb7n",
31
- title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazazsu _1ul9idpf _1i4qfg65",
31
+ title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazi7uo _1ul9idpf _1i4qfg65",
32
32
  clampedTitle: "_1reo15vq _18m915vq _1e0ccj1k _sudp1e54 _1yyjcs5v",
33
33
  description: "_11c8fhey _1reo15vq _18m915vq _syazi7uo _1e0ccj1k _1i4qfg65 _sudp1e54 _1yyjegat",
34
34
  unclampedDescription: "_11c8fhey _syazi7uo _1i4qfg65",
35
35
  disabledText: "_syaz1gmx",
36
36
  imageArea: "_2rko12b0 _1reo15vq _18m915vq _bfhkhfxm _4t3i68cl _6rthu2gc _1bsb1osq",
37
37
  image: "_1e0c1ule _4t3i1osq _5ral1f51 _1bsb1osq",
38
+ imageCover: "_5ral1dfr",
38
39
  imageHidden: "_3um015vq",
39
40
  attribution: "_zulp1b66 _4cvr1h6o _syazazsu _1e0c1txw _1pfh1wug _1i4qfg65",
40
41
  compactAttribution: "_11c8wadc",
@@ -46,7 +47,7 @@ var styles = {
46
47
  * Element Browser tiles. It fills its container; callers own its width and accessible name.
47
48
  */
48
49
  var QuickInsertPreviewContent = exports.QuickInsertPreviewContent = function QuickInsertPreviewContent(_ref) {
49
- var _preview$attribution, _preview$attribution2;
50
+ var _preview$attribution, _preview$attribution2, _preview$image;
50
51
  var description = _ref.description,
51
52
  icon = _ref.icon,
52
53
  id = _ref.id,
@@ -83,7 +84,8 @@ var QuickInsertPreviewContent = exports.QuickInsertPreviewContent = function Qui
83
84
  className: (0, _runtime.ax)([styles.root])
84
85
  }, imageUrl && /*#__PURE__*/_react.default.createElement(PreviewImage, {
85
86
  key: imageUrl,
86
- imageUrl: imageUrl
87
+ imageUrl: imageUrl,
88
+ objectFit: (_preview$image = preview.image) === null || _preview$image === void 0 ? void 0 : _preview$image.objectFit
87
89
  }), /*#__PURE__*/_react.default.createElement("div", {
88
90
  className: (0, _runtime.ax)([styles.content])
89
91
  }, shortcut ? /*#__PURE__*/_react.default.createElement(_inline.Inline, {
@@ -110,7 +112,8 @@ var QuickInsertPreviewContent = exports.QuickInsertPreviewContent = function Qui
110
112
  }))))));
111
113
  };
112
114
  var PreviewImage = function PreviewImage(_ref2) {
113
- var imageUrl = _ref2.imageUrl;
115
+ var imageUrl = _ref2.imageUrl,
116
+ objectFit = _ref2.objectFit;
114
117
  var _useState = (0, _react.useState)(false),
115
118
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
116
119
  hasFailed = _useState2[0],
@@ -137,6 +140,6 @@ var PreviewImage = function PreviewImage(_ref2) {
137
140
  onError: function onError() {
138
141
  return setHasFailed(true);
139
142
  },
140
- className: (0, _runtime.ax)([styles.image, !hasLoaded && styles.imageHidden])
143
+ className: (0, _runtime.ax)([styles.image, objectFit === 'cover' && styles.imageCover, !hasLoaded && styles.imageHidden])
141
144
  }));
142
145
  };
@@ -210,5 +210,35 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
210
210
  id: 'editor-common.quick-insert.previewAttributionMicrosoft.ai-non-final',
211
211
  defaultMessage: 'Microsoft',
212
212
  description: 'Microsoft company name shown as the creator in a slash-command preview attribution.'
213
+ },
214
+ elementBrowserAllElements: {
215
+ id: 'editor.quick-insert.all-elements',
216
+ defaultMessage: 'All elements',
217
+ description: 'Heading above the remaining elements in the element browser All category, shown below the Recommended elements.'
218
+ },
219
+ elementBrowserCategoriesLabel: {
220
+ id: 'editor.quick-insert.categories-label',
221
+ defaultMessage: 'Element categories',
222
+ description: 'Accessible label for the group of category buttons in the element browser sidebar, read by screen readers.'
223
+ },
224
+ elementBrowserResultsAvailable: {
225
+ id: 'editor.quick-insert.results-available',
226
+ defaultMessage: '{count, plural, one {# result available} other {# results available}}',
227
+ description: 'Shown in the element browser footer. Tells the user how many elements match the current search and category.'
228
+ },
229
+ elementBrowserResultsLabel: {
230
+ id: 'editor.quick-insert.results-label',
231
+ defaultMessage: 'Element results',
232
+ description: 'Accessible label for the list of elements in the element browser, read by screen readers.'
233
+ },
234
+ elementBrowserSearch: {
235
+ id: 'editor.quick-insert.search',
236
+ defaultMessage: 'Search elements',
237
+ description: 'Accessible label for the search field at the top of the element browser, used to filter the elements that can be inserted.'
238
+ },
239
+ elementBrowserTitle: {
240
+ id: 'editor.quick-insert.title',
241
+ defaultMessage: 'Insert elements',
242
+ description: 'Title of the element browser dialog, where users browse and insert elements such as tables, panels and macros.'
213
243
  }
214
244
  });
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "134.12.0";
26
+ var packageVersion = "134.14.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "134.12.0";
16
+ const packageVersion = "134.14.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -27,6 +27,7 @@
27
27
  ._4t3i1osq{height:100%}
28
28
  ._4t3i68cl{height:90pt}
29
29
  ._4t3i7vkz{height:1pc}
30
+ ._5ral1dfr{object-fit:cover}
30
31
  ._5ral1f51{object-fit:contain}
31
32
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
32
33
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
@@ -20,13 +20,14 @@ const layoutStyles = {
20
20
  const styles = {
21
21
  root: "_1e0c1txw _2lx21bp4 _16jlkb7n _1ul9idpf",
22
22
  content: "_zulpu2gc _1e0c1txw _2lx21bp4 _16jlkb7n",
23
- title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazazsu _1ul9idpf _1i4qfg65",
23
+ title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazi7uo _1ul9idpf _1i4qfg65",
24
24
  clampedTitle: "_1reo15vq _18m915vq _1e0ccj1k _sudp1e54 _1yyjcs5v",
25
25
  description: "_11c8fhey _1reo15vq _18m915vq _syazi7uo _1e0ccj1k _1i4qfg65 _sudp1e54 _1yyjegat",
26
26
  unclampedDescription: "_11c8fhey _syazi7uo _1i4qfg65",
27
27
  disabledText: "_syaz1gmx",
28
28
  imageArea: "_2rko12b0 _1reo15vq _18m915vq _bfhkhfxm _4t3i68cl _6rthu2gc _1bsb1osq",
29
29
  image: "_1e0c1ule _4t3i1osq _5ral1f51 _1bsb1osq",
30
+ imageCover: "_5ral1dfr",
30
31
  imageHidden: "_3um015vq",
31
32
  attribution: "_zulp1b66 _4cvr1h6o _syazazsu _1e0c1txw _1pfh1wug _1i4qfg65",
32
33
  compactAttribution: "_11c8wadc",
@@ -48,7 +49,7 @@ export const QuickInsertPreviewContent = ({
48
49
  shouldClampText = true,
49
50
  title
50
51
  }) => {
51
- var _preview$attribution, _preview$attribution2;
52
+ var _preview$attribution, _preview$attribution2, _preview$image;
52
53
  const {
53
54
  formatMessage
54
55
  } = useIntl();
@@ -76,7 +77,8 @@ export const QuickInsertPreviewContent = ({
76
77
  className: ax([styles.root])
77
78
  }, imageUrl && /*#__PURE__*/React.createElement(PreviewImage, {
78
79
  key: imageUrl,
79
- imageUrl: imageUrl
80
+ imageUrl: imageUrl,
81
+ objectFit: (_preview$image = preview.image) === null || _preview$image === void 0 ? void 0 : _preview$image.objectFit
80
82
  }), /*#__PURE__*/React.createElement("div", {
81
83
  className: ax([styles.content])
82
84
  }, shortcut ? /*#__PURE__*/React.createElement(Inline, {
@@ -103,7 +105,8 @@ export const QuickInsertPreviewContent = ({
103
105
  }))))));
104
106
  };
105
107
  const PreviewImage = ({
106
- imageUrl
108
+ imageUrl,
109
+ objectFit
107
110
  }) => {
108
111
  const [hasFailed, setHasFailed] = useState(false);
109
112
  const [hasLoaded, setHasLoaded] = useState(false);
@@ -121,6 +124,6 @@ const PreviewImage = ({
121
124
  alt: "",
122
125
  onLoad: () => setHasLoaded(true),
123
126
  onError: () => setHasFailed(true),
124
- className: ax([styles.image, !hasLoaded && styles.imageHidden])
127
+ className: ax([styles.image, objectFit === 'cover' && styles.imageCover, !hasLoaded && styles.imageHidden])
125
128
  }));
126
129
  };
@@ -204,5 +204,35 @@ export const messages = defineMessages({
204
204
  id: 'editor-common.quick-insert.previewAttributionMicrosoft.ai-non-final',
205
205
  defaultMessage: 'Microsoft',
206
206
  description: 'Microsoft company name shown as the creator in a slash-command preview attribution.'
207
+ },
208
+ elementBrowserAllElements: {
209
+ id: 'editor.quick-insert.all-elements',
210
+ defaultMessage: 'All elements',
211
+ description: 'Heading above the remaining elements in the element browser All category, shown below the Recommended elements.'
212
+ },
213
+ elementBrowserCategoriesLabel: {
214
+ id: 'editor.quick-insert.categories-label',
215
+ defaultMessage: 'Element categories',
216
+ description: 'Accessible label for the group of category buttons in the element browser sidebar, read by screen readers.'
217
+ },
218
+ elementBrowserResultsAvailable: {
219
+ id: 'editor.quick-insert.results-available',
220
+ defaultMessage: '{count, plural, one {# result available} other {# results available}}',
221
+ description: 'Shown in the element browser footer. Tells the user how many elements match the current search and category.'
222
+ },
223
+ elementBrowserResultsLabel: {
224
+ id: 'editor.quick-insert.results-label',
225
+ defaultMessage: 'Element results',
226
+ description: 'Accessible label for the list of elements in the element browser, read by screen readers.'
227
+ },
228
+ elementBrowserSearch: {
229
+ id: 'editor.quick-insert.search',
230
+ defaultMessage: 'Search elements',
231
+ description: 'Accessible label for the search field at the top of the element browser, used to filter the elements that can be inserted.'
232
+ },
233
+ elementBrowserTitle: {
234
+ id: 'editor.quick-insert.title',
235
+ defaultMessage: 'Insert elements',
236
+ description: 'Title of the element browser dialog, where users browse and insert elements such as tables, panels and macros.'
207
237
  }
208
238
  });
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "134.12.0";
16
+ const packageVersion = "134.14.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "134.12.0";
22
+ var packageVersion = "134.14.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -27,6 +27,7 @@
27
27
  ._4t3i1osq{height:100%}
28
28
  ._4t3i68cl{height:90pt}
29
29
  ._4t3i7vkz{height:1pc}
30
+ ._5ral1dfr{object-fit:cover}
30
31
  ._5ral1f51{object-fit:contain}
31
32
  ._6rthu2gc{margin-block-end:var(--ds-space-100,8px)}
32
33
  ._bfhkhfxm{background-color:var(--ds-surface-sunken,#f8f8f8)}
@@ -21,13 +21,14 @@ var layoutStyles = {
21
21
  var styles = {
22
22
  root: "_1e0c1txw _2lx21bp4 _16jlkb7n _1ul9idpf",
23
23
  content: "_zulpu2gc _1e0c1txw _2lx21bp4 _16jlkb7n",
24
- title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazazsu _1ul9idpf _1i4qfg65",
24
+ title: "_11c81qyo _16jlidpf _1o9zkb7n _i0dl1wug _syazi7uo _1ul9idpf _1i4qfg65",
25
25
  clampedTitle: "_1reo15vq _18m915vq _1e0ccj1k _sudp1e54 _1yyjcs5v",
26
26
  description: "_11c8fhey _1reo15vq _18m915vq _syazi7uo _1e0ccj1k _1i4qfg65 _sudp1e54 _1yyjegat",
27
27
  unclampedDescription: "_11c8fhey _syazi7uo _1i4qfg65",
28
28
  disabledText: "_syaz1gmx",
29
29
  imageArea: "_2rko12b0 _1reo15vq _18m915vq _bfhkhfxm _4t3i68cl _6rthu2gc _1bsb1osq",
30
30
  image: "_1e0c1ule _4t3i1osq _5ral1f51 _1bsb1osq",
31
+ imageCover: "_5ral1dfr",
31
32
  imageHidden: "_3um015vq",
32
33
  attribution: "_zulp1b66 _4cvr1h6o _syazazsu _1e0c1txw _1pfh1wug _1i4qfg65",
33
34
  compactAttribution: "_11c8wadc",
@@ -39,7 +40,7 @@ var styles = {
39
40
  * Element Browser tiles. It fills its container; callers own its width and accessible name.
40
41
  */
41
42
  export var QuickInsertPreviewContent = function QuickInsertPreviewContent(_ref) {
42
- var _preview$attribution, _preview$attribution2;
43
+ var _preview$attribution, _preview$attribution2, _preview$image;
43
44
  var description = _ref.description,
44
45
  icon = _ref.icon,
45
46
  id = _ref.id,
@@ -76,7 +77,8 @@ export var QuickInsertPreviewContent = function QuickInsertPreviewContent(_ref)
76
77
  className: ax([styles.root])
77
78
  }, imageUrl && /*#__PURE__*/React.createElement(PreviewImage, {
78
79
  key: imageUrl,
79
- imageUrl: imageUrl
80
+ imageUrl: imageUrl,
81
+ objectFit: (_preview$image = preview.image) === null || _preview$image === void 0 ? void 0 : _preview$image.objectFit
80
82
  }), /*#__PURE__*/React.createElement("div", {
81
83
  className: ax([styles.content])
82
84
  }, shortcut ? /*#__PURE__*/React.createElement(Inline, {
@@ -103,7 +105,8 @@ export var QuickInsertPreviewContent = function QuickInsertPreviewContent(_ref)
103
105
  }))))));
104
106
  };
105
107
  var PreviewImage = function PreviewImage(_ref2) {
106
- var imageUrl = _ref2.imageUrl;
108
+ var imageUrl = _ref2.imageUrl,
109
+ objectFit = _ref2.objectFit;
107
110
  var _useState = useState(false),
108
111
  _useState2 = _slicedToArray(_useState, 2),
109
112
  hasFailed = _useState2[0],
@@ -130,6 +133,6 @@ var PreviewImage = function PreviewImage(_ref2) {
130
133
  onError: function onError() {
131
134
  return setHasFailed(true);
132
135
  },
133
- className: ax([styles.image, !hasLoaded && styles.imageHidden])
136
+ className: ax([styles.image, objectFit === 'cover' && styles.imageCover, !hasLoaded && styles.imageHidden])
134
137
  }));
135
138
  };
@@ -204,5 +204,35 @@ export var messages = defineMessages({
204
204
  id: 'editor-common.quick-insert.previewAttributionMicrosoft.ai-non-final',
205
205
  defaultMessage: 'Microsoft',
206
206
  description: 'Microsoft company name shown as the creator in a slash-command preview attribution.'
207
+ },
208
+ elementBrowserAllElements: {
209
+ id: 'editor.quick-insert.all-elements',
210
+ defaultMessage: 'All elements',
211
+ description: 'Heading above the remaining elements in the element browser All category, shown below the Recommended elements.'
212
+ },
213
+ elementBrowserCategoriesLabel: {
214
+ id: 'editor.quick-insert.categories-label',
215
+ defaultMessage: 'Element categories',
216
+ description: 'Accessible label for the group of category buttons in the element browser sidebar, read by screen readers.'
217
+ },
218
+ elementBrowserResultsAvailable: {
219
+ id: 'editor.quick-insert.results-available',
220
+ defaultMessage: '{count, plural, one {# result available} other {# results available}}',
221
+ description: 'Shown in the element browser footer. Tells the user how many elements match the current search and category.'
222
+ },
223
+ elementBrowserResultsLabel: {
224
+ id: 'editor.quick-insert.results-label',
225
+ defaultMessage: 'Element results',
226
+ description: 'Accessible label for the list of elements in the element browser, read by screen readers.'
227
+ },
228
+ elementBrowserSearch: {
229
+ id: 'editor.quick-insert.search',
230
+ defaultMessage: 'Search elements',
231
+ description: 'Accessible label for the search field at the top of the element browser, used to filter the elements that can be inserted.'
232
+ },
233
+ elementBrowserTitle: {
234
+ id: 'editor.quick-insert.title',
235
+ defaultMessage: 'Insert elements',
236
+ description: 'Title of the element browser dialog, where users browse and insert elements such as tables, panels and macros.'
207
237
  }
208
238
  });
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "134.12.0";
23
+ var packageVersion = "134.14.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -3,5 +3,5 @@ type Messages<Keys extends string> = Record<Keys, MessageDescriptor & {
3
3
  defaultMessage: string;
4
4
  id: string;
5
5
  }>;
6
- export declare const messages: Messages<'admin' | 'AI' | 'all' | 'browse' | 'categoryBlockTemplates' | 'categoryCreate' | 'categoryDataAndCharts' | 'categoryEmbed' | 'categoryMedia' | 'categoryOther' | 'categoryRecommended' | 'categoryRovo' | 'categoryStructure' | 'categoryTextFormatting' | 'searchResults' | 'noSearchResults' | 'previewAttributionBy' | 'previewAttributionAtlassian' | 'previewAttributionAssets' | 'previewAttributionConfluence' | 'previewAttributionFeedback' | 'previewAttributionFocus' | 'previewAttributionJira' | 'previewAttributionJiraServiceManagement' | 'previewAttributionMicrosoft' | 'previewAttributionStudio' | 'previewAttributionTalent' | 'previewAttributionTrello' | 'close' | 'communication' | 'confluence-content' | 'development' | 'external-content' | 'featuredWhiteboardDescription' | 'formatting' | 'help' | 'insert' | 'media' | 'navigation' | 'reporting' | 'visuals'>;
6
+ export declare const messages: Messages<'admin' | 'AI' | 'all' | 'browse' | 'categoryBlockTemplates' | 'categoryCreate' | 'categoryDataAndCharts' | 'categoryEmbed' | 'categoryMedia' | 'categoryOther' | 'categoryRecommended' | 'categoryRovo' | 'categoryStructure' | 'categoryTextFormatting' | 'searchResults' | 'noSearchResults' | 'previewAttributionBy' | 'previewAttributionAtlassian' | 'previewAttributionAssets' | 'previewAttributionConfluence' | 'previewAttributionFeedback' | 'previewAttributionFocus' | 'previewAttributionJira' | 'previewAttributionJiraServiceManagement' | 'previewAttributionMicrosoft' | 'previewAttributionStudio' | 'previewAttributionTalent' | 'previewAttributionTrello' | 'close' | 'communication' | 'confluence-content' | 'development' | 'external-content' | 'featuredWhiteboardDescription' | 'formatting' | 'help' | 'insert' | 'media' | 'navigation' | 'reporting' | 'visuals' | 'elementBrowserAllElements' | 'elementBrowserCategoriesLabel' | 'elementBrowserResultsAvailable' | 'elementBrowserResultsLabel' | 'elementBrowserSearch' | 'elementBrowserTitle'>;
7
7
  export {};
@@ -4,6 +4,12 @@ import type { MessageDescriptor } from 'react-intl';
4
4
  export type PreviewImage = {
5
5
  dark?: string;
6
6
  light: string;
7
+ /**
8
+ * How the image fills the preview's fixed-height image area, as CSS `object-fit`. Defaults to
9
+ * `contain`, which shows the whole image. Use `cover` only for images whose edges are
10
+ * background, since it crops whatever doesn't fit the area's shape.
11
+ */
12
+ objectFit?: 'contain' | 'cover';
7
13
  };
8
14
  export type QuickInsertPreview = {
9
15
  attribution?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "134.13.0",
3
+ "version": "134.14.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/react-ufo": "^8.4.0",
82
82
  "@atlaskit/section-message": "^10.2.0",
83
83
  "@atlaskit/smart-card": "^46.13.0",
84
- "@atlaskit/smart-user-picker": "^12.11.0",
84
+ "@atlaskit/smart-user-picker": "^12.12.0",
85
85
  "@atlaskit/spinner": "^20.4.0",
86
86
  "@atlaskit/task-decision": "^21.16.0",
87
87
  "@atlaskit/teams-app-config": "^3.1.0",