@atlaskit/editor-core 192.1.3 → 192.2.0
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 +31 -0
- package/dist/cjs/create-editor/feature-flags-from-props.js +1 -9
- package/dist/cjs/editor.js +0 -1
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/feature-flags-from-props.js +1 -9
- package/dist/es2019/editor.js +0 -1
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/feature-flags-from-props.js +1 -9
- package/dist/esm/editor.js +0 -1
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +16 -64
- package/dist/types/create-editor/feature-flags-from-props.d.ts +2 -2
- package/dist/types/presets/default.d.ts +12 -48
- package/dist/types/presets/universal.d.ts +16 -64
- package/dist/types/presets/useUniversalPreset.d.ts +16 -64
- package/dist/types/types/editor-props.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +0 -64
- package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +0 -48
- package/dist/types-ts4.5/presets/universal.d.ts +0 -64
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +0 -64
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 192.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122) [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) - Breaking change:
|
|
8
|
+
|
|
9
|
+
## WHAT?:
|
|
10
|
+
|
|
11
|
+
Removing feature flags:
|
|
12
|
+
|
|
13
|
+
- singleLayout
|
|
14
|
+
- newInsertionBehaviour
|
|
15
|
+
- interactiveExpand
|
|
16
|
+
- findReplace
|
|
17
|
+
- findReplaceMatchCase
|
|
18
|
+
- extendFloatingToolbar
|
|
19
|
+
|
|
20
|
+
## WHY?:
|
|
21
|
+
|
|
22
|
+
Because the flags and props are unused/by default active. Removing them will reduce our maintenance burden
|
|
23
|
+
|
|
24
|
+
## HOW to update your code:
|
|
25
|
+
|
|
26
|
+
- If you were using the feature flag - the behaviour is now default and you can remove the flags
|
|
27
|
+
- If you were not using the feature flag - the behaviour is now default.
|
|
28
|
+
- If you have opted out of using the feature flag - we have been careful to ensure no-one has opted out of the behaviours. If you do have an issue please reach out to #help-editor.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 192.1.3
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -32,19 +32,11 @@ function getSpellCheck(featureFlags) {
|
|
|
32
32
|
* which is used by both current and archv3 editors.
|
|
33
33
|
*/
|
|
34
34
|
function createFeatureFlagsFromProps(props) {
|
|
35
|
-
var _props$
|
|
35
|
+
var _props$performanceTra, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2;
|
|
36
36
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
|
|
37
37
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
38
|
-
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
39
|
-
interactiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
40
38
|
placeholderBracketHint: !!props.placeholderBracketHint,
|
|
41
|
-
findReplace: !!props.allowFindReplace,
|
|
42
|
-
findReplaceMatchCase: (0, _typeof2.default)(props.allowFindReplace) === 'object' && Boolean(props.allowFindReplace.allowMatchCase),
|
|
43
|
-
addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
|
|
44
|
-
singleLayout: (0, _typeof2.default)(props.allowLayouts) === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
|
|
45
|
-
undoRedoButtons: props.allowUndoRedoButtons,
|
|
46
39
|
catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.catchAllTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled,
|
|
47
|
-
extendFloatingToolbar: Boolean((0, _typeof2.default)(props.allowExtension) === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
|
|
48
40
|
showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.showAvatarGroupAsPlugin) : false),
|
|
49
41
|
errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.useErrorBoundaryDocStructure) : false),
|
|
50
42
|
synchronyErrorDocStructure: Boolean(typeof ((_props$featureFlags5 = props.featureFlags) === null || _props$featureFlags5 === void 0 ? void 0 : _props$featureFlags5.synchronyErrorDocStructure) === 'boolean' ? !!((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.synchronyErrorDocStructure) : false),
|
package/dist/cjs/editor.js
CHANGED
|
@@ -45,7 +45,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
45
45
|
* their placement in the editor toolbar
|
|
46
46
|
*/
|
|
47
47
|
function createDefaultPreset(options) {
|
|
48
|
-
var _options$featureFlags;
|
|
48
|
+
var _options$featureFlags, _options$featureFlags2;
|
|
49
49
|
var isMobile = options.appearance === 'mobile';
|
|
50
50
|
var preset = new _preset.EditorPresetBuilder().add([_featureFlags.featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([_analytics.analyticsPlugin, {
|
|
51
51
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
@@ -54,7 +54,7 @@ function createDefaultPreset(options) {
|
|
|
54
54
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
55
55
|
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead || {
|
|
56
56
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
57
|
-
}]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = options.featureFlags) === null || _options$
|
|
57
|
+
}]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).maybeAdd([_annotation.annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([_selectionToolbar.selectionToolbarPlugin, {
|
|
58
58
|
preferenceToolbarAboveSelection: false
|
|
59
59
|
}], function () {
|
|
60
60
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
@@ -99,7 +99,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
99
99
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
100
100
|
useLongPressSelection: false,
|
|
101
101
|
appearance: appearance,
|
|
102
|
-
allowInteractiveExpand:
|
|
102
|
+
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false)
|
|
103
103
|
}], Boolean(props.allowExpand)).maybeAdd(_guideline.guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([_grid.gridPlugin, {
|
|
104
104
|
shouldCalcBreakoutGridLines: isFullPage
|
|
105
105
|
}], Boolean(props.media)).maybeAdd([_media.mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -21,20 +21,12 @@ function getSpellCheck(featureFlags) {
|
|
|
21
21
|
* which is used by both current and archv3 editors.
|
|
22
22
|
*/
|
|
23
23
|
export function createFeatureFlagsFromProps(props) {
|
|
24
|
-
var _props$
|
|
24
|
+
var _props$performanceTra, _props$performanceTra2, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2;
|
|
25
25
|
const normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
26
26
|
return {
|
|
27
27
|
...normalizedFeatureFlags,
|
|
28
|
-
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
29
|
-
interactiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
30
28
|
placeholderBracketHint: !!props.placeholderBracketHint,
|
|
31
|
-
findReplace: !!props.allowFindReplace,
|
|
32
|
-
findReplaceMatchCase: typeof props.allowFindReplace === 'object' && Boolean(props.allowFindReplace.allowMatchCase),
|
|
33
|
-
addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
|
|
34
|
-
singleLayout: typeof props.allowLayouts === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
|
|
35
|
-
undoRedoButtons: props.allowUndoRedoButtons,
|
|
36
29
|
catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.catchAllTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled,
|
|
37
|
-
extendFloatingToolbar: Boolean(typeof props.allowExtension === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
|
|
38
30
|
showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.showAvatarGroupAsPlugin) : false),
|
|
39
31
|
errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.useErrorBoundaryDocStructure) : false),
|
|
40
32
|
synchronyErrorDocStructure: Boolean(typeof ((_props$featureFlags5 = props.featureFlags) === null || _props$featureFlags5 === void 0 ? void 0 : _props$featureFlags5.synchronyErrorDocStructure) === 'boolean' ? !!((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.synchronyErrorDocStructure) : false),
|
package/dist/es2019/editor.js
CHANGED
|
@@ -39,7 +39,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
39
39
|
* their placement in the editor toolbar
|
|
40
40
|
*/
|
|
41
41
|
export function createDefaultPreset(options) {
|
|
42
|
-
var _options$featureFlags;
|
|
42
|
+
var _options$featureFlags, _options$featureFlags2;
|
|
43
43
|
const isMobile = options.appearance === 'mobile';
|
|
44
44
|
const preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
|
|
45
45
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
@@ -48,7 +48,7 @@ export function createDefaultPreset(options) {
|
|
|
48
48
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
49
49
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead || {
|
|
50
50
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
51
|
-
}]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = options.featureFlags) === null || _options$
|
|
51
|
+
}]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([selectionToolbarPlugin, {
|
|
52
52
|
preferenceToolbarAboveSelection: false
|
|
53
53
|
}], () => {
|
|
54
54
|
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
@@ -87,7 +87,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
87
87
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
88
88
|
useLongPressSelection: false,
|
|
89
89
|
appearance: appearance,
|
|
90
|
-
allowInteractiveExpand:
|
|
90
|
+
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false)
|
|
91
91
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
92
92
|
shouldCalcBreakoutGridLines: isFullPage
|
|
93
93
|
}], Boolean(props.media)).maybeAdd([mediaPlugin, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "192.
|
|
2
|
+
export const version = "192.2.0";
|
|
@@ -25,19 +25,11 @@ function getSpellCheck(featureFlags) {
|
|
|
25
25
|
* which is used by both current and archv3 editors.
|
|
26
26
|
*/
|
|
27
27
|
export function createFeatureFlagsFromProps(props) {
|
|
28
|
-
var _props$
|
|
28
|
+
var _props$performanceTra, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2;
|
|
29
29
|
var normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
30
30
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
31
|
-
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
32
|
-
interactiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
33
31
|
placeholderBracketHint: !!props.placeholderBracketHint,
|
|
34
|
-
findReplace: !!props.allowFindReplace,
|
|
35
|
-
findReplaceMatchCase: _typeof(props.allowFindReplace) === 'object' && Boolean(props.allowFindReplace.allowMatchCase),
|
|
36
|
-
addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
|
|
37
|
-
singleLayout: _typeof(props.allowLayouts) === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
|
|
38
|
-
undoRedoButtons: props.allowUndoRedoButtons,
|
|
39
32
|
catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.catchAllTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled,
|
|
40
|
-
extendFloatingToolbar: Boolean(_typeof(props.allowExtension) === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
|
|
41
33
|
showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.showAvatarGroupAsPlugin) : false),
|
|
42
34
|
errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.useErrorBoundaryDocStructure) : false),
|
|
43
35
|
synchronyErrorDocStructure: Boolean(typeof ((_props$featureFlags5 = props.featureFlags) === null || _props$featureFlags5 === void 0 ? void 0 : _props$featureFlags5.synchronyErrorDocStructure) === 'boolean' ? !!((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.synchronyErrorDocStructure) : false),
|
package/dist/esm/editor.js
CHANGED
|
@@ -39,7 +39,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
39
39
|
* their placement in the editor toolbar
|
|
40
40
|
*/
|
|
41
41
|
export function createDefaultPreset(options) {
|
|
42
|
-
var _options$featureFlags;
|
|
42
|
+
var _options$featureFlags, _options$featureFlags2;
|
|
43
43
|
var isMobile = options.appearance === 'mobile';
|
|
44
44
|
var preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
|
|
45
45
|
createAnalyticsEvent: options.createAnalyticsEvent,
|
|
@@ -48,7 +48,7 @@ export function createDefaultPreset(options) {
|
|
|
48
48
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
49
49
|
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead || {
|
|
50
50
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
51
|
-
}]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = options.featureFlags) === null || _options$
|
|
51
|
+
}]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([annotationPlugin, options.annotationProviders], Boolean(options.annotationProviders)).maybeAdd([selectionToolbarPlugin, {
|
|
52
52
|
preferenceToolbarAboveSelection: false
|
|
53
53
|
}], function () {
|
|
54
54
|
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
@@ -91,7 +91,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
91
91
|
allowInsertion: isExpandInsertionEnabled(props),
|
|
92
92
|
useLongPressSelection: false,
|
|
93
93
|
appearance: appearance,
|
|
94
|
-
allowInteractiveExpand:
|
|
94
|
+
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false)
|
|
95
95
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
96
96
|
shouldCalcBreakoutGridLines: isFullPage
|
|
97
97
|
}], Boolean(props.media)).maybeAdd([mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "192.
|
|
2
|
+
export var version = "192.2.0";
|
|
@@ -133,10 +133,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
133
133
|
}) => boolean;
|
|
134
134
|
};
|
|
135
135
|
}, import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
136
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
137
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
138
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
139
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
136
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
140
137
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
141
138
|
actions: {
|
|
142
139
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -305,10 +302,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
305
302
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
306
303
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
307
304
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
308
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
309
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
310
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
311
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
305
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
312
306
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
313
307
|
sharedState: {
|
|
314
308
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -356,10 +350,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
356
350
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
357
351
|
};
|
|
358
352
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
359
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
360
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
361
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
362
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
353
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
363
354
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
364
355
|
actions: {
|
|
365
356
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -624,10 +615,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
624
615
|
twoLineEditorToolbar: boolean;
|
|
625
616
|
};
|
|
626
617
|
sharedState: import("@atlaskit/editor-plugin-find-replace").FindReplacePluginState | undefined;
|
|
627
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
628
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
629
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
630
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
618
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
631
619
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
632
620
|
sharedState: {
|
|
633
621
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -945,10 +933,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
945
933
|
}) => boolean;
|
|
946
934
|
};
|
|
947
935
|
}, import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
948
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
949
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
950
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
951
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
936
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
952
937
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
953
938
|
actions: {
|
|
954
939
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1382,10 +1367,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1382
1367
|
};
|
|
1383
1368
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
1384
1369
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
1385
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1386
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1387
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1388
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1370
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1389
1371
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1390
1372
|
sharedState: {
|
|
1391
1373
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -1433,10 +1415,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1433
1415
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
1434
1416
|
};
|
|
1435
1417
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
1436
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
1437
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1438
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1439
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1418
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1440
1419
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
1441
1420
|
actions: {
|
|
1442
1421
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1949,10 +1928,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1949
1928
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>];
|
|
1950
1929
|
}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
1951
1930
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
1952
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1953
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1954
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1955
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1931
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1956
1932
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1957
1933
|
sharedState: {
|
|
1958
1934
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -2000,10 +1976,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2000
1976
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
2001
1977
|
};
|
|
2002
1978
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
2003
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
2004
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2005
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2006
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1979
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
2007
1980
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
2008
1981
|
actions: {
|
|
2009
1982
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2202,10 +2175,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2202
2175
|
};
|
|
2203
2176
|
}, import("@atlaskit/editor-plugin-expand").ExpandPluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
2204
2177
|
pluginConfiguration: undefined;
|
|
2205
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2206
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2207
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2208
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2178
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2209
2179
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2210
2180
|
sharedState: {
|
|
2211
2181
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -2325,10 +2295,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2325
2295
|
};
|
|
2326
2296
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
2327
2297
|
}, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
2328
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
2329
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2330
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2331
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
2298
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
2332
2299
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
2333
2300
|
actions: {
|
|
2334
2301
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2476,10 +2443,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2476
2443
|
pluginConfiguration: import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined;
|
|
2477
2444
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2478
2445
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2479
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2480
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2481
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2482
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2446
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2483
2447
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2484
2448
|
sharedState: {
|
|
2485
2449
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -2527,10 +2491,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2527
2491
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
2528
2492
|
};
|
|
2529
2493
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
2530
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
2531
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2532
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2533
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
2494
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
2534
2495
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
2535
2496
|
actions: {
|
|
2536
2497
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3169,10 +3130,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3169
3130
|
}) => boolean;
|
|
3170
3131
|
};
|
|
3171
3132
|
}, import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
3172
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
3173
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3174
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3175
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
3133
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
3176
3134
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
3177
3135
|
actions: {
|
|
3178
3136
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3341,10 +3299,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3341
3299
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3342
3300
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
3343
3301
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
3344
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
3345
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3346
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3347
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3302
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3348
3303
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3349
3304
|
sharedState: {
|
|
3350
3305
|
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
@@ -3392,10 +3347,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3392
3347
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
3393
3348
|
};
|
|
3394
3349
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
3395
|
-
dependencies: [import("@atlaskit/editor-common/types").
|
|
3396
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3397
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3398
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
3350
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
3399
3351
|
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
3400
3352
|
actions: {
|
|
3401
3353
|
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
2
2
|
import type { FeatureFlags } from '../types/feature-flags';
|
|
3
3
|
/**
|
|
4
4
|
* Transforms EditorProps to an FeatureFlags object,
|
|
5
5
|
* which is used by both current and archv3 editors.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createFeatureFlagsFromProps(props:
|
|
7
|
+
export declare function createFeatureFlagsFromProps(props: Omit<EditorNextProps, 'preset'>): FeatureFlags;
|