@atlaskit/editor-plugin-floating-toolbar 9.1.0 → 9.1.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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 9.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c4a774ad462fb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4a774ad462fb) -
|
|
14
|
+
EDITOR-2477 Clean up remaining usages of `platform_editor_use_nested_table_pm_nodes` which are no
|
|
15
|
+
longer needed now that `isNestedTablesSupported` is fully rolled out.
|
|
16
|
+
|
|
3
17
|
## 9.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -16,7 +16,6 @@ var _extensions = require("@atlaskit/editor-common/extensions");
|
|
|
16
16
|
var _nesting = require("@atlaskit/editor-common/nesting");
|
|
17
17
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
18
18
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
21
20
|
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); }
|
|
22
21
|
var noop = function noop() {
|
|
@@ -191,7 +190,7 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
|
|
|
191
190
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
192
191
|
}));
|
|
193
192
|
}
|
|
194
|
-
var isNestedTable = (0, _nesting.isNestedTablesSupported)(editorView.state.schema) && (0,
|
|
193
|
+
var isNestedTable = (0, _nesting.isNestedTablesSupported)(editorView.state.schema) && (0, _nesting.isSelectionTableNestedInTable)(editorView.state);
|
|
195
194
|
|
|
196
195
|
// Ignored via go/ees005
|
|
197
196
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -5,7 +5,6 @@ import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/ext
|
|
|
5
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
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import Dropdown from './Dropdown';
|
|
10
9
|
const noop = () => null;
|
|
11
10
|
const isDefaultExport = mod => {
|
|
@@ -114,7 +113,7 @@ export const ExtensionsPlaceholder = props => {
|
|
|
114
113
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
115
114
|
}));
|
|
116
115
|
}
|
|
117
|
-
const isNestedTable = isNestedTablesSupported(editorView.state.schema) &&
|
|
116
|
+
const isNestedTable = isNestedTablesSupported(editorView.state.schema) && isSelectionTableNestedInTable(editorView.state);
|
|
118
117
|
|
|
119
118
|
// Ignored via go/ees005
|
|
120
119
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -8,7 +8,6 @@ import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/ext
|
|
|
8
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
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import Dropdown from './Dropdown';
|
|
13
12
|
var noop = function noop() {
|
|
14
13
|
return null;
|
|
@@ -182,7 +181,7 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
|
|
|
182
181
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
183
182
|
}));
|
|
184
183
|
}
|
|
185
|
-
var isNestedTable = isNestedTablesSupported(editorView.state.schema) &&
|
|
184
|
+
var isNestedTable = isNestedTablesSupported(editorView.state.schema) && isSelectionTableNestedInTable(editorView.state);
|
|
186
185
|
|
|
187
186
|
// Ignored via go/ees005
|
|
188
187
|
// 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": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"@atlaskit/editor-plugin-decorations": "^7.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-editor-disabled": "^7.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-emoji": "^8.
|
|
34
|
+
"@atlaskit/editor-plugin-emoji": "^8.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-extension": "^10.0.0",
|
|
36
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
36
|
+
"@atlaskit/editor-plugin-interaction": "^13.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-user-intent": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
|
-
"@atlaskit/emoji": "^69.
|
|
40
|
-
"@atlaskit/icon": "^29.
|
|
39
|
+
"@atlaskit/emoji": "^69.10.0",
|
|
40
|
+
"@atlaskit/icon": "^29.4.0",
|
|
41
41
|
"@atlaskit/menu": "^8.4.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^14.
|
|
42
|
+
"@atlaskit/modal-dialog": "^14.10.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/primitives": "^17.
|
|
45
|
-
"@atlaskit/select": "^21.
|
|
44
|
+
"@atlaskit/primitives": "^17.1.0",
|
|
45
|
+
"@atlaskit/select": "^21.7.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
48
|
-
"@atlaskit/tokens": "^
|
|
49
|
-
"@atlaskit/tooltip": "^20.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
48
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
49
|
+
"@atlaskit/tooltip": "^20.14.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"bind-event-listener": "^3.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-loadable": "^5.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^111.
|
|
59
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
@@ -112,12 +112,6 @@
|
|
|
112
112
|
"platform-visual-refresh-icons": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
|
-
"platform_editor_use_nested_table_pm_nodes": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
},
|
|
118
|
-
"platform_editor_user_intent_plugin": {
|
|
119
|
-
"type": "boolean"
|
|
120
|
-
},
|
|
121
115
|
"platform_editor_fix_confirm_table_removal": {
|
|
122
116
|
"type": "boolean"
|
|
123
117
|
},
|