@atlaskit/editor-plugin-card 5.0.6 → 5.0.7

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,13 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 5.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#121092](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/121092)
8
+ [`8cd08b738070d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8cd08b738070d) -
9
+ [ux] Implemented full height separator as per design for media and card
10
+
3
11
  ## 5.0.6
4
12
 
5
13
  ### Patch Changes
@@ -332,7 +332,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
332
332
  title: intl.formatMessage(_messages.default.remove),
333
333
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
334
334
  }]) : [].concat(editItems, (0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
335
- type: 'separator'
335
+ type: 'separator',
336
+ fullHeight: true
336
337
  }, {
337
338
  id: 'editor.link.openLink',
338
339
  type: 'button',
@@ -343,7 +344,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
343
344
  title: intl.formatMessage(_messages.linkMessages.openLink),
344
345
  onClick: visitCardLink(editorAnalyticsApi)
345
346
  }], (0, _toConsumableArray2.default)(commentItems.length > 1 ? [{
346
- type: 'separator'
347
+ type: 'separator',
348
+ fullHeight: true
347
349
  }, commentItems[0]] : commentItems));
348
350
  if (currentAppearance === 'embed') {
349
351
  var _pluginInjectionApi$a4;
@@ -400,7 +402,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
400
402
  if (toolbarItems.length > 0 && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
401
403
  var overflowMenuConfig = [{
402
404
  type: 'separator',
403
- supportsViewMode: true
405
+ supportsViewMode: true,
406
+ fullHeight: true
404
407
  }, {
405
408
  type: 'overflow-dropdown',
406
409
  options: [{
@@ -324,7 +324,8 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
324
324
  title: intl.formatMessage(commonMessages.remove),
325
325
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
326
326
  }] : [...editItems, ...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi), getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
327
- type: 'separator'
327
+ type: 'separator',
328
+ fullHeight: true
328
329
  }, {
329
330
  id: 'editor.link.openLink',
330
331
  type: 'button',
@@ -335,7 +336,8 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
335
336
  title: intl.formatMessage(linkMessages.openLink),
336
337
  onClick: visitCardLink(editorAnalyticsApi)
337
338
  }, ...(commentItems.length > 1 ? [{
338
- type: 'separator'
339
+ type: 'separator',
340
+ fullHeight: true
339
341
  }, commentItems[0]] : commentItems)];
340
342
  if (currentAppearance === 'embed') {
341
343
  var _pluginInjectionApi$a5;
@@ -390,7 +392,8 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
390
392
  if (toolbarItems.length > 0 && editorExperiment('platform_editor_controls', 'variant1')) {
391
393
  const overflowMenuConfig = [{
392
394
  type: 'separator',
393
- supportsViewMode: true
395
+ supportsViewMode: true,
396
+ fullHeight: true
394
397
  }, {
395
398
  type: 'overflow-dropdown',
396
399
  options: [{
@@ -322,7 +322,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
322
322
  title: intl.formatMessage(commonMessages.remove),
323
323
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
324
324
  }]) : [].concat(editItems, _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
325
- type: 'separator'
325
+ type: 'separator',
326
+ fullHeight: true
326
327
  }, {
327
328
  id: 'editor.link.openLink',
328
329
  type: 'button',
@@ -333,7 +334,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
333
334
  title: intl.formatMessage(linkMessages.openLink),
334
335
  onClick: visitCardLink(editorAnalyticsApi)
335
336
  }], _toConsumableArray(commentItems.length > 1 ? [{
336
- type: 'separator'
337
+ type: 'separator',
338
+ fullHeight: true
337
339
  }, commentItems[0]] : commentItems));
338
340
  if (currentAppearance === 'embed') {
339
341
  var _pluginInjectionApi$a4;
@@ -390,7 +392,8 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
390
392
  if (toolbarItems.length > 0 && editorExperiment('platform_editor_controls', 'variant1')) {
391
393
  var overflowMenuConfig = [{
392
394
  type: 'separator',
393
- supportsViewMode: true
395
+ supportsViewMode: true,
396
+ fullHeight: true
394
397
  }, {
395
398
  type: 'overflow-dropdown',
396
399
  options: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/smart-card": "^35.1.0",
64
64
  "@atlaskit/theme": "^17.0.0",
65
65
  "@atlaskit/tmp-editor-statsig": "^3.3.0",
66
- "@atlaskit/tokens": "^4.2.0",
66
+ "@atlaskit/tokens": "^4.3.0",
67
67
  "@babel/runtime": "^7.0.0",
68
68
  "@emotion/react": "^11.7.1",
69
69
  "lodash": "^4.17.21",