@atlaskit/editor-plugin-layout 20.0.0 → 20.0.1
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 +8 -0
- package/dist/cjs/layoutPlugin.js +15 -18
- package/dist/es2019/layoutPlugin.js +15 -18
- package/dist/esm/layoutPlugin.js +15 -18
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 20.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8d37dc7e55d62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d37dc7e55d62) -
|
|
8
|
+
Clean up shipped experiment `platform_editor_block_menu`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 20.0.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -59,7 +59,7 @@ var selectIntoLayoutSection = exports.selectIntoLayoutSection = function selectI
|
|
|
59
59
|
return tr;
|
|
60
60
|
};
|
|
61
61
|
var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
62
|
-
var _api$analytics2;
|
|
62
|
+
var _api$blockMenu, _api$analytics2;
|
|
63
63
|
var _ref$config = _ref.config,
|
|
64
64
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
65
65
|
api = _ref.api;
|
|
@@ -69,23 +69,20 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
69
69
|
exposure: true
|
|
70
70
|
});
|
|
71
71
|
var isRegisteredSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') && isAdvancedLayoutEnabled;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}]);
|
|
88
|
-
}
|
|
72
|
+
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
73
|
+
type: 'block-menu-item',
|
|
74
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
75
|
+
parent: {
|
|
76
|
+
type: 'block-menu-section',
|
|
77
|
+
key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
78
|
+
rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
|
|
79
|
+
},
|
|
80
|
+
component: (0, _LayoutBlockMenuItem.createLayoutBlockMenuItem)(api),
|
|
81
|
+
isHidden: function isHidden() {
|
|
82
|
+
var _api$blockMenu2;
|
|
83
|
+
return Boolean(api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(LAYOUT_SECTION_NODE_NAME));
|
|
84
|
+
}
|
|
85
|
+
}]);
|
|
89
86
|
if ((0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
90
87
|
var _api$uiControlRegistr;
|
|
91
88
|
api === null || api === void 0 || (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 || _api$uiControlRegistr.actions.register((0, _components.getLayoutColumnMenuComponents)({
|
|
@@ -54,30 +54,27 @@ export const layoutPlugin = ({
|
|
|
54
54
|
config: options = {},
|
|
55
55
|
api
|
|
56
56
|
}) => {
|
|
57
|
-
var _api$analytics2;
|
|
57
|
+
var _api$blockMenu, _api$analytics2;
|
|
58
58
|
const blockControlMigrationEnabled = isExperimentEnabled('platform_editor_block_control_migration');
|
|
59
59
|
const isAdvancedLayoutEnabled = editorExperiment('advanced_layouts', true);
|
|
60
60
|
const allowAdvancedSingleColumnLayout = isAdvancedLayoutEnabled && editorExperiment('single_column_layouts', true, {
|
|
61
61
|
exposure: true
|
|
62
62
|
});
|
|
63
63
|
const isRegisteredSlashCommandEnabled = isExperimentEnabled('platform_editor_slash_command') && isAdvancedLayoutEnabled;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
}]);
|
|
80
|
-
}
|
|
64
|
+
api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
65
|
+
type: 'block-menu-item',
|
|
66
|
+
key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
67
|
+
parent: {
|
|
68
|
+
type: 'block-menu-section',
|
|
69
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
70
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
|
|
71
|
+
},
|
|
72
|
+
component: createLayoutBlockMenuItem(api),
|
|
73
|
+
isHidden: () => {
|
|
74
|
+
var _api$blockMenu2;
|
|
75
|
+
return Boolean(api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(LAYOUT_SECTION_NODE_NAME));
|
|
76
|
+
}
|
|
77
|
+
}]);
|
|
81
78
|
if (expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
82
79
|
var _api$uiControlRegistr;
|
|
83
80
|
api === null || api === void 0 ? void 0 : (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 ? void 0 : _api$uiControlRegistr.actions.register(getLayoutColumnMenuComponents({
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -52,7 +52,7 @@ export var selectIntoLayoutSection = function selectIntoLayoutSection(tr) {
|
|
|
52
52
|
return tr;
|
|
53
53
|
};
|
|
54
54
|
export var layoutPlugin = function layoutPlugin(_ref) {
|
|
55
|
-
var _api$analytics2;
|
|
55
|
+
var _api$blockMenu, _api$analytics2;
|
|
56
56
|
var _ref$config = _ref.config,
|
|
57
57
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
58
58
|
api = _ref.api;
|
|
@@ -62,23 +62,20 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
62
62
|
exposure: true
|
|
63
63
|
});
|
|
64
64
|
var isRegisteredSlashCommandEnabled = isExperimentEnabled('platform_editor_slash_command') && isAdvancedLayoutEnabled;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
}]);
|
|
81
|
-
}
|
|
65
|
+
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
66
|
+
type: 'block-menu-item',
|
|
67
|
+
key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
|
|
68
|
+
parent: {
|
|
69
|
+
type: 'block-menu-section',
|
|
70
|
+
key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
71
|
+
rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
|
|
72
|
+
},
|
|
73
|
+
component: createLayoutBlockMenuItem(api),
|
|
74
|
+
isHidden: function isHidden() {
|
|
75
|
+
var _api$blockMenu2;
|
|
76
|
+
return Boolean(api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(LAYOUT_SECTION_NODE_NAME));
|
|
77
|
+
}
|
|
78
|
+
}]);
|
|
82
79
|
if (expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
83
80
|
var _api$uiControlRegistr;
|
|
84
81
|
api === null || api === void 0 || (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 || _api$uiControlRegistr.actions.register(getLayoutColumnMenuComponents({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/icon-lab": "^7.9.0",
|
|
44
44
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^200.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^18.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|