@atlaskit/editor-core 209.6.0 → 209.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/create-editor/ReactEditorView.js +7 -15
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +3 -1
- package/dist/cjs/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/cjs/ui/Toolbar/getPrimaryToolbarComponents.js +2 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +7 -15
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +3 -1
- package/dist/es2019/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/es2019/ui/Toolbar/getPrimaryToolbarComponents.js +2 -9
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +7 -15
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +3 -1
- package/dist/esm/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/esm/ui/Toolbar/getPrimaryToolbarComponents.js +2 -9
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +30 -2
- package/dist/types/presets/universal.d.ts +30 -2
- package/dist/types/presets/useUniversalPreset.d.ts +30 -2
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +36 -2
- package/dist/types-ts4.5/presets/universal.d.ts +36 -2
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +36 -2
- package/package.json +11 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b396b0bd2ed68`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b396b0bd2ed68) -
|
|
8
|
+
Cleanup code for ensuring the viewmode value is as expected.
|
|
9
|
+
|
|
10
|
+
## 209.6.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#195989](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195989)
|
|
15
|
+
[`4132618fc5097`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4132618fc5097) -
|
|
16
|
+
EDITOR-1146 Remove usage of FG `platform_editor_sort_decoration_fix_on_live_page`
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 209.6.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -121,11 +121,6 @@ function ReactEditorView(props) {
|
|
|
121
121
|
getEditorView: getEditorView,
|
|
122
122
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
123
123
|
}));
|
|
124
|
-
(0, _react.useLayoutEffect)(function () {
|
|
125
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_setup_editorapi_sync')) {
|
|
126
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
127
|
-
}
|
|
128
|
-
}, []);
|
|
129
124
|
var createEditorState = (0, _react.useCallback)(function (options) {
|
|
130
125
|
var _api$editorViewMode;
|
|
131
126
|
var schema;
|
|
@@ -152,9 +147,7 @@ function ReactEditorView(props) {
|
|
|
152
147
|
} else {
|
|
153
148
|
config.current = (0, _createEditor.processPluginsList)((0, _createPluginsList.default)(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
154
149
|
schema = (0, _createSchema.createSchema)(config.current);
|
|
155
|
-
|
|
156
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
157
|
-
}
|
|
150
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
158
151
|
}
|
|
159
152
|
var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
|
|
160
153
|
var plugins = (0, _createEditor.createPMPlugins)({
|
|
@@ -434,6 +427,12 @@ function ReactEditorView(props) {
|
|
|
434
427
|
};
|
|
435
428
|
}, [_dispatchTransaction, disabled, getCurrentEditorState]);
|
|
436
429
|
var createEditorView = (0, _react.useCallback)(function (node) {
|
|
430
|
+
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
431
|
+
// previously, this will contain the previous state of the editor.
|
|
432
|
+
var view = new _view.EditorView({
|
|
433
|
+
mount: node
|
|
434
|
+
}, getDirectEditorProps());
|
|
435
|
+
viewRef.current = view;
|
|
437
436
|
(0, _measureRender.measureRender)(_measureEnum.default.PROSEMIRROR_RENDERED, function (_ref3) {
|
|
438
437
|
var duration = _ref3.duration,
|
|
439
438
|
startTime = _ref3.startTime,
|
|
@@ -460,13 +459,6 @@ function ReactEditorView(props) {
|
|
|
460
459
|
});
|
|
461
460
|
}
|
|
462
461
|
});
|
|
463
|
-
|
|
464
|
-
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
465
|
-
// previously, this will contain the previous state of the editor.
|
|
466
|
-
var view = new _view.EditorView({
|
|
467
|
-
mount: node
|
|
468
|
-
}, getDirectEditorProps());
|
|
469
|
-
viewRef.current = view;
|
|
470
462
|
pluginInjectionAPI.current.onEditorViewUpdated({
|
|
471
463
|
newEditorState: viewRef.current.state,
|
|
472
464
|
oldEditorState: undefined
|
|
@@ -133,7 +133,9 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
133
133
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
134
134
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
135
135
|
}
|
|
136
|
-
var isEditorToolbarHidden =
|
|
136
|
+
var isEditorToolbarHidden =
|
|
137
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
138
|
+
(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') && !(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
137
139
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
138
140
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
139
141
|
exposure: true
|
|
@@ -10,7 +10,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
10
10
|
// Retrieve the initial config value from the editor view plugin preset
|
|
11
11
|
var getViewModeSync = function getViewModeSync(preset) {
|
|
12
12
|
var _editorViewModePlugin;
|
|
13
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state')) {
|
|
13
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') || (0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state_revert')) {
|
|
14
14
|
return undefined;
|
|
15
15
|
}
|
|
16
16
|
// @ts-expect-error - data is a private property
|
|
@@ -4,18 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getPrimaryToolbarComponents = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
9
8
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
10
9
|
// the latest
|
|
11
10
|
var getPrimaryToolbarComponents = exports.getPrimaryToolbarComponents = function getPrimaryToolbarComponents(editorAPI, components) {
|
|
12
|
-
|
|
13
|
-
var _editorAPI$primaryToo;
|
|
14
|
-
return {
|
|
15
|
-
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
16
|
-
};
|
|
17
|
-
}
|
|
11
|
+
var _editorAPI$primaryToo;
|
|
18
12
|
return {
|
|
19
|
-
components: components
|
|
13
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
20
14
|
};
|
|
21
15
|
};
|
|
@@ -93,11 +93,6 @@ export function ReactEditorView(props) {
|
|
|
93
93
|
getEditorView: getEditorView,
|
|
94
94
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
95
95
|
}));
|
|
96
|
-
useLayoutEffect(() => {
|
|
97
|
-
if (!fg('platform_editor_setup_editorapi_sync')) {
|
|
98
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
99
|
-
}
|
|
100
|
-
}, []);
|
|
101
96
|
const createEditorState = useCallback(options => {
|
|
102
97
|
var _api$editorViewMode;
|
|
103
98
|
let schema;
|
|
@@ -124,9 +119,7 @@ export function ReactEditorView(props) {
|
|
|
124
119
|
} else {
|
|
125
120
|
config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
126
121
|
schema = createSchema(config.current);
|
|
127
|
-
|
|
128
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
129
|
-
}
|
|
122
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
130
123
|
}
|
|
131
124
|
const {
|
|
132
125
|
contentTransformerProvider
|
|
@@ -403,6 +396,12 @@ export function ReactEditorView(props) {
|
|
|
403
396
|
};
|
|
404
397
|
}, [dispatchTransaction, disabled, getCurrentEditorState]);
|
|
405
398
|
const createEditorView = useCallback(node => {
|
|
399
|
+
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
400
|
+
// previously, this will contain the previous state of the editor.
|
|
401
|
+
const view = new EditorView({
|
|
402
|
+
mount: node
|
|
403
|
+
}, getDirectEditorProps());
|
|
404
|
+
viewRef.current = view;
|
|
406
405
|
measureRender(measurements.PROSEMIRROR_RENDERED, ({
|
|
407
406
|
duration,
|
|
408
407
|
startTime,
|
|
@@ -430,13 +429,6 @@ export function ReactEditorView(props) {
|
|
|
430
429
|
});
|
|
431
430
|
}
|
|
432
431
|
});
|
|
433
|
-
|
|
434
|
-
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
435
|
-
// previously, this will contain the previous state of the editor.
|
|
436
|
-
const view = new EditorView({
|
|
437
|
-
mount: node
|
|
438
|
-
}, getDirectEditorProps());
|
|
439
|
-
viewRef.current = view;
|
|
440
432
|
pluginInjectionAPI.current.onEditorViewUpdated({
|
|
441
433
|
newEditorState: viewRef.current.state,
|
|
442
434
|
oldEditorState: undefined
|
|
@@ -118,7 +118,9 @@ export const FullPageEditor = props => {
|
|
|
118
118
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
119
119
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
120
120
|
}
|
|
121
|
-
let isEditorToolbarHidden =
|
|
121
|
+
let isEditorToolbarHidden =
|
|
122
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
123
|
+
fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
122
124
|
const {
|
|
123
125
|
customPrimaryToolbarComponents
|
|
124
126
|
} = props;
|
|
@@ -2,7 +2,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
2
2
|
// Retrieve the initial config value from the editor view plugin preset
|
|
3
3
|
const getViewModeSync = preset => {
|
|
4
4
|
var _editorViewModePlugin;
|
|
5
|
-
if (!fg('platform_editor_sync_editor_view_mode_state')) {
|
|
5
|
+
if (!fg('platform_editor_sync_editor_view_mode_state') || fg('platform_editor_sync_editor_view_mode_state_revert')) {
|
|
6
6
|
return undefined;
|
|
7
7
|
}
|
|
8
8
|
// @ts-expect-error - data is a private property
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
4
2
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
5
3
|
// the latest
|
|
6
4
|
export const getPrimaryToolbarComponents = (editorAPI, components) => {
|
|
7
|
-
|
|
8
|
-
var _editorAPI$primaryToo, _editorAPI$primaryToo2;
|
|
9
|
-
return {
|
|
10
|
-
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 ? void 0 : (_editorAPI$primaryToo2 = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo2 === void 0 ? void 0 : _editorAPI$primaryToo2.components
|
|
11
|
-
};
|
|
12
|
-
}
|
|
5
|
+
var _editorAPI$primaryToo, _editorAPI$primaryToo2;
|
|
13
6
|
return {
|
|
14
|
-
components
|
|
7
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 ? void 0 : (_editorAPI$primaryToo2 = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo2 === void 0 ? void 0 : _editorAPI$primaryToo2.components
|
|
15
8
|
};
|
|
16
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "209.
|
|
2
|
+
export const version = "209.6.1";
|
|
@@ -111,11 +111,6 @@ export function ReactEditorView(props) {
|
|
|
111
111
|
getEditorView: getEditorView,
|
|
112
112
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
113
113
|
}));
|
|
114
|
-
useLayoutEffect(function () {
|
|
115
|
-
if (!fg('platform_editor_setup_editorapi_sync')) {
|
|
116
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
117
|
-
}
|
|
118
|
-
}, []);
|
|
119
114
|
var createEditorState = useCallback(function (options) {
|
|
120
115
|
var _api$editorViewMode;
|
|
121
116
|
var schema;
|
|
@@ -142,9 +137,7 @@ export function ReactEditorView(props) {
|
|
|
142
137
|
} else {
|
|
143
138
|
config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
144
139
|
schema = createSchema(config.current);
|
|
145
|
-
|
|
146
|
-
setEditorAPI(pluginInjectionAPI.current.api());
|
|
147
|
-
}
|
|
140
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
148
141
|
}
|
|
149
142
|
var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
|
|
150
143
|
var plugins = createPMPlugins({
|
|
@@ -424,6 +417,12 @@ export function ReactEditorView(props) {
|
|
|
424
417
|
};
|
|
425
418
|
}, [_dispatchTransaction, disabled, getCurrentEditorState]);
|
|
426
419
|
var createEditorView = useCallback(function (node) {
|
|
420
|
+
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
421
|
+
// previously, this will contain the previous state of the editor.
|
|
422
|
+
var view = new EditorView({
|
|
423
|
+
mount: node
|
|
424
|
+
}, getDirectEditorProps());
|
|
425
|
+
viewRef.current = view;
|
|
427
426
|
measureRender(measurements.PROSEMIRROR_RENDERED, function (_ref3) {
|
|
428
427
|
var duration = _ref3.duration,
|
|
429
428
|
startTime = _ref3.startTime,
|
|
@@ -450,13 +449,6 @@ export function ReactEditorView(props) {
|
|
|
450
449
|
});
|
|
451
450
|
}
|
|
452
451
|
});
|
|
453
|
-
|
|
454
|
-
// Creates the editor-view from this.editorState. If an editor has been mounted
|
|
455
|
-
// previously, this will contain the previous state of the editor.
|
|
456
|
-
var view = new EditorView({
|
|
457
|
-
mount: node
|
|
458
|
-
}, getDirectEditorProps());
|
|
459
|
-
viewRef.current = view;
|
|
460
452
|
pluginInjectionAPI.current.onEditorViewUpdated({
|
|
461
453
|
newEditorState: viewRef.current.state,
|
|
462
454
|
oldEditorState: undefined
|
|
@@ -123,7 +123,9 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
123
123
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
124
124
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
125
125
|
}
|
|
126
|
-
var isEditorToolbarHidden =
|
|
126
|
+
var isEditorToolbarHidden =
|
|
127
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
128
|
+
fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
127
129
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
128
130
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
129
131
|
exposure: true
|
|
@@ -3,7 +3,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
3
3
|
// Retrieve the initial config value from the editor view plugin preset
|
|
4
4
|
var getViewModeSync = function getViewModeSync(preset) {
|
|
5
5
|
var _editorViewModePlugin;
|
|
6
|
-
if (!fg('platform_editor_sync_editor_view_mode_state')) {
|
|
6
|
+
if (!fg('platform_editor_sync_editor_view_mode_state') || fg('platform_editor_sync_editor_view_mode_state_revert')) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
9
|
// @ts-expect-error - data is a private property
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
4
2
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
5
3
|
// the latest
|
|
6
4
|
export var getPrimaryToolbarComponents = function getPrimaryToolbarComponents(editorAPI, components) {
|
|
7
|
-
|
|
8
|
-
var _editorAPI$primaryToo;
|
|
9
|
-
return {
|
|
10
|
-
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
11
|
-
};
|
|
12
|
-
}
|
|
5
|
+
var _editorAPI$primaryToo;
|
|
13
6
|
return {
|
|
14
|
-
components: components
|
|
7
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
15
8
|
};
|
|
16
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "209.
|
|
2
|
+
export var version = "209.6.1";
|
|
@@ -120,7 +120,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
120
120
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
121
121
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
122
122
|
actions: {
|
|
123
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
123
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
124
124
|
};
|
|
125
125
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
126
126
|
sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
|
|
@@ -844,7 +844,35 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
844
844
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
845
845
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
846
846
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
847
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
847
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
848
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
849
|
+
sharedState: {
|
|
850
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
851
|
+
} | undefined;
|
|
852
|
+
commands: {
|
|
853
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
854
|
+
};
|
|
855
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
856
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
857
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
858
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
859
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
860
|
+
commands: {
|
|
861
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
862
|
+
};
|
|
863
|
+
}, undefined>>];
|
|
864
|
+
commands: {
|
|
865
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
866
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
867
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
868
|
+
};
|
|
869
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
870
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
871
|
+
actions: {
|
|
872
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
873
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
874
|
+
};
|
|
875
|
+
}, undefined>>];
|
|
848
876
|
commands: {
|
|
849
877
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
850
878
|
toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -171,7 +171,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
171
171
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
172
172
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
173
173
|
actions: {
|
|
174
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
174
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
175
175
|
};
|
|
176
176
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
177
177
|
sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
|
|
@@ -895,7 +895,35 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
895
895
|
}, FeatureFlags>>];
|
|
896
896
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
897
897
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
898
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
898
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
899
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
900
|
+
sharedState: {
|
|
901
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
902
|
+
} | undefined;
|
|
903
|
+
commands: {
|
|
904
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
905
|
+
};
|
|
906
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
907
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
908
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
909
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
910
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
911
|
+
commands: {
|
|
912
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
913
|
+
};
|
|
914
|
+
}, undefined>>];
|
|
915
|
+
commands: {
|
|
916
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
917
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
918
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
919
|
+
};
|
|
920
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
921
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
922
|
+
actions: {
|
|
923
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
924
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
925
|
+
};
|
|
926
|
+
}, undefined>>];
|
|
899
927
|
commands: {
|
|
900
928
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
901
929
|
toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -120,7 +120,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
120
120
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
121
121
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
122
122
|
actions: {
|
|
123
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
123
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
124
124
|
};
|
|
125
125
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
126
126
|
sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
|
|
@@ -844,7 +844,35 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
844
844
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
845
845
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
846
846
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
847
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
847
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
848
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
849
|
+
sharedState: {
|
|
850
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
851
|
+
} | undefined;
|
|
852
|
+
commands: {
|
|
853
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
854
|
+
};
|
|
855
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
856
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
857
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
858
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
859
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
860
|
+
commands: {
|
|
861
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
862
|
+
};
|
|
863
|
+
}, undefined>>];
|
|
864
|
+
commands: {
|
|
865
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
866
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
867
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
868
|
+
};
|
|
869
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
870
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
871
|
+
actions: {
|
|
872
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
873
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
874
|
+
};
|
|
875
|
+
}, undefined>>];
|
|
848
876
|
commands: {
|
|
849
877
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
850
878
|
toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -223,7 +223,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
223
223
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
224
224
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
225
225
|
actions: {
|
|
226
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
226
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
227
227
|
};
|
|
228
228
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
|
|
229
229
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
@@ -1091,7 +1091,41 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1091
1091
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1092
1092
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1093
1093
|
];
|
|
1094
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1094
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1095
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1096
|
+
dependencies: [
|
|
1097
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1098
|
+
sharedState: {
|
|
1099
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1100
|
+
} | undefined;
|
|
1101
|
+
commands: {
|
|
1102
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1103
|
+
};
|
|
1104
|
+
}, undefined>>,
|
|
1105
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1106
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1107
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1108
|
+
dependencies: [
|
|
1109
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1110
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1111
|
+
commands: {
|
|
1112
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1113
|
+
};
|
|
1114
|
+
}, undefined>>
|
|
1115
|
+
];
|
|
1116
|
+
commands: {
|
|
1117
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1118
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1119
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1120
|
+
};
|
|
1121
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1122
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1123
|
+
];
|
|
1124
|
+
actions: {
|
|
1125
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1126
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1127
|
+
};
|
|
1128
|
+
}, undefined>>
|
|
1095
1129
|
];
|
|
1096
1130
|
commands: {
|
|
1097
1131
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -274,7 +274,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
274
274
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
275
275
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
276
276
|
actions: {
|
|
277
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
277
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
278
278
|
};
|
|
279
279
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
|
|
280
280
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
@@ -1142,7 +1142,41 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1142
1142
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1143
1143
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1144
1144
|
];
|
|
1145
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1145
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1146
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1147
|
+
dependencies: [
|
|
1148
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1149
|
+
sharedState: {
|
|
1150
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1151
|
+
} | undefined;
|
|
1152
|
+
commands: {
|
|
1153
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1154
|
+
};
|
|
1155
|
+
}, undefined>>,
|
|
1156
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1157
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1158
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1159
|
+
dependencies: [
|
|
1160
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1161
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1162
|
+
commands: {
|
|
1163
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1164
|
+
};
|
|
1165
|
+
}, undefined>>
|
|
1166
|
+
];
|
|
1167
|
+
commands: {
|
|
1168
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1169
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1170
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1171
|
+
};
|
|
1172
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1173
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1174
|
+
];
|
|
1175
|
+
actions: {
|
|
1176
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1177
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1178
|
+
};
|
|
1179
|
+
}, undefined>>
|
|
1146
1180
|
];
|
|
1147
1181
|
commands: {
|
|
1148
1182
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -223,7 +223,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
223
223
|
pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
|
|
224
224
|
dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
|
|
225
225
|
actions: {
|
|
226
|
-
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
226
|
+
insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
|
|
227
227
|
};
|
|
228
228
|
}, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
|
|
229
229
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
|
|
@@ -1091,7 +1091,41 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1091
1091
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1092
1092
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1093
1093
|
];
|
|
1094
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1094
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1095
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1096
|
+
dependencies: [
|
|
1097
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1098
|
+
sharedState: {
|
|
1099
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1100
|
+
} | undefined;
|
|
1101
|
+
commands: {
|
|
1102
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1103
|
+
};
|
|
1104
|
+
}, undefined>>,
|
|
1105
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1106
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1107
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1108
|
+
dependencies: [
|
|
1109
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1110
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1111
|
+
commands: {
|
|
1112
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1113
|
+
};
|
|
1114
|
+
}, undefined>>
|
|
1115
|
+
];
|
|
1116
|
+
commands: {
|
|
1117
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1118
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1119
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1120
|
+
};
|
|
1121
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1122
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1123
|
+
];
|
|
1124
|
+
actions: {
|
|
1125
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1126
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1127
|
+
};
|
|
1128
|
+
}, undefined>>
|
|
1095
1129
|
];
|
|
1096
1130
|
commands: {
|
|
1097
1131
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "209.6.
|
|
3
|
+
"version": "209.6.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
55
55
|
"@atlaskit/emoji": "^69.3.0",
|
|
56
|
-
"@atlaskit/icon": "^27.
|
|
56
|
+
"@atlaskit/icon": "^27.10.0",
|
|
57
57
|
"@atlaskit/link": "^3.2.0",
|
|
58
|
-
"@atlaskit/media-card": "^79.
|
|
58
|
+
"@atlaskit/media-card": "^79.5.0",
|
|
59
59
|
"@atlaskit/mention": "^24.2.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
|
-
"@atlaskit/react-ufo": "^4.
|
|
62
|
+
"@atlaskit/react-ufo": "^4.2.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^9.25.0",
|
|
65
65
|
"@atlaskit/tokens": "^6.0.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.4.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^107.
|
|
81
|
+
"@atlaskit/editor-common": "^107.18.0",
|
|
82
82
|
"@atlaskit/link-provider": "^3.4.0",
|
|
83
83
|
"@atlaskit/media-core": "^37.0.0",
|
|
84
84
|
"react": "^18.2.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"@af/visual-regression": "workspace:^",
|
|
91
91
|
"@atlaskit/adf-utils": "^19.20.0",
|
|
92
92
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
93
|
-
"@atlaskit/collab-provider": "^11.
|
|
94
|
-
"@atlaskit/editor-plugin-annotation": "^3.
|
|
93
|
+
"@atlaskit/collab-provider": "^11.2.0",
|
|
94
|
+
"@atlaskit/editor-plugin-annotation": "^3.2.0",
|
|
95
95
|
"@atlaskit/editor-plugin-card": "^7.2.0",
|
|
96
96
|
"@atlaskit/editor-plugin-list": "^5.1.0",
|
|
97
97
|
"@atlaskit/editor-plugin-paste": "^4.1.0",
|
|
@@ -126,7 +126,6 @@
|
|
|
126
126
|
"raf-stub": "^2.0.1",
|
|
127
127
|
"react": "^18.2.0",
|
|
128
128
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
129
|
-
"typescript": "~5.4.2",
|
|
130
129
|
"url-search-params": "^0.10.0"
|
|
131
130
|
},
|
|
132
131
|
"techstack": {
|
|
@@ -164,6 +163,9 @@
|
|
|
164
163
|
"platform_editor_sync_editor_view_mode_state": {
|
|
165
164
|
"type": "boolean"
|
|
166
165
|
},
|
|
166
|
+
"platform_editor_sync_editor_view_mode_state_revert": {
|
|
167
|
+
"type": "boolean"
|
|
168
|
+
},
|
|
167
169
|
"annotations_defensive_node_name_calculations": {
|
|
168
170
|
"type": "boolean",
|
|
169
171
|
"referenceOnly": "true"
|
|
@@ -265,9 +267,6 @@
|
|
|
265
267
|
"type": "boolean",
|
|
266
268
|
"referenceOnly": true
|
|
267
269
|
},
|
|
268
|
-
"platform_editor_setup_editorapi_sync": {
|
|
269
|
-
"type": "boolean"
|
|
270
|
-
},
|
|
271
270
|
"platform_editor_disable_context_panel_animation": {
|
|
272
271
|
"type": "boolean",
|
|
273
272
|
"referenceOnly": true
|
|
@@ -337,10 +336,6 @@
|
|
|
337
336
|
"type": "boolean",
|
|
338
337
|
"referenceOnly": true
|
|
339
338
|
},
|
|
340
|
-
"platform_editor_sort_decoration_fix_on_live_page": {
|
|
341
|
-
"type": "boolean",
|
|
342
|
-
"referenceOnly": true
|
|
343
|
-
},
|
|
344
339
|
"platform_editor_querySelector_fix_table_renderer": {
|
|
345
340
|
"type": "boolean",
|
|
346
341
|
"referenceOnly": true
|
|
@@ -394,10 +389,6 @@
|
|
|
394
389
|
"type": "boolean",
|
|
395
390
|
"referenceOnly": true
|
|
396
391
|
},
|
|
397
|
-
"editor_a11y_remove_redundant_wrap_icon_label": {
|
|
398
|
-
"type": "boolean",
|
|
399
|
-
"referenceOnly": true
|
|
400
|
-
},
|
|
401
392
|
"platform_editor_tables_numbered_column_correction": {
|
|
402
393
|
"type": "boolean",
|
|
403
394
|
"referenceOnly": true
|