@atlaskit/editor-plugin-block-controls 7.1.0 → 7.1.1
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-block-controls
|
|
2
2
|
|
|
3
|
+
## 7.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e7d46c6f07a7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e7d46c6f07a7) -
|
|
8
|
+
[EDITOR-1517] Drag handles flicker during inline streaming
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -52,7 +52,10 @@ var VisibilityContainer = exports.VisibilityContainer = function VisibilityConta
|
|
|
52
52
|
var isTypeAheadOpen = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'typeAhead.isOpen');
|
|
53
53
|
var isEditing = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockControls.isEditing');
|
|
54
54
|
var isMouseOut = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'blockControls.isMouseOut');
|
|
55
|
-
|
|
55
|
+
|
|
56
|
+
// when ai streaming, hide the block controls
|
|
57
|
+
var userIntent = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'userIntent.currentUserIntent');
|
|
58
|
+
var shouldHide = isTypeAheadOpen || isEditing || isMouseOut || userIntent === 'aiStreaming';
|
|
56
59
|
if ((0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
57
60
|
exposure: true
|
|
58
61
|
})) {
|
|
@@ -45,7 +45,10 @@ export const VisibilityContainer = ({
|
|
|
45
45
|
const isTypeAheadOpen = useSharedPluginStateSelector(api, 'typeAhead.isOpen');
|
|
46
46
|
const isEditing = useSharedPluginStateSelector(api, 'blockControls.isEditing');
|
|
47
47
|
const isMouseOut = useSharedPluginStateSelector(api, 'blockControls.isMouseOut');
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
// when ai streaming, hide the block controls
|
|
50
|
+
const userIntent = useSharedPluginStateSelector(api, 'userIntent.currentUserIntent');
|
|
51
|
+
const shouldHide = isTypeAheadOpen || isEditing || isMouseOut || userIntent === 'aiStreaming';
|
|
49
52
|
if (editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
50
53
|
exposure: true
|
|
51
54
|
})) {
|
|
@@ -43,7 +43,10 @@ export var VisibilityContainer = function VisibilityContainer(_ref) {
|
|
|
43
43
|
var isTypeAheadOpen = useSharedPluginStateSelector(api, 'typeAhead.isOpen');
|
|
44
44
|
var isEditing = useSharedPluginStateSelector(api, 'blockControls.isEditing');
|
|
45
45
|
var isMouseOut = useSharedPluginStateSelector(api, 'blockControls.isMouseOut');
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
// when ai streaming, hide the block controls
|
|
48
|
+
var userIntent = useSharedPluginStateSelector(api, 'userIntent.currentUserIntent');
|
|
49
|
+
var shouldHide = isTypeAheadOpen || isEditing || isMouseOut || userIntent === 'aiStreaming';
|
|
47
50
|
if (editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
48
51
|
exposure: true
|
|
49
52
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/editor-plugin-metrics": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-selection": "^6.0.0",
|
|
41
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@atlaskit/primitives": "^14.15.0",
|
|
54
54
|
"@atlaskit/theme": "^21.0.0",
|
|
55
55
|
"@atlaskit/tmp-editor-statsig": "^12.32.0",
|
|
56
|
-
"@atlaskit/tokens": "^6.
|
|
57
|
-
"@atlaskit/tooltip": "^20.
|
|
56
|
+
"@atlaskit/tokens": "^6.4.0",
|
|
57
|
+
"@atlaskit/tooltip": "^20.5.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1",
|
|
60
60
|
"@popperjs/core": "^2.11.8",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"uuid": "^3.1.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@atlaskit/editor-common": "^110.
|
|
67
|
+
"@atlaskit/editor-common": "^110.2.0",
|
|
68
68
|
"react": "^18.2.0",
|
|
69
69
|
"react-dom": "^18.2.0",
|
|
70
70
|
"react-intl-next": "npm:react-intl@^5.18.1"
|