@atlaskit/editor-plugin-grid 6.0.4 → 6.0.6

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
+ ## 6.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
14
+ tsignores added for help-center local consumpton removed
15
+ - Updated dependencies
16
+
3
17
  ## 6.0.4
4
18
 
5
19
  ### Patch Changes
@@ -34,9 +34,6 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
34
34
  if (!highlights.length) {
35
35
  return false;
36
36
  }
37
-
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
37
  var numericHighlights = highlights.filter(function (highlight) {
41
38
  return typeof highlight === 'number';
42
39
  });
@@ -54,8 +51,6 @@ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, high
54
51
  return gridLines;
55
52
  }
56
53
  var wideSpacing = (editorMaxWidth * _editorSharedStyles.breakoutWideScaleRatio - editorMaxWidth) / 2;
57
- // @ts-ignore - Workaround for help-center local consumption
58
-
59
54
  sides.forEach(function (side) {
60
55
  gridLines.push( /*#__PURE__*/_react.default.createElement("div", {
61
56
  key: side
@@ -167,11 +162,9 @@ var EMPTY_STATE = {
167
162
  var gridPMPlugin = new _safePlugin.SafePlugin({
168
163
  key: key,
169
164
  state: {
170
- // @ts-ignore - Workaround for help-center local consumption
171
165
  init: function init() {
172
166
  return EMPTY_STATE;
173
167
  },
174
- // @ts-ignore - Workaround for help-center local consumption
175
168
  apply: function apply(tr, currentPluginState) {
176
169
  var nextPluginState = tr.getMeta(key);
177
170
  if (nextPluginState) {
@@ -25,9 +25,6 @@ const overflowHighlight = (highlights, side, start, size) => {
25
25
  if (!highlights.length) {
26
26
  return false;
27
27
  }
28
-
29
- // @ts-ignore - Workaround for help-center local consumption
30
-
31
28
  const numericHighlights = highlights.filter(highlight => typeof highlight === 'number');
32
29
  const minHighlight = Math.min(...numericHighlights);
33
30
  const maxHighlight = Math.max(...numericHighlights);
@@ -43,8 +40,6 @@ const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBrea
43
40
  return gridLines;
44
41
  }
45
42
  const wideSpacing = (editorMaxWidth * breakoutWideScaleRatio - editorMaxWidth) / 2;
46
- // @ts-ignore - Workaround for help-center local consumption
47
-
48
43
  sides.forEach(side => {
49
44
  gridLines.push( /*#__PURE__*/React.createElement("div", {
50
45
  key: side
@@ -162,13 +157,9 @@ const EMPTY_STATE = {
162
157
  const gridPMPlugin = new SafePlugin({
163
158
  key,
164
159
  state: {
165
- // @ts-ignore - Workaround for help-center local consumption
166
-
167
160
  init() {
168
161
  return EMPTY_STATE;
169
162
  },
170
- // @ts-ignore - Workaround for help-center local consumption
171
-
172
163
  apply(tr, currentPluginState) {
173
164
  const nextPluginState = tr.getMeta(key);
174
165
  if (nextPluginState) {
@@ -27,9 +27,6 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
27
27
  if (!highlights.length) {
28
28
  return false;
29
29
  }
30
-
31
- // @ts-ignore - Workaround for help-center local consumption
32
-
33
30
  var numericHighlights = highlights.filter(function (highlight) {
34
31
  return typeof highlight === 'number';
35
32
  });
@@ -47,8 +44,6 @@ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, high
47
44
  return gridLines;
48
45
  }
49
46
  var wideSpacing = (editorMaxWidth * breakoutWideScaleRatio - editorMaxWidth) / 2;
50
- // @ts-ignore - Workaround for help-center local consumption
51
-
52
47
  sides.forEach(function (side) {
53
48
  gridLines.push( /*#__PURE__*/React.createElement("div", {
54
49
  key: side
@@ -160,11 +155,9 @@ var EMPTY_STATE = {
160
155
  var gridPMPlugin = new SafePlugin({
161
156
  key: key,
162
157
  state: {
163
- // @ts-ignore - Workaround for help-center local consumption
164
158
  init: function init() {
165
159
  return EMPTY_STATE;
166
160
  },
167
- // @ts-ignore - Workaround for help-center local consumption
168
161
  apply: function apply(tr, currentPluginState) {
169
162
  var nextPluginState = tr.getMeta(key);
170
163
  if (nextPluginState) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,13 +24,13 @@
24
24
  "@atlaskit/editor-plugin-width": "^7.0.0",
25
25
  "@atlaskit/editor-prosemirror": "7.0.0",
26
26
  "@atlaskit/editor-shared-styles": "^3.10.0",
27
- "@atlaskit/tmp-editor-statsig": "^14.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^15.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": "^110.36.0",
33
+ "@atlaskit/editor-common": "^110.40.0",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },