@atlaskit/editor-plugin-code-bidi-warning 15.0.2 → 15.0.4
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 +25 -0
- package/dist/cjs/pm-plugins/main.js +0 -11
- package/dist/es2019/pm-plugins/main.js +0 -11
- package/dist/esm/pm-plugins/main.js +0 -11
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-bidi-warning
|
|
2
2
|
|
|
3
|
+
## 15.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1eb42bae392d7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1eb42bae392d7) -
|
|
8
|
+
Clean up experiment `platform_editor_remove_bidi_char_warning`. Bidirectional character warnings
|
|
9
|
+
are no longer rendered in code blocks: `codeBidiWarningPlugin` is no longer registered by any
|
|
10
|
+
preset, and the renderer passes `hasBidiWarnings={false}` to `@atlaskit/code` code blocks. Bidi
|
|
11
|
+
warnings on inline `code` marks are unaffected.
|
|
12
|
+
|
|
13
|
+
`codeBidiWarning` has been removed from the plugin lists and plugin options of the Confluence
|
|
14
|
+
full-page, Confluence markdown, and Company Hub presets, so consumers no longer need to pass
|
|
15
|
+
`pluginOptions.codeBidiWarning` or `enabledOptionalPlugins.codeBidiWarning`.
|
|
16
|
+
|
|
17
|
+
`@atlaskit/editor-plugin-code-bidi-warning` is retained but now has no consumers; it is scheduled
|
|
18
|
+
for removal in a follow-up.
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 15.0.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 15.0.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ exports.createPlugin = void 0;
|
|
|
7
7
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
8
8
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
9
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
10
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
10
|
var _pluginKey = require("./plugin-key");
|
|
12
11
|
var _reactPluginFactory = require("./react-plugin-factory");
|
|
13
12
|
var createPlugin = exports.createPlugin = function createPlugin(api, _ref, _ref2) {
|
|
@@ -24,13 +23,6 @@ var createPlugin = exports.createPlugin = function createPlugin(api, _ref, _ref2
|
|
|
24
23
|
key: _pluginKey.codeBidiWarningPluginKey,
|
|
25
24
|
state: createPluginState(dispatch, function (state) {
|
|
26
25
|
var _api$limitedMode;
|
|
27
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
28
|
-
return {
|
|
29
|
-
decorationSet: _view.DecorationSet.empty,
|
|
30
|
-
codeBidiWarningLabel: '',
|
|
31
|
-
tooltipEnabled: false
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
26
|
if (api !== null && api !== void 0 && (_api$limitedMode = api.limitedMode) !== null && _api$limitedMode !== void 0 && (_api$limitedMode = _api$limitedMode.sharedState.currentState()) !== null && _api$limitedMode !== void 0 && _api$limitedMode.enabled) {
|
|
35
27
|
return {
|
|
36
28
|
decorationSet: _view.DecorationSet.empty,
|
|
@@ -51,9 +43,6 @@ var createPlugin = exports.createPlugin = function createPlugin(api, _ref, _ref2
|
|
|
51
43
|
}),
|
|
52
44
|
props: {
|
|
53
45
|
decorations: function decorations(state) {
|
|
54
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
55
|
-
return _view.DecorationSet.empty;
|
|
56
|
-
}
|
|
57
46
|
var _getPluginState = getPluginState(state),
|
|
58
47
|
decorationSet = _getPluginState.decorationSet;
|
|
59
48
|
return decorationSet;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { codeBidiWarningPluginKey } from './plugin-key';
|
|
6
5
|
import { createBidiWarningsDecorationSetFromDoc as reactCreateBidiWarningsDecorationSetFromDoc, pluginFactoryCreator as reactPluginFactoryCreator } from './react-plugin-factory';
|
|
7
6
|
export const createPlugin = (api, {
|
|
@@ -21,13 +20,6 @@ export const createPlugin = (api, {
|
|
|
21
20
|
key: codeBidiWarningPluginKey,
|
|
22
21
|
state: createPluginState(dispatch, state => {
|
|
23
22
|
var _api$limitedMode, _api$limitedMode$shar;
|
|
24
|
-
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
25
|
-
return {
|
|
26
|
-
decorationSet: DecorationSet.empty,
|
|
27
|
-
codeBidiWarningLabel: '',
|
|
28
|
-
tooltipEnabled: false
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
23
|
if (api !== null && api !== void 0 && (_api$limitedMode = api.limitedMode) !== null && _api$limitedMode !== void 0 && (_api$limitedMode$shar = _api$limitedMode.sharedState.currentState()) !== null && _api$limitedMode$shar !== void 0 && _api$limitedMode$shar.enabled) {
|
|
32
24
|
return {
|
|
33
25
|
decorationSet: DecorationSet.empty,
|
|
@@ -48,9 +40,6 @@ export const createPlugin = (api, {
|
|
|
48
40
|
}),
|
|
49
41
|
props: {
|
|
50
42
|
decorations: state => {
|
|
51
|
-
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
52
|
-
return DecorationSet.empty;
|
|
53
|
-
}
|
|
54
43
|
const {
|
|
55
44
|
decorationSet
|
|
56
45
|
} = getPluginState(state);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { codeBidiWarningPluginKey } from './plugin-key';
|
|
6
5
|
import { createBidiWarningsDecorationSetFromDoc as reactCreateBidiWarningsDecorationSetFromDoc, pluginFactoryCreator as reactPluginFactoryCreator } from './react-plugin-factory';
|
|
7
6
|
export var createPlugin = function createPlugin(api, _ref, _ref2) {
|
|
@@ -18,13 +17,6 @@ export var createPlugin = function createPlugin(api, _ref, _ref2) {
|
|
|
18
17
|
key: codeBidiWarningPluginKey,
|
|
19
18
|
state: createPluginState(dispatch, function (state) {
|
|
20
19
|
var _api$limitedMode;
|
|
21
|
-
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
22
|
-
return {
|
|
23
|
-
decorationSet: DecorationSet.empty,
|
|
24
|
-
codeBidiWarningLabel: '',
|
|
25
|
-
tooltipEnabled: false
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
20
|
if (api !== null && api !== void 0 && (_api$limitedMode = api.limitedMode) !== null && _api$limitedMode !== void 0 && (_api$limitedMode = _api$limitedMode.sharedState.currentState()) !== null && _api$limitedMode !== void 0 && _api$limitedMode.enabled) {
|
|
29
21
|
return {
|
|
30
22
|
decorationSet: DecorationSet.empty,
|
|
@@ -45,9 +37,6 @@ export var createPlugin = function createPlugin(api, _ref, _ref2) {
|
|
|
45
37
|
}),
|
|
46
38
|
props: {
|
|
47
39
|
decorations: function decorations(state) {
|
|
48
|
-
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
49
|
-
return DecorationSet.empty;
|
|
50
|
-
}
|
|
51
40
|
var _getPluginState = getPluginState(state),
|
|
52
41
|
decorationSet = _getPluginState.decorationSet;
|
|
53
42
|
return decorationSet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-bidi-warning",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.4",
|
|
4
4
|
"description": "Code bidi warning plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
"@atlaskit/editor-plugin-limited-mode": "^12.0.0",
|
|
24
24
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
25
25
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
26
|
-
"@atlaskit/tmp-editor-statsig": "^149.0.0",
|
|
27
26
|
"@babel/runtime": "^7.0.0",
|
|
28
27
|
"uuid": "^3.1.0"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"@atlaskit/editor-common": "^119.
|
|
30
|
+
"@atlaskit/editor-common": "^119.9.0",
|
|
32
31
|
"react": "^18.2.0 || ^19.2.0",
|
|
33
32
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
34
33
|
},
|