@atlaskit/editor-plugin-selection 3.0.4 → 3.0.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-selection
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#196046](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/196046)
|
|
8
|
+
[`6ac9374c00fe3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ac9374c00fe3) -
|
|
9
|
+
[ux] [ED-25230] Follow up bug fix layout nav issue on list items
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.0.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -361,6 +361,9 @@ var isSelectionAtEndOfLayoutColumn = exports.isSelectionAtEndOfLayoutColumn = fu
|
|
|
361
361
|
var grandParent = $pos.node(grandParentDepth);
|
|
362
362
|
var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
363
363
|
var $after = $pos.doc.resolve(afterPos);
|
|
364
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
365
|
+
return Boolean($after.nodeAfter);
|
|
366
|
+
}
|
|
364
367
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
365
368
|
};
|
|
366
369
|
|
|
@@ -354,6 +354,9 @@ export const isSelectionAtEndOfLayoutColumn = $pos => {
|
|
|
354
354
|
const grandParent = $pos.node(grandParentDepth);
|
|
355
355
|
const afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
356
356
|
const $after = $pos.doc.resolve(afterPos);
|
|
357
|
+
if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
358
|
+
return Boolean($after.nodeAfter);
|
|
359
|
+
}
|
|
357
360
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
358
361
|
};
|
|
359
362
|
|
|
@@ -354,6 +354,9 @@ export var isSelectionAtEndOfLayoutColumn = function isSelectionAtEndOfLayoutCol
|
|
|
354
354
|
var grandParent = $pos.node(grandParentDepth);
|
|
355
355
|
var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
356
356
|
var $after = $pos.doc.resolve(afterPos);
|
|
357
|
+
if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
358
|
+
return Boolean($after.nodeAfter);
|
|
359
|
+
}
|
|
357
360
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
358
361
|
};
|
|
359
362
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
25
25
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^9.24.0",
|
|
28
28
|
"@atlaskit/tokens": "^6.0.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@atlaskit/editor-common": "^107.
|
|
32
|
+
"@atlaskit/editor-common": "^107.17.0",
|
|
33
33
|
"react": "^18.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"platform_editor_fix_right_arrow_nav_bug_in_layout": {
|
|
94
94
|
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"platform_editor_fix_list_item_nav_bug_in_layout": {
|
|
97
|
+
"type": "boolean"
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
}
|