@atlaskit/editor-plugin-selection 2.0.6 → 2.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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 2.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#123345](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/123345)
|
|
8
|
+
[`31b02e82858e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/31b02e82858e5) -
|
|
9
|
+
NO-ISSUE: Update usages of selection utils
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.0.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -244,7 +244,8 @@ var findLastChildNodeToSelect = exports.findLastChildNodeToSelect = function fin
|
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
246
|
var isSelectionAtStartOfParentNode = exports.isSelectionAtStartOfParentNode = function isSelectionAtStartOfParentNode($pos, selection) {
|
|
247
|
-
|
|
247
|
+
var _findSelectableContai;
|
|
248
|
+
return (0, _selection.isSelectionAtStartOfNode)($pos, (_findSelectableContai = findSelectableContainerParent(selection)) === null || _findSelectableContai === void 0 ? void 0 : _findSelectableContai.node);
|
|
248
249
|
};
|
|
249
250
|
var isSelectionAtEndOfParentNode = exports.isSelectionAtEndOfParentNode = function isSelectionAtEndOfParentNode($pos, selection) {
|
|
250
251
|
var isAtTheEndOfCurrentLevel = $pos.parent.content.size === $pos.parentOffset;
|
|
@@ -232,7 +232,10 @@ export const findLastChildNodeToSelect = parent => {
|
|
|
232
232
|
return child;
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
export const isSelectionAtStartOfParentNode = ($pos, selection) =>
|
|
235
|
+
export const isSelectionAtStartOfParentNode = ($pos, selection) => {
|
|
236
|
+
var _findSelectableContai;
|
|
237
|
+
return isSelectionAtStartOfNode($pos, (_findSelectableContai = findSelectableContainerParent(selection)) === null || _findSelectableContai === void 0 ? void 0 : _findSelectableContai.node);
|
|
238
|
+
};
|
|
236
239
|
export const isSelectionAtEndOfParentNode = ($pos, selection) => {
|
|
237
240
|
const isAtTheEndOfCurrentLevel = $pos.parent.content.size === $pos.parentOffset;
|
|
238
241
|
if (!isAtTheEndOfCurrentLevel) {
|
|
@@ -237,7 +237,8 @@ export var findLastChildNodeToSelect = function findLastChildNodeToSelect(parent
|
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
export var isSelectionAtStartOfParentNode = function isSelectionAtStartOfParentNode($pos, selection) {
|
|
240
|
-
|
|
240
|
+
var _findSelectableContai;
|
|
241
|
+
return isSelectionAtStartOfNode($pos, (_findSelectableContai = findSelectableContainerParent(selection)) === null || _findSelectableContai === void 0 ? void 0 : _findSelectableContai.node);
|
|
241
242
|
};
|
|
242
243
|
export var isSelectionAtEndOfParentNode = function isSelectionAtEndOfParentNode($pos, selection) {
|
|
243
244
|
var isAtTheEndOfCurrentLevel = $pos.parent.content.size === $pos.parentOffset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"runReact18": true
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaskit/editor-common": "^
|
|
23
|
+
"@atlaskit/editor-common": "^102.0.0",
|
|
24
24
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
25
25
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
26
26
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "3.4.0",
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^3.4.0",
|
|
29
29
|
"@atlaskit/tokens": "^4.3.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|