@atlaskit/editor-plugin-card 11.1.1 → 11.2.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,13 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`3dfc071fcc15b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3dfc071fcc15b) -
8
+ [ux] Repositions the preview panel button inside the floating toolbar so that it is next to the
9
+ open in new tab button
10
+
3
11
  ## 11.1.1
4
12
 
5
13
  ### Patch Changes
@@ -384,10 +384,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
384
384
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
385
385
  title: intl.formatMessage(_messages.default.remove),
386
386
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
387
- }]) : [].concat(openPreviewPanelItems, editButtonItems, (0, _toConsumableArray2.default)([].concat((0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
387
+ }]) : [].concat(editButtonItems, (0, _toConsumableArray2.default)([].concat((0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
388
388
  type: 'separator',
389
389
  fullHeight: true
390
- }])), [{
390
+ }])), openPreviewPanelItems, [{
391
391
  id: 'editor.link.openLink',
392
392
  type: 'button',
393
393
  icon: _linkExternal.default,
@@ -372,10 +372,10 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
372
372
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
373
373
  title: intl.formatMessage(commonMessages.remove),
374
374
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
375
- }] : [...openPreviewPanelItems, ...editButtonItems, ...[...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled), {
375
+ }] : [...editButtonItems, ...[...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled), {
376
376
  type: 'separator',
377
377
  fullHeight: true
378
- }], {
378
+ }], ...openPreviewPanelItems, {
379
379
  id: 'editor.link.openLink',
380
380
  type: 'button',
381
381
  icon: LinkExternalIcon,
@@ -375,10 +375,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
375
375
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
376
376
  title: intl.formatMessage(commonMessages.remove),
377
377
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
378
- }]) : [].concat(openPreviewPanelItems, editButtonItems, _toConsumableArray([].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
378
+ }]) : [].concat(editButtonItems, _toConsumableArray([].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
379
379
  type: 'separator',
380
380
  fullHeight: true
381
- }])), [{
381
+ }])), openPreviewPanelItems, [{
382
382
  id: 'editor.link.openLink',
383
383
  type: 'button',
384
384
  icon: LinkExternalIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "11.1.1",
3
+ "version": "11.2.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^51.2.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
- "@atlaskit/button": "^23.4.0",
34
+ "@atlaskit/button": "^23.5.0",
35
35
  "@atlaskit/custom-steps": "^0.14.0",
36
36
  "@atlaskit/editor-card-provider": "^6.0.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^6.1.0",