@atlaskit/editor-plugin-card 1.11.2 → 1.11.3

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
+ ## 1.11.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98080)
8
+ [`23c03580e38c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23c03580e38c) -
9
+ [ux] [ED-23247] Allow floating toolbar copy buttons in live pages view mode.
10
+
3
11
  ## 1.11.2
4
12
 
5
13
  ### Patch Changes
@@ -248,13 +248,14 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
248
248
  type: 'separator'
249
249
  }].concat((0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
250
250
  type: 'copy-button',
251
+ supportsViewMode: true,
251
252
  items: [{
252
253
  state: state,
253
254
  formatMessage: intl.formatMessage,
254
255
  nodeType: node.type
255
- }, {
256
- type: 'separator'
257
256
  }]
257
+ }, {
258
+ type: 'separator'
258
259
  }], (0, _toConsumableArray2.default)(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink)), [{
259
260
  id: 'editor.link.delete',
260
261
  focusEditoronEnter: true,
@@ -469,13 +470,14 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
469
470
  }
470
471
  toolbarItems.push.apply(toolbarItems, [{
471
472
  type: 'copy-button',
473
+ supportsViewMode: true,
472
474
  items: [{
473
475
  state: state,
474
476
  formatMessage: intl.formatMessage,
475
477
  nodeType: node.type
476
- }, {
477
- type: 'separator'
478
478
  }]
479
+ }, {
480
+ type: 'separator'
479
481
  }].concat((0, _toConsumableArray2.default)(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink)), [{
480
482
  id: 'editor.link.delete',
481
483
  focusEditoronEnter: true,
@@ -242,13 +242,14 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
242
242
  type: 'separator'
243
243
  }, ...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi), {
244
244
  type: 'copy-button',
245
+ supportsViewMode: true,
245
246
  items: [{
246
247
  state,
247
248
  formatMessage: intl.formatMessage,
248
249
  nodeType: node.type
249
- }, {
250
- type: 'separator'
251
250
  }]
251
+ }, {
252
+ type: 'separator'
252
253
  }, ...getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
253
254
  id: 'editor.link.delete',
254
255
  focusEditoronEnter: true,
@@ -462,13 +463,14 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
462
463
  }
463
464
  toolbarItems.push({
464
465
  type: 'copy-button',
466
+ supportsViewMode: true,
465
467
  items: [{
466
468
  state,
467
469
  formatMessage: intl.formatMessage,
468
470
  nodeType: node.type
469
- }, {
470
- type: 'separator'
471
471
  }]
472
+ }, {
473
+ type: 'separator'
472
474
  }, ...getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink), {
473
475
  id: 'editor.link.delete',
474
476
  focusEditoronEnter: true,
@@ -238,13 +238,14 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
238
238
  type: 'separator'
239
239
  }].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
240
240
  type: 'copy-button',
241
+ supportsViewMode: true,
241
242
  items: [{
242
243
  state: state,
243
244
  formatMessage: intl.formatMessage,
244
245
  nodeType: node.type
245
- }, {
246
- type: 'separator'
247
246
  }]
247
+ }, {
248
+ type: 'separator'
248
249
  }], _toConsumableArray(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink)), [{
249
250
  id: 'editor.link.delete',
250
251
  focusEditoronEnter: true,
@@ -459,13 +460,14 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
459
460
  }
460
461
  toolbarItems.push.apply(toolbarItems, [{
461
462
  type: 'copy-button',
463
+ supportsViewMode: true,
462
464
  items: [{
463
465
  state: state,
464
466
  formatMessage: intl.formatMessage,
465
467
  nodeType: node.type
466
- }, {
467
- type: 'separator'
468
468
  }]
469
+ }, {
470
+ type: 'separator'
469
471
  }].concat(_toConsumableArray(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink)), [{
470
472
  id: 'editor.link.delete',
471
473
  focusEditoronEnter: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/adf-schema": "^36.1.0",
36
36
  "@atlaskit/analytics-next": "^9.3.0",
37
37
  "@atlaskit/custom-steps": "^0.1.0",
38
- "@atlaskit/editor-common": "^79.2.0",
38
+ "@atlaskit/editor-common": "^79.4.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
@@ -55,9 +55,9 @@
55
55
  "@atlaskit/linking-types": "^8.8.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.2.0",
57
57
  "@atlaskit/primitives": "^6.1.0",
58
- "@atlaskit/smart-card": "^26.63.0",
58
+ "@atlaskit/smart-card": "^26.66.0",
59
59
  "@atlaskit/theme": "^12.8.0",
60
- "@atlaskit/tokens": "^1.46.0",
60
+ "@atlaskit/tokens": "^1.48.0",
61
61
  "@babel/runtime": "^7.0.0",
62
62
  "@emotion/react": "^11.7.1",
63
63
  "lodash": "^4.17.21",