@atlaskit/editor-plugin-grid 6.0.2 → 6.0.3
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 +9 -1
- package/dist/cjs/gridPlugin.js +7 -0
- package/dist/es2019/gridPlugin.js +9 -0
- package/dist/esm/gridPlugin.js +7 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 6.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
|
|
8
|
+
ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
|
|
9
|
+
project refs are setup
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -76,7 +85,6 @@
|
|
|
76
85
|
shared context or singletons.
|
|
77
86
|
|
|
78
87
|
**HOW TO ADJUST:**
|
|
79
|
-
|
|
80
88
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
81
89
|
any of these editor plugins.
|
|
82
90
|
- Ensure the version you install matches the version required by the plugins.
|
package/dist/cjs/gridPlugin.js
CHANGED
|
@@ -34,6 +34,9 @@ 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
|
+
|
|
37
40
|
var numericHighlights = highlights.filter(function (highlight) {
|
|
38
41
|
return typeof highlight === 'number';
|
|
39
42
|
});
|
|
@@ -51,6 +54,8 @@ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, high
|
|
|
51
54
|
return gridLines;
|
|
52
55
|
}
|
|
53
56
|
var wideSpacing = (editorMaxWidth * _editorSharedStyles.breakoutWideScaleRatio - editorMaxWidth) / 2;
|
|
57
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
58
|
+
|
|
54
59
|
sides.forEach(function (side) {
|
|
55
60
|
gridLines.push( /*#__PURE__*/_react.default.createElement("div", {
|
|
56
61
|
key: side
|
|
@@ -162,9 +167,11 @@ var EMPTY_STATE = {
|
|
|
162
167
|
var gridPMPlugin = new _safePlugin.SafePlugin({
|
|
163
168
|
key: key,
|
|
164
169
|
state: {
|
|
170
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
165
171
|
init: function init() {
|
|
166
172
|
return EMPTY_STATE;
|
|
167
173
|
},
|
|
174
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
168
175
|
apply: function apply(tr, currentPluginState) {
|
|
169
176
|
var nextPluginState = tr.getMeta(key);
|
|
170
177
|
if (nextPluginState) {
|
|
@@ -25,6 +25,9 @@ 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
|
+
|
|
28
31
|
const numericHighlights = highlights.filter(highlight => typeof highlight === 'number');
|
|
29
32
|
const minHighlight = Math.min(...numericHighlights);
|
|
30
33
|
const maxHighlight = Math.max(...numericHighlights);
|
|
@@ -40,6 +43,8 @@ const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBrea
|
|
|
40
43
|
return gridLines;
|
|
41
44
|
}
|
|
42
45
|
const wideSpacing = (editorMaxWidth * breakoutWideScaleRatio - editorMaxWidth) / 2;
|
|
46
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
47
|
+
|
|
43
48
|
sides.forEach(side => {
|
|
44
49
|
gridLines.push( /*#__PURE__*/React.createElement("div", {
|
|
45
50
|
key: side
|
|
@@ -157,9 +162,13 @@ const EMPTY_STATE = {
|
|
|
157
162
|
const gridPMPlugin = new SafePlugin({
|
|
158
163
|
key,
|
|
159
164
|
state: {
|
|
165
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
166
|
+
|
|
160
167
|
init() {
|
|
161
168
|
return EMPTY_STATE;
|
|
162
169
|
},
|
|
170
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
171
|
+
|
|
163
172
|
apply(tr, currentPluginState) {
|
|
164
173
|
const nextPluginState = tr.getMeta(key);
|
|
165
174
|
if (nextPluginState) {
|
package/dist/esm/gridPlugin.js
CHANGED
|
@@ -27,6 +27,9 @@ 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
|
+
|
|
30
33
|
var numericHighlights = highlights.filter(function (highlight) {
|
|
31
34
|
return typeof highlight === 'number';
|
|
32
35
|
});
|
|
@@ -44,6 +47,8 @@ var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, high
|
|
|
44
47
|
return gridLines;
|
|
45
48
|
}
|
|
46
49
|
var wideSpacing = (editorMaxWidth * breakoutWideScaleRatio - editorMaxWidth) / 2;
|
|
50
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
51
|
+
|
|
47
52
|
sides.forEach(function (side) {
|
|
48
53
|
gridLines.push( /*#__PURE__*/React.createElement("div", {
|
|
49
54
|
key: side
|
|
@@ -155,9 +160,11 @@ var EMPTY_STATE = {
|
|
|
155
160
|
var gridPMPlugin = new SafePlugin({
|
|
156
161
|
key: key,
|
|
157
162
|
state: {
|
|
163
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
158
164
|
init: function init() {
|
|
159
165
|
return EMPTY_STATE;
|
|
160
166
|
},
|
|
167
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
161
168
|
apply: function apply(tr, currentPluginState) {
|
|
162
169
|
var nextPluginState = tr.getMeta(key);
|
|
163
170
|
if (nextPluginState) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
26
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
26
|
+
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^13.42.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.
|
|
33
|
+
"@atlaskit/editor-common": "^110.34.0",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|