@atlaskit/editor-plugin-layout 6.2.7 → 6.2.9

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
+ ## 6.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.2.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`56c0427b2ab20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56c0427b2ab20) -
14
+ [ux] Use new IA for block menu items.
15
+ - Updated dependencies
16
+
3
17
  ## 6.2.7
4
18
 
5
19
  ### Patch Changes
@@ -63,11 +63,11 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
63
63
  var _api$blockMenu;
64
64
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
65
65
  type: 'block-menu-item',
66
- key: _blockMenu.FORMAT_LAYOUT_MENU_ITEM.key,
66
+ key: _blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
67
67
  parent: {
68
68
  type: 'block-menu-section',
69
- key: _blockMenu.FORMAT_MENU_ITEM.key,
70
- rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_LAYOUT_MENU_ITEM.key]
69
+ key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
70
+ rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
71
71
  },
72
72
  component: (0, _LayoutBlockMenuItem.createLayoutBlockMenuItem)(api)
73
73
  }]);
@@ -144,7 +144,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
144
144
  icon: function icon() {
145
145
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconOneColumnLayout, null);
146
146
  },
147
- action: function action(insert, state, _source) {
147
+ action: function action(insert, state) {
148
148
  var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 1));
149
149
  if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
150
150
  withInsertLayoutAnalytics(tr, 1);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
5
+ import { TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
6
6
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
7
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
8
8
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -56,11 +56,11 @@ export const layoutPlugin = ({
56
56
  var _api$blockMenu;
57
57
  api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
58
58
  type: 'block-menu-item',
59
- key: FORMAT_LAYOUT_MENU_ITEM.key,
59
+ key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
60
60
  parent: {
61
61
  type: 'block-menu-section',
62
- key: FORMAT_MENU_ITEM.key,
63
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
62
+ key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
63
+ rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
64
64
  },
65
65
  component: createLayoutBlockMenuItem(api)
66
66
  }]);
@@ -134,7 +134,7 @@ export const layoutPlugin = ({
134
134
  keywords: ['layout', 'column', 'section', 'single column'],
135
135
  priority: 1100,
136
136
  icon: () => /*#__PURE__*/React.createElement(IconOneColumnLayout, null),
137
- action(insert, state, _source) {
137
+ action(insert, state) {
138
138
  const tr = insert(createMultiColumnLayoutSection(state, 1));
139
139
  if (fg('platform_editor_column_count_analytics')) {
140
140
  withInsertLayoutAnalytics(tr, 1);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { FORMAT_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
5
+ import { TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
6
6
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
7
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
8
8
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -57,11 +57,11 @@ export var layoutPlugin = function layoutPlugin(_ref) {
57
57
  var _api$blockMenu;
58
58
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
59
59
  type: 'block-menu-item',
60
- key: FORMAT_LAYOUT_MENU_ITEM.key,
60
+ key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
61
61
  parent: {
62
62
  type: 'block-menu-section',
63
- key: FORMAT_MENU_ITEM.key,
64
- rank: FORMAT_NESTED_MENU_RANK[FORMAT_LAYOUT_MENU_ITEM.key]
63
+ key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
64
+ rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
65
65
  },
66
66
  component: createLayoutBlockMenuItem(api)
67
67
  }]);
@@ -138,7 +138,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
138
138
  icon: function icon() {
139
139
  return /*#__PURE__*/React.createElement(IconOneColumnLayout, null);
140
140
  },
141
- action: function action(insert, state, _source) {
141
+ action: function action(insert, state) {
142
142
  var tr = insert(createMultiColumnLayoutSection(state, 1));
143
143
  if (fg('platform_editor_column_count_analytics')) {
144
144
  withInsertLayoutAnalytics(tr, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "6.2.7",
3
+ "version": "6.2.9",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,13 +45,13 @@
45
45
  "@atlaskit/icon": "^29.0.0",
46
46
  "@atlaskit/icon-lab": "^5.12.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.43.0",
49
- "@atlaskit/tokens": "^8.3.0",
48
+ "@atlaskit/tmp-editor-statsig": "^14.0.0",
49
+ "@atlaskit/tokens": "^8.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^110.34.0",
54
+ "@atlaskit/editor-common": "^110.36.0",
55
55
  "react": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"
57
57
  },