@atlaskit/editor-core 190.1.23 → 190.1.24
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/composable-editor/editor-internal.js +11 -1
- package/dist/cjs/create-editor/ReactEditorView.js +6 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +11 -1
- package/dist/es2019/create-editor/ReactEditorView.js +6 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +11 -1
- package/dist/esm/create-editor/ReactEditorView.js +6 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.1.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#63488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63488) [`8fbd518c208f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8fbd518c208f) - [ED-20569] Add tooling to help the extension plugin extraction on confluence
|
|
8
|
+
- [#63353](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63353) [`6e9371645615`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e9371645615) - Clean up of platform.linking-platform.smart-card.cross-join feature flag
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 190.1.23
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -39,7 +39,17 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
39
39
|
onEditorDestroyed = _ref.onEditorDestroyed,
|
|
40
40
|
preset = _ref.preset;
|
|
41
41
|
var Component = (0, _createEditor.getUiComponent)(props.appearance);
|
|
42
|
-
var
|
|
42
|
+
var _setInternalEditorApi = (0, _context.useSetPresetContext)();
|
|
43
|
+
var setEditorApi = (0, _react.useCallback)(function (api) {
|
|
44
|
+
if (_setInternalEditorApi) {
|
|
45
|
+
_setInternalEditorApi(api);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
49
|
+
// We may clean up this code when EditorActions deprecation process starts
|
|
50
|
+
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
51
|
+
editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
52
|
+
}, [_setInternalEditorApi, editorActions]);
|
|
43
53
|
var overriddenEditorProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
44
54
|
onSave: props.onSave ? handleSave : undefined,
|
|
45
55
|
// noop all analytic events, even if a handler is still passed.
|
|
@@ -536,7 +536,12 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
536
536
|
getEditorState: _this.getEditorState,
|
|
537
537
|
getEditorView: _this.getEditorView
|
|
538
538
|
});
|
|
539
|
-
|
|
539
|
+
var api = _this.pluginInjectionAPI.api();
|
|
540
|
+
(_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 || _props$setEditorApi.call(props, api);
|
|
541
|
+
if (props.editorProps.editorActions) {
|
|
542
|
+
// @ts-expect-error
|
|
543
|
+
props.editorProps.editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
544
|
+
}
|
|
540
545
|
_this.eventDispatcher = new _eventDispatcher.EventDispatcher();
|
|
541
546
|
_this.dispatch = (0, _eventDispatcher.createDispatch)(_this.eventDispatcher);
|
|
542
547
|
_this.errorReporter = (0, _createEditor.createErrorReporter)(props.editorProps.errorReporterHandler);
|
|
@@ -31,7 +31,17 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
31
31
|
}) => {
|
|
32
32
|
var _props$performanceTra, _props$performanceTra2, _props$performanceTra3, _props$performanceTra4;
|
|
33
33
|
const Component = getUiComponent(props.appearance);
|
|
34
|
-
const
|
|
34
|
+
const _setInternalEditorApi = useSetPresetContext();
|
|
35
|
+
const setEditorApi = useCallback(api => {
|
|
36
|
+
if (_setInternalEditorApi) {
|
|
37
|
+
_setInternalEditorApi(api);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
41
|
+
// We may clean up this code when EditorActions deprecation process starts
|
|
42
|
+
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
43
|
+
editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
44
|
+
}, [_setInternalEditorApi, editorActions]);
|
|
35
45
|
const overriddenEditorProps = {
|
|
36
46
|
...props,
|
|
37
47
|
onSave: props.onSave ? handleSave : undefined,
|
|
@@ -533,7 +533,12 @@ export class ReactEditorView extends React.Component {
|
|
|
533
533
|
getEditorState: this.getEditorState,
|
|
534
534
|
getEditorView: this.getEditorView
|
|
535
535
|
});
|
|
536
|
-
|
|
536
|
+
const api = this.pluginInjectionAPI.api();
|
|
537
|
+
(_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 ? void 0 : _props$setEditorApi.call(props, api);
|
|
538
|
+
if (props.editorProps.editorActions) {
|
|
539
|
+
// @ts-expect-error
|
|
540
|
+
props.editorProps.editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
541
|
+
}
|
|
537
542
|
this.eventDispatcher = new EventDispatcher();
|
|
538
543
|
this.dispatch = createDispatch(this.eventDispatcher);
|
|
539
544
|
this.errorReporter = createErrorReporter(props.editorProps.errorReporterHandler);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "190.1.
|
|
2
|
+
export const version = "190.1.24";
|
|
@@ -33,7 +33,17 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
33
33
|
onEditorDestroyed = _ref.onEditorDestroyed,
|
|
34
34
|
preset = _ref.preset;
|
|
35
35
|
var Component = getUiComponent(props.appearance);
|
|
36
|
-
var
|
|
36
|
+
var _setInternalEditorApi = useSetPresetContext();
|
|
37
|
+
var setEditorApi = useCallback(function (api) {
|
|
38
|
+
if (_setInternalEditorApi) {
|
|
39
|
+
_setInternalEditorApi(api);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
43
|
+
// We may clean up this code when EditorActions deprecation process starts
|
|
44
|
+
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
45
|
+
editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
46
|
+
}, [_setInternalEditorApi, editorActions]);
|
|
37
47
|
var overriddenEditorProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
38
48
|
onSave: props.onSave ? handleSave : undefined,
|
|
39
49
|
// noop all analytic events, even if a handler is still passed.
|
|
@@ -530,7 +530,12 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
530
530
|
getEditorState: _this.getEditorState,
|
|
531
531
|
getEditorView: _this.getEditorView
|
|
532
532
|
});
|
|
533
|
-
|
|
533
|
+
var api = _this.pluginInjectionAPI.api();
|
|
534
|
+
(_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 || _props$setEditorApi.call(props, api);
|
|
535
|
+
if (props.editorProps.editorActions) {
|
|
536
|
+
// @ts-expect-error
|
|
537
|
+
props.editorProps.editorActions.__EDITOR_INTERNALS_DO_NOT_USE__API = api;
|
|
538
|
+
}
|
|
534
539
|
_this.eventDispatcher = new EventDispatcher();
|
|
535
540
|
_this.dispatch = createDispatch(_this.eventDispatcher);
|
|
536
541
|
_this.errorReporter = createErrorReporter(props.editorProps.errorReporterHandler);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "190.1.
|
|
2
|
+
export var version = "190.1.24";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "190.1.
|
|
3
|
+
"version": "190.1.24",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/editor-plugin-alignment": "^0.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
60
60
|
"@atlaskit/editor-plugin-annotation": "^0.1.0",
|
|
61
|
-
"@atlaskit/editor-plugin-base": "^0.
|
|
61
|
+
"@atlaskit/editor-plugin-base": "^0.3.0",
|
|
62
62
|
"@atlaskit/editor-plugin-better-type-history": "^0.1.0",
|
|
63
63
|
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
64
64
|
"@atlaskit/editor-plugin-border": "^0.1.0",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"@af/visual-regression": "*",
|
|
179
179
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
180
180
|
"@atlaskit/code": "^15.1.0",
|
|
181
|
-
"@atlaskit/collab-provider": "9.20.
|
|
181
|
+
"@atlaskit/collab-provider": "9.20.7",
|
|
182
182
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
183
183
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
184
184
|
"@atlaskit/editor-palette": "1.5.2",
|