@atlaskit/editor-plugin-floating-toolbar 8.2.13 → 8.2.15
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 +17 -0
- package/dist/cjs/floatingToolbarPlugin.js +1 -1
- package/dist/cjs/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/es2019/floatingToolbarPlugin.js +1 -1
- package/dist/es2019/ui/ExtensionsPlaceholder.js +2 -2
- package/dist/esm/floatingToolbarPlugin.js +1 -1
- package/dist/esm/ui/ExtensionsPlaceholder.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 8.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c094becfaeeaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c094becfaeeaa) -
|
|
8
|
+
EDITOR-2476 Introduce new utility method to check if nested tables is supported in the schema to
|
|
9
|
+
facilitate removal of gate `platform_editor_use_nested_table_pm_nodes`
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.2.14
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`e3336879840a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3336879840a4) -
|
|
17
|
+
[ux] EDITOR-2620 Toggle contextual menu when drag menu is opened
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.2.13
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -39,7 +39,7 @@ var _utils3 = require("./ui/utils");
|
|
|
39
39
|
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); }
|
|
40
40
|
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; }
|
|
41
41
|
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; }
|
|
42
|
-
var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', '
|
|
42
|
+
var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen'];
|
|
43
43
|
|
|
44
44
|
// TODO: AFP-2532 - Fix automatic suppressions below
|
|
45
45
|
var getRelevantConfig = exports.getRelevantConfig = function getRelevantConfig(selection, configs) {
|
|
@@ -191,7 +191,7 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
|
|
|
191
191
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
192
192
|
}));
|
|
193
193
|
}
|
|
194
|
-
var isNestedTable = (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _nesting.isSelectionTableNestedInTable)(editorView.state);
|
|
194
|
+
var isNestedTable = (0, _nesting.isNestedTablesSupported)(editorView.state.schema) && (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _nesting.isSelectionTableNestedInTable)(editorView.state);
|
|
195
195
|
|
|
196
196
|
// Ignored via go/ees005
|
|
197
197
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -25,7 +25,7 @@ import { findNode } from './pm-plugins/utils';
|
|
|
25
25
|
import { ConfirmationModal } from './ui/ConfirmationModal';
|
|
26
26
|
import Toolbar from './ui/Toolbar';
|
|
27
27
|
import { consolidateOverflowDropdownItems } from './ui/utils';
|
|
28
|
-
const SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', '
|
|
28
|
+
const SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen'];
|
|
29
29
|
|
|
30
30
|
// TODO: AFP-2532 - Fix automatic suppressions below
|
|
31
31
|
export const getRelevantConfig = (selection, configs) => {
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
4
4
|
import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import { isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
5
|
+
import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
6
6
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -114,7 +114,7 @@ export const ExtensionsPlaceholder = props => {
|
|
|
114
114
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
115
115
|
}));
|
|
116
116
|
}
|
|
117
|
-
const isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
|
|
117
|
+
const isNestedTable = isNestedTablesSupported(editorView.state.schema) && fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
|
|
118
118
|
|
|
119
119
|
// Ignored via go/ees005
|
|
120
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -29,7 +29,7 @@ import { findNode } from './pm-plugins/utils';
|
|
|
29
29
|
import { ConfirmationModal } from './ui/ConfirmationModal';
|
|
30
30
|
import Toolbar from './ui/Toolbar';
|
|
31
31
|
import { consolidateOverflowDropdownItems } from './ui/utils';
|
|
32
|
-
var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', '
|
|
32
|
+
var SUPPRESS_TOOLBAR_USER_INTENTS = ['dragging', 'tableContextualMenuPopupOpen', 'tableDragMenuPopupOpen', 'commenting', 'resizing', 'blockMenuOpen', 'statusPickerOpen'];
|
|
33
33
|
|
|
34
34
|
// TODO: AFP-2532 - Fix automatic suppressions below
|
|
35
35
|
export var getRelevantConfig = function getRelevantConfig(selection, configs) {
|
|
@@ -5,7 +5,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
5
5
|
import Loadable from 'react-loadable';
|
|
6
6
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
7
7
|
import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
import { isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
8
|
+
import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
9
9
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -182,7 +182,7 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
|
|
|
182
182
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
|
-
var isNestedTable = fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
|
|
185
|
+
var isNestedTable = isNestedTablesSupported(editorView.state.schema) && fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
|
|
186
186
|
|
|
187
187
|
// Ignored via go/ees005
|
|
188
188
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.15",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/primitives": "^16.1.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.31.0",
|
|
49
49
|
"@atlaskit/tokens": "^7.1.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.7.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-loadable": "^5.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.24.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|