@atlaskit/editor-plugin-panel 4.4.3 → 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,20 @@
|
|
|
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
|
+
|
|
12
|
+
## 4.4.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 4.4.3
|
|
4
19
|
|
|
5
20
|
### 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
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -31,8 +31,7 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
31
31
|
var _actions = require("../editor-actions/actions");
|
|
32
32
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
33
33
|
var _panelTypeDropdown = require("./panelTypeDropdown");
|
|
34
|
-
function
|
|
35
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
34
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
36
35
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37
36
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38
37
|
var panelIconMap = exports.panelIconMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _adfSchema.PanelType.INFO, {
|
|
@@ -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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/editor-common": "^106.
|
|
35
|
+
"@atlaskit/editor-common": "^106.1.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
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.
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^5.10.0",
|
|
47
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"uuid": "^3.1.0"
|
|
50
50
|
},
|
|
@@ -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
|
},
|