@atlaskit/editor-plugin-layout 19.0.11 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
11
+ ## 20.0.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 19.0.11
4
18
 
5
19
  ### Patch Changes
@@ -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
- if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
73
- var _api$blockMenu;
74
- api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
75
- type: 'block-menu-item',
76
- key: _blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
77
- parent: {
78
- type: 'block-menu-section',
79
- key: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION.key,
80
- rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
81
- },
82
- component: (0, _LayoutBlockMenuItem.createLayoutBlockMenuItem)(api),
83
- isHidden: function isHidden() {
84
- var _api$blockMenu2;
85
- 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));
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
- if (editorExperiment('platform_editor_block_menu', true)) {
65
- var _api$blockMenu;
66
- api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
67
- type: 'block-menu-item',
68
- key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
69
- parent: {
70
- type: 'block-menu-section',
71
- key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
72
- rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
73
- },
74
- component: createLayoutBlockMenuItem(api),
75
- isHidden: () => {
76
- var _api$blockMenu2;
77
- 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));
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({
@@ -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
- if (editorExperiment('platform_editor_block_menu', true)) {
66
- var _api$blockMenu;
67
- api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
68
- type: 'block-menu-item',
69
- key: TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key,
70
- parent: {
71
- type: 'block-menu-section',
72
- key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
73
- rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM.key]
74
- },
75
- component: createLayoutBlockMenuItem(api),
76
- isHidden: function isHidden() {
77
- var _api$blockMenu2;
78
- 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));
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": "19.0.11",
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",
@@ -23,19 +23,19 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.5.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
- "@atlaskit/editor-plugin-analytics": "^18.0.0",
27
- "@atlaskit/editor-plugin-block-controls": "^19.0.0",
28
- "@atlaskit/editor-plugin-block-menu": "^17.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^18.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^18.0.0",
31
- "@atlaskit/editor-plugin-guideline": "^18.0.0",
32
- "@atlaskit/editor-plugin-interaction": "^31.0.0",
33
- "@atlaskit/editor-plugin-selection": "^18.0.0",
34
- "@atlaskit/editor-plugin-toolbar": "^15.0.0",
35
- "@atlaskit/editor-plugin-ui-control-registry": "^12.0.0",
36
- "@atlaskit/editor-plugin-user-intent": "^16.0.0",
37
- "@atlaskit/editor-plugin-width": "^19.0.0",
38
- "@atlaskit/editor-prosemirror": "^8.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^19.0.0",
27
+ "@atlaskit/editor-plugin-block-controls": "^20.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^18.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^19.0.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^19.0.0",
31
+ "@atlaskit/editor-plugin-guideline": "^19.0.0",
32
+ "@atlaskit/editor-plugin-interaction": "^32.0.0",
33
+ "@atlaskit/editor-plugin-selection": "^19.0.0",
34
+ "@atlaskit/editor-plugin-toolbar": "^16.0.0",
35
+ "@atlaskit/editor-plugin-ui-control-registry": "^13.0.0",
36
+ "@atlaskit/editor-plugin-user-intent": "^17.0.0",
37
+ "@atlaskit/editor-plugin-width": "^20.0.0",
38
+ "@atlaskit/editor-prosemirror": "^9.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^4.3.0",
40
40
  "@atlaskit/editor-toolbar": "^2.6.0",
41
41
  "@atlaskit/editor-ui-control-model": "^2.9.0",
@@ -43,14 +43,14 @@
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": "^199.0.0",
47
- "@atlaskit/tokens": "^18.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^200.0.0",
47
+ "@atlaskit/tokens": "^18.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^122.11.0",
53
+ "@atlaskit/editor-common": "^123.0.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },