@atlaskit/editor-plugin-layout 23.0.5 → 23.0.7

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
+ ## 23.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 23.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f1454b828555b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1454b828555b) -
14
+ Clean up experiment `platform_editor_breakout_interaction_rerender`
15
+ - Updated dependencies
16
+
3
17
  ## 23.0.5
4
18
 
5
19
  ### Patch Changes
@@ -75,9 +75,6 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
75
75
  // put the selection into the first column of the layout
76
76
  (0, _utils.selectIntoLayout)(view, pos, 0);
77
77
  }, [getPos, view]);
78
- if (interactionState === 'hasNotHadInteraction' && !(0, _expValEquals.expValEquals)('platform_editor_breakout_interaction_rerender', 'isEnabled', true)) {
79
- return null;
80
- }
81
78
  return /*#__PURE__*/_react.default.createElement(_resizer.BreakoutResizer, {
82
79
  getRef: forwardRef,
83
80
  getPos: getPos,
@@ -85,7 +82,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
85
82
  nodeType: "layoutSection",
86
83
  getEditorWidth: getEditorWidth,
87
84
  disabled: (0, _editorExperiment.editorExperiment)('platform_editor_breakout_resizing', true) ? true : editorDisabled === true || !isBreakoutAvailable(view.state.schema),
88
- hidden: interactionState === 'hasNotHadInteraction' && (0, _expValEquals.expValEquals)('platform_editor_breakout_interaction_rerender', 'isEnabled', true),
85
+ hidden: interactionState === 'hasNotHadInteraction',
89
86
  parentRef: parentRef,
90
87
  editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
91
88
  displayGuidelines: (0, _editorExperiment.editorExperiment)('single_column_layouts', true) ? displayGuidelines : undefined,
@@ -58,9 +58,6 @@ const LayoutBreakoutResizer = ({
58
58
  // put the selection into the first column of the layout
59
59
  selectIntoLayout(view, pos, 0);
60
60
  }, [getPos, view]);
61
- if (interactionState === 'hasNotHadInteraction' && !expValEquals('platform_editor_breakout_interaction_rerender', 'isEnabled', true)) {
62
- return null;
63
- }
64
61
  return /*#__PURE__*/React.createElement(BreakoutResizer, {
65
62
  getRef: forwardRef,
66
63
  getPos: getPos,
@@ -68,7 +65,7 @@ const LayoutBreakoutResizer = ({
68
65
  nodeType: "layoutSection",
69
66
  getEditorWidth: getEditorWidth,
70
67
  disabled: editorExperiment('platform_editor_breakout_resizing', true) ? true : editorDisabled === true || !isBreakoutAvailable(view.state.schema),
71
- hidden: interactionState === 'hasNotHadInteraction' && expValEquals('platform_editor_breakout_interaction_rerender', 'isEnabled', true),
68
+ hidden: interactionState === 'hasNotHadInteraction',
72
69
  parentRef: parentRef,
73
70
  editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
74
71
  displayGuidelines: editorExperiment('single_column_layouts', true) ? displayGuidelines : undefined,
@@ -66,9 +66,6 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
66
66
  // put the selection into the first column of the layout
67
67
  selectIntoLayout(view, pos, 0);
68
68
  }, [getPos, view]);
69
- if (interactionState === 'hasNotHadInteraction' && !expValEquals('platform_editor_breakout_interaction_rerender', 'isEnabled', true)) {
70
- return null;
71
- }
72
69
  return /*#__PURE__*/React.createElement(BreakoutResizer, {
73
70
  getRef: forwardRef,
74
71
  getPos: getPos,
@@ -76,7 +73,7 @@ var LayoutBreakoutResizer = function LayoutBreakoutResizer(_ref) {
76
73
  nodeType: "layoutSection",
77
74
  getEditorWidth: getEditorWidth,
78
75
  disabled: editorExperiment('platform_editor_breakout_resizing', true) ? true : editorDisabled === true || !isBreakoutAvailable(view.state.schema),
79
- hidden: interactionState === 'hasNotHadInteraction' && expValEquals('platform_editor_breakout_interaction_rerender', 'isEnabled', true),
76
+ hidden: interactionState === 'hasNotHadInteraction',
80
77
  parentRef: parentRef,
81
78
  editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions,
82
79
  displayGuidelines: editorExperiment('single_column_layouts', true) ? displayGuidelines : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "23.0.5",
3
+ "version": "23.0.7",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/icon-lab": "^7.11.0",
44
44
  "@atlaskit/platform-feature-experiments": "^0.3.0",
45
45
  "@atlaskit/platform-feature-flags": "^2.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^214.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^216.0.0",
47
47
  "@atlaskit/tokens": "^20.1.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^126.2.0",
53
+ "@atlaskit/editor-common": "^126.4.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },