@atlaskit/editor-plugin-breakout 3.0.6 → 3.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,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#190588](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190588)
|
|
8
|
+
[`b22e308cfd320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b22e308cfd320) -
|
|
9
|
+
Replace experiment key platform_editor_useSharedPluginStateSelector with
|
|
10
|
+
platform_editor_useSharedPluginStateWithSelector
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 3.1.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#189314](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189314)
|
|
18
|
+
[`22c6251496010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22c6251496010) -
|
|
19
|
+
Exported missing types that were already being inferred from existing exports
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 3.0.6
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -23,8 +23,8 @@ var _collapse = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/coll
|
|
|
23
23
|
var _expand = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/expand"));
|
|
24
24
|
var _colors = require("@atlaskit/theme/colors");
|
|
25
25
|
var _constants = require("@atlaskit/theme/constants");
|
|
26
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
27
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
27
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
28
28
|
var _removeBreakout = require("../editor-commands/remove-breakout");
|
|
29
29
|
var _setBreakoutMode = require("../editor-commands/set-breakout-mode");
|
|
30
30
|
var _pluginKey = require("../pm-plugins/plugin-key");
|
|
@@ -113,11 +113,11 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
113
113
|
}
|
|
114
114
|
}, [api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, editorView, isLivePage, node === null || node === void 0 ? void 0 : node.type.name]);
|
|
115
115
|
var state = editorView.state;
|
|
116
|
-
var exitCondition = (0,
|
|
116
|
+
var exitCondition = (0, _expValEquals.expValEquals)('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? !isBreakoutNodePresent : !node;
|
|
117
117
|
if (exitCondition || !(0, _isBreakoutMarkAllowed.isBreakoutMarkAllowed)(state)) {
|
|
118
118
|
return null;
|
|
119
119
|
}
|
|
120
|
-
var breakoutMode = (0,
|
|
120
|
+
var breakoutMode = (0, _expValEquals.expValEquals)('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? breakoutModeProp : (0, _getBreakoutMode.getBreakoutMode)(editorView.state);
|
|
121
121
|
var titleMessage = (0, _utils.getTitle)(breakoutMode);
|
|
122
122
|
var title = formatMessage(titleMessage);
|
|
123
123
|
var nextBreakoutMode = (0, _utils.getNextBreakoutMode)(breakoutMode);
|
|
@@ -21,8 +21,8 @@ import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
|
21
21
|
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
22
22
|
import { B300, N20A, N300 } from '@atlaskit/theme/colors';
|
|
23
23
|
import { layers } from '@atlaskit/theme/constants';
|
|
24
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
25
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
25
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
26
26
|
import { removeBreakout } from '../editor-commands/remove-breakout';
|
|
27
27
|
import { setBreakoutMode } from '../editor-commands/set-breakout-mode';
|
|
28
28
|
import { getPluginState } from '../pm-plugins/plugin-key';
|
|
@@ -114,11 +114,11 @@ const LayoutButton = ({
|
|
|
114
114
|
const {
|
|
115
115
|
state
|
|
116
116
|
} = editorView;
|
|
117
|
-
const exitCondition =
|
|
117
|
+
const exitCondition = expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? !isBreakoutNodePresent : !node;
|
|
118
118
|
if (exitCondition || !isBreakoutMarkAllowed(state)) {
|
|
119
119
|
return null;
|
|
120
120
|
}
|
|
121
|
-
const breakoutMode =
|
|
121
|
+
const breakoutMode = expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? breakoutModeProp : getBreakoutMode(editorView.state);
|
|
122
122
|
const titleMessage = getTitle(breakoutMode);
|
|
123
123
|
const title = formatMessage(titleMessage);
|
|
124
124
|
const nextBreakoutMode = getNextBreakoutMode(breakoutMode);
|
|
@@ -22,8 +22,8 @@ import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
|
22
22
|
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
23
23
|
import { B300, N20A, N300 } from '@atlaskit/theme/colors';
|
|
24
24
|
import { layers } from '@atlaskit/theme/constants';
|
|
25
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
25
26
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
26
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
27
27
|
import { removeBreakout } from '../editor-commands/remove-breakout';
|
|
28
28
|
import { setBreakoutMode } from '../editor-commands/set-breakout-mode';
|
|
29
29
|
import { getPluginState } from '../pm-plugins/plugin-key';
|
|
@@ -105,11 +105,11 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
105
105
|
}
|
|
106
106
|
}, [api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, editorView, isLivePage, node === null || node === void 0 ? void 0 : node.type.name]);
|
|
107
107
|
var state = editorView.state;
|
|
108
|
-
var exitCondition =
|
|
108
|
+
var exitCondition = expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? !isBreakoutNodePresent : !node;
|
|
109
109
|
if (exitCondition || !isBreakoutMarkAllowed(state)) {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
var breakoutMode =
|
|
112
|
+
var breakoutMode = expValEquals('platform_editor_usesharedpluginstatewithselector', 'isEnabled', true) ? breakoutModeProp : getBreakoutMode(editorView.state);
|
|
113
113
|
var titleMessage = getTitle(breakoutMode);
|
|
114
114
|
var title = formatMessage(titleMessage);
|
|
115
115
|
var nextBreakoutMode = getNextBreakoutMode(breakoutMode);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { breakoutPlugin } from './breakoutPlugin';
|
|
2
|
-
export type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState, } from './breakoutPluginType';
|
|
2
|
+
export type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState, BreakoutPluginDependencies, } from './breakoutPluginType';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { breakoutPlugin } from './breakoutPlugin';
|
|
2
|
-
export type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState, } from './breakoutPluginType';
|
|
2
|
+
export type { BreakoutPlugin, BreakoutPluginOptions, BreakoutPluginState, BreakoutPluginDependencies, } from './breakoutPluginType';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^49.0.6",
|
|
36
|
-
"@atlaskit/editor-plugin-block-controls": "^4.
|
|
36
|
+
"@atlaskit/editor-plugin-block-controls": "^4.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-guideline": "^3.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-interaction": "^4.0.0",
|
|
41
|
-
"@atlaskit/editor-plugin-user-intent": "^1.
|
|
41
|
+
"@atlaskit/editor-plugin-user-intent": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-width": "^4.0.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
45
|
-
"@atlaskit/icon": "^27.
|
|
45
|
+
"@atlaskit/icon": "^27.7.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
48
48
|
"@atlaskit/theme": "^19.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^9.14.0",
|
|
50
50
|
"@atlaskit/tokens": "^5.6.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.3.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"uuid": "^3.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^107.
|
|
59
|
+
"@atlaskit/editor-common": "^107.12.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|