@atlaskit/editor-plugin-toolbar 5.1.0 → 5.1.1

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,13 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 5.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`11f2dadbd0b51`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11f2dadbd0b51) -
8
+ Adjust z-index of selection toolbar, making it inline with menus and other high priority elements.
9
+ - Updated dependencies
10
+
3
11
  ## 5.1.0
4
12
 
5
13
  ### Minor Changes
@@ -42,6 +42,9 @@
42
42
  {
43
43
  "path": "../../editor-prosemirror/afm-cc/tsconfig.json"
44
44
  },
45
+ {
46
+ "path": "../../editor-shared-styles/afm-cc/tsconfig.json"
47
+ },
45
48
  {
46
49
  "path": "../../editor-toolbar/afm-cc/tsconfig.json"
47
50
  },
@@ -17,8 +17,10 @@ var _ui = require("@atlaskit/editor-common/ui");
17
17
  var _utils = require("@atlaskit/editor-common/utils");
18
18
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
19
19
  var _state = require("@atlaskit/editor-prosemirror/state");
20
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
20
21
  var _editorToolbar = require("@atlaskit/editor-toolbar");
21
22
  var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
24
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
23
25
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
24
26
  var _consts = require("../consts");
@@ -102,7 +104,8 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
102
104
  offset: [0, 10],
103
105
  target: (0, _utils2.getDomRefFromSelection)(editorView),
104
106
  onPositionCalculated: onPositionCalculated,
105
- mountTo: mountPoint
107
+ mountTo: mountPoint,
108
+ zIndex: (0, _platformFeatureFlags.fg)('platform_editor_sel_toolbar_stacking_fix') ? _editorSharedStyles.akEditorFloatingDialogZIndex : undefined
106
109
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
107
110
  editorView: editorView,
108
111
  editorToolbarDockingPreference: editorToolbarDockingPreference,
@@ -10,8 +10,10 @@ import { Popup } from '@atlaskit/editor-common/ui';
10
10
  import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
11
11
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
12
12
  import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
+ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
13
14
  import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
14
15
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
16
+ import { fg } from '@atlaskit/platform-feature-flags';
15
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
17
19
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
@@ -95,7 +97,8 @@ export const SelectionToolbar = ({
95
97
  offset: [0, 10],
96
98
  target: getDomRefFromSelection(editorView),
97
99
  onPositionCalculated: onPositionCalculated,
98
- mountTo: mountPoint
100
+ mountTo: mountPoint,
101
+ zIndex: fg('platform_editor_sel_toolbar_stacking_fix') ? akEditorFloatingDialogZIndex : undefined
99
102
  }, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
100
103
  editorView: editorView,
101
104
  editorToolbarDockingPreference: editorToolbarDockingPreference,
@@ -10,8 +10,10 @@ import { Popup } from '@atlaskit/editor-common/ui';
10
10
  import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
11
11
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
12
12
  import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
+ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
13
14
  import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
14
15
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
16
+ import { fg } from '@atlaskit/platform-feature-flags';
15
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
17
19
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
@@ -94,7 +96,8 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
94
96
  offset: [0, 10],
95
97
  target: getDomRefFromSelection(editorView),
96
98
  onPositionCalculated: onPositionCalculated,
97
- mountTo: mountPoint
99
+ mountTo: mountPoint,
100
+ zIndex: fg('platform_editor_sel_toolbar_stacking_fix') ? akEditorFloatingDialogZIndex : undefined
98
101
  }, /*#__PURE__*/React.createElement(EditorToolbarProvider, {
99
102
  editorView: editorView,
100
103
  editorToolbarDockingPreference: editorToolbarDockingPreference,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,10 +36,11 @@
36
36
  "@atlaskit/editor-plugin-user-intent": "^6.0.0",
37
37
  "@atlaskit/editor-plugin-user-preferences": "^6.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
+ "@atlaskit/editor-shared-styles": "^3.10.0",
39
40
  "@atlaskit/editor-toolbar": "^0.20.0",
40
41
  "@atlaskit/editor-toolbar-model": "^0.4.0",
41
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^40.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^40.2.0",
43
44
  "@babel/runtime": "^7.0.0",
44
45
  "bind-event-listener": "^3.0.0",
45
46
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -54,6 +55,9 @@
54
55
  },
55
56
  "platform_editor_toolbar_open_experience_fix": {
56
57
  "type": "boolean"
58
+ },
59
+ "platform_editor_sel_toolbar_stacking_fix": {
60
+ "type": "boolean"
57
61
  }
58
62
  },
59
63
  "techstack": {