@atlaskit/editor-plugin-floating-toolbar 17.0.11 → 17.0.13
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
|
+
## 17.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.0.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`424cc3975b0eb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/424cc3975b0eb) -
|
|
14
|
+
Clean up experiment `platform_editor_lovability_suppress_toolbar_event`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 17.0.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -24,7 +24,6 @@ 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
26
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
28
27
|
var _commands = require("./pm-plugins/commands");
|
|
29
28
|
var _forceFocus = _interopRequireWildcard(require("./pm-plugins/force-focus"));
|
|
30
29
|
var _commands2 = require("./pm-plugins/toolbar-data/commands");
|
|
@@ -581,12 +580,6 @@ function floatingToolbarPluginFactory(options) {
|
|
|
581
580
|
var getIsToolbarSuppressed = function getIsToolbarSuppressed() {
|
|
582
581
|
return false;
|
|
583
582
|
};
|
|
584
|
-
var apply = function apply() {
|
|
585
|
-
var newPluginState = {
|
|
586
|
-
getConfigWithNodeInfo: getConfigWithNodeInfo
|
|
587
|
-
};
|
|
588
|
-
return newPluginState;
|
|
589
|
-
};
|
|
590
583
|
return new _safePlugin.SafePlugin({
|
|
591
584
|
key: pluginKey,
|
|
592
585
|
state: {
|
|
@@ -595,16 +588,16 @@ function floatingToolbarPluginFactory(options) {
|
|
|
595
588
|
getConfigWithNodeInfo: getConfigWithNodeInfo
|
|
596
589
|
};
|
|
597
590
|
},
|
|
598
|
-
apply:
|
|
591
|
+
apply: function apply(_tr, _pluginState, __oldEditorState) {
|
|
599
592
|
var suppressedToolbar = getIsToolbarSuppressed();
|
|
600
593
|
var newPluginState = {
|
|
601
594
|
getConfigWithNodeInfo: getConfigWithNodeInfo,
|
|
602
595
|
suppressedToolbar: suppressedToolbar
|
|
603
596
|
};
|
|
604
597
|
return newPluginState;
|
|
605
|
-
}
|
|
598
|
+
}
|
|
606
599
|
},
|
|
607
|
-
view:
|
|
600
|
+
view: function view() {
|
|
608
601
|
return {
|
|
609
602
|
update: function update(view, prevState) {
|
|
610
603
|
var pluginState = pluginKey.getState(view.state);
|
|
@@ -620,6 +613,6 @@ function floatingToolbarPluginFactory(options) {
|
|
|
620
613
|
}
|
|
621
614
|
}
|
|
622
615
|
};
|
|
623
|
-
}
|
|
616
|
+
}
|
|
624
617
|
});
|
|
625
618
|
}
|
|
@@ -13,7 +13,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
13
13
|
import { AllSelection, PluginKey, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
14
14
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { copyNode } from './pm-plugins/commands';
|
|
18
17
|
import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
19
18
|
import { hideConfirmDialog } from './pm-plugins/toolbar-data/commands';
|
|
@@ -563,12 +562,6 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
563
562
|
const getIsToolbarSuppressed = () => {
|
|
564
563
|
return false;
|
|
565
564
|
};
|
|
566
|
-
const apply = () => {
|
|
567
|
-
const newPluginState = {
|
|
568
|
-
getConfigWithNodeInfo
|
|
569
|
-
};
|
|
570
|
-
return newPluginState;
|
|
571
|
-
};
|
|
572
565
|
return new SafePlugin({
|
|
573
566
|
key: pluginKey,
|
|
574
567
|
state: {
|
|
@@ -577,16 +570,16 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
577
570
|
getConfigWithNodeInfo
|
|
578
571
|
};
|
|
579
572
|
},
|
|
580
|
-
apply:
|
|
573
|
+
apply: (_tr, _pluginState, __oldEditorState) => {
|
|
581
574
|
const suppressedToolbar = getIsToolbarSuppressed();
|
|
582
575
|
const newPluginState = {
|
|
583
576
|
getConfigWithNodeInfo,
|
|
584
577
|
suppressedToolbar
|
|
585
578
|
};
|
|
586
579
|
return newPluginState;
|
|
587
|
-
}
|
|
580
|
+
}
|
|
588
581
|
},
|
|
589
|
-
view:
|
|
582
|
+
view: () => {
|
|
590
583
|
return {
|
|
591
584
|
update: (view, prevState) => {
|
|
592
585
|
const pluginState = pluginKey.getState(view.state);
|
|
@@ -602,6 +595,6 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
602
595
|
}
|
|
603
596
|
}
|
|
604
597
|
};
|
|
605
|
-
}
|
|
598
|
+
}
|
|
606
599
|
});
|
|
607
600
|
}
|
|
@@ -17,7 +17,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
17
17
|
import { AllSelection, PluginKey, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
18
18
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
20
|
import { copyNode as _copyNode } from './pm-plugins/commands';
|
|
22
21
|
import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
|
|
23
22
|
import { hideConfirmDialog } from './pm-plugins/toolbar-data/commands';
|
|
@@ -571,12 +570,6 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
571
570
|
var getIsToolbarSuppressed = function getIsToolbarSuppressed() {
|
|
572
571
|
return false;
|
|
573
572
|
};
|
|
574
|
-
var apply = function apply() {
|
|
575
|
-
var newPluginState = {
|
|
576
|
-
getConfigWithNodeInfo: getConfigWithNodeInfo
|
|
577
|
-
};
|
|
578
|
-
return newPluginState;
|
|
579
|
-
};
|
|
580
573
|
return new SafePlugin({
|
|
581
574
|
key: pluginKey,
|
|
582
575
|
state: {
|
|
@@ -585,16 +578,16 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
585
578
|
getConfigWithNodeInfo: getConfigWithNodeInfo
|
|
586
579
|
};
|
|
587
580
|
},
|
|
588
|
-
apply:
|
|
581
|
+
apply: function apply(_tr, _pluginState, __oldEditorState) {
|
|
589
582
|
var suppressedToolbar = getIsToolbarSuppressed();
|
|
590
583
|
var newPluginState = {
|
|
591
584
|
getConfigWithNodeInfo: getConfigWithNodeInfo,
|
|
592
585
|
suppressedToolbar: suppressedToolbar
|
|
593
586
|
};
|
|
594
587
|
return newPluginState;
|
|
595
|
-
}
|
|
588
|
+
}
|
|
596
589
|
},
|
|
597
|
-
view:
|
|
590
|
+
view: function view() {
|
|
598
591
|
return {
|
|
599
592
|
update: function update(view, prevState) {
|
|
600
593
|
var pluginState = pluginKey.getState(view.state);
|
|
@@ -610,6 +603,6 @@ export function floatingToolbarPluginFactory(options) {
|
|
|
610
603
|
}
|
|
611
604
|
}
|
|
612
605
|
};
|
|
613
|
-
}
|
|
606
|
+
}
|
|
614
607
|
});
|
|
615
608
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.13",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.4.0",
|
|
45
45
|
"@atlaskit/select": "^22.8.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^159.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^16.8.0",
|
|
48
48
|
"@atlaskit/tooltip": "^24.2.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-loadable": "^5.1.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^119.
|
|
57
|
+
"@atlaskit/editor-common": "^119.16.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0",
|
|
59
59
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|