@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 +8 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +8 -5
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -0
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +15 -12
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +8 -5
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +2 -0
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +15 -12
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +8 -5
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +2 -0
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +15 -12
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -5
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 (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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 (
|
|
89
|
-
// eslint-disable-next-line
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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;
|
|
@@ -24,10 +24,13 @@ export const ClickAreaBlock = ({
|
|
|
24
24
|
clickAreaClickHandler(editorView, event);
|
|
25
25
|
}
|
|
26
26
|
}, [editorView, editorDisabled]);
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
@@ -64,17 +64,20 @@ export default class ClickAreaMobile extends React.Component {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return
|
|
68
|
-
// eslint-disable-next-line
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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.
|
|
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
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
86
|
-
// eslint-disable-next-line
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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.
|
|
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.
|
|
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
|
},
|