@atlaskit/editor-plugin-selection 7.0.3 → 7.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,19 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 7.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c39074cee52e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c39074cee52e9) -
8
+ [ux] [EDITOR-3095] platform_editor_fix_list_item_nav_bug_in_layout fg cleanup
9
+ - Updated dependencies
10
+
11
+ ## 7.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.3
4
18
 
5
19
  ### Patch Changes
@@ -13,7 +13,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
13
13
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
14
14
  var _view = require("@atlaskit/editor-prosemirror/view");
15
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
17
  var _types = require("../types");
19
18
  var _hideCursorDecoration = require("./cursor/ui/hide-cursor-decoration");
@@ -369,21 +368,12 @@ var isSelectionAtEndOfLayoutColumn = exports.isSelectionAtEndOfLayoutColumn = fu
369
368
  return false;
370
369
  }
371
370
  var panelOrExpandParent = (0, _utils2.findParentNodeClosestToPos)($pos, isPanelOrExpandNode);
372
- if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos && (0, _platformFeatureFlags.fg)('platform_editor_fix_list_item_nav_bug_in_layout')) {
371
+ if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos) {
373
372
  return false;
374
373
  }
375
- var grandParentDepth = $pos.depth - 1;
376
- if (grandParentDepth < 0) {
377
- return false;
378
- }
379
- var layoutColumn = $pos.doc.type.schema.nodes.layoutColumn;
380
- var grandParent = $pos.node(grandParentDepth);
381
374
  var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
382
375
  var $after = $pos.doc.resolve(afterPos);
383
- if ((0, _platformFeatureFlags.fg)('platform_editor_fix_list_item_nav_bug_in_layout')) {
384
- return Boolean($after.nodeAfter);
385
- }
386
- return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
376
+ return Boolean($after.nodeAfter);
387
377
  };
388
378
 
389
379
  /**
@@ -4,7 +4,6 @@ import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit
4
4
  import { findParentNode, findParentNodeClosestToPos, flatten, hasParentNode } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { selectionPluginKey } from '../types';
10
9
  import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
@@ -358,23 +357,12 @@ export const isSelectionAtEndOfLayoutColumn = $pos => {
358
357
  return false;
359
358
  }
360
359
  const panelOrExpandParent = findParentNodeClosestToPos($pos, isPanelOrExpandNode);
361
- if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos && fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
360
+ if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos) {
362
361
  return false;
363
362
  }
364
- const grandParentDepth = $pos.depth - 1;
365
- if (grandParentDepth < 0) {
366
- return false;
367
- }
368
- const {
369
- layoutColumn
370
- } = $pos.doc.type.schema.nodes;
371
- const grandParent = $pos.node(grandParentDepth);
372
363
  const afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
373
364
  const $after = $pos.doc.resolve(afterPos);
374
- if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
375
- return Boolean($after.nodeAfter);
376
- }
377
- return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
365
+ return Boolean($after.nodeAfter);
378
366
  };
379
367
 
380
368
  /**
@@ -5,7 +5,6 @@ import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit
5
5
  import { findParentNode, findParentNodeClosestToPos, flatten, hasParentNode } from '@atlaskit/editor-prosemirror/utils';
6
6
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
7
  import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { selectionPluginKey } from '../types';
11
10
  import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
@@ -361,21 +360,12 @@ export var isSelectionAtEndOfLayoutColumn = function isSelectionAtEndOfLayoutCol
361
360
  return false;
362
361
  }
363
362
  var panelOrExpandParent = findParentNodeClosestToPos($pos, isPanelOrExpandNode);
364
- if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos && fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
363
+ if (panelOrExpandParent && panelOrExpandParent.pos > layoutColumnParent.pos) {
365
364
  return false;
366
365
  }
367
- var grandParentDepth = $pos.depth - 1;
368
- if (grandParentDepth < 0) {
369
- return false;
370
- }
371
- var layoutColumn = $pos.doc.type.schema.nodes.layoutColumn;
372
- var grandParent = $pos.node(grandParentDepth);
373
366
  var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
374
367
  var $after = $pos.doc.resolve(afterPos);
375
- if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
376
- return Boolean($after.nodeAfter);
377
- }
378
- return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
368
+ return Boolean($after.nodeAfter);
379
369
  };
380
370
 
381
371
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,12 +25,12 @@
25
25
  "@atlaskit/editor-shared-styles": "^3.10.0",
26
26
  "@atlaskit/editor-tables": "^2.9.0",
27
27
  "@atlaskit/platform-feature-flags": "^1.1.0",
28
- "@atlaskit/tmp-editor-statsig": "^16.35.0",
28
+ "@atlaskit/tmp-editor-statsig": "^17.5.0",
29
29
  "@atlaskit/tokens": "^10.1.0",
30
30
  "@babel/runtime": "^7.0.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^111.9.0",
33
+ "@atlaskit/editor-common": "^111.10.0",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "techstack": {
@@ -80,9 +80,6 @@
80
80
  },
81
81
  "platform_editor_nested_tables_gap_cursor": {
82
82
  "type": "boolean"
83
- },
84
- "platform_editor_fix_list_item_nav_bug_in_layout": {
85
- "type": "boolean"
86
83
  }
87
84
  }
88
85
  }