@atlaskit/editor-plugin-panel 4.4.4 → 4.4.5
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 4.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#164877](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164877)
|
|
8
|
+
[`a79ceac2fb271`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a79ceac2fb271) -
|
|
9
|
+
clean up clean-up-platform_editor_nbm_backspace_fixes
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.4.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.keymapPlugin = keymapPlugin;
|
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
10
10
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
function findParentNode(selection, nodeType) {
|
|
13
12
|
var parentPosition = (0, _utils2.findParentNodeOfType)(nodeType)(selection);
|
|
14
13
|
if (parentPosition) {
|
|
@@ -60,7 +59,7 @@ function keymapPlugin() {
|
|
|
60
59
|
var isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
|
|
61
60
|
|
|
62
61
|
// identifies if new position after backspace is at the start of a non-bodied extension node
|
|
63
|
-
var isPreviousPosAtExtension = (
|
|
62
|
+
var isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
|
|
64
63
|
|
|
65
64
|
// Stops merging panels when deleting empty paragraph in between
|
|
66
65
|
// Stops merging blockquotes with panels when deleting from start of blockquote
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
3
3
|
import { findParentNodeOfType, hasParentNodeOfType, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
function findParentNode(selection, nodeType) {
|
|
6
5
|
const parentPosition = findParentNodeOfType(nodeType)(selection);
|
|
7
6
|
if (parentPosition) {
|
|
@@ -61,7 +60,7 @@ export function keymapPlugin() {
|
|
|
61
60
|
const isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
|
|
62
61
|
|
|
63
62
|
// identifies if new position after backspace is at the start of a non-bodied extension node
|
|
64
|
-
const isPreviousPosAtExtension =
|
|
63
|
+
const isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
|
|
65
64
|
|
|
66
65
|
// Stops merging panels when deleting empty paragraph in between
|
|
67
66
|
// Stops merging blockquotes with panels when deleting from start of blockquote
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
3
3
|
import { findParentNodeOfType, hasParentNodeOfType, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
function findParentNode(selection, nodeType) {
|
|
6
5
|
var parentPosition = findParentNodeOfType(nodeType)(selection);
|
|
7
6
|
if (parentPosition) {
|
|
@@ -53,7 +52,7 @@ export function keymapPlugin() {
|
|
|
53
52
|
var isPreviousNodeAList = previousNodeType === bulletList || previousNodeType === orderedList;
|
|
54
53
|
|
|
55
54
|
// identifies if new position after backspace is at the start of a non-bodied extension node
|
|
56
|
-
var isPreviousPosAtExtension =
|
|
55
|
+
var isPreviousPosAtExtension = ((_$previousPos$nodeAft = $previousPos.nodeAfter) === null || _$previousPos$nodeAft === void 0 ? void 0 : _$previousPos$nodeAft.type) === extension;
|
|
57
56
|
|
|
58
57
|
// Stops merging panels when deleting empty paragraph in between
|
|
59
58
|
// Stops merging blockquotes with panels when deleting from start of blockquote
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.5",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/icon": "^26.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/theme": "^18.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^5.10.0",
|
|
47
47
|
"@atlaskit/tokens": "^5.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"uuid": "^3.1.0"
|
|
@@ -93,9 +93,6 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"platform-feature-flags": {
|
|
96
|
-
"platform_editor_nbm_backspace_fixes": {
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
96
|
"platform_editor_nested_dnd_styles_changes": {
|
|
100
97
|
"type": "boolean"
|
|
101
98
|
},
|