@atlaskit/editor-plugin-layout 1.12.1 → 1.12.2

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,14 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 1.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165350](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165350)
8
+ [`195b3c26851ed`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/195b3c26851ed) -
9
+ [ED-25777] Fix a live page bug where when cursor is within the table in a layout, switching from
10
+ view to edit, breaks the table
11
+
3
12
  ## 1.12.1
4
13
 
5
14
  ### Patch Changes
@@ -199,7 +199,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
199
199
  options: columnOptions,
200
200
  showSelected: true,
201
201
  testId: 'column-options-button'
202
- }, sidebarTypesByColumns.length > 0 && separator] : []), (0, _toConsumableArray2.default)(layoutTypes.map(function (i) {
202
+ }].concat((0, _toConsumableArray2.default)(sidebarTypesByColumns.length > 0 ? [separator] : [])) : []), (0, _toConsumableArray2.default)(layoutTypes.map(function (i) {
203
203
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
204
204
  })), (0, _toConsumableArray2.default)(addSidebarLayouts ? (0, _preRelease.isPreRelease2)() ? sidebarTypesByColumns.map(function (i) {
205
205
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
@@ -185,7 +185,7 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
185
185
  options: columnOptions,
186
186
  showSelected: true,
187
187
  testId: 'column-options-button'
188
- }, sidebarTypesByColumns.length > 0 && separator] : []), ...layoutTypes.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)), ...(addSidebarLayouts ? isPreRelease2() ? sidebarTypesByColumns.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : SIDEBAR_LAYOUT_TYPES.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), separator, {
188
+ }, ...(sidebarTypesByColumns.length > 0 ? [separator] : [])] : []), ...layoutTypes.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)), ...(addSidebarLayouts ? isPreRelease2() ? sidebarTypesByColumns.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : SIDEBAR_LAYOUT_TYPES.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), separator, {
189
189
  type: 'copy-button',
190
190
  supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
191
191
  items: [{
@@ -189,7 +189,7 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
189
189
  options: columnOptions,
190
190
  showSelected: true,
191
191
  testId: 'column-options-button'
192
- }, sidebarTypesByColumns.length > 0 && separator] : []), _toConsumableArray(layoutTypes.map(function (i) {
192
+ }].concat(_toConsumableArray(sidebarTypesByColumns.length > 0 ? [separator] : [])) : []), _toConsumableArray(layoutTypes.map(function (i) {
193
193
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
194
194
  })), _toConsumableArray(addSidebarLayouts ? isPreRelease2() ? sidebarTypesByColumns.map(function (i) {
195
195
  return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^44.2.0",
35
- "@atlaskit/editor-common": "^94.18.0",
35
+ "@atlaskit/editor-common": "^94.21.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-prosemirror": "6.0.0",
41
41
  "@atlaskit/icon": "^22.24.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
- "@atlaskit/tmp-editor-statsig": "^2.13.0",
43
+ "@atlaskit/tmp-editor-statsig": "^2.16.0",
44
44
  "@atlaskit/tokens": "^2.2.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1"