@atlaskit/editor-plugin-layout 8.0.9 → 8.0.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 +14 -0
- package/dist/cjs/layoutPlugin.js +1 -2
- package/dist/cjs/nodeviews/index.js +4 -2
- package/dist/es2019/layoutPlugin.js +1 -2
- package/dist/es2019/nodeviews/index.js +4 -2
- package/dist/esm/layoutPlugin.js +1 -2
- package/dist/esm/nodeviews/index.js +4 -2
- package/dist/types/nodeviews/index.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 8.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
|
|
14
|
+
Replace feature experiment util with cross platform alternative for platform_editor_block_menu
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -15,7 +15,6 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
19
18
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
19
|
var _actions = require("./pm-plugins/actions");
|
|
21
20
|
var _main = _interopRequireDefault(require("./pm-plugins/main"));
|
|
@@ -60,7 +59,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
60
59
|
var allowAdvancedSingleColumnLayout = (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('single_column_layouts', true, {
|
|
61
60
|
exposure: true
|
|
62
61
|
});
|
|
63
|
-
if ((0,
|
|
62
|
+
if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
|
|
64
63
|
var _api$blockMenu;
|
|
65
64
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
66
65
|
type: 'block-menu-item',
|
|
@@ -107,7 +107,9 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
107
107
|
parentRef: parentRef,
|
|
108
108
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
|
|
109
109
|
displayGuidelines: (0, _experiments.editorExperiment)('single_column_layouts', true) ? displayGuidelines : undefined,
|
|
110
|
-
displayGapCursor: displayGapCursor
|
|
110
|
+
displayGapCursor: displayGapCursor
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
|
+
,
|
|
111
113
|
onResizeStart: function onResizeStart() {
|
|
112
114
|
selectIntoCurrentLayout();
|
|
113
115
|
},
|
|
@@ -184,7 +186,7 @@ var LayoutSectionView = exports.LayoutSectionView = /*#__PURE__*/function (_Reac
|
|
|
184
186
|
*/
|
|
185
187
|
}, {
|
|
186
188
|
key: "setDomAttrs",
|
|
187
|
-
value: function setDomAttrs(node,
|
|
189
|
+
value: function setDomAttrs(node, _element) {
|
|
188
190
|
if (this.layoutDOM) {
|
|
189
191
|
this.layoutDOM.setAttribute('data-column-rule-style', node.attrs.columnRuleStyle);
|
|
190
192
|
}
|
|
@@ -8,7 +8,6 @@ import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLa
|
|
|
8
8
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
12
|
const LAYOUT_SECTION_NODE_NAME = 'layoutSection';
|
|
14
13
|
import { createDefaultLayoutSection, createMultiColumnLayoutSection, insertLayoutColumnsWithAnalytics } from './pm-plugins/actions';
|
|
@@ -53,7 +52,7 @@ export const layoutPlugin = ({
|
|
|
53
52
|
const allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true, {
|
|
54
53
|
exposure: true
|
|
55
54
|
});
|
|
56
|
-
if (
|
|
55
|
+
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
57
56
|
var _api$blockMenu;
|
|
58
57
|
api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
59
58
|
type: 'block-menu-item',
|
|
@@ -90,7 +90,9 @@ const LayoutBreakoutResizer = ({
|
|
|
90
90
|
parentRef: parentRef,
|
|
91
91
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
|
|
92
92
|
displayGuidelines: editorExperiment('single_column_layouts', true) ? displayGuidelines : undefined,
|
|
93
|
-
displayGapCursor: displayGapCursor
|
|
93
|
+
displayGapCursor: displayGapCursor
|
|
94
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
95
|
+
,
|
|
94
96
|
onResizeStart: () => {
|
|
95
97
|
selectIntoCurrentLayout();
|
|
96
98
|
},
|
|
@@ -159,7 +161,7 @@ export class LayoutSectionView extends ReactNodeView {
|
|
|
159
161
|
* @param element
|
|
160
162
|
* @example
|
|
161
163
|
*/
|
|
162
|
-
setDomAttrs(node,
|
|
164
|
+
setDomAttrs(node, _element) {
|
|
163
165
|
if (this.layoutDOM) {
|
|
164
166
|
this.layoutDOM.setAttribute('data-column-rule-style', node.attrs.columnRuleStyle);
|
|
165
167
|
}
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -8,7 +8,6 @@ import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLa
|
|
|
8
8
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
12
|
var LAYOUT_SECTION_NODE_NAME = 'layoutSection';
|
|
14
13
|
import { createDefaultLayoutSection, createMultiColumnLayoutSection, insertLayoutColumnsWithAnalytics } from './pm-plugins/actions';
|
|
@@ -54,7 +53,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
54
53
|
var allowAdvancedSingleColumnLayout = editorExperiment('advanced_layouts', true) && editorExperiment('single_column_layouts', true, {
|
|
55
54
|
exposure: true
|
|
56
55
|
});
|
|
57
|
-
if (
|
|
56
|
+
if (editorExperiment('platform_editor_block_menu', true)) {
|
|
58
57
|
var _api$blockMenu;
|
|
59
58
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
60
59
|
type: 'block-menu-item',
|
|
@@ -98,7 +98,9 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
|
|
|
98
98
|
parentRef: parentRef,
|
|
99
99
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
|
|
100
100
|
displayGuidelines: editorExperiment('single_column_layouts', true) ? displayGuidelines : undefined,
|
|
101
|
-
displayGapCursor: displayGapCursor
|
|
101
|
+
displayGapCursor: displayGapCursor
|
|
102
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
|
+
,
|
|
102
104
|
onResizeStart: function onResizeStart() {
|
|
103
105
|
selectIntoCurrentLayout();
|
|
104
106
|
},
|
|
@@ -175,7 +177,7 @@ export var LayoutSectionView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
175
177
|
*/
|
|
176
178
|
}, {
|
|
177
179
|
key: "setDomAttrs",
|
|
178
|
-
value: function setDomAttrs(node,
|
|
180
|
+
value: function setDomAttrs(node, _element) {
|
|
179
181
|
if (this.layoutDOM) {
|
|
180
182
|
this.layoutDOM.setAttribute('data-column-rule-style', node.attrs.columnRuleStyle);
|
|
181
183
|
}
|
|
@@ -60,7 +60,7 @@ export declare class LayoutSectionView extends ReactNodeView<LayoutSectionViewPr
|
|
|
60
60
|
* @param element
|
|
61
61
|
* @example
|
|
62
62
|
*/
|
|
63
|
-
setDomAttrs(node: PMNode,
|
|
63
|
+
setDomAttrs(node: PMNode, _element: HTMLElement): void;
|
|
64
64
|
/**
|
|
65
65
|
* render
|
|
66
66
|
* @param props
|
|
@@ -60,7 +60,7 @@ export declare class LayoutSectionView extends ReactNodeView<LayoutSectionViewPr
|
|
|
60
60
|
* @param element
|
|
61
61
|
* @example
|
|
62
62
|
*/
|
|
63
|
-
setDomAttrs(node: PMNode,
|
|
63
|
+
setDomAttrs(node: PMNode, _element: HTMLElement): void;
|
|
64
64
|
/**
|
|
65
65
|
* render
|
|
66
66
|
* @param props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^33.0.0",
|
|
47
47
|
"@atlaskit/icon-lab": "^6.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^11.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1"
|