@atlaskit/editor-plugin-breakout 1.9.6 → 1.9.8

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,23 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 1.9.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.9.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#171014](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171014)
14
+ [`6163248356c63`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6163248356c63) -
15
+ [ED-25833] Replace the following FGs with experiment `platform_editor_advanced_layouts`
16
+
17
+ - platform_editor_advanced_layouts_breakout_resizing
18
+ - platform_editor_advanced_layouts_pre_release_1
19
+ - platform_editor_advanced_layouts_pre_release_2
20
+
3
21
  ## 1.9.6
4
22
 
5
23
  ### Patch Changes
@@ -135,7 +135,7 @@ mark, view) {
135
135
  dom.style.display = 'flex';
136
136
  dom.style.justifyContent = 'center';
137
137
  contentDOM.style.transition = "min-width 0.5s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier);
138
- if ((0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_breakout_resizing')) {
138
+ if ((0, _experiments.editorExperiment)('advanced_layouts', true)) {
139
139
  if (mark.attrs.width) {
140
140
  contentDOM.style.minWidth = "min(".concat(mark.attrs.width, "px, calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))");
141
141
  } else {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isSupportedNodeForBreakout = isSupportedNodeForBreakout;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
7
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
8
8
  var supportedNodesForBreakout = ['codeBlock', 'layoutSection', 'expand'];
9
9
  var supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
10
10
 
@@ -13,7 +13,7 @@ var supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
13
13
  * @param node Node to check
14
14
  */
15
15
  function isSupportedNodeForBreakout(node) {
16
- if ((0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_breakout_resizing')) {
16
+ if ((0, _experiments.editorExperiment)('advanced_layouts', true)) {
17
17
  return supportedNodesForBreakoutAdvancedLayouts.indexOf(node.type.name) !== -1;
18
18
  }
19
19
  return supportedNodesForBreakout.indexOf(node.type.name) !== -1;
@@ -122,7 +122,7 @@ class BreakoutView {
122
122
  dom.style.display = 'flex';
123
123
  dom.style.justifyContent = 'center';
124
124
  contentDOM.style.transition = `min-width 0.5s ${akEditorSwoopCubicBezier}`;
125
- if (fg('platform_editor_advanced_layouts_breakout_resizing')) {
125
+ if (editorExperiment('advanced_layouts', true)) {
126
126
  if (mark.attrs.width) {
127
127
  contentDOM.style.minWidth = `min(${mark.attrs.width}px, calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))`;
128
128
  } else {
@@ -1,4 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
2
  const supportedNodesForBreakout = ['codeBlock', 'layoutSection', 'expand'];
3
3
  const supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
4
4
 
@@ -7,7 +7,7 @@ const supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
7
7
  * @param node Node to check
8
8
  */
9
9
  export function isSupportedNodeForBreakout(node) {
10
- if (fg('platform_editor_advanced_layouts_breakout_resizing')) {
10
+ if (editorExperiment('advanced_layouts', true)) {
11
11
  return supportedNodesForBreakoutAdvancedLayouts.indexOf(node.type.name) !== -1;
12
12
  }
13
13
  return supportedNodesForBreakout.indexOf(node.type.name) !== -1;
@@ -128,7 +128,7 @@ mark, view) {
128
128
  dom.style.display = 'flex';
129
129
  dom.style.justifyContent = 'center';
130
130
  contentDOM.style.transition = "min-width 0.5s ".concat(akEditorSwoopCubicBezier);
131
- if (fg('platform_editor_advanced_layouts_breakout_resizing')) {
131
+ if (editorExperiment('advanced_layouts', true)) {
132
132
  if (mark.attrs.width) {
133
133
  contentDOM.style.minWidth = "min(".concat(mark.attrs.width, "px, calc(100cqw - var(--ak-editor--breakout-full-page-guttering-padding)))");
134
134
  } else {
@@ -1,4 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
2
  var supportedNodesForBreakout = ['codeBlock', 'layoutSection', 'expand'];
3
3
  var supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
4
4
 
@@ -7,7 +7,7 @@ var supportedNodesForBreakoutAdvancedLayouts = ['codeBlock', 'expand'];
7
7
  * @param node Node to check
8
8
  */
9
9
  export function isSupportedNodeForBreakout(node) {
10
- if (fg('platform_editor_advanced_layouts_breakout_resizing')) {
10
+ if (editorExperiment('advanced_layouts', true)) {
11
11
  return supportedNodesForBreakoutAdvancedLayouts.indexOf(node.type.name) !== -1;
12
12
  }
13
13
  return supportedNodesForBreakout.indexOf(node.type.name) !== -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,10 +39,10 @@
39
39
  "@atlaskit/editor-plugin-width": "^1.3.0",
40
40
  "@atlaskit/editor-prosemirror": "6.2.1",
41
41
  "@atlaskit/editor-shared-styles": "^3.2.0",
42
- "@atlaskit/icon": "^22.28.0",
42
+ "@atlaskit/icon": "^23.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/theme": "^14.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^2.17.0",
45
+ "@atlaskit/tmp-editor-statsig": "^2.22.0",
46
46
  "@atlaskit/tokens": "^2.4.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
@@ -115,9 +115,6 @@
115
115
  },
116
116
  "platform_editor_breakout_use_css": {
117
117
  "type": "boolean"
118
- },
119
- "platform_editor_advanced_layouts_breakout_resizing": {
120
- "type": "boolean"
121
118
  }
122
119
  }
123
120
  }