@atlaskit/editor-plugin-breakout 2.3.1 → 2.3.3
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 2.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#159070](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159070)
|
|
14
|
+
[`9857b771c1da1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9857b771c1da1) -
|
|
15
|
+
[ux] [ED-27778] Fix selection state hiding for tables, breakout buttons and layout
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.3.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
15
15
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
16
16
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
20
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
20
21
|
var _resizingPlugin = require("./pm-plugins/resizing-plugin");
|
|
@@ -152,6 +153,10 @@ var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
|
|
|
152
153
|
isPMDragging = _useSharedState.isPMDragging,
|
|
153
154
|
mode = _useSharedState.mode,
|
|
154
155
|
editorDisabled = _useSharedState.editorDisabled;
|
|
156
|
+
var interactionState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'interaction.interactionState');
|
|
157
|
+
if (interactionState === 'hasNotHadInteraction' && (0, _platformFeatureFlags.fg)('platform_editor_hide_expand_selection_states')) {
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
155
160
|
if (isDragging || isPMDragging) {
|
|
156
161
|
if ((0, _experiments.editorExperiment)('advanced_layouts', true)) {
|
|
157
162
|
return null;
|
|
@@ -5,6 +5,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
5
5
|
import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
7
7
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
10
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
10
11
|
import { createResizingPlugin } from './pm-plugins/resizing-plugin';
|
|
@@ -146,6 +147,10 @@ const LayoutButtonWrapper = ({
|
|
|
146
147
|
mode,
|
|
147
148
|
editorDisabled
|
|
148
149
|
} = useSharedState(api);
|
|
150
|
+
const interactionState = useSharedPluginStateSelector(api, 'interaction.interactionState');
|
|
151
|
+
if (interactionState === 'hasNotHadInteraction' && fg('platform_editor_hide_expand_selection_states')) {
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
149
154
|
if (isDragging || isPMDragging) {
|
|
150
155
|
if (editorExperiment('advanced_layouts', true)) {
|
|
151
156
|
return null;
|
|
@@ -10,6 +10,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
10
10
|
import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
|
|
11
11
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
12
12
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
15
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
15
16
|
import { createResizingPlugin } from './pm-plugins/resizing-plugin';
|
|
@@ -145,6 +146,10 @@ var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
|
|
|
145
146
|
isPMDragging = _useSharedState.isPMDragging,
|
|
146
147
|
mode = _useSharedState.mode,
|
|
147
148
|
editorDisabled = _useSharedState.editorDisabled;
|
|
149
|
+
var interactionState = useSharedPluginStateSelector(api, 'interaction.interactionState');
|
|
150
|
+
if (interactionState === 'hasNotHadInteraction' && fg('platform_editor_hide_expand_selection_states')) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
148
153
|
if (isDragging || isPMDragging) {
|
|
149
154
|
if (editorExperiment('advanced_layouts', true)) {
|
|
150
155
|
return null;
|
|
@@ -2,7 +2,8 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
|
|
|
2
2
|
import { type BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
3
3
|
import { type EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
4
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
5
|
-
import {
|
|
5
|
+
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
6
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
6
7
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
8
|
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
9
|
export interface BreakoutPluginState {
|
|
@@ -16,6 +17,7 @@ export type BreakoutPluginDependencies = [
|
|
|
16
17
|
OptionalPlugin<EditorViewModePlugin>,
|
|
17
18
|
OptionalPlugin<EditorDisabledPlugin>,
|
|
18
19
|
OptionalPlugin<BlockControlsPlugin>,
|
|
20
|
+
OptionalPlugin<InteractionPlugin>,
|
|
19
21
|
OptionalPlugin<UserIntentPlugin>
|
|
20
22
|
];
|
|
21
23
|
export type BreakoutPlugin = NextEditorPlugin<'breakout', {
|
|
@@ -2,7 +2,8 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
|
|
|
2
2
|
import { type BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
3
3
|
import { type EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
4
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
5
|
-
import {
|
|
5
|
+
import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
|
|
6
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
6
7
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
8
|
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
9
|
export interface BreakoutPluginState {
|
|
@@ -16,6 +17,7 @@ export type BreakoutPluginDependencies = [
|
|
|
16
17
|
OptionalPlugin<EditorViewModePlugin>,
|
|
17
18
|
OptionalPlugin<EditorDisabledPlugin>,
|
|
18
19
|
OptionalPlugin<BlockControlsPlugin>,
|
|
20
|
+
OptionalPlugin<InteractionPlugin>,
|
|
19
21
|
OptionalPlugin<UserIntentPlugin>
|
|
20
22
|
];
|
|
21
23
|
export type BreakoutPlugin = NextEditorPlugin<'breakout', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,19 +34,20 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^106.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-controls": "^3.15.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-interaction": "^1.1.0",
|
|
41
42
|
"@atlaskit/editor-plugin-user-intent": "^0.1.0",
|
|
42
43
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
43
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
45
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
45
|
-
"@atlaskit/icon": "^26.
|
|
46
|
+
"@atlaskit/icon": "^26.4.0",
|
|
46
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
48
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
48
49
|
"@atlaskit/theme": "^18.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^5.2.0",
|
|
50
51
|
"@atlaskit/tokens": "^4.9.0",
|
|
51
52
|
"@babel/runtime": "^7.0.0",
|
|
52
53
|
"@emotion/react": "^11.7.1"
|
|
@@ -107,6 +108,9 @@
|
|
|
107
108
|
"platform-feature-flags": {
|
|
108
109
|
"platform-editor-single-player-expand": {
|
|
109
110
|
"type": "boolean"
|
|
111
|
+
},
|
|
112
|
+
"platform_editor_hide_expand_selection_states": {
|
|
113
|
+
"type": "boolean"
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
}
|