@atlaskit/editor-plugin-breakout 12.2.0 → 12.2.2
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 +15 -0
- package/dist/cjs/breakoutPlugin.js +1 -2
- package/dist/cjs/pm-plugins/handle-key-down.js +2 -2
- package/dist/es2019/breakoutPlugin.js +1 -2
- package/dist/es2019/pm-plugins/handle-key-down.js +2 -2
- package/dist/esm/breakoutPlugin.js +1 -2
- package/dist/esm/pm-plugins/handle-key-down.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 12.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2f1d378992c1d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2f1d378992c1d) -
|
|
8
|
+
Updates uses of expValEqualsNoExposure and expValEquals for resizing of panels and dividers
|
|
9
|
+
feature.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 12.2.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 12.2.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -19,7 +19,6 @@ var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-ef
|
|
|
19
19
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
20
20
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
21
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
23
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
23
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
25
24
|
var _resizingPlugin = require("./pm-plugins/resizing-plugin");
|
|
@@ -199,7 +198,7 @@ var breakoutPlugin = exports.breakoutPlugin = function breakoutPlugin(_ref4) {
|
|
|
199
198
|
plugin: function plugin(_ref5) {
|
|
200
199
|
var getIntl = _ref5.getIntl,
|
|
201
200
|
nodeViewPortalProviderAPI = _ref5.nodeViewPortalProviderAPI;
|
|
202
|
-
return (0, _resizingPlugin.createResizingPlugin)(api, getIntl, nodeViewPortalProviderAPI, options, (0,
|
|
201
|
+
return (0, _resizingPlugin.createResizingPlugin)(api, getIntl, nodeViewPortalProviderAPI, options, (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true));
|
|
203
202
|
}
|
|
204
203
|
}];
|
|
205
204
|
}
|
|
@@ -8,7 +8,7 @@ var _browser = require("@atlaskit/editor-common/browser");
|
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
13
|
var _setBreakoutWidth = require("../editor-commands/set-breakout-width");
|
|
14
14
|
var KEYBOARD_RESIZE_STEP = 10;
|
|
@@ -53,7 +53,7 @@ var handleKeyDown = exports.handleKeyDown = function handleKeyDown(api) {
|
|
|
53
53
|
rule = _view$state$schema$no.rule,
|
|
54
54
|
panel = _view$state$schema$no.panel,
|
|
55
55
|
panel_c1 = _view$state$schema$no.panel_c1;
|
|
56
|
-
var breakoutResizableNodes = (0, _experiments.editorExperiment)('platform_synced_block', true) ? (0, _utils.getBreakoutResizableNodeTypes)(view.state.schema, (0,
|
|
56
|
+
var breakoutResizableNodes = (0, _experiments.editorExperiment)('platform_synced_block', true) ? (0, _utils.getBreakoutResizableNodeTypes)(view.state.schema, (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true)) : (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) ? new Set([expand, codeBlock, layoutSection, rule, panel, panel_c1]) : new Set([expand, codeBlock, layoutSection]);
|
|
57
57
|
var result = getAncestorResizableNode(view, breakoutResizableNodes);
|
|
58
58
|
if (result) {
|
|
59
59
|
var node = result.node,
|
|
@@ -7,7 +7,6 @@ import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-e
|
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
8
8
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
13
12
|
import { createResizingPlugin, resizingPluginKey } from './pm-plugins/resizing-plugin';
|
|
@@ -184,7 +183,7 @@ export const breakoutPlugin = ({
|
|
|
184
183
|
plugin: ({
|
|
185
184
|
getIntl,
|
|
186
185
|
nodeViewPortalProviderAPI
|
|
187
|
-
}) => createResizingPlugin(api, getIntl, nodeViewPortalProviderAPI, options,
|
|
186
|
+
}) => createResizingPlugin(api, getIntl, nodeViewPortalProviderAPI, options, expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true))
|
|
188
187
|
}];
|
|
189
188
|
}
|
|
190
189
|
return [{
|
|
@@ -2,7 +2,7 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
2
2
|
import { getBreakoutResizableNodeTypes } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import {
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
|
|
8
8
|
const KEYBOARD_RESIZE_STEP = 10;
|
|
@@ -47,7 +47,7 @@ export const handleKeyDown = api => (view, event) => {
|
|
|
47
47
|
panel,
|
|
48
48
|
panel_c1
|
|
49
49
|
} = view.state.schema.nodes;
|
|
50
|
-
const breakoutResizableNodes = editorExperiment('platform_synced_block', true) ? getBreakoutResizableNodeTypes(view.state.schema,
|
|
50
|
+
const breakoutResizableNodes = editorExperiment('platform_synced_block', true) ? getBreakoutResizableNodeTypes(view.state.schema, expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true)) : expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) ? new Set([expand, codeBlock, layoutSection, rule, panel, panel_c1]) : new Set([expand, codeBlock, layoutSection]);
|
|
51
51
|
const result = getAncestorResizableNode(view, breakoutResizableNodes);
|
|
52
52
|
if (result) {
|
|
53
53
|
const {
|
|
@@ -13,7 +13,6 @@ import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-e
|
|
|
13
13
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
14
14
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
19
18
|
import { createResizingPlugin, resizingPluginKey } from './pm-plugins/resizing-plugin';
|
|
@@ -190,7 +189,7 @@ export var breakoutPlugin = function breakoutPlugin(_ref4) {
|
|
|
190
189
|
plugin: function plugin(_ref5) {
|
|
191
190
|
var getIntl = _ref5.getIntl,
|
|
192
191
|
nodeViewPortalProviderAPI = _ref5.nodeViewPortalProviderAPI;
|
|
193
|
-
return createResizingPlugin(api, getIntl, nodeViewPortalProviderAPI, options,
|
|
192
|
+
return createResizingPlugin(api, getIntl, nodeViewPortalProviderAPI, options, expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true));
|
|
194
193
|
}
|
|
195
194
|
}];
|
|
196
195
|
}
|
|
@@ -2,7 +2,7 @@ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
|
2
2
|
import { getBreakoutResizableNodeTypes } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import {
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
|
|
8
8
|
var KEYBOARD_RESIZE_STEP = 10;
|
|
@@ -47,7 +47,7 @@ export var handleKeyDown = function handleKeyDown(api) {
|
|
|
47
47
|
rule = _view$state$schema$no.rule,
|
|
48
48
|
panel = _view$state$schema$no.panel,
|
|
49
49
|
panel_c1 = _view$state$schema$no.panel_c1;
|
|
50
|
-
var breakoutResizableNodes = editorExperiment('platform_synced_block', true) ? getBreakoutResizableNodeTypes(view.state.schema,
|
|
50
|
+
var breakoutResizableNodes = editorExperiment('platform_synced_block', true) ? getBreakoutResizableNodeTypes(view.state.schema, expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true)) : expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) ? new Set([expand, codeBlock, layoutSection, rule, panel, panel_c1]) : new Set([expand, codeBlock, layoutSection]);
|
|
51
51
|
var result = getAncestorResizableNode(view, breakoutResizableNodes);
|
|
52
52
|
if (result) {
|
|
53
53
|
var node = result.node,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.2",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^56.1.0",
|
|
25
|
-
"@atlaskit/editor-plugin-block-controls": "^13.
|
|
25
|
+
"@atlaskit/editor-plugin-block-controls": "^13.2.0",
|
|
26
26
|
"@atlaskit/editor-plugin-editor-disabled": "^12.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-guideline": "^12.0.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
36
36
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
37
37
|
"@atlaskit/theme": "^26.1.0",
|
|
38
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
-
"@atlaskit/tokens": "^15.
|
|
38
|
+
"@atlaskit/tmp-editor-statsig": "^123.0.0",
|
|
39
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
40
40
|
"@atlaskit/tooltip": "^23.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"uuid": "^3.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^116.
|
|
48
|
+
"@atlaskit/editor-common": "^116.24.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0",
|
|
51
51
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|