@atlaskit/editor-plugin-layout 6.2.6 → 6.2.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 +16 -0
- package/dist/cjs/layoutPlugin.js +4 -4
- package/dist/es2019/layoutPlugin.js +5 -5
- package/dist/esm/layoutPlugin.js +5 -5
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 6.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`56c0427b2ab20`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56c0427b2ab20) -
|
|
8
|
+
[ux] Use new IA for block menu items.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.2.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`43d1dfc88c1de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43d1dfc88c1de) -
|
|
16
|
+
Clean up platform_editor_block_menu_format_rank_revised
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 6.2.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -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.
|
|
66
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
67
67
|
parent: {
|
|
68
68
|
type: 'block-menu-section',
|
|
69
|
-
key: _blockMenu.
|
|
70
|
-
rank:
|
|
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
|
|
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 {
|
|
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:
|
|
59
|
+
key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
60
60
|
parent: {
|
|
61
61
|
type: 'block-menu-section',
|
|
62
|
-
key:
|
|
63
|
-
rank:
|
|
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
|
|
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);
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -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 {
|
|
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:
|
|
60
|
+
key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
61
61
|
parent: {
|
|
62
62
|
type: 'block-menu-section',
|
|
63
|
-
key:
|
|
64
|
-
rank:
|
|
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
|
|
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.
|
|
3
|
+
"version": "6.2.8",
|
|
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.
|
|
49
|
-
"@atlaskit/tokens": "^8.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.44.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.
|
|
54
|
+
"@atlaskit/editor-common": "^110.35.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
57
57
|
},
|
|
@@ -108,9 +108,6 @@
|
|
|
108
108
|
},
|
|
109
109
|
"platform_editor_adf_with_localid": {
|
|
110
110
|
"type": "boolean"
|
|
111
|
-
},
|
|
112
|
-
"platform_editor_block_menu_format_rank_revised": {
|
|
113
|
-
"type": "boolean"
|
|
114
111
|
}
|
|
115
112
|
}
|
|
116
113
|
}
|