@atlaskit/editor-core 193.5.0 → 193.5.5
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 +12 -0
- package/composable-editor/package.json +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/cjs/ui/ContextPanel/index.js +25 -21
- package/dist/cjs/ui/WithHelpTrigger/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/es2019/ui/ContextPanel/index.js +27 -23
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/esm/ui/ContextPanel/index.js +25 -21
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +3 -2
- package/dist/types/create-editor/WithEditorView.d.ts +1 -1
- package/dist/types/create-editor/create-preset.d.ts +238 -18
- package/dist/types/presets/default.d.ts +190 -14
- package/dist/types/presets/universal.d.ts +238 -18
- package/dist/types/presets/useUniversalPreset.d.ts +872 -652
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types/ui/ToolbarHelp/index.d.ts +2 -2
- package/dist/types/ui/WithHelpTrigger/index.d.ts +4 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +3 -2
- package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +273 -13
- package/dist/types-ts4.5/presets/default.d.ts +218 -10
- package/dist/types-ts4.5/presets/universal.d.ts +273 -13
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +920 -660
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +4 -0
- package/editor/package.json +1 -1
- package/editor-context/package.json +1 -1
- package/element-browser/package.json +1 -1
- package/labs-next/package.json +1 -1
- package/messages/package.json +1 -1
- package/package.json +8 -8
- package/preset-default/package.json +1 -1
- package/preset-universal/package.json +1 -1
- package/test-utils/package.json +1 -1
- package/use-preset/package.json +1 -1
- package/version-wrapper/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83044) [`cdab77009f9e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cdab77009f9e) - Fix leftover react 18 type issues in editor-core, editor-plugin-extension and date
|
|
8
|
+
|
|
9
|
+
## 193.5.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
14
|
+
|
|
3
15
|
## 193.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -42,7 +42,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42
42
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
43
43
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
44
44
|
var CommentEditorMargin = 14;
|
|
45
|
-
var
|
|
45
|
+
var commentEditorStyles = (0, _react2.css)({
|
|
46
46
|
display: 'flex',
|
|
47
47
|
flexDirection: 'column',
|
|
48
48
|
'.less-margin .ProseMirror': {
|
|
@@ -72,7 +72,7 @@ var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)(
|
|
|
72
72
|
padding: "var(--ds-space-250, 20px)"
|
|
73
73
|
}, _commonStyles.tableCommentEditorStyles));
|
|
74
74
|
ContentArea.displayName = 'ContentArea';
|
|
75
|
-
var
|
|
75
|
+
var secondaryToolbarStyles = (0, _react2.css)({
|
|
76
76
|
boxSizing: 'border-box',
|
|
77
77
|
justifyContent: 'flex-end',
|
|
78
78
|
alignItems: 'center',
|
|
@@ -146,7 +146,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
146
146
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
147
147
|
animate: maxContentSizeReached
|
|
148
148
|
}, (0, _react2.jsx)("div", {
|
|
149
|
-
css: [
|
|
149
|
+
css: [commentEditorStyles, (0, _react2.css)({
|
|
150
150
|
minHeight: "".concat(minHeight, "px")
|
|
151
151
|
})],
|
|
152
152
|
className: "akEditor",
|
|
@@ -211,7 +211,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
211
211
|
pluginHooks: pluginHooks
|
|
212
212
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
213
213
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
214
|
-
css:
|
|
214
|
+
css: secondaryToolbarStyles,
|
|
215
215
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
216
216
|
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
|
|
217
217
|
appearance: "primary",
|
|
@@ -330,7 +330,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
330
330
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
331
331
|
animate: maxContentSizeReached
|
|
332
332
|
}, (0, _react2.jsx)("div", {
|
|
333
|
-
css: [
|
|
333
|
+
css: [commentEditorStyles, (0, _react2.css)({
|
|
334
334
|
minHeight: "".concat(minHeight, "px")
|
|
335
335
|
})],
|
|
336
336
|
className: "akEditor",
|
|
@@ -395,7 +395,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
395
395
|
pluginHooks: pluginHooks
|
|
396
396
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
397
397
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
398
|
-
css:
|
|
398
|
+
css: secondaryToolbarStyles,
|
|
399
399
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
400
400
|
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
|
|
401
401
|
appearance: "primary",
|
|
@@ -233,27 +233,31 @@ function ContextPanelWithActions(_ref2) {
|
|
|
233
233
|
editorView: editorView
|
|
234
234
|
}, props));
|
|
235
235
|
}
|
|
236
|
-
return (
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
236
|
+
return (
|
|
237
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
238
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
239
|
+
(0, _react2.jsx)(_WithPluginState.default, {
|
|
240
|
+
eventDispatcher: eventDispatcher,
|
|
241
|
+
plugins: {
|
|
242
|
+
contextPanel: contextPanelPluginKey,
|
|
243
|
+
widthState: widthPluginKey
|
|
244
|
+
},
|
|
245
|
+
render: function render(_ref3) {
|
|
246
|
+
var contextPanel = _ref3.contextPanel,
|
|
247
|
+
widthState = _ref3.widthState;
|
|
248
|
+
var firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
249
|
+
var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
|
|
250
|
+
containerWidth: width,
|
|
251
|
+
contentBreakoutModes: editorView ? (0, _document.getChildBreakoutModes)(editorView.state.doc, editorView.state.schema) : []
|
|
252
|
+
});
|
|
253
|
+
return (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
|
|
254
|
+
editorView: editorView,
|
|
255
|
+
pluginContent: firstContent,
|
|
256
|
+
editorWidth: editorWidth
|
|
257
|
+
}));
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
);
|
|
257
261
|
}
|
|
258
262
|
function ContextPanel(props) {
|
|
259
263
|
return (0, _react2.jsx)(_WithEditorActions.default, {
|
|
@@ -31,7 +31,8 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
31
31
|
}
|
|
32
32
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
33
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openHelp", function () {
|
|
34
|
-
var
|
|
34
|
+
var _ref = _this.context,
|
|
35
|
+
editorActions = _ref.editorActions;
|
|
35
36
|
var dispatch = (0, _eventDispatcher.createDispatch)(editorActions.eventDispatcher);
|
|
36
37
|
dispatch(_utils.analyticsEventKey, {
|
|
37
38
|
payload: {
|
|
@@ -24,7 +24,7 @@ import Toolbar from '../../Toolbar';
|
|
|
24
24
|
import WithFlash from '../../WithFlash';
|
|
25
25
|
import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
|
|
26
26
|
const CommentEditorMargin = 14;
|
|
27
|
-
const
|
|
27
|
+
const commentEditorStyles = css({
|
|
28
28
|
display: 'flex',
|
|
29
29
|
flexDirection: 'column',
|
|
30
30
|
'.less-margin .ProseMirror': {
|
|
@@ -54,7 +54,7 @@ const ContentArea = createEditorContentStyle(css({
|
|
|
54
54
|
padding: "var(--ds-space-250, 20px)"
|
|
55
55
|
}, tableCommentEditorStyles));
|
|
56
56
|
ContentArea.displayName = 'ContentArea';
|
|
57
|
-
const
|
|
57
|
+
const secondaryToolbarStyles = css({
|
|
58
58
|
boxSizing: 'border-box',
|
|
59
59
|
justifyContent: 'flex-end',
|
|
60
60
|
alignItems: 'center',
|
|
@@ -125,7 +125,7 @@ class Editor extends React.Component {
|
|
|
125
125
|
return jsx(WithFlash, {
|
|
126
126
|
animate: maxContentSizeReached
|
|
127
127
|
}, jsx("div", {
|
|
128
|
-
css: [
|
|
128
|
+
css: [commentEditorStyles, css({
|
|
129
129
|
minHeight: `${minHeight}px`
|
|
130
130
|
})],
|
|
131
131
|
className: "akEditor",
|
|
@@ -189,7 +189,7 @@ class Editor extends React.Component {
|
|
|
189
189
|
pluginHooks: pluginHooks
|
|
190
190
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
191
191
|
}))), showSecondaryToolbar && jsx("div", {
|
|
192
|
-
css:
|
|
192
|
+
css: secondaryToolbarStyles,
|
|
193
193
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
194
194
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
195
195
|
appearance: "primary",
|
|
@@ -300,7 +300,7 @@ const EditorNext = props => {
|
|
|
300
300
|
return jsx(WithFlash, {
|
|
301
301
|
animate: maxContentSizeReached
|
|
302
302
|
}, jsx("div", {
|
|
303
|
-
css: [
|
|
303
|
+
css: [commentEditorStyles, css({
|
|
304
304
|
minHeight: `${minHeight}px`
|
|
305
305
|
})],
|
|
306
306
|
className: "akEditor",
|
|
@@ -364,7 +364,7 @@ const EditorNext = props => {
|
|
|
364
364
|
pluginHooks: pluginHooks
|
|
365
365
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
366
366
|
}))), showSecondaryToolbar && jsx("div", {
|
|
367
|
-
css:
|
|
367
|
+
css: secondaryToolbarStyles,
|
|
368
368
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
369
369
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
370
370
|
appearance: "primary",
|
|
@@ -206,29 +206,33 @@ function ContextPanelWithActions({
|
|
|
206
206
|
editorView: editorView
|
|
207
207
|
}, props));
|
|
208
208
|
}
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
209
|
+
return (
|
|
210
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
211
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
212
|
+
jsx(WithPluginState, {
|
|
213
|
+
eventDispatcher: eventDispatcher,
|
|
214
|
+
plugins: {
|
|
215
|
+
contextPanel: contextPanelPluginKey,
|
|
216
|
+
widthState: widthPluginKey
|
|
217
|
+
},
|
|
218
|
+
render: ({
|
|
219
|
+
contextPanel,
|
|
220
|
+
widthState
|
|
221
|
+
}) => {
|
|
222
|
+
const firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
223
|
+
const editorWidth = {
|
|
224
|
+
...widthState,
|
|
225
|
+
containerWidth: width,
|
|
226
|
+
contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
|
|
227
|
+
};
|
|
228
|
+
return jsx(SwappableContentArea, _extends({}, props, {
|
|
229
|
+
editorView: editorView,
|
|
230
|
+
pluginContent: firstContent,
|
|
231
|
+
editorWidth: editorWidth
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
);
|
|
232
236
|
}
|
|
233
237
|
export default function ContextPanel(props) {
|
|
234
238
|
return jsx(WithEditorActions, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.5.
|
|
2
|
+
export const version = "193.5.5";
|
|
@@ -33,7 +33,7 @@ import Toolbar from '../../Toolbar';
|
|
|
33
33
|
import WithFlash from '../../WithFlash';
|
|
34
34
|
import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
|
|
35
35
|
var CommentEditorMargin = 14;
|
|
36
|
-
var
|
|
36
|
+
var commentEditorStyles = css({
|
|
37
37
|
display: 'flex',
|
|
38
38
|
flexDirection: 'column',
|
|
39
39
|
'.less-margin .ProseMirror': {
|
|
@@ -63,7 +63,7 @@ var ContentArea = createEditorContentStyle(css({
|
|
|
63
63
|
padding: "var(--ds-space-250, 20px)"
|
|
64
64
|
}, tableCommentEditorStyles));
|
|
65
65
|
ContentArea.displayName = 'ContentArea';
|
|
66
|
-
var
|
|
66
|
+
var secondaryToolbarStyles = css({
|
|
67
67
|
boxSizing: 'border-box',
|
|
68
68
|
justifyContent: 'flex-end',
|
|
69
69
|
alignItems: 'center',
|
|
@@ -137,7 +137,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
137
137
|
return jsx(WithFlash, {
|
|
138
138
|
animate: maxContentSizeReached
|
|
139
139
|
}, jsx("div", {
|
|
140
|
-
css: [
|
|
140
|
+
css: [commentEditorStyles, css({
|
|
141
141
|
minHeight: "".concat(minHeight, "px")
|
|
142
142
|
})],
|
|
143
143
|
className: "akEditor",
|
|
@@ -202,7 +202,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
202
202
|
pluginHooks: pluginHooks
|
|
203
203
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
204
204
|
}))), showSecondaryToolbar && jsx("div", {
|
|
205
|
-
css:
|
|
205
|
+
css: secondaryToolbarStyles,
|
|
206
206
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
207
207
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
208
208
|
appearance: "primary",
|
|
@@ -321,7 +321,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
321
321
|
return jsx(WithFlash, {
|
|
322
322
|
animate: maxContentSizeReached
|
|
323
323
|
}, jsx("div", {
|
|
324
|
-
css: [
|
|
324
|
+
css: [commentEditorStyles, css({
|
|
325
325
|
minHeight: "".concat(minHeight, "px")
|
|
326
326
|
})],
|
|
327
327
|
className: "akEditor",
|
|
@@ -386,7 +386,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
386
386
|
pluginHooks: pluginHooks
|
|
387
387
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
388
388
|
}))), showSecondaryToolbar && jsx("div", {
|
|
389
|
-
css:
|
|
389
|
+
css: secondaryToolbarStyles,
|
|
390
390
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
391
391
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
392
392
|
appearance: "primary",
|
|
@@ -225,27 +225,31 @@ function ContextPanelWithActions(_ref2) {
|
|
|
225
225
|
editorView: editorView
|
|
226
226
|
}, props));
|
|
227
227
|
}
|
|
228
|
-
return
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
228
|
+
return (
|
|
229
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
230
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
231
|
+
jsx(WithPluginState, {
|
|
232
|
+
eventDispatcher: eventDispatcher,
|
|
233
|
+
plugins: {
|
|
234
|
+
contextPanel: contextPanelPluginKey,
|
|
235
|
+
widthState: widthPluginKey
|
|
236
|
+
},
|
|
237
|
+
render: function render(_ref3) {
|
|
238
|
+
var contextPanel = _ref3.contextPanel,
|
|
239
|
+
widthState = _ref3.widthState;
|
|
240
|
+
var firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
241
|
+
var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
|
|
242
|
+
containerWidth: width,
|
|
243
|
+
contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
|
|
244
|
+
});
|
|
245
|
+
return jsx(SwappableContentArea, _extends({}, props, {
|
|
246
|
+
editorView: editorView,
|
|
247
|
+
pluginContent: firstContent,
|
|
248
|
+
editorWidth: editorWidth
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
);
|
|
249
253
|
}
|
|
250
254
|
export default function ContextPanel(props) {
|
|
251
255
|
return jsx(WithEditorActions, {
|
|
@@ -24,7 +24,8 @@ var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
|
|
|
24
24
|
}
|
|
25
25
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
26
26
|
_defineProperty(_assertThisInitialized(_this), "openHelp", function () {
|
|
27
|
-
var
|
|
27
|
+
var _ref = _this.context,
|
|
28
|
+
editorActions = _ref.editorActions;
|
|
28
29
|
var dispatch = createDispatch(editorActions.eventDispatcher);
|
|
29
30
|
dispatch(analyticsEventKey, {
|
|
30
31
|
payload: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.5.
|
|
2
|
+
export var version = "193.5.5";
|
|
@@ -74,6 +74,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
74
74
|
static contextTypes: {
|
|
75
75
|
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
76
|
};
|
|
77
|
+
context: EditorReactContext;
|
|
77
78
|
private canDispatchTransactions;
|
|
78
79
|
private focusTimeoutId?;
|
|
79
80
|
private reliabilityInterval?;
|
|
@@ -116,7 +117,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
116
117
|
private editor;
|
|
117
118
|
render(): JSX.Element;
|
|
118
119
|
}
|
|
119
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps
|
|
120
|
-
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps
|
|
120
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps>> & {
|
|
121
|
+
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps>;
|
|
121
122
|
};
|
|
122
123
|
export default _default;
|
|
@@ -3,4 +3,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
3
3
|
export interface WithEditorViewInternalProps {
|
|
4
4
|
editorView?: EditorView | undefined;
|
|
5
5
|
}
|
|
6
|
-
export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P,
|
|
6
|
+
export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P, keyof WithEditorViewInternalProps>>) => JSX.Element;
|