@atlaskit/editor-plugin-layout 2.9.9 → 2.9.11
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-layout
|
|
2
2
|
|
|
3
|
+
## 2.9.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#176058](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176058)
|
|
8
|
+
[`38c6611bdd480`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38c6611bdd480) -
|
|
9
|
+
ED-28085 Clean up platform_editor_hide_expand_selection_states
|
|
10
|
+
|
|
11
|
+
## 2.9.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 2.9.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/rea
|
|
|
17
17
|
var _resizer = require("@atlaskit/editor-common/resizer");
|
|
18
18
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
19
19
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
21
|
var _utils = require("../pm-plugins/utils");
|
|
23
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -95,7 +94,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
95
94
|
// put the selection into the first column of the layout
|
|
96
95
|
(0, _utils.selectIntoLayout)(view, pos, 0);
|
|
97
96
|
}, [getPos, view]);
|
|
98
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
97
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
99
98
|
return null;
|
|
100
99
|
}
|
|
101
100
|
return /*#__PURE__*/_react.default.createElement(_resizer.BreakoutResizer, {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -21,7 +21,6 @@ var _layoutThreeColumnsSidebarsEditorLayoutThreeWithSidebars = _interopRequireDe
|
|
|
21
21
|
var _layoutTwoColumnsEditorLayoutTwoEqual = _interopRequireDefault(require("@atlaskit/icon/core/migration/layout-two-columns--editor-layout-two-equal"));
|
|
22
22
|
var _layoutTwoColumnsSidebarLeftEditorLayoutTwoLeftSidebar = _interopRequireDefault(require("@atlaskit/icon/core/migration/layout-two-columns-sidebar-left--editor-layout-two-left-sidebar"));
|
|
23
23
|
var _layoutTwoColumnsSidebarRightEditorLayoutTwoRightSidebar = _interopRequireDefault(require("@atlaskit/icon/core/migration/layout-two-columns-sidebar-right--editor-layout-two-right-sidebar"));
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
26
25
|
var _actions = require("../pm-plugins/actions");
|
|
27
26
|
var _LayoutColumnsIcon = require("./icons/LayoutColumnsIcon");
|
|
@@ -121,7 +120,7 @@ var layoutToolbarTitle = exports.layoutToolbarTitle = 'Layout floating controls'
|
|
|
121
120
|
var iconPlaceholder = _layoutTwoColumnsEditorLayoutTwoEqual.default; // TODO: ED-25466 - Replace with proper icon
|
|
122
121
|
|
|
123
122
|
var getLayoutColumnsIcons = function getLayoutColumnsIcons(colCount) {
|
|
124
|
-
if (!(0, _experiments.editorExperiment)('single_column_layouts', true) && !(
|
|
123
|
+
if (!(0, _experiments.editorExperiment)('single_column_layouts', true) && !(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
125
124
|
return undefined;
|
|
126
125
|
}
|
|
127
126
|
switch (colCount) {
|
|
@@ -4,7 +4,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
|
4
4
|
import { BreakoutResizer, ignoreResizerMutations } from '@atlaskit/editor-common/resizer';
|
|
5
5
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
6
6
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { selectIntoLayout } from '../pm-plugins/utils';
|
|
10
9
|
const layoutDynamicFullWidthGuidelineOffset = 16;
|
|
@@ -82,7 +81,7 @@ const LayoutBreakoutResizer = ({
|
|
|
82
81
|
// put the selection into the first column of the layout
|
|
83
82
|
selectIntoLayout(view, pos, 0);
|
|
84
83
|
}, [getPos, view]);
|
|
85
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
84
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
86
85
|
return null;
|
|
87
86
|
}
|
|
88
87
|
return /*#__PURE__*/React.createElement(BreakoutResizer, {
|
|
@@ -11,7 +11,6 @@ import LayoutThreeColumnsSidebarsIcon from '@atlaskit/icon/core/migration/layout
|
|
|
11
11
|
import LayoutTwoColumnsIcon from '@atlaskit/icon/core/migration/layout-two-columns--editor-layout-two-equal';
|
|
12
12
|
import LayoutTwoColumnsSidebarLeftIcon from '@atlaskit/icon/core/migration/layout-two-columns-sidebar-left--editor-layout-two-left-sidebar';
|
|
13
13
|
import LayoutTwoColumnsSidebarRightIcon from '@atlaskit/icon/core/migration/layout-two-columns-sidebar-right--editor-layout-two-right-sidebar';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { deleteActiveLayoutNode, getPresetLayout, setPresetLayout } from '../pm-plugins/actions';
|
|
17
16
|
import { EditorLayoutFiveColumnsIcon, EditorLayoutFourColumnsIcon } from './icons/LayoutColumnsIcon';
|
|
@@ -106,7 +105,7 @@ export const layoutToolbarTitle = 'Layout floating controls';
|
|
|
106
105
|
const iconPlaceholder = LayoutTwoColumnsIcon; // TODO: ED-25466 - Replace with proper icon
|
|
107
106
|
|
|
108
107
|
const getLayoutColumnsIcons = colCount => {
|
|
109
|
-
if (!editorExperiment('single_column_layouts', true) && !
|
|
108
|
+
if (!editorExperiment('single_column_layouts', true) && !editorExperiment('platform_editor_controls', 'variant1')) {
|
|
110
109
|
return undefined;
|
|
111
110
|
}
|
|
112
111
|
switch (colCount) {
|
|
@@ -11,7 +11,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
|
11
11
|
import { BreakoutResizer, ignoreResizerMutations } from '@atlaskit/editor-common/resizer';
|
|
12
12
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
13
13
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { selectIntoLayout } from '../pm-plugins/utils';
|
|
17
16
|
var layoutDynamicFullWidthGuidelineOffset = 16;
|
|
@@ -86,7 +85,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
86
85
|
// put the selection into the first column of the layout
|
|
87
86
|
selectIntoLayout(view, pos, 0);
|
|
88
87
|
}, [getPos, view]);
|
|
89
|
-
if (interactionState === 'hasNotHadInteraction'
|
|
88
|
+
if (interactionState === 'hasNotHadInteraction') {
|
|
90
89
|
return null;
|
|
91
90
|
}
|
|
92
91
|
return /*#__PURE__*/React.createElement(BreakoutResizer, {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -15,7 +15,6 @@ import LayoutThreeColumnsSidebarsIcon from '@atlaskit/icon/core/migration/layout
|
|
|
15
15
|
import LayoutTwoColumnsIcon from '@atlaskit/icon/core/migration/layout-two-columns--editor-layout-two-equal';
|
|
16
16
|
import LayoutTwoColumnsSidebarLeftIcon from '@atlaskit/icon/core/migration/layout-two-columns-sidebar-left--editor-layout-two-left-sidebar';
|
|
17
17
|
import LayoutTwoColumnsSidebarRightIcon from '@atlaskit/icon/core/migration/layout-two-columns-sidebar-right--editor-layout-two-right-sidebar';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { deleteActiveLayoutNode, getPresetLayout, setPresetLayout } from '../pm-plugins/actions';
|
|
21
20
|
import { EditorLayoutFiveColumnsIcon, EditorLayoutFourColumnsIcon } from './icons/LayoutColumnsIcon';
|
|
@@ -112,7 +111,7 @@ export var layoutToolbarTitle = 'Layout floating controls';
|
|
|
112
111
|
var iconPlaceholder = LayoutTwoColumnsIcon; // TODO: ED-25466 - Replace with proper icon
|
|
113
112
|
|
|
114
113
|
var getLayoutColumnsIcons = function getLayoutColumnsIcons(colCount) {
|
|
115
|
-
if (!editorExperiment('single_column_layouts', true) && !
|
|
114
|
+
if (!editorExperiment('single_column_layouts', true) && !editorExperiment('platform_editor_controls', 'variant1')) {
|
|
116
115
|
return undefined;
|
|
117
116
|
}
|
|
118
117
|
switch (colCount) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.11",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^107.
|
|
37
|
+
"@atlaskit/editor-common": "^107.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
42
|
+
"@atlaskit/editor-plugin-interaction": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
44
44
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
47
|
-
"@atlaskit/icon": "^27.
|
|
47
|
+
"@atlaskit/icon": "^27.1.0",
|
|
48
48
|
"@atlaskit/icon-lab": "^5.0.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^8.2.0",
|
|
51
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
@@ -109,12 +109,6 @@
|
|
|
109
109
|
},
|
|
110
110
|
"platform_editor_column_count_analytics": {
|
|
111
111
|
"type": "boolean"
|
|
112
|
-
},
|
|
113
|
-
"platform_editor_hide_expand_selection_states": {
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
|
-
"platform_editor_controls_patch_11": {
|
|
117
|
-
"type": "boolean"
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
114
|
}
|