@atlaskit/editor-plugin-floating-toolbar 1.9.0 → 1.9.2

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,21 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125082](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125082)
8
+ [`ba605ab4da0e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ba605ab4da0e1) -
9
+ [ED-23977] This change cleans up the use of the feature flag
10
+ 'platform.editor.a11y-main-toolbar-navigation_osrty'.
11
+ - Updated dependencies
12
+
13
+ ## 1.9.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.9.0
4
20
 
5
21
  ### Minor Changes
@@ -239,7 +239,9 @@ function ContentComponent(_ref5) {
239
239
  } : _config$absoluteOffse,
240
240
  focusTrap = config.focusTrap,
241
241
  _config$mediaAssistiv = config.mediaAssistiveMessage,
242
- mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv;
242
+ mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv,
243
+ _config$stick = config.stick,
244
+ stick = _config$stick === void 0 ? true : _config$stick;
243
245
  var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
244
246
  var isEditorDisabled = editorDisabledState && editorDisabledState.editorDisabled;
245
247
  var isInViewMode = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
@@ -290,7 +292,7 @@ function ContentComponent(_ref5) {
290
292
  fitWidth: width,
291
293
  absoluteOffset: absoluteOffset,
292
294
  alignX: align,
293
- stick: true,
295
+ stick: stick,
294
296
  zIndex: zIndex,
295
297
  mountTo: popupsMountPoint,
296
298
  boundariesElement: popupsBoundariesElement,
@@ -18,7 +18,6 @@ var _react2 = require("@emotion/react");
18
18
  var _ui = require("@atlaskit/editor-common/ui");
19
19
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
20
20
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
21
  var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
23
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -207,10 +206,9 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
207
206
  this.props.setDisableParentScroll(this.state.isOpen);
208
207
  }
209
208
 
210
- // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
211
- if (this.props.mountPoint &&
212
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
213
- (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-main-toolbar-navigation_osrty')) {
209
+ // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element,
210
+ // we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
211
+ if (this.props.mountPoint) {
214
212
  return;
215
213
  }
216
214
  if (this.state.isOpen && this.state.isOpenedByKeyboard) {
@@ -227,7 +227,8 @@ export function ContentComponent({
227
227
  bottom: 0
228
228
  },
229
229
  focusTrap,
230
- mediaAssistiveMessage = ''
230
+ mediaAssistiveMessage = '',
231
+ stick = true
231
232
  } = config;
232
233
  const targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
233
234
  const isEditorDisabled = editorDisabledState && editorDisabledState.editorDisabled;
@@ -276,7 +277,7 @@ export function ContentComponent({
276
277
  fitWidth: width,
277
278
  absoluteOffset: absoluteOffset,
278
279
  alignX: align,
279
- stick: true,
280
+ stick: stick,
280
281
  zIndex: zIndex,
281
282
  mountTo: popupsMountPoint,
282
283
  boundariesElement: popupsBoundariesElement,
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
11
11
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
12
12
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
13
13
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
14
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
14
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
16
15
 
17
16
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -184,10 +183,9 @@ export default class Dropdown extends Component {
184
183
  this.props.setDisableParentScroll(this.state.isOpen);
185
184
  }
186
185
 
187
- // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
188
- if (this.props.mountPoint &&
189
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
190
- getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty')) {
186
+ // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element,
187
+ // we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
188
+ if (this.props.mountPoint) {
191
189
  return;
192
190
  }
193
191
  if (this.state.isOpen && this.state.isOpenedByKeyboard) {
@@ -229,7 +229,9 @@ export function ContentComponent(_ref5) {
229
229
  } : _config$absoluteOffse,
230
230
  focusTrap = config.focusTrap,
231
231
  _config$mediaAssistiv = config.mediaAssistiveMessage,
232
- mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv;
232
+ mediaAssistiveMessage = _config$mediaAssistiv === void 0 ? '' : _config$mediaAssistiv,
233
+ _config$stick = config.stick,
234
+ stick = _config$stick === void 0 ? true : _config$stick;
233
235
  var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
234
236
  var isEditorDisabled = editorDisabledState && editorDisabledState.editorDisabled;
235
237
  var isInViewMode = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
@@ -280,7 +282,7 @@ export function ContentComponent(_ref5) {
280
282
  fitWidth: width,
281
283
  absoluteOffset: absoluteOffset,
282
284
  alignX: align,
283
- stick: true,
285
+ stick: stick,
284
286
  zIndex: zIndex,
285
287
  mountTo: popupsMountPoint,
286
288
  boundariesElement: popupsBoundariesElement,
@@ -21,7 +21,6 @@ import { css, jsx } from '@emotion/react';
21
21
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
22
22
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
23
23
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
24
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
25
24
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
26
25
 
27
26
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -202,10 +201,9 @@ var Dropdown = /*#__PURE__*/function (_Component) {
202
201
  this.props.setDisableParentScroll(this.state.isOpen);
203
202
  }
204
203
 
205
- // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
206
- if (this.props.mountPoint &&
207
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
208
- getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty')) {
204
+ // ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element,
205
+ // we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
206
+ if (this.props.mountPoint) {
209
207
  return;
210
208
  }
211
209
  if (this.state.isOpen && this.state.isOpenedByKeyboard) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,22 +27,21 @@
27
27
  "@atlaskit/adf-utils": "^19.6.0",
28
28
  "@atlaskit/button": "^19.1.0",
29
29
  "@atlaskit/checkbox": "^13.5.0",
30
- "@atlaskit/editor-common": "^86.8.0",
30
+ "@atlaskit/editor-common": "^87.2.0",
31
31
  "@atlaskit/editor-palette": "1.6.0",
32
- "@atlaskit/editor-plugin-block-controls": "^1.9.0",
32
+ "@atlaskit/editor-plugin-block-controls": "^1.10.0",
33
33
  "@atlaskit/editor-plugin-context-panel": "^1.2.0",
34
34
  "@atlaskit/editor-plugin-copy-button": "^1.2.0",
35
35
  "@atlaskit/editor-plugin-decorations": "^1.2.0",
36
36
  "@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
37
37
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
38
38
  "@atlaskit/editor-plugin-extension": "^1.12.0",
39
- "@atlaskit/editor-plugin-table": "^7.23.0",
39
+ "@atlaskit/editor-plugin-table": "^7.24.0",
40
40
  "@atlaskit/editor-prosemirror": "5.0.1",
41
- "@atlaskit/emoji": "^67.6.0",
42
- "@atlaskit/icon": "^22.7.0",
43
- "@atlaskit/menu": "^2.8.0",
41
+ "@atlaskit/emoji": "^67.7.0",
42
+ "@atlaskit/icon": "^22.9.0",
43
+ "@atlaskit/menu": "^2.9.0",
44
44
  "@atlaskit/modal-dialog": "^12.14.0",
45
- "@atlaskit/platform-feature-flags": "^0.3.0",
46
45
  "@atlaskit/select": "^17.11.0",
47
46
  "@atlaskit/theme": "^12.11.0",
48
47
  "@atlaskit/tokens": "^1.56.0",