@atlaskit/editor-plugin-base 19.0.5 → 19.0.7
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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 19.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9e6211ceb4ceb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e6211ceb4ceb) -
|
|
14
|
+
Clean up the fully rolled-out `platform_editor_small_font_size` experiment and make its permanent
|
|
15
|
+
`true` behavior unconditional across editor formatting, task and list handling, paste behavior,
|
|
16
|
+
controls, and rendering.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 19.0.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
11
|
var newlinePreserveMarksKey = exports.newlinePreserveMarksKey = new _state.PluginKey('newlinePreserveMarksPlugin');
|
|
13
12
|
var isSelectionAligned = function isSelectionAligned(state) {
|
|
14
13
|
return !!state.selection.$to.parent.marks.find(function (m) {
|
|
@@ -45,7 +44,7 @@ var _default = exports.default = function _default() {
|
|
|
45
44
|
key: newlinePreserveMarksKey,
|
|
46
45
|
props: {
|
|
47
46
|
handleKeyDown: (0, _keymap.keydownHandler)({
|
|
48
|
-
Enter: (0,
|
|
47
|
+
Enter: (0, _utils.filterCommand)([_utils.isSelectionEndOfParagraph, hasBlockMarksToPreserve], splitBlockPreservingMarks)
|
|
49
48
|
})
|
|
50
49
|
}
|
|
51
50
|
});
|
|
@@ -2,7 +2,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { filterCommand as filter, isSelectionEndOfParagraph } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
export const newlinePreserveMarksKey = new PluginKey('newlinePreserveMarksPlugin');
|
|
7
6
|
const isSelectionAligned = state => !!state.selection.$to.parent.marks.find(m => m.type === state.schema.marks.alignment);
|
|
8
7
|
const isSelectionFontSized = state => {
|
|
@@ -33,7 +32,7 @@ export default (() => new SafePlugin({
|
|
|
33
32
|
key: newlinePreserveMarksKey,
|
|
34
33
|
props: {
|
|
35
34
|
handleKeyDown: keydownHandler({
|
|
36
|
-
Enter:
|
|
35
|
+
Enter: filter([isSelectionEndOfParagraph, hasBlockMarksToPreserve], splitBlockPreservingMarks)
|
|
37
36
|
})
|
|
38
37
|
}
|
|
39
38
|
}));
|
|
@@ -2,7 +2,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { filterCommand as filter, isSelectionEndOfParagraph } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { keydownHandler } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
export var newlinePreserveMarksKey = new PluginKey('newlinePreserveMarksPlugin');
|
|
7
6
|
var isSelectionAligned = function isSelectionAligned(state) {
|
|
8
7
|
return !!state.selection.$to.parent.marks.find(function (m) {
|
|
@@ -39,7 +38,7 @@ export default (function () {
|
|
|
39
38
|
key: newlinePreserveMarksKey,
|
|
40
39
|
props: {
|
|
41
40
|
handleKeyDown: keydownHandler({
|
|
42
|
-
Enter:
|
|
41
|
+
Enter: filter([isSelectionEndOfParagraph, hasBlockMarksToPreserve], splitBlockPreservingMarks)
|
|
43
42
|
})
|
|
44
43
|
}
|
|
45
44
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.7",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
26
26
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
27
27
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^195.0.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@atlaskit/editor-common": "^122.
|
|
32
|
+
"@atlaskit/editor-common": "^122.6.0"
|
|
33
33
|
}
|
|
34
34
|
}
|