@atlaskit/editor-core 209.6.4 → 209.6.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 +8 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -8
- 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 +1 -8
- 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 +1 -8
- 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 +87 -3
- package/dist/types/presets/universal.d.ts +87 -3
- package/dist/types/presets/useUniversalPreset.d.ts +87 -3
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +105 -3
- package/dist/types-ts4.5/presets/universal.d.ts +105 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +105 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e75117731bdb3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e75117731bdb3) -
|
|
8
|
+
Cleanup code for ensuring the viewmode value is as expected.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 209.6.4
|
|
4
12
|
|
|
5
13
|
### Patch 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)({
|
|
@@ -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
|
|
@@ -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.6.
|
|
2
|
+
export const version = "209.6.4";
|
|
@@ -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({
|
|
@@ -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.6.
|
|
2
|
+
export var version = "209.6.4";
|
|
@@ -817,7 +817,35 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
817
817
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
818
818
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
819
819
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
820
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
820
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
821
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
822
|
+
sharedState: {
|
|
823
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
824
|
+
} | undefined;
|
|
825
|
+
commands: {
|
|
826
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
827
|
+
};
|
|
828
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
829
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
830
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
831
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
832
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
833
|
+
commands: {
|
|
834
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
835
|
+
};
|
|
836
|
+
}, undefined>>];
|
|
837
|
+
commands: {
|
|
838
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
839
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
840
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
841
|
+
};
|
|
842
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
843
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
844
|
+
actions: {
|
|
845
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
846
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
847
|
+
};
|
|
848
|
+
}, undefined>>];
|
|
821
849
|
actions?: {
|
|
822
850
|
suppressToolbar?: (() => boolean) | undefined;
|
|
823
851
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -969,7 +997,35 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
969
997
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
970
998
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
971
999
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
972
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1000
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1001
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1002
|
+
sharedState: {
|
|
1003
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
commands: {
|
|
1006
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1007
|
+
};
|
|
1008
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1009
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1010
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1011
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1012
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1013
|
+
commands: {
|
|
1014
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1015
|
+
};
|
|
1016
|
+
}, undefined>>];
|
|
1017
|
+
commands: {
|
|
1018
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1019
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1020
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1021
|
+
};
|
|
1022
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1023
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1024
|
+
actions: {
|
|
1025
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1026
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1027
|
+
};
|
|
1028
|
+
}, undefined>>];
|
|
973
1029
|
actions?: {
|
|
974
1030
|
suppressToolbar?: (() => boolean) | undefined;
|
|
975
1031
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1076,7 +1132,35 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1076
1132
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1077
1133
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1078
1134
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1079
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1135
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1136
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1137
|
+
sharedState: {
|
|
1138
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1139
|
+
} | undefined;
|
|
1140
|
+
commands: {
|
|
1141
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1142
|
+
};
|
|
1143
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1144
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1145
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1146
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1147
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1148
|
+
commands: {
|
|
1149
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1150
|
+
};
|
|
1151
|
+
}, undefined>>];
|
|
1152
|
+
commands: {
|
|
1153
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1154
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1155
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1156
|
+
};
|
|
1157
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1158
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1159
|
+
actions: {
|
|
1160
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1161
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1162
|
+
};
|
|
1163
|
+
}, undefined>>];
|
|
1080
1164
|
actions?: {
|
|
1081
1165
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1082
1166
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -868,7 +868,35 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
868
868
|
}, FeatureFlags>>];
|
|
869
869
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
870
870
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
871
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
871
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
872
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
873
|
+
sharedState: {
|
|
874
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
875
|
+
} | undefined;
|
|
876
|
+
commands: {
|
|
877
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
878
|
+
};
|
|
879
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
880
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
881
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
882
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
883
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
884
|
+
commands: {
|
|
885
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
886
|
+
};
|
|
887
|
+
}, undefined>>];
|
|
888
|
+
commands: {
|
|
889
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
890
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
891
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
892
|
+
};
|
|
893
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
894
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
895
|
+
actions: {
|
|
896
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
897
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
898
|
+
};
|
|
899
|
+
}, undefined>>];
|
|
872
900
|
actions?: {
|
|
873
901
|
suppressToolbar?: (() => boolean) | undefined;
|
|
874
902
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1020,7 +1048,35 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1020
1048
|
}, FeatureFlags>>];
|
|
1021
1049
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1022
1050
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1023
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1051
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1052
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1053
|
+
sharedState: {
|
|
1054
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1055
|
+
} | undefined;
|
|
1056
|
+
commands: {
|
|
1057
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1058
|
+
};
|
|
1059
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1060
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1061
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1062
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1063
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1064
|
+
commands: {
|
|
1065
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1066
|
+
};
|
|
1067
|
+
}, undefined>>];
|
|
1068
|
+
commands: {
|
|
1069
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1070
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1071
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1072
|
+
};
|
|
1073
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1074
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1075
|
+
actions: {
|
|
1076
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1077
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1078
|
+
};
|
|
1079
|
+
}, undefined>>];
|
|
1024
1080
|
actions?: {
|
|
1025
1081
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1026
1082
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1127,7 +1183,35 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1127
1183
|
}, FeatureFlags>>];
|
|
1128
1184
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1129
1185
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1130
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1186
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1187
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1188
|
+
sharedState: {
|
|
1189
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1190
|
+
} | undefined;
|
|
1191
|
+
commands: {
|
|
1192
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1193
|
+
};
|
|
1194
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1195
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1196
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1197
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1198
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1199
|
+
commands: {
|
|
1200
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1201
|
+
};
|
|
1202
|
+
}, undefined>>];
|
|
1203
|
+
commands: {
|
|
1204
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1205
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1206
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1207
|
+
};
|
|
1208
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1209
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1210
|
+
actions: {
|
|
1211
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1212
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1213
|
+
};
|
|
1214
|
+
}, undefined>>];
|
|
1131
1215
|
actions?: {
|
|
1132
1216
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1133
1217
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -817,7 +817,35 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
817
817
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
818
818
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
819
819
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
820
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
820
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
821
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
822
|
+
sharedState: {
|
|
823
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
824
|
+
} | undefined;
|
|
825
|
+
commands: {
|
|
826
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
827
|
+
};
|
|
828
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
829
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
830
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
831
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
832
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
833
|
+
commands: {
|
|
834
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
835
|
+
};
|
|
836
|
+
}, undefined>>];
|
|
837
|
+
commands: {
|
|
838
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
839
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
840
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
841
|
+
};
|
|
842
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
843
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
844
|
+
actions: {
|
|
845
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
846
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
847
|
+
};
|
|
848
|
+
}, undefined>>];
|
|
821
849
|
actions?: {
|
|
822
850
|
suppressToolbar?: (() => boolean) | undefined;
|
|
823
851
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -969,7 +997,35 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
969
997
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
970
998
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
971
999
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
972
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1000
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1001
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1002
|
+
sharedState: {
|
|
1003
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
commands: {
|
|
1006
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1007
|
+
};
|
|
1008
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1009
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1010
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1011
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1012
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1013
|
+
commands: {
|
|
1014
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1015
|
+
};
|
|
1016
|
+
}, undefined>>];
|
|
1017
|
+
commands: {
|
|
1018
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1019
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1020
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1021
|
+
};
|
|
1022
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1023
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1024
|
+
actions: {
|
|
1025
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1026
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1027
|
+
};
|
|
1028
|
+
}, undefined>>];
|
|
973
1029
|
actions?: {
|
|
974
1030
|
suppressToolbar?: (() => boolean) | undefined;
|
|
975
1031
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1076,7 +1132,35 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1076
1132
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1077
1133
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1078
1134
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1079
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1135
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1136
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1137
|
+
sharedState: {
|
|
1138
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1139
|
+
} | undefined;
|
|
1140
|
+
commands: {
|
|
1141
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1142
|
+
};
|
|
1143
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1144
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1145
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1146
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1147
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1148
|
+
commands: {
|
|
1149
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1150
|
+
};
|
|
1151
|
+
}, undefined>>];
|
|
1152
|
+
commands: {
|
|
1153
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1154
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1155
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1156
|
+
};
|
|
1157
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1158
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
|
|
1159
|
+
actions: {
|
|
1160
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1161
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1162
|
+
};
|
|
1163
|
+
}, undefined>>];
|
|
1080
1164
|
actions?: {
|
|
1081
1165
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1082
1166
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1058,7 +1058,41 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1058
1058
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1059
1059
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1060
1060
|
];
|
|
1061
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1061
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1062
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1063
|
+
dependencies: [
|
|
1064
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1065
|
+
sharedState: {
|
|
1066
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1067
|
+
} | undefined;
|
|
1068
|
+
commands: {
|
|
1069
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1070
|
+
};
|
|
1071
|
+
}, undefined>>,
|
|
1072
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1073
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1074
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1075
|
+
dependencies: [
|
|
1076
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1077
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1078
|
+
commands: {
|
|
1079
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1080
|
+
};
|
|
1081
|
+
}, undefined>>
|
|
1082
|
+
];
|
|
1083
|
+
commands: {
|
|
1084
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1085
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1086
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1087
|
+
};
|
|
1088
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1089
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1090
|
+
];
|
|
1091
|
+
actions: {
|
|
1092
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1093
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1094
|
+
};
|
|
1095
|
+
}, undefined>>
|
|
1062
1096
|
];
|
|
1063
1097
|
actions?: {
|
|
1064
1098
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1238,7 +1272,41 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1238
1272
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1239
1273
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1240
1274
|
];
|
|
1241
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1275
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1276
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1277
|
+
dependencies: [
|
|
1278
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1279
|
+
sharedState: {
|
|
1280
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1281
|
+
} | undefined;
|
|
1282
|
+
commands: {
|
|
1283
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1284
|
+
};
|
|
1285
|
+
}, undefined>>,
|
|
1286
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1287
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1288
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1289
|
+
dependencies: [
|
|
1290
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1291
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1292
|
+
commands: {
|
|
1293
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1294
|
+
};
|
|
1295
|
+
}, undefined>>
|
|
1296
|
+
];
|
|
1297
|
+
commands: {
|
|
1298
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1299
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1300
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1301
|
+
};
|
|
1302
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1303
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1304
|
+
];
|
|
1305
|
+
actions: {
|
|
1306
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1307
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1308
|
+
};
|
|
1309
|
+
}, undefined>>
|
|
1242
1310
|
];
|
|
1243
1311
|
actions?: {
|
|
1244
1312
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1366,7 +1434,41 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1366
1434
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1367
1435
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1368
1436
|
];
|
|
1369
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1437
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1438
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1439
|
+
dependencies: [
|
|
1440
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1441
|
+
sharedState: {
|
|
1442
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
commands: {
|
|
1445
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1446
|
+
};
|
|
1447
|
+
}, undefined>>,
|
|
1448
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1449
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1450
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1451
|
+
dependencies: [
|
|
1452
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1453
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1454
|
+
commands: {
|
|
1455
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1456
|
+
};
|
|
1457
|
+
}, undefined>>
|
|
1458
|
+
];
|
|
1459
|
+
commands: {
|
|
1460
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1461
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1462
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1463
|
+
};
|
|
1464
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1465
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1466
|
+
];
|
|
1467
|
+
actions: {
|
|
1468
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1469
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1470
|
+
};
|
|
1471
|
+
}, undefined>>
|
|
1370
1472
|
];
|
|
1371
1473
|
actions?: {
|
|
1372
1474
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1109,7 +1109,41 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1109
1109
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1110
1110
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1111
1111
|
];
|
|
1112
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1112
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1113
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1114
|
+
dependencies: [
|
|
1115
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1116
|
+
sharedState: {
|
|
1117
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1118
|
+
} | undefined;
|
|
1119
|
+
commands: {
|
|
1120
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1121
|
+
};
|
|
1122
|
+
}, undefined>>,
|
|
1123
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1124
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1125
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1126
|
+
dependencies: [
|
|
1127
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1128
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1129
|
+
commands: {
|
|
1130
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1131
|
+
};
|
|
1132
|
+
}, undefined>>
|
|
1133
|
+
];
|
|
1134
|
+
commands: {
|
|
1135
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1136
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1137
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1138
|
+
};
|
|
1139
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1140
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1141
|
+
];
|
|
1142
|
+
actions: {
|
|
1143
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1144
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1145
|
+
};
|
|
1146
|
+
}, undefined>>
|
|
1113
1147
|
];
|
|
1114
1148
|
actions?: {
|
|
1115
1149
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1289,7 +1323,41 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1289
1323
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1290
1324
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1291
1325
|
];
|
|
1292
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1326
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1327
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1328
|
+
dependencies: [
|
|
1329
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1330
|
+
sharedState: {
|
|
1331
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1332
|
+
} | undefined;
|
|
1333
|
+
commands: {
|
|
1334
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1335
|
+
};
|
|
1336
|
+
}, undefined>>,
|
|
1337
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1338
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1339
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1340
|
+
dependencies: [
|
|
1341
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1342
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1343
|
+
commands: {
|
|
1344
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1345
|
+
};
|
|
1346
|
+
}, undefined>>
|
|
1347
|
+
];
|
|
1348
|
+
commands: {
|
|
1349
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1350
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1351
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1352
|
+
};
|
|
1353
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1354
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1355
|
+
];
|
|
1356
|
+
actions: {
|
|
1357
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1358
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1359
|
+
};
|
|
1360
|
+
}, undefined>>
|
|
1293
1361
|
];
|
|
1294
1362
|
actions?: {
|
|
1295
1363
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1417,7 +1485,41 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1417
1485
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1418
1486
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1419
1487
|
];
|
|
1420
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1488
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1489
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1490
|
+
dependencies: [
|
|
1491
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1492
|
+
sharedState: {
|
|
1493
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1494
|
+
} | undefined;
|
|
1495
|
+
commands: {
|
|
1496
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1497
|
+
};
|
|
1498
|
+
}, undefined>>,
|
|
1499
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1500
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1501
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1502
|
+
dependencies: [
|
|
1503
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1504
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1505
|
+
commands: {
|
|
1506
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1507
|
+
};
|
|
1508
|
+
}, undefined>>
|
|
1509
|
+
];
|
|
1510
|
+
commands: {
|
|
1511
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1512
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1513
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1514
|
+
};
|
|
1515
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1516
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1517
|
+
];
|
|
1518
|
+
actions: {
|
|
1519
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1520
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1521
|
+
};
|
|
1522
|
+
}, undefined>>
|
|
1421
1523
|
];
|
|
1422
1524
|
actions?: {
|
|
1423
1525
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1058,7 +1058,41 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1058
1058
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1059
1059
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1060
1060
|
];
|
|
1061
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1061
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1062
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1063
|
+
dependencies: [
|
|
1064
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1065
|
+
sharedState: {
|
|
1066
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1067
|
+
} | undefined;
|
|
1068
|
+
commands: {
|
|
1069
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1070
|
+
};
|
|
1071
|
+
}, undefined>>,
|
|
1072
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1073
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1074
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1075
|
+
dependencies: [
|
|
1076
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1077
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1078
|
+
commands: {
|
|
1079
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1080
|
+
};
|
|
1081
|
+
}, undefined>>
|
|
1082
|
+
];
|
|
1083
|
+
commands: {
|
|
1084
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1085
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1086
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1087
|
+
};
|
|
1088
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1089
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1090
|
+
];
|
|
1091
|
+
actions: {
|
|
1092
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1093
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1094
|
+
};
|
|
1095
|
+
}, undefined>>
|
|
1062
1096
|
];
|
|
1063
1097
|
actions?: {
|
|
1064
1098
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1238,7 +1272,41 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1238
1272
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1239
1273
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1240
1274
|
];
|
|
1241
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1275
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1276
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1277
|
+
dependencies: [
|
|
1278
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1279
|
+
sharedState: {
|
|
1280
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1281
|
+
} | undefined;
|
|
1282
|
+
commands: {
|
|
1283
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1284
|
+
};
|
|
1285
|
+
}, undefined>>,
|
|
1286
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1287
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1288
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1289
|
+
dependencies: [
|
|
1290
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1291
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1292
|
+
commands: {
|
|
1293
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1294
|
+
};
|
|
1295
|
+
}, undefined>>
|
|
1296
|
+
];
|
|
1297
|
+
commands: {
|
|
1298
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1299
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1300
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1301
|
+
};
|
|
1302
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1303
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1304
|
+
];
|
|
1305
|
+
actions: {
|
|
1306
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1307
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1308
|
+
};
|
|
1309
|
+
}, undefined>>
|
|
1242
1310
|
];
|
|
1243
1311
|
actions?: {
|
|
1244
1312
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1366,7 +1434,41 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1366
1434
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1367
1435
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
|
|
1368
1436
|
];
|
|
1369
|
-
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions
|
|
1437
|
+
}, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
|
|
1438
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
1439
|
+
dependencies: [
|
|
1440
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
|
|
1441
|
+
sharedState: {
|
|
1442
|
+
currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
commands: {
|
|
1445
|
+
setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1446
|
+
};
|
|
1447
|
+
}, undefined>>,
|
|
1448
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
1449
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
|
|
1450
|
+
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
1451
|
+
dependencies: [
|
|
1452
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
|
|
1453
|
+
sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
|
|
1454
|
+
commands: {
|
|
1455
|
+
handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
|
|
1456
|
+
};
|
|
1457
|
+
}, undefined>>
|
|
1458
|
+
];
|
|
1459
|
+
commands: {
|
|
1460
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1461
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1462
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1463
|
+
};
|
|
1464
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
1465
|
+
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
|
|
1466
|
+
];
|
|
1467
|
+
actions: {
|
|
1468
|
+
registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
|
|
1469
|
+
getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
|
|
1470
|
+
};
|
|
1471
|
+
}, undefined>>
|
|
1370
1472
|
];
|
|
1371
1473
|
actions?: {
|
|
1372
1474
|
suppressToolbar?: (() => boolean) | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "209.6.
|
|
3
|
+
"version": "209.6.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.19.0",
|
|
82
82
|
"@atlaskit/link-provider": "^3.4.0",
|
|
83
83
|
"@atlaskit/media-core": "^37.0.0",
|
|
84
84
|
"react": "^18.2.0",
|
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
"platform_editor_sync_editor_view_mode_state": {
|
|
164
164
|
"type": "boolean"
|
|
165
165
|
},
|
|
166
|
+
"platform_editor_sync_editor_view_mode_state_revert": {
|
|
167
|
+
"type": "boolean"
|
|
168
|
+
},
|
|
166
169
|
"annotations_defensive_node_name_calculations": {
|
|
167
170
|
"type": "boolean",
|
|
168
171
|
"referenceOnly": "true"
|
|
@@ -264,9 +267,6 @@
|
|
|
264
267
|
"type": "boolean",
|
|
265
268
|
"referenceOnly": true
|
|
266
269
|
},
|
|
267
|
-
"platform_editor_setup_editorapi_sync": {
|
|
268
|
-
"type": "boolean"
|
|
269
|
-
},
|
|
270
270
|
"platform_editor_disable_context_panel_animation": {
|
|
271
271
|
"type": "boolean",
|
|
272
272
|
"referenceOnly": true
|