@atlaskit/editor-core 189.0.11 → 189.0.14
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 +13 -0
- package/dist/cjs/create-editor/create-plugins-list.js +1 -1
- package/dist/cjs/presets/default.js +12 -0
- package/dist/cjs/presets/universal.js +1 -12
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +1 -1
- package/dist/es2019/presets/default.js +12 -0
- package/dist/es2019/presets/universal.js +1 -12
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +1 -1
- package/dist/esm/presets/default.js +12 -0
- package/dist/esm/presets/universal.js +1 -12
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 189.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42201](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42201) [`17d3a9df7c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17d3a9df7c0) - ED-20650 Move selectionToolbar higher in presets to prevent it from overriding the link picker floating toolbar
|
|
8
|
+
- [#42194](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42194) [`6b57f690c13`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b57f690c13) - Updating comment to trigger build in editor-plugin-ai branch
|
|
9
|
+
|
|
10
|
+
## 189.0.12
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 189.0.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -108,7 +108,7 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent) {
|
|
|
108
108
|
* Maps EditorProps to EditorPlugins
|
|
109
109
|
*
|
|
110
110
|
* Note: The order that presets are added determines
|
|
111
|
-
* their placement in the editor toolbar
|
|
111
|
+
* their placement in the editor toolbar.
|
|
112
112
|
*/
|
|
113
113
|
function createPluginsList(preset, props, pluginInjectionAPI) {
|
|
114
114
|
var excludes = new Set();
|
|
@@ -35,6 +35,8 @@ var _codeBlock = _interopRequireDefault(require("../plugins/code-block"));
|
|
|
35
35
|
var _undoRedo = _interopRequireDefault(require("../plugins/undo-redo"));
|
|
36
36
|
var _editorPluginDecorations = require("@atlaskit/editor-plugin-decorations");
|
|
37
37
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
38
|
+
var _editorPluginSelectionToolbar = require("@atlaskit/editor-plugin-selection-toolbar");
|
|
39
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
38
40
|
// #region Imports
|
|
39
41
|
|
|
40
42
|
// #endregion
|
|
@@ -76,6 +78,16 @@ function createDefaultPreset(options) {
|
|
|
76
78
|
return builder.add([p, options.annotationProviders]);
|
|
77
79
|
}
|
|
78
80
|
return builder;
|
|
81
|
+
})
|
|
82
|
+
/**
|
|
83
|
+
* Do not use this plugin - it is for AI purposes only.
|
|
84
|
+
*/.maybeAdd(_editorPluginSelectionToolbar.selectionToolbarPlugin, function (plugin, builder) {
|
|
85
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
86
|
+
return builder.add([plugin, {
|
|
87
|
+
preferenceToolbarAboveSelection: false
|
|
88
|
+
}]);
|
|
89
|
+
}
|
|
90
|
+
return builder;
|
|
79
91
|
}).add([_editorPluginHyperlink.hyperlinkPlugin, options.hyperlinkOptions]).add([_editorPluginTextFormatting.textFormattingPlugin, options.textFormatting]).add(_editorPluginWidth.widthPlugin).add([_editorPluginQuickInsert.quickInsertPlugin, options.quickInsert]).add([_editorPluginTypeAhead.typeAheadPlugin, options.typeAhead || {
|
|
80
92
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
81
93
|
}]).add([_editorPluginPlaceholder.placeholderPlugin, options.placeholder]).add(_editorPluginUnsupportedContent.unsupportedContentPlugin).add(_editorPluginEditorDisabled.editorDisabledPlugin).add([_editorPluginSubmitEditor.submitEditorPlugin, options.submitEditor]).add(_fakeTextCursor.default).add(_editorPluginCopyButton.copyButtonPlugin).add(_editorPluginFloatingToolbar.floatingToolbarPlugin).add([_editorPluginSelection.selectionPlugin, options.selection]).add([_codeBlock.default, options.codeBlock || {
|
|
@@ -31,7 +31,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
31
31
|
var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
32
32
|
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
33
33
|
var _editorPluginMentions = require("@atlaskit/editor-plugin-mentions");
|
|
34
|
-
var _editorPluginSelectionToolbar = require("@atlaskit/editor-plugin-selection-toolbar");
|
|
35
34
|
var _isFullPage = require("../utils/is-full-page");
|
|
36
35
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
37
36
|
var _default = require("./default");
|
|
@@ -409,16 +408,6 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
409
408
|
return builder;
|
|
410
409
|
}).add([_plugins.codeBidiWarningPlugin, {
|
|
411
410
|
appearance: appearance
|
|
412
|
-
}])
|
|
413
|
-
/**
|
|
414
|
-
* Do not use this plugin - it is for AI purposes only.
|
|
415
|
-
*/.maybeAdd(_editorPluginSelectionToolbar.selectionToolbarPlugin, function (plugin, builder) {
|
|
416
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
417
|
-
return builder.add([plugin, {
|
|
418
|
-
preferenceToolbarAboveSelection: false
|
|
419
|
-
}]);
|
|
420
|
-
}
|
|
421
|
-
return builder;
|
|
422
|
-
});
|
|
411
|
+
}]);
|
|
423
412
|
return finalPreset;
|
|
424
413
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "189.0.
|
|
8
|
+
var version = exports.version = "189.0.14";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -97,7 +97,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
97
97
|
* Maps EditorProps to EditorPlugins
|
|
98
98
|
*
|
|
99
99
|
* Note: The order that presets are added determines
|
|
100
|
-
* their placement in the editor toolbar
|
|
100
|
+
* their placement in the editor toolbar.
|
|
101
101
|
*/
|
|
102
102
|
export default function createPluginsList(preset, props, pluginInjectionAPI) {
|
|
103
103
|
const excludes = new Set();
|
|
@@ -29,6 +29,8 @@ import codeBlockPlugin from '../plugins/code-block';
|
|
|
29
29
|
import undoRedoPlugin from '../plugins/undo-redo';
|
|
30
30
|
import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
31
31
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
32
|
+
import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
33
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
32
34
|
// #endregion
|
|
33
35
|
|
|
34
36
|
/**
|
|
@@ -72,6 +74,16 @@ export function createDefaultPreset(options) {
|
|
|
72
74
|
return builder.add([p, options.annotationProviders]);
|
|
73
75
|
}
|
|
74
76
|
return builder;
|
|
77
|
+
})
|
|
78
|
+
/**
|
|
79
|
+
* Do not use this plugin - it is for AI purposes only.
|
|
80
|
+
*/.maybeAdd(selectionToolbarPlugin, (plugin, builder) => {
|
|
81
|
+
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
82
|
+
return builder.add([plugin, {
|
|
83
|
+
preferenceToolbarAboveSelection: false
|
|
84
|
+
}]);
|
|
85
|
+
}
|
|
86
|
+
return builder;
|
|
75
87
|
}).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([typeAheadPlugin, options.typeAhead || {
|
|
76
88
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
77
89
|
}]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(fakeTextCursorPlugin).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, options.selection]).add([codeBlockPlugin, options.codeBlock || {
|
|
@@ -22,7 +22,6 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
22
22
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
23
23
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
24
24
|
import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
25
|
-
import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
26
25
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
27
26
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
28
27
|
import { createDefaultPreset } from './default';
|
|
@@ -406,16 +405,6 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
406
405
|
return builder;
|
|
407
406
|
}).add([codeBidiWarningPlugin, {
|
|
408
407
|
appearance
|
|
409
|
-
}])
|
|
410
|
-
/**
|
|
411
|
-
* Do not use this plugin - it is for AI purposes only.
|
|
412
|
-
*/.maybeAdd(selectionToolbarPlugin, (plugin, builder) => {
|
|
413
|
-
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
414
|
-
return builder.add([plugin, {
|
|
415
|
-
preferenceToolbarAboveSelection: false
|
|
416
|
-
}]);
|
|
417
|
-
}
|
|
418
|
-
return builder;
|
|
419
|
-
});
|
|
408
|
+
}]);
|
|
420
409
|
return finalPreset;
|
|
421
410
|
}
|
|
@@ -99,7 +99,7 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
99
99
|
* Maps EditorProps to EditorPlugins
|
|
100
100
|
*
|
|
101
101
|
* Note: The order that presets are added determines
|
|
102
|
-
* their placement in the editor toolbar
|
|
102
|
+
* their placement in the editor toolbar.
|
|
103
103
|
*/
|
|
104
104
|
export default function createPluginsList(preset, props, pluginInjectionAPI) {
|
|
105
105
|
var excludes = new Set();
|
|
@@ -29,6 +29,8 @@ import codeBlockPlugin from '../plugins/code-block';
|
|
|
29
29
|
import undoRedoPlugin from '../plugins/undo-redo';
|
|
30
30
|
import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
31
31
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
32
|
+
import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
33
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
32
34
|
// #endregion
|
|
33
35
|
|
|
34
36
|
/**
|
|
@@ -68,6 +70,16 @@ export function createDefaultPreset(options) {
|
|
|
68
70
|
return builder.add([p, options.annotationProviders]);
|
|
69
71
|
}
|
|
70
72
|
return builder;
|
|
73
|
+
})
|
|
74
|
+
/**
|
|
75
|
+
* Do not use this plugin - it is for AI purposes only.
|
|
76
|
+
*/.maybeAdd(selectionToolbarPlugin, function (plugin, builder) {
|
|
77
|
+
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
78
|
+
return builder.add([plugin, {
|
|
79
|
+
preferenceToolbarAboveSelection: false
|
|
80
|
+
}]);
|
|
81
|
+
}
|
|
82
|
+
return builder;
|
|
71
83
|
}).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([typeAheadPlugin, options.typeAhead || {
|
|
72
84
|
createAnalyticsEvent: options.createAnalyticsEvent
|
|
73
85
|
}]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(fakeTextCursorPlugin).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, options.selection]).add([codeBlockPlugin, options.codeBlock || {
|
|
@@ -26,7 +26,6 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
26
26
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
27
27
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
28
28
|
import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
29
|
-
import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
30
29
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
31
30
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
32
31
|
import { createDefaultPreset } from './default';
|
|
@@ -402,16 +401,6 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
402
401
|
return builder;
|
|
403
402
|
}).add([codeBidiWarningPlugin, {
|
|
404
403
|
appearance: appearance
|
|
405
|
-
}])
|
|
406
|
-
/**
|
|
407
|
-
* Do not use this plugin - it is for AI purposes only.
|
|
408
|
-
*/.maybeAdd(selectionToolbarPlugin, function (plugin, builder) {
|
|
409
|
-
if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
|
|
410
|
-
return builder.add([plugin, {
|
|
411
|
-
preferenceToolbarAboveSelection: false
|
|
412
|
-
}]);
|
|
413
|
-
}
|
|
414
|
-
return builder;
|
|
415
|
-
});
|
|
404
|
+
}]);
|
|
416
405
|
return finalPreset;
|
|
417
406
|
}
|
|
@@ -11,6 +11,6 @@ export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProp
|
|
|
11
11
|
* Maps EditorProps to EditorPlugins
|
|
12
12
|
*
|
|
13
13
|
* Note: The order that presets are added determines
|
|
14
|
-
* their placement in the editor toolbar
|
|
14
|
+
* their placement in the editor toolbar.
|
|
15
15
|
*/
|
|
16
16
|
export default function createPluginsList(preset: EditorPresetBuilder<any, any>, props: EditorProps, pluginInjectionAPI?: EditorPluginInjectionAPI): EditorPlugin[];
|
|
@@ -11,6 +11,6 @@ export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProp
|
|
|
11
11
|
* Maps EditorProps to EditorPlugins
|
|
12
12
|
*
|
|
13
13
|
* Note: The order that presets are added determines
|
|
14
|
-
* their placement in the editor toolbar
|
|
14
|
+
* their placement in the editor toolbar.
|
|
15
15
|
*/
|
|
16
16
|
export default function createPluginsList(preset: EditorPresetBuilder<any, any>, props: EditorProps, pluginInjectionAPI?: EditorPluginInjectionAPI): EditorPlugin[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.0.
|
|
3
|
+
"version": "189.0.14",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@atlaskit/icon": "^21.12.0",
|
|
113
113
|
"@atlaskit/logo": "^13.14.0",
|
|
114
114
|
"@atlaskit/media-card": "^77.2.0",
|
|
115
|
-
"@atlaskit/media-client": "^
|
|
115
|
+
"@atlaskit/media-client": "^25.0.0",
|
|
116
116
|
"@atlaskit/media-common": "^9.0.0",
|
|
117
117
|
"@atlaskit/mention": "^22.1.0",
|
|
118
118
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@atlaskit/radio": "^5.6.0",
|
|
122
122
|
"@atlaskit/section-message": "^6.4.0",
|
|
123
123
|
"@atlaskit/select": "^16.7.0",
|
|
124
|
-
"@atlaskit/smart-card": "^26.
|
|
124
|
+
"@atlaskit/smart-card": "^26.39.0",
|
|
125
125
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
126
126
|
"@atlaskit/spinner": "^15.6.0",
|
|
127
127
|
"@atlaskit/tabs": "^13.4.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@af/editor-libra": "*",
|
|
159
159
|
"@af/integration-testing": "*",
|
|
160
160
|
"@af/visual-regression": "*",
|
|
161
|
-
"@atlaskit/collab-provider": "9.15.
|
|
161
|
+
"@atlaskit/collab-provider": "9.15.3",
|
|
162
162
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
163
163
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
164
164
|
"@atlaskit/flag": "^15.2.0",
|