@atlaskit/editor-plugin-base 2.0.9 → 2.0.10
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/pm-plugins/inline-cursor-target.js +1 -2
- package/dist/cjs/pm-plugins/utils/input-latency-tracking.js +1 -2
- package/dist/es2019/pm-plugins/inline-cursor-target.js +1 -2
- package/dist/esm/pm-plugins/inline-cursor-target.js +1 -2
- package/dist/esm/pm-plugins/utils/input-latency-tracking.js +1 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 2.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#180763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180763)
|
|
8
|
+
[`db6668f7e2f8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db6668f7e2f8f) -
|
|
9
|
+
ED-25855 clean up feature flag for softline break on second row by using Japanese/Chinese
|
|
10
|
+
|
|
3
11
|
## 2.0.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,14 +10,13 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
10
10
|
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
12
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var inlineCursorTargetStateKey = exports.inlineCursorTargetStateKey = new _state.PluginKey('inlineCursorTargetPlugin');
|
|
15
14
|
var isInlineNodeView = function isInlineNodeView(node) {
|
|
16
15
|
/**
|
|
17
16
|
* If inlineNodeView is a hardbreak we don't want to add decorations
|
|
18
17
|
* as it breaks soft line breaks for Japanese/Chinese keyboards.
|
|
19
18
|
*/
|
|
20
|
-
var isHardBreak = (
|
|
19
|
+
var isHardBreak = (node === null || node === void 0 ? void 0 : node.type) === (node === null || node === void 0 ? void 0 : node.type.schema.nodes.hardBreak);
|
|
21
20
|
return node && node.type.isInline && !node.type.isText && !isHardBreak;
|
|
22
21
|
};
|
|
23
22
|
var _default = exports.default = function _default() {
|
|
@@ -34,7 +34,7 @@ var InputLatencyTracker = exports.default = /*#__PURE__*/function () {
|
|
|
34
34
|
this.onSampleEnd = onSampleEnd;
|
|
35
35
|
this.onSlowInput = onSlowInput;
|
|
36
36
|
}
|
|
37
|
-
(0, _createClass2.default)(InputLatencyTracker, [{
|
|
37
|
+
return (0, _createClass2.default)(InputLatencyTracker, [{
|
|
38
38
|
key: "start",
|
|
39
39
|
value: function start() {
|
|
40
40
|
var _this = this;
|
|
@@ -130,5 +130,4 @@ var InputLatencyTracker = exports.default = /*#__PURE__*/function () {
|
|
|
130
130
|
return (left + right) / 2;
|
|
131
131
|
}
|
|
132
132
|
}]);
|
|
133
|
-
return InputLatencyTracker;
|
|
134
133
|
}();
|
|
@@ -4,14 +4,13 @@ import { isTextSelection } from '@atlaskit/editor-common/utils';
|
|
|
4
4
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
export const inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
|
9
8
|
const isInlineNodeView = node => {
|
|
10
9
|
/**
|
|
11
10
|
* If inlineNodeView is a hardbreak we don't want to add decorations
|
|
12
11
|
* as it breaks soft line breaks for Japanese/Chinese keyboards.
|
|
13
12
|
*/
|
|
14
|
-
const isHardBreak =
|
|
13
|
+
const isHardBreak = (node === null || node === void 0 ? void 0 : node.type) === (node === null || node === void 0 ? void 0 : node.type.schema.nodes.hardBreak);
|
|
15
14
|
return node && node.type.isInline && !node.type.isText && !isHardBreak;
|
|
16
15
|
};
|
|
17
16
|
export default (() => {
|
|
@@ -4,14 +4,13 @@ import { isTextSelection } from '@atlaskit/editor-common/utils';
|
|
|
4
4
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
export var inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
|
9
8
|
var isInlineNodeView = function isInlineNodeView(node) {
|
|
10
9
|
/**
|
|
11
10
|
* If inlineNodeView is a hardbreak we don't want to add decorations
|
|
12
11
|
* as it breaks soft line breaks for Japanese/Chinese keyboards.
|
|
13
12
|
*/
|
|
14
|
-
var isHardBreak =
|
|
13
|
+
var isHardBreak = (node === null || node === void 0 ? void 0 : node.type) === (node === null || node === void 0 ? void 0 : node.type.schema.nodes.hardBreak);
|
|
15
14
|
return node && node.type.isInline && !node.type.isText && !isHardBreak;
|
|
16
15
|
};
|
|
17
16
|
export default (function () {
|
|
@@ -27,7 +27,7 @@ var InputLatencyTracker = /*#__PURE__*/function () {
|
|
|
27
27
|
this.onSampleEnd = onSampleEnd;
|
|
28
28
|
this.onSlowInput = onSlowInput;
|
|
29
29
|
}
|
|
30
|
-
_createClass(InputLatencyTracker, [{
|
|
30
|
+
return _createClass(InputLatencyTracker, [{
|
|
31
31
|
key: "start",
|
|
32
32
|
value: function start() {
|
|
33
33
|
var _this = this;
|
|
@@ -123,6 +123,5 @@ var InputLatencyTracker = /*#__PURE__*/function () {
|
|
|
123
123
|
return (left + right) / 2;
|
|
124
124
|
}
|
|
125
125
|
}]);
|
|
126
|
-
return InputLatencyTracker;
|
|
127
126
|
}();
|
|
128
127
|
export { InputLatencyTracker as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^96.
|
|
35
|
+
"@atlaskit/editor-common": "^96.5.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^2.27.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"techstack": {
|
|
@@ -81,9 +81,6 @@
|
|
|
81
81
|
"platform-feature-flags": {
|
|
82
82
|
"platform_editor_improved_scroll_gutter": {
|
|
83
83
|
"type": "boolean"
|
|
84
|
-
},
|
|
85
|
-
"platform_editor_prevent_decorations_on_hardbreak": {
|
|
86
|
-
"type": "boolean"
|
|
87
84
|
}
|
|
88
85
|
}
|
|
89
86
|
}
|