@atlaskit/editor-core 197.10.0 → 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 +9 -0
- package/dist/cjs/create-editor/create-editor.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-editor.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-editor.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 197.10.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -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,
|
|
@@ -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.10.
|
|
2
|
+
export const version = "197.10.1";
|
|
@@ -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.10.
|
|
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.10.
|
|
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",
|
|
@@ -234,6 +234,9 @@
|
|
|
234
234
|
"type": "boolean",
|
|
235
235
|
"referenceOnly": true
|
|
236
236
|
},
|
|
237
|
+
"platform_editor_disable_instrumented_plugin": {
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
237
240
|
"platform_editor_drag_and_drop_expand_style_fix": {
|
|
238
241
|
"type": "boolean"
|
|
239
242
|
},
|