@atlaskit/editor-plugin-grid 1.2.16 → 1.2.17

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,11 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 1.2.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.2.16
4
10
 
5
11
  ### Patch Changes
@@ -28,6 +28,9 @@ var createDisplayGrid = function createDisplayGrid(view) {
28
28
  };
29
29
  };
30
30
  var sides = ['left', 'right'];
31
+
32
+ // Ignored via go/ees005
33
+ // eslint-disable-next-line @typescript-eslint/max-params
31
34
  var overflowHighlight = function overflowHighlight(highlights, side, start, size) {
32
35
  if (!highlights.length) {
33
36
  return false;
@@ -43,7 +46,10 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
43
46
  return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
44
47
  }
45
48
  };
46
- var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) {
49
+ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
50
+ // Ignored via go/ees005
51
+ // eslint-disable-next-line @typescript-eslint/max-params
52
+ ) {
47
53
  var gridLines = [];
48
54
  if (!shouldCalcBreakoutGridLines) {
49
55
  return gridLines;
@@ -133,7 +139,10 @@ var ContentComponent = function ContentComponent(_ref4) {
133
139
  }
134
140
  return /*#__PURE__*/_react.default.createElement(ThemedGrid, {
135
141
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
136
- editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : _editorSharedStyles.akEditorFullPageMaxWidth,
142
+ editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : _editorSharedStyles.akEditorFullPageMaxWidth
143
+ // Ignored via go/ees005
144
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
145
+ ,
137
146
  containerElement: editorView.dom,
138
147
  visible: gridState.visible,
139
148
  gridType: (_gridState$gridType = gridState.gridType) !== null && _gridState$gridType !== void 0 ? _gridState$gridType : 'full',
@@ -19,6 +19,9 @@ const createDisplayGrid = view => props => {
19
19
  return true;
20
20
  };
21
21
  const sides = ['left', 'right'];
22
+
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line @typescript-eslint/max-params
22
25
  const overflowHighlight = (highlights, side, start, size) => {
23
26
  if (!highlights.length) {
24
27
  return false;
@@ -32,7 +35,10 @@ const overflowHighlight = (highlights, side, start, size) => {
32
35
  return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
33
36
  }
34
37
  };
35
- const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) => {
38
+ const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
39
+ // Ignored via go/ees005
40
+ // eslint-disable-next-line @typescript-eslint/max-params
41
+ ) => {
36
42
  const gridLines = [];
37
43
  if (!shouldCalcBreakoutGridLines) {
38
44
  return gridLines;
@@ -128,7 +134,10 @@ const ContentComponent = ({
128
134
  }
129
135
  return /*#__PURE__*/React.createElement(ThemedGrid, {
130
136
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
131
- editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : akEditorFullPageMaxWidth,
137
+ editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : akEditorFullPageMaxWidth
138
+ // Ignored via go/ees005
139
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
140
+ ,
132
141
  containerElement: editorView.dom,
133
142
  visible: gridState.visible,
134
143
  gridType: (_gridState$gridType = gridState.gridType) !== null && _gridState$gridType !== void 0 ? _gridState$gridType : 'full',
@@ -21,6 +21,9 @@ var createDisplayGrid = function createDisplayGrid(view) {
21
21
  };
22
22
  };
23
23
  var sides = ['left', 'right'];
24
+
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line @typescript-eslint/max-params
24
27
  var overflowHighlight = function overflowHighlight(highlights, side, start, size) {
25
28
  if (!highlights.length) {
26
29
  return false;
@@ -36,7 +39,10 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
36
39
  return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
37
40
  }
38
41
  };
39
- var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) {
42
+ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/max-params
45
+ ) {
40
46
  var gridLines = [];
41
47
  if (!shouldCalcBreakoutGridLines) {
42
48
  return gridLines;
@@ -126,7 +132,10 @@ var ContentComponent = function ContentComponent(_ref4) {
126
132
  }
127
133
  return /*#__PURE__*/React.createElement(ThemedGrid, {
128
134
  shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
129
- editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : akEditorFullPageMaxWidth,
135
+ editorWidth: (_widthState$width = widthState === null || widthState === void 0 ? void 0 : widthState.width) !== null && _widthState$width !== void 0 ? _widthState$width : akEditorFullPageMaxWidth
136
+ // Ignored via go/ees005
137
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
138
+ ,
130
139
  containerElement: editorView.dom,
131
140
  visible: gridState.visible,
132
141
  gridType: (_gridState$gridType = gridState.gridType) !== null && _gridState$gridType !== void 0 ? _gridState$gridType : 'full',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,8 +23,8 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^97.0.0",
27
- "@atlaskit/editor-plugin-width": "^1.3.0",
26
+ "@atlaskit/editor-common": "^97.2.0",
27
+ "@atlaskit/editor-plugin-width": "^2.0.0",
28
28
  "@atlaskit/editor-prosemirror": "6.2.1",
29
29
  "@atlaskit/editor-shared-styles": "^3.2.0",
30
30
  "@babel/runtime": "^7.0.0",