@atlaskit/editor-plugin-grid 1.2.18 → 1.3.0
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-grid
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.2.19
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.2.18
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/gridPlugin.js
CHANGED
|
@@ -28,9 +28,6 @@ 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
|
|
34
31
|
var overflowHighlight = function overflowHighlight(highlights, side, start, size) {
|
|
35
32
|
if (!highlights.length) {
|
|
36
33
|
return false;
|
|
@@ -46,10 +43,7 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
|
|
|
46
43
|
return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
|
|
47
44
|
}
|
|
48
45
|
};
|
|
49
|
-
var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
|
|
50
|
-
// Ignored via go/ees005
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
52
|
-
) {
|
|
46
|
+
var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) {
|
|
53
47
|
var gridLines = [];
|
|
54
48
|
if (!shouldCalcBreakoutGridLines) {
|
|
55
49
|
return gridLines;
|
|
@@ -19,9 +19,6 @@ 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
|
|
25
22
|
const overflowHighlight = (highlights, side, start, size) => {
|
|
26
23
|
if (!highlights.length) {
|
|
27
24
|
return false;
|
|
@@ -35,10 +32,7 @@ const overflowHighlight = (highlights, side, start, size) => {
|
|
|
35
32
|
return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
|
|
36
33
|
}
|
|
37
34
|
};
|
|
38
|
-
const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
|
|
39
|
-
// Ignored via go/ees005
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
41
|
-
) => {
|
|
35
|
+
const gutterGridLines = (editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) => {
|
|
42
36
|
const gridLines = [];
|
|
43
37
|
if (!shouldCalcBreakoutGridLines) {
|
|
44
38
|
return gridLines;
|
package/dist/esm/gridPlugin.js
CHANGED
|
@@ -21,9 +21,6 @@ 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
|
|
27
24
|
var overflowHighlight = function overflowHighlight(highlights, side, start, size) {
|
|
28
25
|
if (!highlights.length) {
|
|
29
26
|
return false;
|
|
@@ -39,10 +36,7 @@ var overflowHighlight = function overflowHighlight(highlights, side, start, size
|
|
|
39
36
|
return maxHighlight > GRID_SIZE && maxHighlight >= GRID_SIZE + start && (typeof size === 'number' ? maxHighlight <= GRID_SIZE + size : true);
|
|
40
37
|
}
|
|
41
38
|
};
|
|
42
|
-
var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines
|
|
43
|
-
// Ignored via go/ees005
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
45
|
-
) {
|
|
39
|
+
var gutterGridLines = function gutterGridLines(editorMaxWidth, editorWidth, highlights, shouldCalcBreakoutGridLines) {
|
|
46
40
|
var gridLines = [];
|
|
47
41
|
if (!shouldCalcBreakoutGridLines) {
|
|
48
42
|
return gridLines;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
|
|
4
|
+
export type GridPluginConfiguration = GridPluginOptions | undefined;
|
|
5
|
+
export type GridPluginDependencies = [WidthPlugin];
|
|
6
|
+
export type GridPluginSharedState = GridPluginState | null;
|
|
7
|
+
export type GridPluginActions = {
|
|
8
|
+
displayGrid: CreateDisplayGrid;
|
|
9
|
+
};
|
|
4
10
|
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
5
|
-
pluginConfiguration:
|
|
6
|
-
dependencies:
|
|
7
|
-
sharedState:
|
|
8
|
-
actions:
|
|
9
|
-
displayGrid: CreateDisplayGrid;
|
|
10
|
-
};
|
|
11
|
+
pluginConfiguration: GridPluginConfiguration;
|
|
12
|
+
dependencies: GridPluginDependencies;
|
|
13
|
+
sharedState: GridPluginSharedState;
|
|
14
|
+
actions: GridPluginActions;
|
|
11
15
|
}>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
|
|
4
|
+
export type GridPluginConfiguration = GridPluginOptions | undefined;
|
|
5
|
+
export type GridPluginDependencies = [
|
|
6
|
+
WidthPlugin
|
|
7
|
+
];
|
|
8
|
+
export type GridPluginSharedState = GridPluginState | null;
|
|
9
|
+
export type GridPluginActions = {
|
|
10
|
+
displayGrid: CreateDisplayGrid;
|
|
11
|
+
};
|
|
4
12
|
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
5
|
-
pluginConfiguration:
|
|
6
|
-
dependencies:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
sharedState: GridPluginState | null;
|
|
10
|
-
actions: {
|
|
11
|
-
displayGrid: CreateDisplayGrid;
|
|
12
|
-
};
|
|
13
|
+
pluginConfiguration: GridPluginConfiguration;
|
|
14
|
+
dependencies: GridPluginDependencies;
|
|
15
|
+
sharedState: GridPluginSharedState;
|
|
16
|
+
actions: GridPluginActions;
|
|
13
17
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^
|
|
26
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
27
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@testing-library/react": "^
|
|
39
|
+
"@testing-library/react": "^13.4.0",
|
|
40
40
|
"typescript": "~5.4.2",
|
|
41
41
|
"wait-for-expect": "^1.2.0"
|
|
42
42
|
},
|