@atlaskit/editor-common 122.6.0 → 122.6.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 +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/index.js +7 -14
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +5 -12
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +7 -14
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 122.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`85ad3990bac78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85ad3990bac78) -
|
|
8
|
+
Clean up experiment `platform_editor_appearance_shared_state`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 122.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "122.
|
|
30
|
+
var packageVersion = "122.6.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.corePlugin = void 0;
|
|
7
7
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
8
8
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
9
|
var _nodeAnchorProvider = require("../../node-anchor/node-anchor-provider");
|
|
11
10
|
var _processRawFragmentValue = require("../../utils/processRawFragmentValue");
|
|
12
11
|
var _processRawValue = require("../../utils/processRawValue");
|
|
@@ -28,19 +27,16 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
28
27
|
var pluginState = state && _appearancePlugin.appearancePluginKey.getState(state);
|
|
29
28
|
return {
|
|
30
29
|
schema: state === null || state === void 0 ? void 0 : state.schema,
|
|
31
|
-
appearance:
|
|
30
|
+
appearance: pluginState === null || pluginState === void 0 ? void 0 : pluginState.appearance
|
|
32
31
|
};
|
|
33
32
|
},
|
|
34
33
|
pmPlugins: function pmPlugins() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}];
|
|
42
|
-
}
|
|
43
|
-
return [];
|
|
34
|
+
return [{
|
|
35
|
+
name: 'appearancePlugin',
|
|
36
|
+
plugin: function plugin() {
|
|
37
|
+
return (0, _appearancePlugin.createAppearancePlugin)(config === null || config === void 0 ? void 0 : config.appearance);
|
|
38
|
+
}
|
|
39
|
+
}];
|
|
44
40
|
},
|
|
45
41
|
actions: {
|
|
46
42
|
execute: function execute(command) {
|
|
@@ -115,9 +111,6 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
115
111
|
},
|
|
116
112
|
updateAppearance: function updateAppearance(newAppearance) {
|
|
117
113
|
var _appearancePluginKey$;
|
|
118
|
-
if (!(0, _expValEquals.expValEquals)('platform_editor_appearance_shared_state', 'isEnabled', true)) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
114
|
var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
122
115
|
if (!editorView) {
|
|
123
116
|
return false;
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "122.
|
|
27
|
+
var packageVersion = "122.6.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "122.
|
|
16
|
+
const packageVersion = "122.6.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
|
|
5
4
|
import { processRawFragmentValue } from '../../utils/processRawFragmentValue';
|
|
6
5
|
import { processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
@@ -24,17 +23,14 @@ export const corePlugin = ({
|
|
|
24
23
|
const pluginState = state && appearancePluginKey.getState(state);
|
|
25
24
|
return {
|
|
26
25
|
schema: state === null || state === void 0 ? void 0 : state.schema,
|
|
27
|
-
appearance:
|
|
26
|
+
appearance: pluginState === null || pluginState === void 0 ? void 0 : pluginState.appearance
|
|
28
27
|
};
|
|
29
28
|
},
|
|
30
29
|
pmPlugins() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}];
|
|
36
|
-
}
|
|
37
|
-
return [];
|
|
30
|
+
return [{
|
|
31
|
+
name: 'appearancePlugin',
|
|
32
|
+
plugin: () => createAppearancePlugin(config === null || config === void 0 ? void 0 : config.appearance)
|
|
33
|
+
}];
|
|
38
34
|
},
|
|
39
35
|
actions: {
|
|
40
36
|
execute: command => {
|
|
@@ -111,9 +107,6 @@ export const corePlugin = ({
|
|
|
111
107
|
},
|
|
112
108
|
updateAppearance: newAppearance => {
|
|
113
109
|
var _appearancePluginKey$;
|
|
114
|
-
if (!expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
110
|
const editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
118
111
|
if (!editorView) {
|
|
119
112
|
return false;
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "122.
|
|
17
|
+
const packageVersion = "122.6.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "122.
|
|
22
|
+
var packageVersion = "122.6.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
|
|
5
4
|
import { processRawFragmentValue } from '../../utils/processRawFragmentValue';
|
|
6
5
|
import { processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
@@ -23,19 +22,16 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
23
22
|
var pluginState = state && appearancePluginKey.getState(state);
|
|
24
23
|
return {
|
|
25
24
|
schema: state === null || state === void 0 ? void 0 : state.schema,
|
|
26
|
-
appearance:
|
|
25
|
+
appearance: pluginState === null || pluginState === void 0 ? void 0 : pluginState.appearance
|
|
27
26
|
};
|
|
28
27
|
},
|
|
29
28
|
pmPlugins: function pmPlugins() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}];
|
|
37
|
-
}
|
|
38
|
-
return [];
|
|
29
|
+
return [{
|
|
30
|
+
name: 'appearancePlugin',
|
|
31
|
+
plugin: function plugin() {
|
|
32
|
+
return createAppearancePlugin(config === null || config === void 0 ? void 0 : config.appearance);
|
|
33
|
+
}
|
|
34
|
+
}];
|
|
39
35
|
},
|
|
40
36
|
actions: {
|
|
41
37
|
execute: function execute(command) {
|
|
@@ -110,9 +106,6 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
110
106
|
},
|
|
111
107
|
updateAppearance: function updateAppearance(newAppearance) {
|
|
112
108
|
var _appearancePluginKey$;
|
|
113
|
-
if (!expValEquals('platform_editor_appearance_shared_state', 'isEnabled', true)) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
109
|
var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
117
110
|
if (!editorView) {
|
|
118
111
|
return false;
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "122.
|
|
24
|
+
var packageVersion = "122.6.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "122.6.
|
|
3
|
+
"version": "122.6.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.10.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
-
"@atlaskit/tokens": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^195.0.0",
|
|
88
|
+
"@atlaskit/tokens": "^17.0.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|
|
91
91
|
"@babel/runtime": "^7.0.0",
|