@atlaskit/editor-plugin-layout 25.0.1 → 25.1.0
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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 25.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1bc9c73990ed2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1bc9c73990ed2) -
|
|
8
|
+
Add editor viewmode plugin to layout plugin dependencies
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`76b3320456e72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76b3320456e72) -
|
|
13
|
+
Clean up experiment `platform_editor_layout_column_selection_fix`
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 25.0.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 25.0.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
9
9
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
10
10
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
11
11
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
14
13
|
|
|
15
14
|
var getMaybeLayoutSection = exports.getMaybeLayoutSection = function getMaybeLayoutSection(state) {
|
|
@@ -155,7 +154,7 @@ var getGapCursorTargetForBlankSpaceClick = exports.getGapCursorTargetForBlankSpa
|
|
|
155
154
|
// so the above/below checks never fired.
|
|
156
155
|
if (columnNode.childCount === 1) {
|
|
157
156
|
var onlyChild = columnNode.firstChild;
|
|
158
|
-
var shouldHandleAtomicChild =
|
|
157
|
+
var shouldHandleAtomicChild = supportsBlankSpaceGapCursorFallback(onlyChild);
|
|
159
158
|
if (onlyChild && shouldHandleAtomicChild) {
|
|
160
159
|
// A caption is editable content inside a mediaSingle, not blank layout space. The
|
|
161
160
|
// image bounds below intentionally exclude the caption so clicks beside the image
|
|
@@ -4,7 +4,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
export const getMaybeLayoutSection = state => {
|
|
9
8
|
const {
|
|
10
9
|
schema: {
|
|
@@ -150,7 +149,7 @@ export const getGapCursorTargetForBlankSpaceClick = (view, event) => {
|
|
|
150
149
|
// so the above/below checks never fired.
|
|
151
150
|
if (columnNode.childCount === 1) {
|
|
152
151
|
const onlyChild = columnNode.firstChild;
|
|
153
|
-
const shouldHandleAtomicChild =
|
|
152
|
+
const shouldHandleAtomicChild = supportsBlankSpaceGapCursorFallback(onlyChild);
|
|
154
153
|
if (onlyChild && shouldHandleAtomicChild) {
|
|
155
154
|
// A caption is editable content inside a mediaSingle, not blank layout space. The
|
|
156
155
|
// image bounds below intentionally exclude the caption so clicks beside the image
|
|
@@ -4,7 +4,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
export var getMaybeLayoutSection = function getMaybeLayoutSection(state) {
|
|
9
8
|
var _state$schema$nodes = state.schema.nodes,
|
|
10
9
|
layoutSection = _state$schema$nodes.layoutSection,
|
|
@@ -148,7 +147,7 @@ export var getGapCursorTargetForBlankSpaceClick = function getGapCursorTargetFor
|
|
|
148
147
|
// so the above/below checks never fired.
|
|
149
148
|
if (columnNode.childCount === 1) {
|
|
150
149
|
var onlyChild = columnNode.firstChild;
|
|
151
|
-
var shouldHandleAtomicChild =
|
|
150
|
+
var shouldHandleAtomicChild = supportsBlankSpaceGapCursorFallback(onlyChild);
|
|
152
151
|
if (onlyChild && shouldHandleAtomicChild) {
|
|
153
152
|
// A caption is editable content inside a mediaSingle, not blank layout space. The
|
|
154
153
|
// image bounds below intentionally exclude the caption so clicks beside the image
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "25.0
|
|
3
|
+
"version": "25.1.0",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@atlaskit/editor-plugin-block-menu": "^23.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-decorations": "^24.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-disabled": "^24.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^26.0.0",
|
|
31
32
|
"@atlaskit/editor-plugin-guideline": "^24.0.0",
|
|
32
33
|
"@atlaskit/editor-plugin-interaction": "^38.0.0",
|
|
33
34
|
"@atlaskit/editor-plugin-selection": "^24.0.0",
|
|
@@ -43,14 +44,14 @@
|
|
|
43
44
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
44
45
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
45
46
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
-
"@atlaskit/tokens": "^20.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^223.0.0",
|
|
48
|
+
"@atlaskit/tokens": "^20.3.0",
|
|
48
49
|
"@babel/runtime": "^7.0.0",
|
|
49
50
|
"@emotion/react": "^11.7.1",
|
|
50
51
|
"bind-event-listener": "^3.0.0"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^128.
|
|
54
|
+
"@atlaskit/editor-common": "^128.3.0",
|
|
54
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
55
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
56
57
|
},
|