@atlaskit/editor-plugin-selection 1.2.10 → 1.2.11
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-selection
|
|
2
2
|
|
|
3
|
+
## 1.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#117973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117973)
|
|
8
|
+
[`6e37bac62083f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e37bac62083f) -
|
|
9
|
+
moved one const, added new entry point for other and deprecated
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.2.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.shouldSkipGapCursor = exports.setSelectionTopLevelBlocks = exports.setCursorForTopLevelBlocks = exports.hasGapCursorPlugin = exports.deleteNode = exports.arrow = void 0;
|
|
7
7
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
9
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
11
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
11
12
|
var _gapCursorPluginKey = require("../pm-plugins/gap-cursor-plugin-key");
|
|
@@ -123,7 +124,7 @@ var arrow = exports.arrow = function arrow(dir, endOfTextblock) {
|
|
|
123
124
|
if (view) {
|
|
124
125
|
var domAtPos = view.domAtPos.bind(view);
|
|
125
126
|
var target = (0, _utils2.findDomRefAtPos)($pos.pos, domAtPos);
|
|
126
|
-
if (target && target.textContent ===
|
|
127
|
+
if (target && target.textContent === _whitespace.ZERO_WIDTH_SPACE) {
|
|
127
128
|
return false;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { atTheBeginningOfDoc, atTheEndOfDoc } from '@atlaskit/editor-common/selection';
|
|
2
|
-
import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow
|
|
2
|
+
import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
3
4
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { findDomRefAtPos, findPositionOfNodeBefore, removeNodeBefore } from '@atlaskit/editor-prosemirror/utils';
|
|
5
6
|
import { gapCursorPluginKey } from '../pm-plugins/gap-cursor-plugin-key';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { atTheBeginningOfDoc, atTheEndOfDoc } from '@atlaskit/editor-common/selection';
|
|
2
|
-
import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow
|
|
2
|
+
import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
3
4
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { findDomRefAtPos, findPositionOfNodeBefore, removeNodeBefore } from '@atlaskit/editor-prosemirror/utils';
|
|
5
6
|
import { gapCursorPluginKey } from '../pm-plugins/gap-cursor-plugin-key';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/editor-common": "^84.
|
|
24
|
+
"@atlaskit/editor-common": "^84.3.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
26
26
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^2.7.0",
|