@atlaskit/editor-core 204.4.1 → 204.4.2
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 +9 -0
- package/dist/cjs/ui/WithEditorActions/index.js +2 -46
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/WithEditorActions/index.js +2 -34
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/WithEditorActions/index.js +2 -46
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +12 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 204.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122260](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122260)
|
|
8
|
+
[`10eabde04f773`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/10eabde04f773) -
|
|
9
|
+
FD-80149: cleans up platform_editor_react18_phase2_v2 from with_editor_actions
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 204.4.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -5,16 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
14
|
var _UNSAFE_do_not_use_editor_context = require("@atlaskit/editor-common/UNSAFE_do_not_use_editor_context");
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
15
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
17
|
// Ignored via go/ees005
|
|
@@ -28,14 +25,9 @@ var WithEditorActions = exports.default = /*#__PURE__*/function (_React$Componen
|
|
|
28
25
|
return (0, _createClass2.default)(WithEditorActions, [{
|
|
29
26
|
key: "render",
|
|
30
27
|
value: function render() {
|
|
31
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2')) {
|
|
32
|
-
// Ignored via go/ees005
|
|
33
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(WithEditorActionsNew, this.props);
|
|
35
|
-
}
|
|
36
28
|
// Ignored via go/ees005
|
|
37
29
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(WithEditorActionsNew, this.props);
|
|
39
31
|
}
|
|
40
32
|
}]);
|
|
41
33
|
}(_react.default.Component);
|
|
@@ -78,40 +70,4 @@ var WithEditorActionsInner = /*#__PURE__*/function (_React$Component2) {
|
|
|
78
70
|
return this.props.render(this.props.editorActions);
|
|
79
71
|
}
|
|
80
72
|
}]);
|
|
81
|
-
}(_react.default.Component);
|
|
82
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
83
|
-
var WithEditorActionsOld = /*#__PURE__*/function (_React$Component3) {
|
|
84
|
-
function WithEditorActionsOld() {
|
|
85
|
-
var _this3;
|
|
86
|
-
(0, _classCallCheck2.default)(this, WithEditorActionsOld);
|
|
87
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
88
|
-
args[_key] = arguments[_key];
|
|
89
|
-
}
|
|
90
|
-
_this3 = _callSuper(this, WithEditorActionsOld, [].concat(args));
|
|
91
|
-
(0, _defineProperty2.default)(_this3, "onContextUpdate", function () {
|
|
92
|
-
// Re-render actions when editorActions changes...
|
|
93
|
-
_this3.forceUpdate();
|
|
94
|
-
});
|
|
95
|
-
return _this3;
|
|
96
|
-
}
|
|
97
|
-
(0, _inherits2.default)(WithEditorActionsOld, _React$Component3);
|
|
98
|
-
return (0, _createClass2.default)(WithEditorActionsOld, [{
|
|
99
|
-
key: "componentDidMount",
|
|
100
|
-
value: function componentDidMount() {
|
|
101
|
-
this.context.editorActions._privateSubscribe(this.onContextUpdate);
|
|
102
|
-
}
|
|
103
|
-
}, {
|
|
104
|
-
key: "componentWillUnmount",
|
|
105
|
-
value: function componentWillUnmount() {
|
|
106
|
-
this.context.editorActions._privateUnsubscribe(this.onContextUpdate);
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
key: "render",
|
|
110
|
-
value: function render() {
|
|
111
|
-
return this.props.render(this.context.editorActions);
|
|
112
|
-
}
|
|
113
|
-
}]);
|
|
114
|
-
}(_react.default.Component);
|
|
115
|
-
(0, _defineProperty2.default)(WithEditorActionsOld, "contextTypes", {
|
|
116
|
-
editorActions: _propTypes.default.object.isRequired
|
|
117
|
-
});
|
|
73
|
+
}(_react.default.Component);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
3
|
// Ignored via go/ees005
|
|
7
4
|
// eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
|
|
8
5
|
export default class WithEditorActions extends React.Component {
|
|
@@ -10,14 +7,9 @@ export default class WithEditorActions extends React.Component {
|
|
|
10
7
|
super(props);
|
|
11
8
|
}
|
|
12
9
|
render() {
|
|
13
|
-
if (fg('platform_editor_react18_phase2_v2')) {
|
|
14
|
-
// Ignored via go/ees005
|
|
15
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
16
|
-
return /*#__PURE__*/React.createElement(WithEditorActionsNew, this.props);
|
|
17
|
-
}
|
|
18
10
|
// Ignored via go/ees005
|
|
19
11
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
12
|
+
return /*#__PURE__*/React.createElement(WithEditorActionsNew, this.props);
|
|
21
13
|
}
|
|
22
14
|
}
|
|
23
15
|
function WithEditorActionsNew(props) {
|
|
@@ -43,28 +35,4 @@ class WithEditorActionsInner extends React.Component {
|
|
|
43
35
|
render() {
|
|
44
36
|
return this.props.render(this.props.editorActions);
|
|
45
37
|
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Ignored via go/ees005
|
|
49
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
50
|
-
class WithEditorActionsOld extends React.Component {
|
|
51
|
-
constructor(...args) {
|
|
52
|
-
super(...args);
|
|
53
|
-
_defineProperty(this, "onContextUpdate", () => {
|
|
54
|
-
// Re-render actions when editorActions changes...
|
|
55
|
-
this.forceUpdate();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
componentDidMount() {
|
|
59
|
-
this.context.editorActions._privateSubscribe(this.onContextUpdate);
|
|
60
|
-
}
|
|
61
|
-
componentWillUnmount() {
|
|
62
|
-
this.context.editorActions._privateUnsubscribe(this.onContextUpdate);
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
return this.props.render(this.context.editorActions);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
_defineProperty(WithEditorActionsOld, "contextTypes", {
|
|
69
|
-
editorActions: PropTypes.object.isRequired
|
|
70
|
-
});
|
|
38
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "204.4.
|
|
2
|
+
export const version = "204.4.2";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -7,9 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
8
|
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
9
|
import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
10
|
// Ignored via go/ees005
|
|
14
11
|
// eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
|
|
15
12
|
var WithEditorActions = /*#__PURE__*/function (_React$Component) {
|
|
@@ -21,14 +18,9 @@ var WithEditorActions = /*#__PURE__*/function (_React$Component) {
|
|
|
21
18
|
return _createClass(WithEditorActions, [{
|
|
22
19
|
key: "render",
|
|
23
20
|
value: function render() {
|
|
24
|
-
if (fg('platform_editor_react18_phase2_v2')) {
|
|
25
|
-
// Ignored via go/ees005
|
|
26
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
|
-
return /*#__PURE__*/React.createElement(WithEditorActionsNew, this.props);
|
|
28
|
-
}
|
|
29
21
|
// Ignored via go/ees005
|
|
30
22
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
31
|
-
return /*#__PURE__*/React.createElement(
|
|
23
|
+
return /*#__PURE__*/React.createElement(WithEditorActionsNew, this.props);
|
|
32
24
|
}
|
|
33
25
|
}]);
|
|
34
26
|
}(React.Component);
|
|
@@ -72,40 +64,4 @@ var WithEditorActionsInner = /*#__PURE__*/function (_React$Component2) {
|
|
|
72
64
|
return this.props.render(this.props.editorActions);
|
|
73
65
|
}
|
|
74
66
|
}]);
|
|
75
|
-
}(React.Component);
|
|
76
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
77
|
-
var WithEditorActionsOld = /*#__PURE__*/function (_React$Component3) {
|
|
78
|
-
function WithEditorActionsOld() {
|
|
79
|
-
var _this3;
|
|
80
|
-
_classCallCheck(this, WithEditorActionsOld);
|
|
81
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
82
|
-
args[_key] = arguments[_key];
|
|
83
|
-
}
|
|
84
|
-
_this3 = _callSuper(this, WithEditorActionsOld, [].concat(args));
|
|
85
|
-
_defineProperty(_this3, "onContextUpdate", function () {
|
|
86
|
-
// Re-render actions when editorActions changes...
|
|
87
|
-
_this3.forceUpdate();
|
|
88
|
-
});
|
|
89
|
-
return _this3;
|
|
90
|
-
}
|
|
91
|
-
_inherits(WithEditorActionsOld, _React$Component3);
|
|
92
|
-
return _createClass(WithEditorActionsOld, [{
|
|
93
|
-
key: "componentDidMount",
|
|
94
|
-
value: function componentDidMount() {
|
|
95
|
-
this.context.editorActions._privateSubscribe(this.onContextUpdate);
|
|
96
|
-
}
|
|
97
|
-
}, {
|
|
98
|
-
key: "componentWillUnmount",
|
|
99
|
-
value: function componentWillUnmount() {
|
|
100
|
-
this.context.editorActions._privateUnsubscribe(this.onContextUpdate);
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
key: "render",
|
|
104
|
-
value: function render() {
|
|
105
|
-
return this.props.render(this.context.editorActions);
|
|
106
|
-
}
|
|
107
|
-
}]);
|
|
108
|
-
}(React.Component);
|
|
109
|
-
_defineProperty(WithEditorActionsOld, "contextTypes", {
|
|
110
|
-
editorActions: PropTypes.object.isRequired
|
|
111
|
-
});
|
|
67
|
+
}(React.Component);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "204.4.
|
|
2
|
+
export var version = "204.4.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.4.
|
|
3
|
+
"version": "204.4.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^21.1.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^101.
|
|
49
|
+
"@atlaskit/editor-common": "^101.1.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "2.0.2",
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "2.0.
|
|
52
|
+
"@atlaskit/editor-plugin-quick-insert": "2.0.5",
|
|
53
53
|
"@atlaskit/editor-plugins": "^8.0.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/media-card": "^79.0.0",
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
|
-
"@atlaskit/react-ufo": "^3.
|
|
61
|
+
"@atlaskit/react-ufo": "^3.3.0",
|
|
62
62
|
"@atlaskit/task-decision": "^19.0.0",
|
|
63
63
|
"@atlaskit/tmp-editor-statsig": "^3.4.0",
|
|
64
64
|
"@atlaskit/tokens": "^4.3.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
91
91
|
"@atlaskit/collab-provider": "10.9.1",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "2.1.1",
|
|
93
|
-
"@atlaskit/editor-plugin-card": "^5.
|
|
93
|
+
"@atlaskit/editor-plugin-card": "^5.2.0",
|
|
94
94
|
"@atlaskit/editor-plugin-list": "^4.1.0",
|
|
95
95
|
"@atlaskit/editor-plugin-paste": "^3.1.0",
|
|
96
96
|
"@atlaskit/link-provider": "^2.0.0",
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
101
101
|
"@atlaskit/modal-dialog": "^13.0.0",
|
|
102
102
|
"@atlaskit/primitives": "^14.1.0",
|
|
103
|
-
"@atlaskit/renderer": "^113.
|
|
104
|
-
"@atlaskit/smart-card": "^35.
|
|
103
|
+
"@atlaskit/renderer": "^113.2.0",
|
|
104
|
+
"@atlaskit/smart-card": "^35.2.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^3.1.0",
|
|
106
106
|
"@atlaskit/toggle": "^15.0.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.31.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "3.0.
|
|
111
|
+
"@atlassian/search-provider": "3.0.42",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^6.4.0",
|
|
114
114
|
"@testing-library/react": "^13.4.0",
|
|
@@ -513,6 +513,10 @@
|
|
|
513
513
|
"platform_editor_table_column_selected_state_fix": {
|
|
514
514
|
"type": "boolean",
|
|
515
515
|
"referenceOnly": true
|
|
516
|
+
},
|
|
517
|
+
"platform_editor_elements_dnd_select_node_on_drag": {
|
|
518
|
+
"type": "boolean",
|
|
519
|
+
"referenceOnly": true
|
|
516
520
|
}
|
|
517
521
|
},
|
|
518
522
|
"stricter": {
|