@atlaskit/editor-plugin-floating-toolbar 14.0.32 → 14.0.34

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.34
4
+
5
+ ### Patch Changes
6
+
7
+ - [`303fe94433905`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/303fe94433905) -
8
+ [ux] Hide node floating toolbars while an AI Suggested Edits card is open, so they no longer
9
+ overlap or mis-position against the suggestion card / diff decorations. On opening a suggestion
10
+ the ai-suggestions plugin sets a new `reviewing` user intent, which the floating-toolbar plugin
11
+ already treats as a toolbar-suppressing intent.
12
+ - Updated dependencies
13
+
14
+ ## 14.0.33
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 14.0.32
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'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "14.0.32",
3
+ "version": "14.0.34",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,17 +34,17 @@
34
34
  "@atlaskit/editor-plugin-emoji": "^13.1.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.11.0",
40
- "@atlaskit/icon": "^37.1.0",
39
+ "@atlaskit/emoji": "^71.13.0",
40
+ "@atlaskit/icon": "^37.2.0",
41
41
  "@atlaskit/menu": "^9.2.0",
42
42
  "@atlaskit/modal-dialog": "^16.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^2.1.0",
44
- "@atlaskit/primitives": "^22.1.0",
44
+ "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/select": "^22.5.0",
46
- "@atlaskit/tmp-editor-statsig": "^132.0.0",
47
- "@atlaskit/tokens": "^16.2.0",
46
+ "@atlaskit/tmp-editor-statsig": "^134.0.0",
47
+ "@atlaskit/tokens": "^16.3.0",
48
48
  "@atlaskit/tooltip": "^23.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -54,7 +54,7 @@
54
54
  "react-loadable": "^5.1.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^116.35.0",
57
+ "@atlaskit/editor-common": "^116.40.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"