@atlaskit/editor-plugin-floating-toolbar 14.0.33 → 14.0.35

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,22 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 14.0.35
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.0.34
10
+
11
+ ### Patch Changes
12
+
13
+ - [`303fe94433905`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/303fe94433905) -
14
+ [ux] Hide node floating toolbars while an AI Suggested Edits card is open, so they no longer
15
+ overlap or mis-position against the suggestion card / diff decorations. On opening a suggestion
16
+ the ai-suggestions plugin sets a new `reviewing` user intent, which the floating-toolbar plugin
17
+ already treats as a toolbar-suppressing intent.
18
+ - Updated dependencies
19
+
3
20
  ## 14.0.33
4
21
 
5
22
  ### Patch Changes
@@ -37,7 +37,10 @@ var _utils3 = require("./ui/utils");
37
37
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
38
38
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
39
39
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
40
- var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
40
+ var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting',
41
+ // Suppress while reviewing an AI Suggested Edits card so node floating toolbars don't overlap
42
+ // or mis-position against the suggestion card / diff decorations. Set by the ai-suggestions plugin.
43
+ 'reviewing', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
41
44
  // Suppress when a modal/overlay is open over the editor (e.g. the Jira remix ephemeral preview),
42
45
  // so the floating toolbar does not bleed through on top of the overlay.
43
46
  'overlayOpen'];
@@ -23,7 +23,10 @@ import { findNode } from './pm-plugins/utils';
23
23
  import { ConfirmationModal } from './ui/ConfirmationModal';
24
24
  import Toolbar from './ui/Toolbar';
25
25
  import { consolidateOverflowDropdownItems } from './ui/utils';
26
- const SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
26
+ const SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting',
27
+ // Suppress while reviewing an AI Suggested Edits card so node floating toolbars don't overlap
28
+ // or mis-position against the suggestion card / diff decorations. Set by the ai-suggestions plugin.
29
+ 'reviewing', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
27
30
  // Suppress when a modal/overlay is open over the editor (e.g. the Jira remix ephemeral preview),
28
31
  // so the floating toolbar does not bleed through on top of the overlay.
29
32
  'overlayOpen'];
@@ -27,7 +27,10 @@ import { findNode } from './pm-plugins/utils';
27
27
  import { ConfirmationModal } from './ui/ConfirmationModal';
28
28
  import Toolbar from './ui/Toolbar';
29
29
  import { consolidateOverflowDropdownItems } from './ui/utils';
30
- var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
30
+ var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting',
31
+ // Suppress while reviewing an AI Suggested Edits card so node floating toolbars don't overlap
32
+ // or mis-position against the suggestion card / diff decorations. Set by the ai-suggestions plugin.
33
+ 'reviewing', 'resizing', 'blockMenuOpen', 'statusPickerOpen',
31
34
  // Suppress when a modal/overlay is open over the editor (e.g. the Jira remix ephemeral preview),
32
35
  // so the floating toolbar does not bleed through on top of the overlay.
33
36
  'overlayOpen'];
@@ -3,14 +3,14 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  export declare const forceFocusStateKey: PluginKey;
6
+ export default _default;
6
7
  /**
7
8
  * Used in cases where a floating toolbar button opens a submenu which destroys
8
9
  * the button, but the user has pressed ESC to close the submenu and focus needs
9
10
  * to move back to the button. */
10
- declare const _default: () => SafePlugin<{
11
+ declare function _default(): SafePlugin<{
11
12
  selector: null;
12
13
  }>;
13
- export default _default;
14
14
  /**
15
15
  * The provided selector should be the floating toolbar button that needs focus.
16
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "14.0.33",
3
+ "version": "14.0.35",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,21 +31,21 @@
31
31
  "@atlaskit/editor-plugin-decorations": "^12.0.0",
32
32
  "@atlaskit/editor-plugin-editor-disabled": "^12.0.0",
33
33
  "@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
34
- "@atlaskit/editor-plugin-emoji": "^13.1.0",
34
+ "@atlaskit/editor-plugin-emoji": "^13.2.0",
35
35
  "@atlaskit/editor-plugin-extension": "^15.0.0",
36
36
  "@atlaskit/editor-plugin-interaction": "^23.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^10.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^10.1.0",
38
38
  "@atlaskit/editor-prosemirror": "^8.0.0",
39
- "@atlaskit/emoji": "^71.13.0",
40
- "@atlaskit/icon": "^37.1.0",
39
+ "@atlaskit/emoji": "^71.14.0",
40
+ "@atlaskit/icon": "^37.2.0",
41
41
  "@atlaskit/menu": "^9.2.0",
42
- "@atlaskit/modal-dialog": "^16.1.0",
42
+ "@atlaskit/modal-dialog": "^16.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^2.1.0",
44
44
  "@atlaskit/primitives": "^22.2.0",
45
- "@atlaskit/select": "^22.5.0",
46
- "@atlaskit/tmp-editor-statsig": "^133.0.0",
45
+ "@atlaskit/select": "^22.6.0",
46
+ "@atlaskit/tmp-editor-statsig": "^135.0.0",
47
47
  "@atlaskit/tokens": "^16.3.0",
48
- "@atlaskit/tooltip": "^23.1.0",
48
+ "@atlaskit/tooltip": "^23.2.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "bind-event-listener": "^3.0.0",
@@ -54,7 +54,7 @@
54
54
  "react-loadable": "^5.1.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^116.39.0",
57
+ "@atlaskit/editor-common": "^116.41.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"