@atlaskit/editor-plugin-floating-toolbar 5.1.6 → 5.1.7
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 5.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`558ab977a6b1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/558ab977a6b1c) -
|
|
8
|
+
Remove feature gate: platform_editor_overflow_dropdown_click_analytics
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 5.1.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -23,7 +23,6 @@ var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
|
23
23
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
24
24
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
25
25
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
26
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
28
27
|
var _commands = require("./pm-plugins/commands");
|
|
29
28
|
var _forceFocus = _interopRequireWildcard(require("./pm-plugins/force-focus"));
|
|
@@ -316,7 +315,7 @@ function ContentComponent(_ref5) {
|
|
|
316
315
|
}
|
|
317
316
|
|
|
318
317
|
// Apply analytics to dropdown
|
|
319
|
-
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent
|
|
318
|
+
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent) {
|
|
320
319
|
var _items3;
|
|
321
320
|
var currentItems = Array.isArray(items) ? items : (_items3 = items) === null || _items3 === void 0 ? void 0 : _items3(node);
|
|
322
321
|
var updatedItems = currentItems.map(function (item) {
|
|
@@ -12,7 +12,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
|
|
|
12
12
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { AllSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
14
14
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
16
|
import { copyNode } from './pm-plugins/commands';
|
|
18
17
|
import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
@@ -301,7 +300,7 @@ export function ContentComponent({
|
|
|
301
300
|
}
|
|
302
301
|
|
|
303
302
|
// Apply analytics to dropdown
|
|
304
|
-
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent
|
|
303
|
+
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent) {
|
|
305
304
|
var _items3;
|
|
306
305
|
const currentItems = Array.isArray(items) ? items : (_items3 = items) === null || _items3 === void 0 ? void 0 : _items3(node);
|
|
307
306
|
const updatedItems = currentItems.map(item => {
|
|
@@ -16,7 +16,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
|
|
|
16
16
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { AllSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
18
18
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
20
|
import { copyNode as _copyNode } from './pm-plugins/commands';
|
|
22
21
|
import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
@@ -307,7 +306,7 @@ export function ContentComponent(_ref5) {
|
|
|
307
306
|
}
|
|
308
307
|
|
|
309
308
|
// Apply analytics to dropdown
|
|
310
|
-
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent
|
|
309
|
+
if (overflowDropdownItems.length > 0 && dispatchAnalyticsEvent) {
|
|
311
310
|
var _items3;
|
|
312
311
|
var currentItems = Array.isArray(items) ? items : (_items3 = items) === null || _items3 === void 0 ? void 0 : _items3(node);
|
|
313
312
|
var updatedItems = currentItems.map(function (item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/primitives": "^14.11.0",
|
|
49
49
|
"@atlaskit/select": "^21.2.0",
|
|
50
50
|
"@atlaskit/theme": "^19.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^9.24.0",
|
|
52
52
|
"@atlaskit/tokens": "^6.0.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.4.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"react-loadable": "^5.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^107.
|
|
63
|
+
"@atlaskit/editor-common": "^107.17.0",
|
|
64
64
|
"react": "^18.2.0",
|
|
65
65
|
"react-dom": "^18.2.0"
|
|
66
66
|
},
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
},
|
|
130
130
|
"platform_editor_user_intent_plugin": {
|
|
131
131
|
"type": "boolean"
|
|
132
|
-
},
|
|
133
|
-
"platform_editor_overflow_dropdown_click_analytics": {
|
|
134
|
-
"type": "boolean"
|
|
135
132
|
}
|
|
136
133
|
}
|
|
137
134
|
}
|