@atlaskit/editor-core 197.9.3 → 197.10.1
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 +19 -0
- package/dist/cjs/composable-editor/hooks/useProviders.js +1 -1
- package/dist/cjs/composable-editor/utils/handleProviders.js +1 -4
- package/dist/cjs/create-editor/create-editor.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/hooks/useProviders.js +1 -1
- package/dist/es2019/composable-editor/utils/handleProviders.js +1 -4
- package/dist/es2019/create-editor/create-editor.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/hooks/useProviders.js +1 -1
- package/dist/esm/composable-editor/utils/handleProviders.js +1 -4
- package/dist/esm/create-editor/create-editor.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#144540](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144540)
|
|
8
|
+
[`3624684595b56`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3624684595b56) -
|
|
9
|
+
Disable instrumented plugin for editor core as it affects performance and is no longer used.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 197.10.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#142414](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142414)
|
|
17
|
+
[`4d4914bf56307`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d4914bf56307) -
|
|
18
|
+
Remove card provider feature flag and rename autoformatting provider feature flag, Improve
|
|
19
|
+
performance of setting card provider, Feature Gate the autoformatting Provider being passed to
|
|
20
|
+
ComposableEditor in Confluence
|
|
21
|
+
|
|
3
22
|
## 197.9.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -80,7 +80,7 @@ var useProviders = exports.useProviders = function useProviders(_ref) {
|
|
|
80
80
|
}
|
|
81
81
|
}, [emojiProvider, editorApi]);
|
|
82
82
|
(0, _react.useEffect)(function () {
|
|
83
|
-
if ((0, _platformFeatureFlags.fg)('
|
|
83
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_af_provider_from_plugin_config')) {
|
|
84
84
|
if (autoformattingProvider) {
|
|
85
85
|
var _editorApi$customAuto;
|
|
86
86
|
editorApi === null || editorApi === void 0 || (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 || _editorApi$customAuto.actions.setProvider(autoformattingProvider);
|
|
@@ -40,10 +40,7 @@ function handleProviders(providerFactory, _ref, extensionProvider, quickInsertPr
|
|
|
40
40
|
providerFactory.setProvider('searchProvider', searchProvider);
|
|
41
41
|
providerFactory.setProvider('presenceProvider', presenceProvider);
|
|
42
42
|
providerFactory.setProvider('macroProvider', macroProvider);
|
|
43
|
-
if (!(0, _platformFeatureFlags.fg)('
|
|
44
|
-
providerFactory.setProvider('cardProvider', cardProvider);
|
|
45
|
-
}
|
|
46
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_autoformatting_provider_from_plugin_config')) {
|
|
43
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_af_provider_from_plugin_config')) {
|
|
47
44
|
providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
|
|
48
45
|
}
|
|
49
46
|
if (extensionProvider) {
|
|
@@ -11,6 +11,7 @@ exports.processPluginsList = processPluginsList;
|
|
|
11
11
|
exports.sortByRank = sortByRank;
|
|
12
12
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
13
|
var _errorReporter = require("@atlaskit/editor-common/error-reporter");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _instrumentedPlugin = require("../utils/performance/instrumented-plugin");
|
|
15
16
|
var _sortByOrder = require("./sort-by-order");
|
|
16
17
|
function sortByRank(a, b) {
|
|
@@ -113,7 +114,7 @@ function createPMPlugins(config) {
|
|
|
113
114
|
// eslint-disable-next-line no-console
|
|
114
115
|
console.warn('createPMPlugins(): tracking is turned on but transactionTracker not defined! Transaction tracking has been disabled');
|
|
115
116
|
}
|
|
116
|
-
var instrumentPlugin = useInstrumentedPlugin ? function (plugin) {
|
|
117
|
+
var instrumentPlugin = !(0, _platformFeatureFlags.fg)('platform_editor_disable_instrumented_plugin') && useInstrumentedPlugin ? function (plugin) {
|
|
117
118
|
return _instrumentedPlugin.InstrumentedPlugin.fromPlugin(plugin, {
|
|
118
119
|
uiTracking: uiTracking,
|
|
119
120
|
transactionTracking: transactionTracking,
|
|
@@ -51,7 +51,7 @@ export const useProviders = ({
|
|
|
51
51
|
}
|
|
52
52
|
}, [emojiProvider, editorApi]);
|
|
53
53
|
useEffect(() => {
|
|
54
|
-
if (fg('
|
|
54
|
+
if (fg('platform_editor_af_provider_from_plugin_config')) {
|
|
55
55
|
if (autoformattingProvider) {
|
|
56
56
|
var _editorApi$customAuto;
|
|
57
57
|
editorApi === null || editorApi === void 0 ? void 0 : (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 ? void 0 : _editorApi$customAuto.actions.setProvider(autoformattingProvider);
|
|
@@ -36,10 +36,7 @@ export default function handleProviders(providerFactory, {
|
|
|
36
36
|
providerFactory.setProvider('searchProvider', searchProvider);
|
|
37
37
|
providerFactory.setProvider('presenceProvider', presenceProvider);
|
|
38
38
|
providerFactory.setProvider('macroProvider', macroProvider);
|
|
39
|
-
if (!fg('
|
|
40
|
-
providerFactory.setProvider('cardProvider', cardProvider);
|
|
41
|
-
}
|
|
42
|
-
if (!fg('platform_editor_autoformatting_provider_from_plugin_config')) {
|
|
39
|
+
if (!fg('platform_editor_af_provider_from_plugin_config')) {
|
|
43
40
|
providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
|
|
44
41
|
}
|
|
45
42
|
if (extensionProvider) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { InstrumentedPlugin } from '../utils/performance/instrumented-plugin';
|
|
3
4
|
import { sortByOrder } from './sort-by-order';
|
|
4
5
|
export function sortByRank(a, b) {
|
|
@@ -95,7 +96,7 @@ export function createPMPlugins(config) {
|
|
|
95
96
|
// eslint-disable-next-line no-console
|
|
96
97
|
console.warn('createPMPlugins(): tracking is turned on but transactionTracker not defined! Transaction tracking has been disabled');
|
|
97
98
|
}
|
|
98
|
-
const instrumentPlugin = useInstrumentedPlugin ? plugin => InstrumentedPlugin.fromPlugin(plugin, {
|
|
99
|
+
const instrumentPlugin = !fg('platform_editor_disable_instrumented_plugin') && useInstrumentedPlugin ? plugin => InstrumentedPlugin.fromPlugin(plugin, {
|
|
99
100
|
uiTracking,
|
|
100
101
|
transactionTracking,
|
|
101
102
|
dispatchAnalyticsEvent
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.
|
|
2
|
+
export const version = "197.10.1";
|
|
@@ -73,7 +73,7 @@ export var useProviders = function useProviders(_ref) {
|
|
|
73
73
|
}
|
|
74
74
|
}, [emojiProvider, editorApi]);
|
|
75
75
|
useEffect(function () {
|
|
76
|
-
if (fg('
|
|
76
|
+
if (fg('platform_editor_af_provider_from_plugin_config')) {
|
|
77
77
|
if (autoformattingProvider) {
|
|
78
78
|
var _editorApi$customAuto;
|
|
79
79
|
editorApi === null || editorApi === void 0 || (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 || _editorApi$customAuto.actions.setProvider(autoformattingProvider);
|
|
@@ -35,10 +35,7 @@ export default function handleProviders(providerFactory, _ref, extensionProvider
|
|
|
35
35
|
providerFactory.setProvider('searchProvider', searchProvider);
|
|
36
36
|
providerFactory.setProvider('presenceProvider', presenceProvider);
|
|
37
37
|
providerFactory.setProvider('macroProvider', macroProvider);
|
|
38
|
-
if (!fg('
|
|
39
|
-
providerFactory.setProvider('cardProvider', cardProvider);
|
|
40
|
-
}
|
|
41
|
-
if (!fg('platform_editor_autoformatting_provider_from_plugin_config')) {
|
|
38
|
+
if (!fg('platform_editor_af_provider_from_plugin_config')) {
|
|
42
39
|
providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
|
|
43
40
|
}
|
|
44
41
|
if (extensionProvider) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { ErrorReporter } from '@atlaskit/editor-common/error-reporter';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { InstrumentedPlugin } from '../utils/performance/instrumented-plugin';
|
|
4
5
|
import { sortByOrder } from './sort-by-order';
|
|
5
6
|
export function sortByRank(a, b) {
|
|
@@ -102,7 +103,7 @@ export function createPMPlugins(config) {
|
|
|
102
103
|
// eslint-disable-next-line no-console
|
|
103
104
|
console.warn('createPMPlugins(): tracking is turned on but transactionTracker not defined! Transaction tracking has been disabled');
|
|
104
105
|
}
|
|
105
|
-
var instrumentPlugin = useInstrumentedPlugin ? function (plugin) {
|
|
106
|
+
var instrumentPlugin = !fg('platform_editor_disable_instrumented_plugin') && useInstrumentedPlugin ? function (plugin) {
|
|
106
107
|
return InstrumentedPlugin.fromPlugin(plugin, {
|
|
107
108
|
uiTracking: uiTracking,
|
|
108
109
|
transactionTracking: transactionTracking,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.
|
|
2
|
+
export var version = "197.10.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.
|
|
3
|
+
"version": "197.10.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.3.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
52
|
-
"@atlaskit/emoji": "^67.
|
|
52
|
+
"@atlaskit/emoji": "^67.8.0",
|
|
53
53
|
"@atlaskit/icon": "^22.18.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.5.0",
|
|
55
|
-
"@atlaskit/mention": "^23.
|
|
55
|
+
"@atlaskit/mention": "^23.3.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
|
-
"@atlaskit/task-decision": "^17.
|
|
57
|
+
"@atlaskit/task-decision": "^17.11.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "*",
|
|
59
59
|
"@atlaskit/tokens": "^1.61.0",
|
|
60
60
|
"@atlaskit/tooltip": "^18.7.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
87
87
|
"@atlaskit/collab-provider": "9.40.6",
|
|
88
88
|
"@atlaskit/editor-plugin-annotation": "1.19.8",
|
|
89
|
-
"@atlaskit/editor-plugin-card": "^3.
|
|
89
|
+
"@atlaskit/editor-plugin-card": "^3.1.0",
|
|
90
90
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
91
91
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
92
92
|
"@atlaskit/editor-plugin-paste": "^1.12.0",
|
|
@@ -234,13 +234,13 @@
|
|
|
234
234
|
"type": "boolean",
|
|
235
235
|
"referenceOnly": true
|
|
236
236
|
},
|
|
237
|
-
"
|
|
237
|
+
"platform_editor_disable_instrumented_plugin": {
|
|
238
238
|
"type": "boolean"
|
|
239
239
|
},
|
|
240
|
-
"
|
|
240
|
+
"platform_editor_drag_and_drop_expand_style_fix": {
|
|
241
241
|
"type": "boolean"
|
|
242
242
|
},
|
|
243
|
-
"
|
|
243
|
+
"platform_hide_editor_toolbar_ssr": {
|
|
244
244
|
"type": "boolean"
|
|
245
245
|
},
|
|
246
246
|
"platform_editor_media_batch_updates": {
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"platform_editor_breakout_use_css": {
|
|
258
258
|
"type": "boolean"
|
|
259
259
|
},
|
|
260
|
-
"
|
|
260
|
+
"platform_editor_af_provider_from_plugin_config": {
|
|
261
261
|
"type": "boolean"
|
|
262
262
|
},
|
|
263
263
|
"editor_request_to_edit_task": {
|