@atlaskit/editor-plugin-layout 2.9.8 → 2.9.10
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 +12 -0
- package/dist/cjs/ui/toolbar.js +2 -3
- package/dist/es2019/ui/toolbar.js +2 -3
- package/dist/esm/ui/toolbar.js +2 -3
- package/package.json +6 -12
package/CHANGELOG.md
CHANGED
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) {
|
|
@@ -263,7 +262,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
|
|
|
263
262
|
};
|
|
264
263
|
// testId is required to show focus on trigger button on ESC key press
|
|
265
264
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
266
|
-
var testId =
|
|
265
|
+
var testId = 'layout-overflow-dropdown-trigger';
|
|
267
266
|
var overflowMenu = {
|
|
268
267
|
type: 'overflow-dropdown',
|
|
269
268
|
testId: testId,
|
|
@@ -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) {
|
|
@@ -246,7 +245,7 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
|
|
|
246
245
|
});
|
|
247
246
|
// testId is required to show focus on trigger button on ESC key press
|
|
248
247
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
249
|
-
const testId =
|
|
248
|
+
const testId = 'layout-overflow-dropdown-trigger';
|
|
250
249
|
const overflowMenu = {
|
|
251
250
|
type: 'overflow-dropdown',
|
|
252
251
|
testId,
|
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) {
|
|
@@ -254,7 +253,7 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
|
|
|
254
253
|
};
|
|
255
254
|
// testId is required to show focus on trigger button on ESC key press
|
|
256
255
|
// see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
|
|
257
|
-
var testId =
|
|
256
|
+
var testId = 'layout-overflow-dropdown-trigger';
|
|
258
257
|
var overflowMenu = {
|
|
259
258
|
type: 'overflow-dropdown',
|
|
260
259
|
testId: testId,
|
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.10",
|
|
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.1.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": "^
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^8.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
@@ -110,14 +110,8 @@
|
|
|
110
110
|
"platform_editor_column_count_analytics": {
|
|
111
111
|
"type": "boolean"
|
|
112
112
|
},
|
|
113
|
-
"platform_editor_controls_patch_8": {
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
113
|
"platform_editor_hide_expand_selection_states": {
|
|
117
114
|
"type": "boolean"
|
|
118
|
-
},
|
|
119
|
-
"platform_editor_controls_patch_11": {
|
|
120
|
-
"type": "boolean"
|
|
121
115
|
}
|
|
122
116
|
}
|
|
123
117
|
}
|