@atlaskit/editor-core 242.3.3 → 242.3.4
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/version-wrapper.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/CollapsedEditor/index.js +0 -83
- package/dist/es2019/CollapsedEditor/index.js +0 -54
- package/dist/esm/CollapsedEditor/index.js +0 -77
- package/dist/types/CollapsedEditor/index.d.ts +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 242.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aa37beeadca8b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa37beeadca8b) -
|
|
8
|
+
Delete unreachable source files
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 242.3.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "242.3.
|
|
9
|
+
var version = exports.version = "242.3.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "242.3.
|
|
3
|
+
"version": "242.3.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^8.4.0",
|
|
77
77
|
"@atlaskit/task-decision": "^21.16.0",
|
|
78
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
78
|
+
"@atlaskit/tmp-editor-statsig": "^262.0.0",
|
|
79
79
|
"@atlaskit/tokens": "^20.11.0",
|
|
80
80
|
"@atlaskit/tooltip": "^24.4.0",
|
|
81
81
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
"@atlaskit/editor-plugin-media": "^32.3.0",
|
|
132
132
|
"@atlaskit/editor-plugin-media-insert": "^48.0.0",
|
|
133
133
|
"@atlaskit/editor-plugin-paste": "^31.2.0",
|
|
134
|
-
"@atlaskit/editor-plugin-selection-marker": "^30.
|
|
134
|
+
"@atlaskit/editor-plugin-selection-marker": "^30.1.0",
|
|
135
135
|
"@atlaskit/editor-plugin-show-diff": "^30.0.0",
|
|
136
136
|
"@atlaskit/editor-plugin-synced-block": "^28.0.0",
|
|
137
|
-
"@atlaskit/editor-plugin-table": "^42.
|
|
137
|
+
"@atlaskit/editor-plugin-table": "^42.4.0",
|
|
138
138
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^33.0.0",
|
|
139
139
|
"@atlaskit/editor-plugin-text-color": "^30.0.0",
|
|
140
140
|
"@atlaskit/editor-plugin-text-formatting": "^31.0.0",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
171
171
|
"@atlassian/a11y-playwright-testing": "^0.13.0",
|
|
172
172
|
"@atlassian/adf-schema-json": "^1.35.0",
|
|
173
|
-
"@atlassian/editor-rovo-bridge": "^29.
|
|
173
|
+
"@atlassian/editor-rovo-bridge": "^29.2.0",
|
|
174
174
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
175
175
|
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
176
176
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _ChromeCollapsed = _interopRequireDefault(require("../ui/ChromeCollapsed"));
|
|
18
|
-
var _excluded = ["Editor"];
|
|
19
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
|
-
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)); }
|
|
21
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // Ignored via go/ees005
|
|
22
|
-
// eslint-disable-next-line import/no-namespace
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
// Ignored via go/ees005
|
|
25
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
26
|
-
var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
27
|
-
function CollapsedEditor() {
|
|
28
|
-
var _this;
|
|
29
|
-
(0, _classCallCheck2.default)(this, CollapsedEditor);
|
|
30
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
|
-
args[_key] = arguments[_key];
|
|
32
|
-
}
|
|
33
|
-
_this = _callSuper(this, CollapsedEditor, [].concat(args));
|
|
34
|
-
(0, _defineProperty2.default)(_this, "state", {
|
|
35
|
-
editorModules: CollapsedEditor.editorModules
|
|
36
|
-
});
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
(0, _inherits2.default)(CollapsedEditor, _React$Component);
|
|
40
|
-
return (0, _createClass2.default)(CollapsedEditor, [{
|
|
41
|
-
key: "componentDidMount",
|
|
42
|
-
value: function componentDidMount() {
|
|
43
|
-
if (!this.state.editorModules) {
|
|
44
|
-
this.loadEditorModules();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
key: "loadEditorModules",
|
|
49
|
-
value: function loadEditorModules() {
|
|
50
|
-
var _this2 = this;
|
|
51
|
-
Promise.resolve().then(function () {
|
|
52
|
-
return _interopRequireWildcard(require( /* webpackChunkName:"@atlaskit-internal_editor-core-async" */'../'));
|
|
53
|
-
}).then(function (modules) {
|
|
54
|
-
CollapsedEditor.editorModules = modules;
|
|
55
|
-
_this2.setState({
|
|
56
|
-
editorModules: modules
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "render",
|
|
62
|
-
value: function render() {
|
|
63
|
-
if (!this.props.isExpanded) {
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement(_ChromeCollapsed.default, {
|
|
65
|
-
onFocus: this.props.onClickToExpand,
|
|
66
|
-
text: this.props.placeholder
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
if (!this.state.editorModules) {
|
|
70
|
-
// Ignored via go/ees007
|
|
71
|
-
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
72
|
-
// TODO: Proper loading state
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(_ChromeCollapsed.default, {
|
|
74
|
-
text: "Loading..."
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
var _this$state$editorMod = this.state.editorModules,
|
|
78
|
-
Editor = _this$state$editorMod.Editor,
|
|
79
|
-
rest = (0, _objectWithoutProperties2.default)(_this$state$editorMod, _excluded);
|
|
80
|
-
return this.props.renderEditor(Editor, rest);
|
|
81
|
-
}
|
|
82
|
-
}]);
|
|
83
|
-
}(_react.default.Component);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
// Ignored via go/ees005
|
|
5
|
-
// eslint-disable-next-line import/no-namespace
|
|
6
|
-
|
|
7
|
-
import ChromeCollapsed from '../ui/ChromeCollapsed';
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
|
-
|
|
11
|
-
// Ignored via go/ees005
|
|
12
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
|
-
export default class CollapsedEditor extends React.Component {
|
|
14
|
-
constructor(...args) {
|
|
15
|
-
super(...args);
|
|
16
|
-
_defineProperty(this, "state", {
|
|
17
|
-
editorModules: CollapsedEditor.editorModules
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
componentDidMount() {
|
|
21
|
-
if (!this.state.editorModules) {
|
|
22
|
-
this.loadEditorModules();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
loadEditorModules() {
|
|
26
|
-
import( /* webpackChunkName:"@atlaskit-internal_editor-core-async" */'../').then(modules => {
|
|
27
|
-
CollapsedEditor.editorModules = modules;
|
|
28
|
-
this.setState({
|
|
29
|
-
editorModules: modules
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
if (!this.props.isExpanded) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
36
|
-
onFocus: this.props.onClickToExpand,
|
|
37
|
-
text: this.props.placeholder
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
if (!this.state.editorModules) {
|
|
41
|
-
// Ignored via go/ees007
|
|
42
|
-
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
43
|
-
// TODO: Proper loading state
|
|
44
|
-
return /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
45
|
-
text: "Loading..."
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
const {
|
|
49
|
-
Editor,
|
|
50
|
-
...rest
|
|
51
|
-
} = this.state.editorModules;
|
|
52
|
-
return this.props.renderEditor(Editor, rest);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
var _excluded = ["Editor"];
|
|
9
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
-
import React from 'react';
|
|
12
|
-
|
|
13
|
-
// Ignored via go/ees005
|
|
14
|
-
// eslint-disable-next-line import/no-namespace
|
|
15
|
-
|
|
16
|
-
import ChromeCollapsed from '../ui/ChromeCollapsed';
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
-
// Ignored via go/ees005
|
|
20
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
21
|
-
var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
function CollapsedEditor() {
|
|
23
|
-
var _this;
|
|
24
|
-
_classCallCheck(this, CollapsedEditor);
|
|
25
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
|
-
args[_key] = arguments[_key];
|
|
27
|
-
}
|
|
28
|
-
_this = _callSuper(this, CollapsedEditor, [].concat(args));
|
|
29
|
-
_defineProperty(_this, "state", {
|
|
30
|
-
editorModules: CollapsedEditor.editorModules
|
|
31
|
-
});
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
_inherits(CollapsedEditor, _React$Component);
|
|
35
|
-
return _createClass(CollapsedEditor, [{
|
|
36
|
-
key: "componentDidMount",
|
|
37
|
-
value: function componentDidMount() {
|
|
38
|
-
if (!this.state.editorModules) {
|
|
39
|
-
this.loadEditorModules();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
43
|
-
key: "loadEditorModules",
|
|
44
|
-
value: function loadEditorModules() {
|
|
45
|
-
var _this2 = this;
|
|
46
|
-
import( /* webpackChunkName:"@atlaskit-internal_editor-core-async" */'../').then(function (modules) {
|
|
47
|
-
CollapsedEditor.editorModules = modules;
|
|
48
|
-
_this2.setState({
|
|
49
|
-
editorModules: modules
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}, {
|
|
54
|
-
key: "render",
|
|
55
|
-
value: function render() {
|
|
56
|
-
if (!this.props.isExpanded) {
|
|
57
|
-
return /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
58
|
-
onFocus: this.props.onClickToExpand,
|
|
59
|
-
text: this.props.placeholder
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
if (!this.state.editorModules) {
|
|
63
|
-
// Ignored via go/ees007
|
|
64
|
-
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
65
|
-
// TODO: Proper loading state
|
|
66
|
-
return /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
67
|
-
text: "Loading..."
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
var _this$state$editorMod = this.state.editorModules,
|
|
71
|
-
Editor = _this$state$editorMod.Editor,
|
|
72
|
-
rest = _objectWithoutProperties(_this$state$editorMod, _excluded);
|
|
73
|
-
return this.props.renderEditor(Editor, rest);
|
|
74
|
-
}
|
|
75
|
-
}]);
|
|
76
|
-
}(React.Component);
|
|
77
|
-
export { CollapsedEditor as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type * as EditorImports from '../index';
|
|
3
|
-
type EditorModules = {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export type EditorModule = {
|
|
7
|
-
EditorContext: typeof EditorImports.EditorContext;
|
|
8
|
-
WithEditorActions: typeof EditorImports.WithEditorActions;
|
|
9
|
-
} & EditorModules;
|
|
10
|
-
export interface Props {
|
|
11
|
-
isExpanded?: boolean;
|
|
12
|
-
onClickToExpand?: () => void;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
renderEditor: (Editor: typeof EditorImports.Editor, modules: EditorModule) => JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export interface State {
|
|
17
|
-
editorModules?: EditorModules;
|
|
18
|
-
}
|
|
19
|
-
export default class CollapsedEditor extends React.Component<Props, State> {
|
|
20
|
-
static editorModules: EditorModules;
|
|
21
|
-
state: State;
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
loadEditorModules(): void;
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|