@atlaskit/editor-plugin-grid 10.2.0 → 10.2.1

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-grid
2
2
 
3
+ ## 10.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c61ad86da2b49`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c61ad86da2b49) -
8
+ Clean up `platform_editor_remove_grid_init_reflow` experiment.
9
+ - Remove `expValEquals` gate check from `ContentComponent` in `editor-plugin-grid`, keeping the
10
+ treatment branch (`isEnabled=true`) logic permanently
11
+ - Remove unused `expValEquals` import from `gridPlugin.tsx`
12
+ - Remove `platform_editor_remove_grid_init_reflow` type definition and config entries from
13
+ `tmp-editor-statsig` experiments-config
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 10.2.0
4
18
 
5
19
  ### Minor Changes
@@ -15,7 +15,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
15
15
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
19
 
21
20
  var GRID_SIZE = exports.GRID_SIZE = 12;
@@ -140,18 +139,9 @@ var ContentComponent = function ContentComponent(_ref4) {
140
139
  visible = _useSharedPluginState.visible,
141
140
  gridType = _useSharedPluginState.gridType,
142
141
  highlight = _useSharedPluginState.highlight;
143
- if (visible === undefined || !highlight) {
142
+ if (!visible || !highlight) {
144
143
  return null;
145
144
  }
146
- if ((0, _expValEquals.expValEquals)('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
147
- if (!visible || !highlight) {
148
- return null;
149
- }
150
- } else {
151
- if (visible === undefined || !highlight) {
152
- return null;
153
- }
154
- }
155
145
  return /*#__PURE__*/_react.default.createElement(ThemedGrid, {
156
146
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
157
147
  editorWidth: width !== null && width !== void 0 ? width : _editorSharedStyles.akEditorFullPageMaxWidth
@@ -8,7 +8,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
8
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
9
9
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
10
10
  import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  export const GRID_SIZE = 12;
13
12
  const key = new PluginKey('gridPlugin');
14
13
  const createDisplayGrid = view => props => {
@@ -135,18 +134,9 @@ const ContentComponent = ({
135
134
  gridType,
136
135
  highlight
137
136
  } = useSharedPluginStateWithSelector(api, ['width', 'grid'], selector);
138
- if (visible === undefined || !highlight) {
137
+ if (!visible || !highlight) {
139
138
  return null;
140
139
  }
141
- if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
142
- if (!visible || !highlight) {
143
- return null;
144
- }
145
- } else {
146
- if (visible === undefined || !highlight) {
147
- return null;
148
- }
149
- }
150
140
  return /*#__PURE__*/React.createElement(ThemedGrid, {
151
141
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
152
142
  editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
@@ -10,7 +10,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
10
10
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
11
11
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
12
12
  import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
13
  export var GRID_SIZE = 12;
15
14
  var key = new PluginKey('gridPlugin');
16
15
  var createDisplayGrid = function createDisplayGrid(view) {
@@ -133,18 +132,9 @@ var ContentComponent = function ContentComponent(_ref4) {
133
132
  visible = _useSharedPluginState.visible,
134
133
  gridType = _useSharedPluginState.gridType,
135
134
  highlight = _useSharedPluginState.highlight;
136
- if (visible === undefined || !highlight) {
135
+ if (!visible || !highlight) {
137
136
  return null;
138
137
  }
139
- if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
140
- if (!visible || !highlight) {
141
- return null;
142
- }
143
- } else {
144
- if (visible === undefined || !highlight) {
145
- return null;
146
- }
147
- }
148
138
  return /*#__PURE__*/React.createElement(ThemedGrid, {
149
139
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
150
140
  editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "10.2.0",
3
+ "version": "10.2.1",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,16 +21,16 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/editor-plugin-width": "^11.0.0",
24
+ "@atlaskit/editor-plugin-width": "^11.1.0",
25
25
  "@atlaskit/editor-prosemirror": "^7.3.0",
26
- "@atlaskit/editor-shared-styles": "^3.10.0",
27
- "@atlaskit/tmp-editor-statsig": "^80.0.0",
26
+ "@atlaskit/editor-shared-styles": "^3.11.0",
27
+ "@atlaskit/tmp-editor-statsig": "^81.0.0",
28
28
  "@babel/runtime": "^7.0.0",
29
29
  "@emotion/react": "^11.7.1",
30
30
  "classnames": "^2.2.5"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^114.30.0",
33
+ "@atlaskit/editor-common": "^114.32.0",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },