@atlaskit/editor-plugin-toolbar 9.0.10 → 9.0.12

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-toolbar
2
2
 
3
+ ## 9.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`44469412345de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44469412345de) -
14
+ Clean up feature gate `platform_editor_toolbar_open_experience_fix_2`
15
+ - Updated dependencies
16
+
3
17
  ## 9.0.10
4
18
 
5
19
  ### Patch Changes
@@ -10,7 +10,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
10
10
  var _experiences = require("@atlaskit/editor-common/experiences");
11
11
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var pluginKey = new _state.PluginKey('selectionToolbarOpenExperience');
15
14
  var START_METHOD = {
16
15
  MOUSE_UP: 'mouseUp',
@@ -88,7 +87,7 @@ var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExp
88
87
  return true;
89
88
  }
90
89
  var target = getTarget();
91
- if (!target && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_open_experience_fix_2')) {
90
+ if (!target) {
92
91
  // when target is not found, skip the experience start
93
92
  return true;
94
93
  }
@@ -106,7 +105,7 @@ var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExp
106
105
  reason: ABORT_REASON.SELECTION_CLEARED
107
106
  });
108
107
  }
109
- var shouldStartExperience = (0, _platformFeatureFlags.fg)('platform_editor_toolbar_open_experience_fix_2') ? shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection) : shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !isSelectionWithoutTextContent(newState.selection);
108
+ var shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
110
109
  if (shouldStartExperience) {
111
110
  experience.start({
112
111
  method: START_METHOD.KEY_DOWN
@@ -2,7 +2,6 @@ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
2
2
  import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  const pluginKey = new PluginKey('selectionToolbarOpenExperience');
7
6
  const START_METHOD = {
8
7
  MOUSE_UP: 'mouseUp',
@@ -81,7 +80,7 @@ export const getSelectionToolbarOpenExperiencePlugin = ({
81
80
  return true;
82
81
  }
83
82
  const target = getTarget();
84
- if (!target && fg('platform_editor_toolbar_open_experience_fix_2')) {
83
+ if (!target) {
85
84
  // when target is not found, skip the experience start
86
85
  return true;
87
86
  }
@@ -97,7 +96,7 @@ export const getSelectionToolbarOpenExperiencePlugin = ({
97
96
  reason: ABORT_REASON.SELECTION_CLEARED
98
97
  });
99
98
  }
100
- const shouldStartExperience = fg('platform_editor_toolbar_open_experience_fix_2') ? shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection) : shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !isSelectionWithoutTextContent(newState.selection);
99
+ const shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
101
100
  if (shouldStartExperience) {
102
101
  experience.start({
103
102
  method: START_METHOD.KEY_DOWN
@@ -3,7 +3,6 @@ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
3
  import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  var pluginKey = new PluginKey('selectionToolbarOpenExperience');
8
7
  var START_METHOD = {
9
8
  MOUSE_UP: 'mouseUp',
@@ -81,7 +80,7 @@ export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolba
81
80
  return true;
82
81
  }
83
82
  var target = getTarget();
84
- if (!target && fg('platform_editor_toolbar_open_experience_fix_2')) {
83
+ if (!target) {
85
84
  // when target is not found, skip the experience start
86
85
  return true;
87
86
  }
@@ -99,7 +98,7 @@ export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolba
99
98
  reason: ABORT_REASON.SELECTION_CLEARED
100
99
  });
101
100
  }
102
- var shouldStartExperience = fg('platform_editor_toolbar_open_experience_fix_2') ? shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection) : shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !isSelectionWithoutTextContent(newState.selection);
101
+ var shouldStartExperience = shiftArrowKeyPressed && !newState.selection.eq(oldState.selection) && !shouldSkipExperienceStart(newState.selection);
103
102
  if (shouldStartExperience) {
104
103
  experience.start({
105
104
  method: START_METHOD.KEY_DOWN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "9.0.10",
3
+ "version": "9.0.12",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,7 +20,7 @@
20
20
  "sideEffects": false,
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
- "@atlaskit/browser-apis": "^1.0.0",
23
+ "@atlaskit/browser-apis": "^1.1.0",
24
24
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
25
25
  "@atlaskit/editor-plugin-connectivity": "^12.0.0",
26
26
  "@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
@@ -29,15 +29,15 @@
29
29
  "@atlaskit/editor-plugin-user-preferences": "^10.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^8.0.0",
31
31
  "@atlaskit/editor-shared-styles": "^4.0.0",
32
- "@atlaskit/editor-toolbar": "^2.0.0",
33
- "@atlaskit/editor-toolbar-model": "^1.0.0",
32
+ "@atlaskit/editor-toolbar": "^2.1.0",
33
+ "@atlaskit/editor-toolbar-model": "^1.1.0",
34
34
  "@atlaskit/platform-feature-flags": "^2.0.0",
35
- "@atlaskit/tmp-editor-statsig": "^114.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^115.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "bind-event-listener": "^3.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^116.13.0",
40
+ "@atlaskit/editor-common": "^116.17.0",
41
41
  "react": "^18.2.0",
42
42
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
43
43
  },
@@ -47,9 +47,6 @@
47
47
  },
48
48
  "platform_editor_toolbar_mode_override": {
49
49
  "type": "boolean"
50
- },
51
- "platform_editor_toolbar_open_experience_fix_2": {
52
- "type": "boolean"
53
50
  }
54
51
  },
55
52
  "techstack": {