@atlaskit/editor-plugin-table 7.13.3 → 7.13.4

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-table
2
2
 
3
+ ## 7.13.4
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
  ## 7.13.3
4
12
 
5
13
  ### Patch Changes
@@ -385,6 +385,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
385
385
  separator: 'end'
386
386
  }, {
387
387
  type: 'copy-button',
388
+ supportsViewMode: true,
388
389
  items: [{
389
390
  state: state,
390
391
  formatMessage: intl.formatMessage,
@@ -393,9 +394,9 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
393
394
  onMouseLeave: (0, _commands.clearHoverSelection)(),
394
395
  onFocus: (0, _commands.hoverTable)(false, true),
395
396
  onBlur: (0, _commands.clearHoverSelection)()
396
- }, {
397
- type: 'separator'
398
397
  }]
398
+ }, {
399
+ type: 'separator'
399
400
  }, {
400
401
  id: 'editor.table.delete',
401
402
  type: 'button',
@@ -365,6 +365,7 @@ export const getToolbarConfig = (getEditorContainerWidth, editorAnalyticsAPI, ge
365
365
  separator: 'end'
366
366
  }, {
367
367
  type: 'copy-button',
368
+ supportsViewMode: true,
368
369
  items: [{
369
370
  state,
370
371
  formatMessage: intl.formatMessage,
@@ -373,9 +374,9 @@ export const getToolbarConfig = (getEditorContainerWidth, editorAnalyticsAPI, ge
373
374
  onMouseLeave: clearHoverSelection(),
374
375
  onFocus: hoverTable(false, true),
375
376
  onBlur: clearHoverSelection()
376
- }, {
377
- type: 'separator'
378
377
  }]
378
+ }, {
379
+ type: 'separator'
379
380
  }, {
380
381
  id: 'editor.table.delete',
381
382
  type: 'button',
@@ -374,6 +374,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
374
374
  separator: 'end'
375
375
  }, {
376
376
  type: 'copy-button',
377
+ supportsViewMode: true,
377
378
  items: [{
378
379
  state: state,
379
380
  formatMessage: intl.formatMessage,
@@ -382,9 +383,9 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
382
383
  onMouseLeave: clearHoverSelection(),
383
384
  onFocus: hoverTable(false, true),
384
385
  onBlur: clearHoverSelection()
385
- }, {
386
- type: 'separator'
387
386
  }]
387
+ }, {
388
+ type: 'separator'
388
389
  }, {
389
390
  id: 'editor.table.delete',
390
391
  type: 'button',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "7.13.3",
3
+ "version": "7.13.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/src/toolbar.tsx CHANGED
@@ -577,6 +577,7 @@ export const getToolbarConfig =
577
577
  },
578
578
  {
579
579
  type: 'copy-button',
580
+ supportsViewMode: true,
580
581
  items: [
581
582
  {
582
583
  state,
@@ -587,9 +588,9 @@ export const getToolbarConfig =
587
588
  onFocus: hoverTable(false, true),
588
589
  onBlur: clearHoverSelection(),
589
590
  },
590
- { type: 'separator' },
591
591
  ],
592
592
  },
593
+ { type: 'separator' },
593
594
  {
594
595
  id: 'editor.table.delete',
595
596
  type: 'button',