@atlaskit/editor-plugin-layout 1.1.6 → 1.1.8

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-plugin-layout
2
2
 
3
+ ## 1.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#98080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98080)
14
+ [`23c03580e38c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23c03580e38c) -
15
+ [ux] [ED-23247] Allow floating toolbar copy buttons in live pages view mode.
16
+
3
17
  ## 1.1.6
4
18
 
5
19
  ### Patch Changes
@@ -104,9 +104,10 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
104
104
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
105
105
  })), (0, _toConsumableArray2.default)(addSidebarLayouts ? SIDEBAR_LAYOUT_TYPES.map(function (i) {
106
106
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
107
- }) : []), [{
107
+ }) : []), [separator, {
108
108
  type: 'copy-button',
109
- items: [separator, {
109
+ supportsViewMode: true,
110
+ items: [{
110
111
  state: state,
111
112
  formatMessage: intl.formatMessage,
112
113
  nodeType: nodeType
@@ -86,9 +86,10 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
86
86
  getDomRef: view => findDomRefAtPos(pos, view.domAtPos.bind(view)),
87
87
  nodeType,
88
88
  groupLabel: intl.formatMessage(toolbarMessages.floatingToolbarRadioGroupAriaLabel),
89
- items: [...layoutTypes.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)), ...(addSidebarLayouts ? SIDEBAR_LAYOUT_TYPES.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), {
89
+ items: [...layoutTypes.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)), ...(addSidebarLayouts ? SIDEBAR_LAYOUT_TYPES.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), separator, {
90
90
  type: 'copy-button',
91
- items: [separator, {
91
+ supportsViewMode: true,
92
+ items: [{
92
93
  state,
93
94
  formatMessage: intl.formatMessage,
94
95
  nodeType
@@ -94,9 +94,10 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
94
94
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
95
95
  })), _toConsumableArray(addSidebarLayouts ? SIDEBAR_LAYOUT_TYPES.map(function (i) {
96
96
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
97
- }) : []), [{
97
+ }) : []), [separator, {
98
98
  type: 'copy-button',
99
- items: [separator, {
99
+ supportsViewMode: true,
100
+ items: [{
100
101
  state: state,
101
102
  formatMessage: intl.formatMessage,
102
103
  nodeType: nodeType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^36.1.0",
37
- "@atlaskit/editor-common": "^79.2.0",
37
+ "@atlaskit/editor-common": "^80.0.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
40
40
  "@atlaskit/editor-prosemirror": "4.0.1",