@atlaskit/editor-plugin-layout 30.0.3 → 31.0.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,19 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 31.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 30.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`afc1c40f08008`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/afc1c40f08008) -
14
+ Remove the shipped media caption layout experiment and preserve caption editing.
15
+ - Updated dependencies
16
+
3
17
  ## 30.0.3
4
18
 
5
19
  ### Patch Changes
@@ -7,7 +7,6 @@ exports.selectIntoLayout = exports.isParagraphBlankSpaceTarget = exports.getMayb
7
7
  var _selection = require("@atlaskit/editor-common/selection/gap-cursor/selection");
8
8
  var _state = require("@atlaskit/editor-prosemirror/state");
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
11
10
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
12
11
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
12
 
@@ -160,7 +159,7 @@ var getGapCursorTargetForBlankSpaceClick = exports.getGapCursorTargetForBlankSpa
160
159
  // image bounds below intentionally exclude the caption so clicks beside the image
161
160
  // can place a gap cursor; bail out before that check when the click is on a caption.
162
161
  var _target = event.target;
163
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_fix_edit_media_caption_in_layout') && _target !== null && _target !== void 0 && _target.closest('[data-caption]')) {
162
+ if (_target !== null && _target !== void 0 && _target.closest('[data-caption]')) {
164
163
  return undefined;
165
164
  }
166
165
 
@@ -2,7 +2,6 @@ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor
2
2
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
3
3
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
6
  export const getMaybeLayoutSection = state => {
8
7
  const {
@@ -155,7 +154,7 @@ export const getGapCursorTargetForBlankSpaceClick = (view, event) => {
155
154
  // image bounds below intentionally exclude the caption so clicks beside the image
156
155
  // can place a gap cursor; bail out before that check when the click is on a caption.
157
156
  const target = event.target;
158
- if (isExperimentEnabled('platform_editor_fix_edit_media_caption_in_layout') && target !== null && target !== void 0 && target.closest('[data-caption]')) {
157
+ if (target !== null && target !== void 0 && target.closest('[data-caption]')) {
159
158
  return undefined;
160
159
  }
161
160
 
@@ -2,7 +2,6 @@ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor
2
2
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
3
3
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
6
  export var getMaybeLayoutSection = function getMaybeLayoutSection(state) {
8
7
  var _state$schema$nodes = state.schema.nodes,
@@ -153,7 +152,7 @@ export var getGapCursorTargetForBlankSpaceClick = function getGapCursorTargetFor
153
152
  // image bounds below intentionally exclude the caption so clicks beside the image
154
153
  // can place a gap cursor; bail out before that check when the click is on a caption.
155
154
  var _target = event.target;
156
- if (isExperimentEnabled('platform_editor_fix_edit_media_caption_in_layout') && _target !== null && _target !== void 0 && _target.closest('[data-caption]')) {
155
+ if (_target !== null && _target !== void 0 && _target.closest('[data-caption]')) {
157
156
  return undefined;
158
157
  }
159
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "30.0.3",
3
+ "version": "31.0.0",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,19 +23,19 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.7.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
- "@atlaskit/editor-plugin-analytics": "^29.0.0",
27
- "@atlaskit/editor-plugin-block-controls": "^30.1.0",
28
- "@atlaskit/editor-plugin-block-menu": "^28.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^29.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^29.0.0",
31
- "@atlaskit/editor-plugin-editor-viewmode": "^31.0.0",
32
- "@atlaskit/editor-plugin-guideline": "^29.0.0",
33
- "@atlaskit/editor-plugin-interaction": "^43.0.0",
34
- "@atlaskit/editor-plugin-selection": "^29.0.0",
35
- "@atlaskit/editor-plugin-toolbar": "^26.0.0",
36
- "@atlaskit/editor-plugin-ui-control-registry": "^23.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^27.0.0",
38
- "@atlaskit/editor-plugin-width": "^30.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^30.0.0",
27
+ "@atlaskit/editor-plugin-block-controls": "^31.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^29.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^30.0.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^30.0.0",
31
+ "@atlaskit/editor-plugin-editor-viewmode": "^32.0.0",
32
+ "@atlaskit/editor-plugin-guideline": "^30.0.0",
33
+ "@atlaskit/editor-plugin-interaction": "^44.0.0",
34
+ "@atlaskit/editor-plugin-selection": "^30.0.0",
35
+ "@atlaskit/editor-plugin-toolbar": "^27.0.0",
36
+ "@atlaskit/editor-plugin-ui-control-registry": "^24.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^28.0.0",
38
+ "@atlaskit/editor-plugin-width": "^31.0.0",
39
39
  "@atlaskit/editor-prosemirror": "^9.0.0",
40
40
  "@atlaskit/editor-shared-styles": "^4.6.0",
41
41
  "@atlaskit/editor-toolbar": "^2.8.0",
@@ -44,14 +44,14 @@
44
44
  "@atlaskit/icon-lab": "^7.11.0",
45
45
  "@atlaskit/platform-feature-experiments": "^0.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^2.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^245.0.0",
48
- "@atlaskit/tokens": "^20.7.0",
47
+ "@atlaskit/tmp-editor-statsig": "^246.1.0",
48
+ "@atlaskit/tokens": "^20.8.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "bind-event-listener": "^3.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^133.5.0",
54
+ "@atlaskit/editor-common": "^134.0.0",
55
55
  "react": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
57
57
  },