@atlaskit/editor-plugin-selection 7.0.19 → 7.0.21

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.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.20
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8872ed42db4ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8872ed42db4ef) -
14
+ Handle gap cursor caret visibility via CSS selector instead of plugin state
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.19
4
18
 
5
19
  ### Patch Changes
@@ -10,6 +10,8 @@ var _state = require("@atlaskit/editor-prosemirror/state");
10
10
  var _utils = require("@atlaskit/editor-prosemirror/utils");
11
11
  var _view2 = require("@atlaskit/editor-prosemirror/view");
12
12
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
15
  var _types = require("../types");
14
16
  var _gapCursorPluginKey = require("./gap-cursor-plugin-key");
15
17
  var _actions = require("./gap-cursor/actions");
@@ -54,6 +56,10 @@ var plugin = new _safePlugin.SafePlugin({
54
56
  }
55
57
  return {
56
58
  update: function update(view) {
59
+ if ((0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_4')) {
60
+ // Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
61
+ return;
62
+ }
57
63
  var _gapCursorPluginKey$g = _gapCursorPluginKey.gapCursorPluginKey.getState(view.state),
58
64
  selectionIsGapCursor = _gapCursorPluginKey$g.selectionIsGapCursor;
59
65
  /**
@@ -4,6 +4,8 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  import { selectionPluginKey } from '../types';
8
10
  import { gapCursorPluginKey } from './gap-cursor-plugin-key';
9
11
  import { deleteNode } from './gap-cursor/actions';
@@ -46,6 +48,10 @@ const plugin = new SafePlugin({
46
48
  }
47
49
  return {
48
50
  update(view) {
51
+ if (expValEquals('platform_synced_block', 'isEnabled', true) && fg('platform_synced_block_patch_4')) {
52
+ // Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
53
+ return;
54
+ }
49
55
  const {
50
56
  selectionIsGapCursor
51
57
  } = gapCursorPluginKey.getState(view.state);
@@ -4,6 +4,8 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
9
  import { selectionPluginKey } from '../types';
8
10
  import { gapCursorPluginKey } from './gap-cursor-plugin-key';
9
11
  import { deleteNode } from './gap-cursor/actions';
@@ -48,6 +50,10 @@ var plugin = new SafePlugin({
48
50
  }
49
51
  return {
50
52
  update: function update(view) {
53
+ if (expValEquals('platform_synced_block', 'isEnabled', true) && fg('platform_synced_block_patch_4')) {
54
+ // Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
55
+ return;
56
+ }
51
57
  var _gapCursorPluginKey$g = gapCursorPluginKey.getState(view.state),
52
58
  selectionIsGapCursor = _gapCursorPluginKey$g.selectionIsGapCursor;
53
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "7.0.19",
3
+ "version": "7.0.21",
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": "^29.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^30.0.0",
29
29
  "@atlaskit/tokens": "^11.0.0",
30
30
  "@babel/runtime": "^7.0.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^111.16.0",
33
+ "@atlaskit/editor-common": "^111.20.0",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "techstack": {
@@ -80,6 +80,9 @@
80
80
  },
81
81
  "platform_editor_nested_tables_gap_cursor": {
82
82
  "type": "boolean"
83
+ },
84
+ "platform_synced_block_patch_4": {
85
+ "type": "boolean"
83
86
  }
84
87
  }
85
88
  }