@atlaskit/editor-plugin-layout 8.1.11 → 9.0.0

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,20 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.1.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [`1bd298ad0a152`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1bd298ad0a152) -
14
+ [ux] EDITOR-6280 Clean up platform_editor_block_menu_v2_patch_3 to fix icon and copy in jira block
15
+ menu
16
+ - Updated dependencies
17
+
3
18
  ## 8.1.11
4
19
 
5
20
  ### Patch Changes
@@ -14,7 +14,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
14
14
  var _messages = require("@atlaskit/editor-common/messages");
15
15
  var _editorToolbar = require("@atlaskit/editor-toolbar");
16
16
  var _layoutTwoColumns = _interopRequireDefault(require("@atlaskit/icon/core/layout-two-columns"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var styles = {
19
18
  svgOverflow: "_1wrmewfl _172sewfl"
20
19
  };
@@ -39,21 +38,14 @@ var LayoutBlockMenuItem = function LayoutBlockMenuItem(_ref) {
39
38
  }) : null;
40
39
  });
41
40
  };
42
-
43
- // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
44
- // Adds size="small" to icons for better visual consistency in block menu.
45
- // Adds overflow: visible to SVGs to fix when view port is in different zoom level, sometimes the right edge of the icon is cut off.
46
- // To clean up: remove conditionals, keep only size="small" version and always apply svgOverflowStyles wrapper.
47
- var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
48
- var icon = /*#__PURE__*/_react.default.createElement(_layoutTwoColumns.default, {
49
- label: "",
50
- size: iconSize
51
- });
52
41
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
53
42
  onClick: handleClick,
54
- elemBefore: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? /*#__PURE__*/_react.default.createElement("span", {
43
+ elemBefore: /*#__PURE__*/_react.default.createElement("span", {
55
44
  className: (0, _runtime.ax)([styles.svgOverflow])
56
- }, icon) : icon
45
+ }, /*#__PURE__*/_react.default.createElement(_layoutTwoColumns.default, {
46
+ label: "",
47
+ size: "small"
48
+ }))
57
49
  }, formatMessage(_messages.blockMenuMessages.layout));
58
50
  };
59
51
  var createLayoutBlockMenuItem = exports.createLayoutBlockMenuItem = function createLayoutBlockMenuItem(api) {
@@ -7,7 +7,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
8
8
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
9
9
  import LayoutTwoColumnsIcon from '@atlaskit/icon/core/layout-two-columns';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  const styles = {
12
11
  svgOverflow: "_1wrmewfl _172sewfl"
13
12
  };
@@ -35,21 +34,14 @@ const LayoutBlockMenuItem = ({
35
34
  }) : null;
36
35
  });
37
36
  };
38
-
39
- // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
40
- // Adds size="small" to icons for better visual consistency in block menu.
41
- // Adds overflow: visible to SVGs to fix when view port is in different zoom level, sometimes the right edge of the icon is cut off.
42
- // To clean up: remove conditionals, keep only size="small" version and always apply svgOverflowStyles wrapper.
43
- const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
44
- const icon = /*#__PURE__*/React.createElement(LayoutTwoColumnsIcon, {
45
- label: "",
46
- size: iconSize
47
- });
48
37
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
49
38
  onClick: handleClick,
50
- elemBefore: fg('platform_editor_block_menu_v2_patch_3') ? /*#__PURE__*/React.createElement("span", {
39
+ elemBefore: /*#__PURE__*/React.createElement("span", {
51
40
  className: ax([styles.svgOverflow])
52
- }, icon) : icon
41
+ }, /*#__PURE__*/React.createElement(LayoutTwoColumnsIcon, {
42
+ label: "",
43
+ size: "small"
44
+ }))
53
45
  }, formatMessage(blockMenuMessages.layout));
54
46
  };
55
47
  export const createLayoutBlockMenuItem = api => {
@@ -7,7 +7,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
8
8
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
9
9
  import LayoutTwoColumnsIcon from '@atlaskit/icon/core/layout-two-columns';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  var styles = {
12
11
  svgOverflow: "_1wrmewfl _172sewfl"
13
12
  };
@@ -32,21 +31,14 @@ var LayoutBlockMenuItem = function LayoutBlockMenuItem(_ref) {
32
31
  }) : null;
33
32
  });
34
33
  };
35
-
36
- // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
37
- // Adds size="small" to icons for better visual consistency in block menu.
38
- // Adds overflow: visible to SVGs to fix when view port is in different zoom level, sometimes the right edge of the icon is cut off.
39
- // To clean up: remove conditionals, keep only size="small" version and always apply svgOverflowStyles wrapper.
40
- var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
41
- var icon = /*#__PURE__*/React.createElement(LayoutTwoColumnsIcon, {
42
- label: "",
43
- size: iconSize
44
- });
45
34
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
46
35
  onClick: handleClick,
47
- elemBefore: fg('platform_editor_block_menu_v2_patch_3') ? /*#__PURE__*/React.createElement("span", {
36
+ elemBefore: /*#__PURE__*/React.createElement("span", {
48
37
  className: ax([styles.svgOverflow])
49
- }, icon) : icon
38
+ }, /*#__PURE__*/React.createElement(LayoutTwoColumnsIcon, {
39
+ label: "",
40
+ size: "small"
41
+ }))
50
42
  }, formatMessage(blockMenuMessages.layout));
51
43
  };
52
44
  export var createLayoutBlockMenuItem = function createLayoutBlockMenuItem(api) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "8.1.11",
3
+ "version": "9.0.0",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,31 +29,31 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
32
+ "@atlaskit/adf-schema": "^52.5.0",
33
33
  "@atlaskit/css": "^0.19.0",
34
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
35
- "@atlaskit/editor-plugin-block-menu": "^7.0.0",
36
- "@atlaskit/editor-plugin-decorations": "^8.0.0",
37
- "@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
38
- "@atlaskit/editor-plugin-guideline": "^8.0.0",
39
- "@atlaskit/editor-plugin-interaction": "^17.0.0",
40
- "@atlaskit/editor-plugin-selection": "^8.0.0",
41
- "@atlaskit/editor-plugin-toolbar": "^5.1.0",
42
- "@atlaskit/editor-plugin-width": "^9.0.0",
34
+ "@atlaskit/editor-plugin-analytics": "^9.0.0",
35
+ "@atlaskit/editor-plugin-block-menu": "^8.0.0",
36
+ "@atlaskit/editor-plugin-decorations": "^9.0.0",
37
+ "@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
38
+ "@atlaskit/editor-plugin-guideline": "^9.0.0",
39
+ "@atlaskit/editor-plugin-interaction": "^18.0.0",
40
+ "@atlaskit/editor-plugin-selection": "^9.0.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^6.0.0",
42
+ "@atlaskit/editor-plugin-width": "^10.0.0",
43
43
  "@atlaskit/editor-prosemirror": "^7.3.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.10.0",
45
45
  "@atlaskit/editor-toolbar": "^0.20.0",
46
- "@atlaskit/icon": "^34.1.0",
46
+ "@atlaskit/icon": "^34.2.0",
47
47
  "@atlaskit/icon-lab": "^6.5.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/tmp-editor-statsig": "^62.1.0",
49
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
50
50
  "@atlaskit/tokens": "^13.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "bind-event-listener": "^3.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^112.21.0",
56
+ "@atlaskit/editor-common": "^113.0.0",
57
57
  "react": "^18.2.0",
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"
59
59
  },