@atlaskit/editor-plugin-floating-toolbar 1.13.7 → 1.13.9
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 +14 -0
- package/dist/cjs/plugin.js +2 -2
- package/dist/es2019/plugin.js +2 -2
- package/dist/esm/plugin.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.13.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#150050](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150050)
|
|
8
|
+
[`b846e550df2ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b846e550df2ac) -
|
|
9
|
+
update logic for supportsViewMode in floating toolbar plugin to handle all toolbar item types
|
|
10
|
+
|
|
11
|
+
## 1.13.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.13.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -188,7 +188,7 @@ var floatingToolbarPlugin = exports.floatingToolbarPlugin = function floatingToo
|
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
function ContentComponent(_ref5) {
|
|
191
|
-
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
191
|
+
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _items, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
192
192
|
var pluginInjectionApi = _ref5.pluginInjectionApi,
|
|
193
193
|
editorView = _ref5.editorView,
|
|
194
194
|
popupsMountPoint = _ref5.popupsMountPoint,
|
|
@@ -252,7 +252,7 @@ function ContentComponent(_ref5) {
|
|
|
252
252
|
// TODO: MODES-3950 Update this view mode specific logic once we refactor view mode.
|
|
253
253
|
// We should inverse the responsibility here: A blacklist for toolbar items in view mode, rather than this white list.
|
|
254
254
|
// Also consider moving this logic to the more specific toolbar plugins (media and selection).
|
|
255
|
-
var iterableItems = Array.isArray(items) ? items :
|
|
255
|
+
var iterableItems = Array.isArray(items) ? items : (_items = items) === null || _items === void 0 ? void 0 : _items(node);
|
|
256
256
|
if (isInViewMode) {
|
|
257
257
|
// Typescript note: Not all toolbar item types have the `supportsViewMode` prop.
|
|
258
258
|
var toolbarItemViewModeProp = 'supportsViewMode';
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -180,7 +180,7 @@ export function ContentComponent({
|
|
|
180
180
|
providerFactory,
|
|
181
181
|
dispatchAnalyticsEvent
|
|
182
182
|
}) {
|
|
183
|
-
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
183
|
+
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _items, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
184
184
|
const {
|
|
185
185
|
floatingToolbarState,
|
|
186
186
|
editorDisabledState,
|
|
@@ -238,7 +238,7 @@ export function ContentComponent({
|
|
|
238
238
|
// TODO: MODES-3950 Update this view mode specific logic once we refactor view mode.
|
|
239
239
|
// We should inverse the responsibility here: A blacklist for toolbar items in view mode, rather than this white list.
|
|
240
240
|
// Also consider moving this logic to the more specific toolbar plugins (media and selection).
|
|
241
|
-
const iterableItems = Array.isArray(items) ? items :
|
|
241
|
+
const iterableItems = Array.isArray(items) ? items : (_items = items) === null || _items === void 0 ? void 0 : _items(node);
|
|
242
242
|
if (isInViewMode) {
|
|
243
243
|
// Typescript note: Not all toolbar item types have the `supportsViewMode` prop.
|
|
244
244
|
const toolbarItemViewModeProp = 'supportsViewMode';
|
package/dist/esm/plugin.js
CHANGED
|
@@ -176,7 +176,7 @@ export var floatingToolbarPlugin = function floatingToolbarPlugin(_ref) {
|
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
178
|
export function ContentComponent(_ref5) {
|
|
179
|
-
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
179
|
+
var _configWithNodeInfo$c, _configWithNodeInfo$c2, _items, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
180
180
|
var pluginInjectionApi = _ref5.pluginInjectionApi,
|
|
181
181
|
editorView = _ref5.editorView,
|
|
182
182
|
popupsMountPoint = _ref5.popupsMountPoint,
|
|
@@ -240,7 +240,7 @@ export function ContentComponent(_ref5) {
|
|
|
240
240
|
// TODO: MODES-3950 Update this view mode specific logic once we refactor view mode.
|
|
241
241
|
// We should inverse the responsibility here: A blacklist for toolbar items in view mode, rather than this white list.
|
|
242
242
|
// Also consider moving this logic to the more specific toolbar plugins (media and selection).
|
|
243
|
-
var iterableItems = Array.isArray(items) ? items :
|
|
243
|
+
var iterableItems = Array.isArray(items) ? items : (_items = items) === null || _items === void 0 ? void 0 : _items(node);
|
|
244
244
|
if (isInViewMode) {
|
|
245
245
|
// Typescript note: Not all toolbar item types have the `supportsViewMode` prop.
|
|
246
246
|
var toolbarItemViewModeProp = 'supportsViewMode';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.9",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
27
27
|
"@atlaskit/button": "^20.2.0",
|
|
28
28
|
"@atlaskit/checkbox": "^14.0.0",
|
|
29
|
-
"@atlaskit/editor-common": "^93.
|
|
29
|
+
"@atlaskit/editor-common": "^93.1.0",
|
|
30
30
|
"@atlaskit/editor-palette": "1.6.1",
|
|
31
|
-
"@atlaskit/editor-plugin-block-controls": "^2.
|
|
31
|
+
"@atlaskit/editor-plugin-block-controls": "^2.2.0",
|
|
32
32
|
"@atlaskit/editor-plugin-context-panel": "^1.3.0",
|
|
33
33
|
"@atlaskit/editor-plugin-copy-button": "^1.3.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-table": "^7.28.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
41
|
"@atlaskit/emoji": "^67.8.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.22.0",
|
|
43
43
|
"@atlaskit/menu": "^2.12.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
45
45
|
"@atlaskit/primitives": "^12.2.0",
|
|
46
|
-
"@atlaskit/select": "^
|
|
46
|
+
"@atlaskit/select": "^18.0.0",
|
|
47
47
|
"@atlaskit/theme": "^13.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^2.0.0",
|
|
49
49
|
"@atlaskit/tooltip": "^18.8.0",
|