@atlaskit/editor-plugin-layout 2.8.2 → 2.9.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 +21 -0
- package/dist/cjs/layoutPlugin.js +3 -1
- package/dist/cjs/nodeviews/index.js +1 -2
- package/dist/cjs/ui/toolbar.js +2 -3
- package/dist/es2019/layoutPlugin.js +3 -1
- package/dist/es2019/ui/toolbar.js +1 -1
- package/dist/esm/layoutPlugin.js +3 -1
- package/dist/esm/ui/toolbar.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 2.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#162718](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162718)
|
|
8
|
+
[`0258f5ac08bf9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0258f5ac08bf9) -
|
|
9
|
+
ED-26960 Add logic so that layout column option dropdown shows icons like single_column_layouts
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.9.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#162136](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162136)
|
|
17
|
+
[`356ae4cb21dae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/356ae4cb21dae) -
|
|
18
|
+
ED-28129 Fix multiple activation point for the full-width guideline
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 2.8.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -53,7 +53,9 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
53
53
|
var _ref$config = _ref.config,
|
|
54
54
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
55
55
|
api = _ref.api;
|
|
56
|
-
var allowAdvancedSingleColumnLayout = (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('single_column_layouts', true
|
|
56
|
+
var allowAdvancedSingleColumnLayout = (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('single_column_layouts', true, {
|
|
57
|
+
exposure: true
|
|
58
|
+
});
|
|
57
59
|
return {
|
|
58
60
|
name: 'layout',
|
|
59
61
|
nodes: function nodes() {
|
|
@@ -20,8 +20,7 @@ var _model = require("@atlaskit/editor-prosemirror/model");
|
|
|
20
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
22
|
var _utils = require("../pm-plugins/utils");
|
|
23
|
-
function
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
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); }
|
|
25
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
26
|
var layoutDynamicFullWidthGuidelineOffset = 16;
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -27,8 +27,7 @@ var _actions = require("../pm-plugins/actions");
|
|
|
27
27
|
var _LayoutColumnsIcon = require("./icons/LayoutColumnsIcon");
|
|
28
28
|
var _LayoutThreeWithLeftSidebars = require("./icons/LayoutThreeWithLeftSidebars");
|
|
29
29
|
var _LayoutThreeWithRightSidebars = require("./icons/LayoutThreeWithRightSidebars");
|
|
30
|
-
function
|
|
31
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
|
+
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); }
|
|
32
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34
33
|
var LAYOUT_TYPES = [{
|
|
@@ -122,7 +121,7 @@ var layoutToolbarTitle = exports.layoutToolbarTitle = 'Layout floating controls'
|
|
|
122
121
|
var iconPlaceholder = _layoutTwoColumnsEditorLayoutTwoEqual.default; // TODO: ED-25466 - Replace with proper icon
|
|
123
122
|
|
|
124
123
|
var getLayoutColumnsIcons = function getLayoutColumnsIcons(colCount) {
|
|
125
|
-
if (!(0, _experiments.editorExperiment)('single_column_layouts', true)) {
|
|
124
|
+
if (!(0, _experiments.editorExperiment)('single_column_layouts', true) && !((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_11'))) {
|
|
126
125
|
return undefined;
|
|
127
126
|
}
|
|
128
127
|
switch (colCount) {
|
|
@@ -46,7 +46,9 @@ export const layoutPlugin = ({
|
|
|
46
46
|
api
|
|
47
47
|
}) => {
|
|
48
48
|
var _api$analytics;
|
|
49
|
-
const allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true
|
|
49
|
+
const allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true, {
|
|
50
|
+
exposure: true
|
|
51
|
+
});
|
|
50
52
|
return {
|
|
51
53
|
name: 'layout',
|
|
52
54
|
nodes() {
|
|
@@ -106,7 +106,7 @@ export const layoutToolbarTitle = 'Layout floating controls';
|
|
|
106
106
|
const iconPlaceholder = LayoutTwoColumnsIcon; // TODO: ED-25466 - Replace with proper icon
|
|
107
107
|
|
|
108
108
|
const getLayoutColumnsIcons = colCount => {
|
|
109
|
-
if (!editorExperiment('single_column_layouts', true)) {
|
|
109
|
+
if (!editorExperiment('single_column_layouts', true) && !(editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_11'))) {
|
|
110
110
|
return undefined;
|
|
111
111
|
}
|
|
112
112
|
switch (colCount) {
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -47,7 +47,9 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
47
47
|
var _ref$config = _ref.config,
|
|
48
48
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
49
49
|
api = _ref.api;
|
|
50
|
-
var allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true
|
|
50
|
+
var allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true, {
|
|
51
|
+
exposure: true
|
|
52
|
+
});
|
|
51
53
|
return {
|
|
52
54
|
name: 'layout',
|
|
53
55
|
nodes: function nodes() {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -112,7 +112,7 @@ export var layoutToolbarTitle = 'Layout floating controls';
|
|
|
112
112
|
var iconPlaceholder = LayoutTwoColumnsIcon; // TODO: ED-25466 - Replace with proper icon
|
|
113
113
|
|
|
114
114
|
var getLayoutColumnsIcons = function getLayoutColumnsIcons(colCount) {
|
|
115
|
-
if (!editorExperiment('single_column_layouts', true)) {
|
|
115
|
+
if (!editorExperiment('single_column_layouts', true) && !(editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_11'))) {
|
|
116
116
|
return undefined;
|
|
117
117
|
}
|
|
118
118
|
switch (colCount) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.1",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^106.
|
|
37
|
+
"@atlaskit/editor-common": "^106.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.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/icon": "^26.4.0",
|
|
48
48
|
"@atlaskit/icon-lab": "^4.17.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^5.7.0",
|
|
51
51
|
"@atlaskit/tokens": "^4.9.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
@@ -118,6 +118,9 @@
|
|
|
118
118
|
},
|
|
119
119
|
"platform_editor_hide_expand_selection_states": {
|
|
120
120
|
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"platform_editor_controls_patch_11": {
|
|
123
|
+
"type": "boolean"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
}
|