@atlaskit/editor-plugin-selection 3.0.3 → 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,20 @@
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
+
12
+ ## 3.0.4
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.0.3
4
19
 
5
20
  ### 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",
3
+ "version": "3.0.5",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,17 +19,17 @@
19
19
  "singleton": true
20
20
  },
21
21
  "dependencies": {
22
- "@atlaskit/editor-plugin-interaction": "^4.0.0",
22
+ "@atlaskit/editor-plugin-interaction": "^5.0.0",
23
23
  "@atlaskit/editor-prosemirror": "7.0.0",
24
- "@atlaskit/editor-shared-styles": "^3.4.0",
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.7.0",
28
- "@atlaskit/tokens": "^5.5.0",
27
+ "@atlaskit/tmp-editor-statsig": "^9.24.0",
28
+ "@atlaskit/tokens": "^6.0.0",
29
29
  "@babel/runtime": "^7.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@atlaskit/editor-common": "^107.8.0",
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
  }