@atlaskit/editor-core 204.4.1 → 204.4.3
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 +18 -0
- package/dist/cjs/ui/ContextPanel/index.js +10 -4
- package/dist/cjs/ui/WithEditorActions/index.js +2 -46
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +10 -4
- package/dist/es2019/ui/WithEditorActions/index.js +2 -34
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +10 -4
- package/dist/esm/ui/WithEditorActions/index.js +2 -46
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +7 -0
- package/dist/types/presets/universal.d.ts +7 -0
- package/dist/types/presets/useUniversalPreset.d.ts +7 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +7 -0
- package/dist/types-ts4.5/presets/universal.d.ts +7 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +7 -0
- package/package.json +27 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 204.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#123543](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/123543)
|
|
8
|
+
[`2e2c5201aac9a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e2c5201aac9a) -
|
|
9
|
+
[ux] ED-26983 add feature gate to disable context panel animation
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 204.4.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#122260](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122260)
|
|
17
|
+
[`10eabde04f773`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/10eabde04f773) -
|
|
18
|
+
FD-80149: cleans up platform_editor_react18_phase2_v2 from with_editor_actions
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 204.4.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -19,6 +19,7 @@ var _Transition = _interopRequireDefault(require("react-transition-group/Transit
|
|
|
19
19
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
20
20
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
21
21
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
25
|
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)); }
|
|
@@ -41,6 +42,9 @@ var panel = exports.panel = (0, _react2.css)({
|
|
|
41
42
|
overflow: 'hidden',
|
|
42
43
|
boxShadow: "inset 2px 0 0 0 ".concat("var(--ds-border, #091E4224)")
|
|
43
44
|
});
|
|
45
|
+
var disablePanelAnimation = (0, _react2.css)({
|
|
46
|
+
transition: 'none'
|
|
47
|
+
});
|
|
44
48
|
|
|
45
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
50
|
var content = exports.content = (0, _react2.css)({
|
|
@@ -82,8 +86,9 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
|
|
|
82
86
|
if (!currentPluginContent) {
|
|
83
87
|
return;
|
|
84
88
|
}
|
|
89
|
+
var animSpeedMs = (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
85
90
|
return (0, _react2.jsx)(_Transition.default, {
|
|
86
|
-
timeout: _this.state.mounted ?
|
|
91
|
+
timeout: _this.state.mounted ? animSpeedMs : 0,
|
|
87
92
|
in: !!pluginContent,
|
|
88
93
|
mountOnEnter: true,
|
|
89
94
|
unmountOnExit: true,
|
|
@@ -97,8 +102,9 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
|
|
|
97
102
|
if (!children) {
|
|
98
103
|
return;
|
|
99
104
|
}
|
|
105
|
+
var animSpeedMs = (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
100
106
|
return (0, _react2.jsx)(_Transition.default, {
|
|
101
|
-
timeout: _this.state.mounted ?
|
|
107
|
+
timeout: _this.state.mounted ? animSpeedMs : 0,
|
|
102
108
|
in: isVisible,
|
|
103
109
|
mountOnEnter: true,
|
|
104
110
|
unmountOnExit: true,
|
|
@@ -144,7 +150,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
|
|
|
144
150
|
return (0, _react2.jsx)("div", {
|
|
145
151
|
css: [panel,
|
|
146
152
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
147
|
-
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
|
|
153
|
+
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
|
|
148
154
|
"data-testid": "context-panel-panel",
|
|
149
155
|
"aria-labelledby": "context-panel-title",
|
|
150
156
|
role: "dialog"
|
|
@@ -152,7 +158,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
|
|
|
152
158
|
"data-testid": "context-panel-content",
|
|
153
159
|
css: [content, hasPadding && paddingStyles,
|
|
154
160
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
155
|
-
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
|
|
161
|
+
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
|
|
156
162
|
}, _this2.showPluginContent() || _this2.showProvidedContent(userVisible)));
|
|
157
163
|
});
|
|
158
164
|
}
|
|
@@ -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);
|
|
@@ -12,6 +12,7 @@ import Transition from 'react-transition-group/Transition';
|
|
|
12
12
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
13
13
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
const ANIM_SPEED_MS = 500;
|
|
16
17
|
const panelHidden = css({
|
|
17
18
|
width: 0
|
|
@@ -27,6 +28,9 @@ export const panel = css({
|
|
|
27
28
|
overflow: 'hidden',
|
|
28
29
|
boxShadow: `inset 2px 0 0 0 ${"var(--ds-border, #091E4224)"}`
|
|
29
30
|
});
|
|
31
|
+
const disablePanelAnimation = css({
|
|
32
|
+
transition: 'none'
|
|
33
|
+
});
|
|
30
34
|
|
|
31
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
36
|
export const content = css({
|
|
@@ -69,8 +73,9 @@ export class SwappableContentArea extends React.PureComponent {
|
|
|
69
73
|
if (!currentPluginContent) {
|
|
70
74
|
return;
|
|
71
75
|
}
|
|
76
|
+
const animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
72
77
|
return jsx(Transition, {
|
|
73
|
-
timeout: this.state.mounted ?
|
|
78
|
+
timeout: this.state.mounted ? animSpeedMs : 0,
|
|
74
79
|
in: !!pluginContent,
|
|
75
80
|
mountOnEnter: true,
|
|
76
81
|
unmountOnExit: true,
|
|
@@ -84,8 +89,9 @@ export class SwappableContentArea extends React.PureComponent {
|
|
|
84
89
|
if (!children) {
|
|
85
90
|
return;
|
|
86
91
|
}
|
|
92
|
+
const animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
87
93
|
return jsx(Transition, {
|
|
88
|
-
timeout: this.state.mounted ?
|
|
94
|
+
timeout: this.state.mounted ? animSpeedMs : 0,
|
|
89
95
|
in: isVisible,
|
|
90
96
|
mountOnEnter: true,
|
|
91
97
|
unmountOnExit: true,
|
|
@@ -132,7 +138,7 @@ export class SwappableContentArea extends React.PureComponent {
|
|
|
132
138
|
return jsx("div", {
|
|
133
139
|
css: [panel,
|
|
134
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
135
|
-
this.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
|
|
141
|
+
this.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
|
|
136
142
|
"data-testid": "context-panel-panel",
|
|
137
143
|
"aria-labelledby": "context-panel-title",
|
|
138
144
|
role: "dialog"
|
|
@@ -140,7 +146,7 @@ export class SwappableContentArea extends React.PureComponent {
|
|
|
140
146
|
"data-testid": "context-panel-content",
|
|
141
147
|
css: [content, hasPadding && paddingStyles,
|
|
142
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
143
|
-
this.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
|
|
149
|
+
this.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
|
|
144
150
|
}, this.showPluginContent() || this.showProvidedContent(userVisible)));
|
|
145
151
|
});
|
|
146
152
|
}
|
|
@@ -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.3";
|
|
@@ -21,6 +21,7 @@ import Transition from 'react-transition-group/Transition';
|
|
|
21
21
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
22
22
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
23
23
|
import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
24
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
var ANIM_SPEED_MS = 500;
|
|
25
26
|
var panelHidden = css({
|
|
26
27
|
width: 0
|
|
@@ -36,6 +37,9 @@ export var panel = css({
|
|
|
36
37
|
overflow: 'hidden',
|
|
37
38
|
boxShadow: "inset 2px 0 0 0 ".concat("var(--ds-border, #091E4224)")
|
|
38
39
|
});
|
|
40
|
+
var disablePanelAnimation = css({
|
|
41
|
+
transition: 'none'
|
|
42
|
+
});
|
|
39
43
|
|
|
40
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
45
|
export var content = css({
|
|
@@ -77,8 +81,9 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
77
81
|
if (!currentPluginContent) {
|
|
78
82
|
return;
|
|
79
83
|
}
|
|
84
|
+
var animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
80
85
|
return jsx(Transition, {
|
|
81
|
-
timeout: _this.state.mounted ?
|
|
86
|
+
timeout: _this.state.mounted ? animSpeedMs : 0,
|
|
82
87
|
in: !!pluginContent,
|
|
83
88
|
mountOnEnter: true,
|
|
84
89
|
unmountOnExit: true,
|
|
@@ -92,8 +97,9 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
92
97
|
if (!children) {
|
|
93
98
|
return;
|
|
94
99
|
}
|
|
100
|
+
var animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
|
|
95
101
|
return jsx(Transition, {
|
|
96
|
-
timeout: _this.state.mounted ?
|
|
102
|
+
timeout: _this.state.mounted ? animSpeedMs : 0,
|
|
97
103
|
in: isVisible,
|
|
98
104
|
mountOnEnter: true,
|
|
99
105
|
unmountOnExit: true,
|
|
@@ -139,7 +145,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
139
145
|
return jsx("div", {
|
|
140
146
|
css: [panel,
|
|
141
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
142
|
-
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
|
|
148
|
+
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
|
|
143
149
|
"data-testid": "context-panel-panel",
|
|
144
150
|
"aria-labelledby": "context-panel-title",
|
|
145
151
|
role: "dialog"
|
|
@@ -147,7 +153,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
147
153
|
"data-testid": "context-panel-content",
|
|
148
154
|
css: [content, hasPadding && paddingStyles,
|
|
149
155
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
|
|
150
|
-
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
|
|
156
|
+
_this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
|
|
151
157
|
}, _this2.showPluginContent() || _this2.showProvidedContent(userVisible)));
|
|
152
158
|
});
|
|
153
159
|
}
|
|
@@ -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.3";
|
|
@@ -123,6 +123,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
123
123
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
124
124
|
sharedState: {
|
|
125
125
|
showContextPanel: boolean | undefined;
|
|
126
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
127
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
126
128
|
} | undefined;
|
|
127
129
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
128
130
|
}, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
|
|
@@ -131,6 +133,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
131
133
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
132
134
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
133
135
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
136
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
134
137
|
};
|
|
135
138
|
sharedState: {
|
|
136
139
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -448,6 +451,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
448
451
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
449
452
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
450
453
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
454
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
451
455
|
};
|
|
452
456
|
sharedState: {
|
|
453
457
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -511,6 +515,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
511
515
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
512
516
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
513
517
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
518
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
514
519
|
};
|
|
515
520
|
sharedState: {
|
|
516
521
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -776,6 +781,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
776
781
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
777
782
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
778
783
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
784
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
779
785
|
};
|
|
780
786
|
sharedState: {
|
|
781
787
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -863,6 +869,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
863
869
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
864
870
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
865
871
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
872
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
866
873
|
};
|
|
867
874
|
sharedState: {
|
|
868
875
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -175,6 +175,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
175
175
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
176
176
|
sharedState: {
|
|
177
177
|
showContextPanel: boolean | undefined;
|
|
178
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
179
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
178
180
|
} | undefined;
|
|
179
181
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
180
182
|
}, ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
|
|
@@ -183,6 +185,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
183
185
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
184
186
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
185
187
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
188
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
186
189
|
};
|
|
187
190
|
sharedState: {
|
|
188
191
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -500,6 +503,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
500
503
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
501
504
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
502
505
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
506
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
503
507
|
};
|
|
504
508
|
sharedState: {
|
|
505
509
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -563,6 +567,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
563
567
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
564
568
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
565
569
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
570
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
566
571
|
};
|
|
567
572
|
sharedState: {
|
|
568
573
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -828,6 +833,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
828
833
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
829
834
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
830
835
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
836
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
831
837
|
};
|
|
832
838
|
sharedState: {
|
|
833
839
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -915,6 +921,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
915
921
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
916
922
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
917
923
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
924
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
918
925
|
};
|
|
919
926
|
sharedState: {
|
|
920
927
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -123,6 +123,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
123
123
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
124
124
|
sharedState: {
|
|
125
125
|
showContextPanel: boolean | undefined;
|
|
126
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
127
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
126
128
|
} | undefined;
|
|
127
129
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
128
130
|
}, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
|
|
@@ -131,6 +133,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
131
133
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
132
134
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
133
135
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
136
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
134
137
|
};
|
|
135
138
|
sharedState: {
|
|
136
139
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -448,6 +451,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
448
451
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
449
452
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
450
453
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
454
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
451
455
|
};
|
|
452
456
|
sharedState: {
|
|
453
457
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -511,6 +515,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
511
515
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
512
516
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
513
517
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
518
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
514
519
|
};
|
|
515
520
|
sharedState: {
|
|
516
521
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -776,6 +781,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
776
781
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
777
782
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
778
783
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
784
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
779
785
|
};
|
|
780
786
|
sharedState: {
|
|
781
787
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -863,6 +869,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
863
869
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
864
870
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
865
871
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
872
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
866
873
|
};
|
|
867
874
|
sharedState: {
|
|
868
875
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -221,6 +221,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
221
221
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
222
222
|
sharedState: {
|
|
223
223
|
showContextPanel: boolean | undefined;
|
|
224
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
225
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
224
226
|
} | undefined;
|
|
225
227
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
226
228
|
}, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined,
|
|
@@ -230,6 +232,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
230
232
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
231
233
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
232
234
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
235
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
233
236
|
};
|
|
234
237
|
sharedState: {
|
|
235
238
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -612,6 +615,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
612
615
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
613
616
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
614
617
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
618
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
615
619
|
};
|
|
616
620
|
sharedState: {
|
|
617
621
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -685,6 +689,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
685
689
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
686
690
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
687
691
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
692
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
688
693
|
};
|
|
689
694
|
sharedState: {
|
|
690
695
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -995,6 +1000,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
995
1000
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
996
1001
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
997
1002
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1003
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
998
1004
|
};
|
|
999
1005
|
sharedState: {
|
|
1000
1006
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1095,6 +1101,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1095
1101
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1096
1102
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
1097
1103
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1104
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
1098
1105
|
};
|
|
1099
1106
|
sharedState: {
|
|
1100
1107
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -273,6 +273,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
273
273
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
274
274
|
sharedState: {
|
|
275
275
|
showContextPanel: boolean | undefined;
|
|
276
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
277
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
276
278
|
} | undefined;
|
|
277
279
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
278
280
|
}, ExtensionPluginOptions | undefined> | undefined,
|
|
@@ -282,6 +284,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
282
284
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
283
285
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
284
286
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
287
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
285
288
|
};
|
|
286
289
|
sharedState: {
|
|
287
290
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -664,6 +667,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
664
667
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
665
668
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
666
669
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
670
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
667
671
|
};
|
|
668
672
|
sharedState: {
|
|
669
673
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -737,6 +741,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
737
741
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
738
742
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
739
743
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
744
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
740
745
|
};
|
|
741
746
|
sharedState: {
|
|
742
747
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1047,6 +1052,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1047
1052
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1048
1053
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
1049
1054
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1055
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
1050
1056
|
};
|
|
1051
1057
|
sharedState: {
|
|
1052
1058
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1147,6 +1153,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1147
1153
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1148
1154
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
1149
1155
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1156
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
1150
1157
|
};
|
|
1151
1158
|
sharedState: {
|
|
1152
1159
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -221,6 +221,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
221
221
|
dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
|
|
222
222
|
sharedState: {
|
|
223
223
|
showContextPanel: boolean | undefined;
|
|
224
|
+
extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
225
|
+
processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
|
|
224
226
|
} | undefined;
|
|
225
227
|
actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
|
|
226
228
|
}, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined,
|
|
@@ -230,6 +232,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
230
232
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
231
233
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
232
234
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
235
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
233
236
|
};
|
|
234
237
|
sharedState: {
|
|
235
238
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -612,6 +615,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
612
615
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
613
616
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
614
617
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
618
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
615
619
|
};
|
|
616
620
|
sharedState: {
|
|
617
621
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -685,6 +689,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
685
689
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
686
690
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
687
691
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
692
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
688
693
|
};
|
|
689
694
|
sharedState: {
|
|
690
695
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -995,6 +1000,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
995
1000
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
996
1001
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
997
1002
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1003
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
998
1004
|
};
|
|
999
1005
|
sharedState: {
|
|
1000
1006
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1095,6 +1101,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1095
1101
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1096
1102
|
showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
|
|
1097
1103
|
closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
|
|
1104
|
+
closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
|
|
1098
1105
|
};
|
|
1099
1106
|
sharedState: {
|
|
1100
1107
|
contents: import("react").ReactNode[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.4.
|
|
3
|
+
"version": "204.4.3",
|
|
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
|
-
"@atlaskit/editor-performance-metrics": "2.0.
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "2.0.
|
|
51
|
+
"@atlaskit/editor-performance-metrics": "^2.0.0",
|
|
52
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.0.0",
|
|
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",
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@af/editor-libra": "
|
|
88
|
-
"@af/visual-regression": "
|
|
87
|
+
"@af/editor-libra": "^0.40.0",
|
|
88
|
+
"@af/visual-regression": "^1.3.0",
|
|
89
89
|
"@atlaskit/adf-utils": "^19.19.0",
|
|
90
90
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
91
|
-
"@atlaskit/collab-provider": "10.9.
|
|
92
|
-
"@atlaskit/editor-plugin-annotation": "2.1.
|
|
93
|
-
"@atlaskit/editor-plugin-card": "^5.
|
|
91
|
+
"@atlaskit/collab-provider": "^10.9.0",
|
|
92
|
+
"@atlaskit/editor-plugin-annotation": "^2.1.0",
|
|
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
|
-
"@atlaskit/visual-regression": "
|
|
108
|
+
"@atlaskit/visual-regression": "^0.10.0",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.31.0",
|
|
110
|
-
"@atlassian/feature-flags-test-utils": "
|
|
111
|
-
"@atlassian/search-provider": "3.0.
|
|
110
|
+
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
111
|
+
"@atlassian/search-provider": "^3.0.0",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^6.4.0",
|
|
114
114
|
"@testing-library/react": "^13.4.0",
|
|
@@ -350,6 +350,10 @@
|
|
|
350
350
|
"type": "boolean",
|
|
351
351
|
"referenceOnly": true
|
|
352
352
|
},
|
|
353
|
+
"platform_editor_disable_context_panel_animation": {
|
|
354
|
+
"type": "boolean",
|
|
355
|
+
"referenceOnly": true
|
|
356
|
+
},
|
|
353
357
|
"platform_editor_advanced_layouts_a11y": {
|
|
354
358
|
"type": "boolean",
|
|
355
359
|
"referenceOnly": true
|
|
@@ -513,6 +517,14 @@
|
|
|
513
517
|
"platform_editor_table_column_selected_state_fix": {
|
|
514
518
|
"type": "boolean",
|
|
515
519
|
"referenceOnly": true
|
|
520
|
+
},
|
|
521
|
+
"platform_editor_elements_dnd_select_node_on_drag": {
|
|
522
|
+
"type": "boolean",
|
|
523
|
+
"referenceOnly": true
|
|
524
|
+
},
|
|
525
|
+
"platform_editor_non_macros_copy_and_paste_fix": {
|
|
526
|
+
"type": "boolean",
|
|
527
|
+
"referenceOnly": true
|
|
516
528
|
}
|
|
517
529
|
},
|
|
518
530
|
"stricter": {
|