@atlaskit/editor-core 202.4.0 → 202.4.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 202.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167313](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167313)
8
+ [`40d491ee58258`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40d491ee58258) -
9
+ ED-24230 Remove code wrapping for editor FG
10
+
3
11
  ## 202.4.0
4
12
 
5
13
  ### Minor Changes
@@ -31,10 +31,13 @@ var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
31
31
  (0, _clickAreaHelper.clickAreaClickHandler)(editorView, event);
32
32
  }
33
33
  }, [editorView, editorDisabled]);
34
- return (0, _react2.jsx)("div", {
35
- "data-testid": "click-wrapper",
36
- css: clickWrapper,
37
- onMouseDown: handleMouseDown
38
- }, children);
34
+ return (
35
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
36
+ (0, _react2.jsx)("div", {
37
+ "data-testid": "click-wrapper",
38
+ css: clickWrapper,
39
+ onMouseDown: handleMouseDown
40
+ }, children)
41
+ );
39
42
  };
40
43
  var _default = exports.default = ClickAreaBlock;
@@ -30,6 +30,8 @@ var ClickAreaInline = exports.ClickAreaInline = function ClickAreaInline(_ref) {
30
30
  event.stopPropagation();
31
31
  }
32
32
  }, [editorView]);
33
+
34
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
33
35
  return (0, _react2.jsx)("div", {
34
36
  "data-testid": "click-wrapper",
35
37
  css: clickArea,
@@ -85,18 +85,21 @@ var ClickAreaMobile = exports.default = /*#__PURE__*/function (_React$Component)
85
85
  (0, _createClass2.default)(ClickAreaMobile, [{
86
86
  key: "render",
87
87
  value: function render() {
88
- return (0, _react2.jsx)("div", {
89
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
90
- css: clickWrapper({
91
- isExpanded: this.props.isExpanded,
92
- minHeight: this.props.minHeight
93
- })
94
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
95
- ,
96
- className: "editor-click-wrapper",
97
- onClick: this.handleClick,
98
- ref: this.clickElementRef
99
- }, this.props.children);
88
+ return (
89
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
90
+ (0, _react2.jsx)("div", {
91
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
92
+ css: clickWrapper({
93
+ isExpanded: this.props.isExpanded,
94
+ minHeight: this.props.minHeight
95
+ })
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
97
+ ,
98
+ className: "editor-click-wrapper",
99
+ onClick: this.handleClick,
100
+ ref: this.clickElementRef
101
+ }, this.props.children)
102
+ );
100
103
  }
101
104
  }]);
102
105
  return ClickAreaMobile;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "202.4.0";
8
+ var version = exports.version = "202.4.1";
@@ -24,10 +24,13 @@ export const ClickAreaBlock = ({
24
24
  clickAreaClickHandler(editorView, event);
25
25
  }
26
26
  }, [editorView, editorDisabled]);
27
- return jsx("div", {
28
- "data-testid": "click-wrapper",
29
- css: clickWrapper,
30
- onMouseDown: handleMouseDown
31
- }, children);
27
+ return (
28
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
29
+ jsx("div", {
30
+ "data-testid": "click-wrapper",
31
+ css: clickWrapper,
32
+ onMouseDown: handleMouseDown
33
+ }, children)
34
+ );
32
35
  };
33
36
  export default ClickAreaBlock;
@@ -23,6 +23,8 @@ export const ClickAreaInline = ({
23
23
  event.stopPropagation();
24
24
  }
25
25
  }, [editorView]);
26
+
27
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
26
28
  return jsx("div", {
27
29
  "data-testid": "click-wrapper",
28
30
  css: clickArea,
@@ -64,17 +64,20 @@ export default class ClickAreaMobile extends React.Component {
64
64
  });
65
65
  }
66
66
  render() {
67
- return jsx("div", {
68
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
69
- css: clickWrapper({
70
- isExpanded: this.props.isExpanded,
71
- minHeight: this.props.minHeight
72
- })
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
74
- ,
75
- className: "editor-click-wrapper",
76
- onClick: this.handleClick,
77
- ref: this.clickElementRef
78
- }, this.props.children);
67
+ return (
68
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
69
+ jsx("div", {
70
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
71
+ css: clickWrapper({
72
+ isExpanded: this.props.isExpanded,
73
+ minHeight: this.props.minHeight
74
+ })
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
76
+ ,
77
+ className: "editor-click-wrapper",
78
+ onClick: this.handleClick,
79
+ ref: this.clickElementRef
80
+ }, this.props.children)
81
+ );
79
82
  }
80
83
  }
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "202.4.0";
2
+ export const version = "202.4.1";
@@ -23,10 +23,13 @@ export var ClickAreaBlock = function ClickAreaBlock(_ref) {
23
23
  clickAreaClickHandler(editorView, event);
24
24
  }
25
25
  }, [editorView, editorDisabled]);
26
- return jsx("div", {
27
- "data-testid": "click-wrapper",
28
- css: clickWrapper,
29
- onMouseDown: handleMouseDown
30
- }, children);
26
+ return (
27
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
28
+ jsx("div", {
29
+ "data-testid": "click-wrapper",
30
+ css: clickWrapper,
31
+ onMouseDown: handleMouseDown
32
+ }, children)
33
+ );
31
34
  };
32
35
  export default ClickAreaBlock;
@@ -22,6 +22,8 @@ export var ClickAreaInline = function ClickAreaInline(_ref) {
22
22
  event.stopPropagation();
23
23
  }
24
24
  }, [editorView]);
25
+
26
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
25
27
  return jsx("div", {
26
28
  "data-testid": "click-wrapper",
27
29
  css: clickArea,
@@ -82,18 +82,21 @@ var ClickAreaMobile = /*#__PURE__*/function (_React$Component) {
82
82
  _createClass(ClickAreaMobile, [{
83
83
  key: "render",
84
84
  value: function render() {
85
- return jsx("div", {
86
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
87
- css: clickWrapper({
88
- isExpanded: this.props.isExpanded,
89
- minHeight: this.props.minHeight
90
- })
91
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
92
- ,
93
- className: "editor-click-wrapper",
94
- onClick: this.handleClick,
95
- ref: this.clickElementRef
96
- }, this.props.children);
85
+ return (
86
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
87
+ jsx("div", {
88
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
89
+ css: clickWrapper({
90
+ isExpanded: this.props.isExpanded,
91
+ minHeight: this.props.minHeight
92
+ })
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
94
+ ,
95
+ className: "editor-click-wrapper",
96
+ onClick: this.handleClick,
97
+ ref: this.clickElementRef
98
+ }, this.props.children)
99
+ );
97
100
  }
98
101
  }]);
99
102
  return ClickAreaMobile;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "202.4.0";
2
+ export var version = "202.4.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "202.4.0",
3
+ "version": "202.4.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -182,10 +182,6 @@
182
182
  "type": "boolean",
183
183
  "referenceOnly": true
184
184
  },
185
- "editor_support_code_block_wrapping": {
186
- "type": "boolean",
187
- "referenceOnly": true
188
- },
189
185
  "platform_editor_react_18_plugin_slot": {
190
186
  "type": "boolean"
191
187
  },