@atlaskit/editor-plugin-floating-toolbar 0.7.23 → 0.7.25
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 +12 -0
- package/dist/cjs/plugin.js +2 -2
- package/dist/cjs/ui/Toolbar.js +1 -1
- package/dist/es2019/plugin.js +2 -2
- package/dist/es2019/ui/Toolbar.js +2 -2
- package/dist/esm/plugin.js +2 -2
- package/dist/esm/ui/Toolbar.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.7.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.7.24
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
14
|
+
|
|
3
15
|
## 0.7.23
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -185,7 +185,7 @@ var floatingToolbarPlugin = exports.floatingToolbarPlugin = function floatingToo
|
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
187
|
function ContentComponent(_ref5) {
|
|
188
|
-
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2;
|
|
188
|
+
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
189
189
|
var pluginInjectionApi = _ref5.pluginInjectionApi,
|
|
190
190
|
editorView = _ref5.editorView,
|
|
191
191
|
popupsMountPoint = _ref5.popupsMountPoint,
|
|
@@ -236,7 +236,7 @@ function ContentComponent(_ref5) {
|
|
|
236
236
|
return null;
|
|
237
237
|
}
|
|
238
238
|
var customPositionCalculation;
|
|
239
|
-
var toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
239
|
+
var toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.copyButton) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.actions.processCopyButtonItems(editorView.state)(Array.isArray(items) ? items : items(node), pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$d = pluginInjectionApi.decorations) === null || _pluginInjectionApi$d === void 0 ? void 0 : _pluginInjectionApi$d.actions.hoverDecoration);
|
|
240
240
|
if (onPositionCalculated) {
|
|
241
241
|
customPositionCalculation = function customPositionCalculation(nextPos) {
|
|
242
242
|
return onPositionCalculated(editorView, nextPos);
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -308,7 +308,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
308
308
|
if (table) {
|
|
309
309
|
return (0, _commands.clearHoverSelection)()(state, dispatch);
|
|
310
310
|
}
|
|
311
|
-
(_this$props$api = this.props.api) === null || _this$props$api === void 0 || _this$props$api.decorations.actions.removeDecoration(state, dispatch);
|
|
311
|
+
(_this$props$api = this.props.api) === null || _this$props$api === void 0 || (_this$props$api = _this$props$api.decorations) === null || _this$props$api === void 0 || _this$props$api.actions.removeDecoration(state, dispatch);
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}, {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -180,7 +180,7 @@ function ContentComponent({
|
|
|
180
180
|
providerFactory,
|
|
181
181
|
dispatchAnalyticsEvent
|
|
182
182
|
}) {
|
|
183
|
-
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2;
|
|
183
|
+
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
184
184
|
const featureFlags = (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.featureFlags) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.sharedState.currentState()) || {};
|
|
185
185
|
const {
|
|
186
186
|
floatingToolbarState,
|
|
@@ -224,7 +224,7 @@ function ContentComponent({
|
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
226
|
let customPositionCalculation;
|
|
227
|
-
const toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.copyButton.actions.processCopyButtonItems(editorView.state)(Array.isArray(items) ? items : items(node), pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.decorations.actions.hoverDecoration);
|
|
227
|
+
const toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c = pluginInjectionApi.copyButton) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.actions.processCopyButtonItems(editorView.state)(Array.isArray(items) ? items : items(node), pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d = pluginInjectionApi.decorations) === null || _pluginInjectionApi$d === void 0 ? void 0 : _pluginInjectionApi$d.actions.hoverDecoration);
|
|
228
228
|
if (onPositionCalculated) {
|
|
229
229
|
customPositionCalculation = nextPos => {
|
|
230
230
|
return onPositionCalculated(editorView, nextPos);
|
|
@@ -303,7 +303,7 @@ class Toolbar extends Component {
|
|
|
303
303
|
table
|
|
304
304
|
}) {
|
|
305
305
|
if (this.props.editorView) {
|
|
306
|
-
var _this$props$api;
|
|
306
|
+
var _this$props$api, _this$props$api$decor;
|
|
307
307
|
const {
|
|
308
308
|
state,
|
|
309
309
|
dispatch
|
|
@@ -311,7 +311,7 @@ class Toolbar extends Component {
|
|
|
311
311
|
if (table) {
|
|
312
312
|
return clearHoverSelection()(state, dispatch);
|
|
313
313
|
}
|
|
314
|
-
(_this$props$api = this.props.api) === null || _this$props$api === void 0 ? void 0 : _this$props$api.decorations.actions.removeDecoration(state, dispatch);
|
|
314
|
+
(_this$props$api = this.props.api) === null || _this$props$api === void 0 ? void 0 : (_this$props$api$decor = _this$props$api.decorations) === null || _this$props$api$decor === void 0 ? void 0 : _this$props$api$decor.actions.removeDecoration(state, dispatch);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
setDisableScroll(disabled) {
|
package/dist/esm/plugin.js
CHANGED
|
@@ -176,7 +176,7 @@ export var floatingToolbarPlugin = function floatingToolbarPlugin(_ref) {
|
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
178
|
function ContentComponent(_ref5) {
|
|
179
|
-
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2;
|
|
179
|
+
var _pluginInjectionApi$f, _configWithNodeInfo$c, _configWithNodeInfo$c2, _pluginInjectionApi$c, _pluginInjectionApi$d;
|
|
180
180
|
var pluginInjectionApi = _ref5.pluginInjectionApi,
|
|
181
181
|
editorView = _ref5.editorView,
|
|
182
182
|
popupsMountPoint = _ref5.popupsMountPoint,
|
|
@@ -227,7 +227,7 @@ function ContentComponent(_ref5) {
|
|
|
227
227
|
return null;
|
|
228
228
|
}
|
|
229
229
|
var customPositionCalculation;
|
|
230
|
-
var toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
230
|
+
var toolbarItems = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.copyButton) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.actions.processCopyButtonItems(editorView.state)(Array.isArray(items) ? items : items(node), pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$d = pluginInjectionApi.decorations) === null || _pluginInjectionApi$d === void 0 ? void 0 : _pluginInjectionApi$d.actions.hoverDecoration);
|
|
231
231
|
if (onPositionCalculated) {
|
|
232
232
|
customPositionCalculation = function customPositionCalculation(nextPos) {
|
|
233
233
|
return onPositionCalculated(editorView, nextPos);
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -299,7 +299,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
299
299
|
if (table) {
|
|
300
300
|
return clearHoverSelection()(state, dispatch);
|
|
301
301
|
}
|
|
302
|
-
(_this$props$api = this.props.api) === null || _this$props$api === void 0 || _this$props$api.decorations.actions.removeDecoration(state, dispatch);
|
|
302
|
+
(_this$props$api = this.props.api) === null || _this$props$api === void 0 || (_this$props$api = _this$props$api.decorations) === null || _this$props$api === void 0 || _this$props$api.actions.removeDecoration(state, dispatch);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"releaseModel": "continuous",
|
|
14
14
|
"runReact18": false
|
|
15
15
|
},
|
|
16
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
17
|
"main": "dist/cjs/index.js",
|
|
18
18
|
"module": "dist/esm/index.js",
|
|
19
19
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
29
29
|
"@atlaskit/button": "^17.2.0",
|
|
30
30
|
"@atlaskit/checkbox": "^13.0.0",
|
|
31
|
-
"@atlaskit/editor-common": "^76.
|
|
31
|
+
"@atlaskit/editor-common": "^76.40.0",
|
|
32
32
|
"@atlaskit/editor-palette": "1.5.2",
|
|
33
33
|
"@atlaskit/editor-plugin-context-panel": "^0.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-copy-button": "^1.0.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-extension": "^0.5.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-table": "^
|
|
39
|
+
"@atlaskit/editor-plugin-table": "^6.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
41
41
|
"@atlaskit/emoji": "^67.6.0",
|
|
42
42
|
"@atlaskit/icon": "^22.0.0",
|