@atlaskit/editor-plugin-grid 1.2.13 → 1.2.15
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 +15 -0
- package/dist/cjs/{plugin.js → gridPlugin.js} +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/index.js +5 -0
- package/dist/es2019/{plugin.js → gridPlugin.js} +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/esm/{plugin.js → gridPlugin.js} +1 -0
- package/dist/esm/gridPluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/index.js +1 -0
- package/dist/types/gridPlugin.d.ts +7 -0
- package/dist/types/gridPluginType.d.ts +11 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/types/index.d.ts +17 -0
- package/dist/types-ts4.5/gridPlugin.d.ts +7 -0
- package/dist/types-ts4.5/gridPluginType.d.ts +13 -0
- package/dist/types-ts4.5/index.d.ts +3 -3
- package/dist/types-ts4.5/types/index.d.ts +17 -0
- package/package.json +6 -3
- package/dist/types/plugin.d.ts +0 -27
- package/dist/types/types.d.ts +0 -8
- package/dist/types-ts4.5/plugin.d.ts +0 -29
- package/dist/types-ts4.5/types.d.ts +0 -8
- /package/dist/cjs/{types.js → gridPluginType.js} +0 -0
- /package/dist/es2019/{types.js → gridPluginType.js} +0 -0
- /package/dist/{esm/types.js → es2019/types/index.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 1.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#169604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169604)
|
|
14
|
+
[`11e14d646fe74`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/11e14d646fe74) -
|
|
15
|
+
ED-25811: refactors plugins to meet folder standards
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.2.13
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "gridPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _gridPlugin.gridPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _gridPlugin = require("./gridPlugin");
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { gridPlugin } from './
|
|
1
|
+
export { gridPlugin } from './gridPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { gridPlugin } from './
|
|
1
|
+
export { gridPlugin } from './gridPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GridPlugin } from './gridPluginType';
|
|
2
|
+
export declare const GRID_SIZE = 12;
|
|
3
|
+
/**
|
|
4
|
+
* Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
5
|
+
* from `@atlaskit/editor-core`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const gridPlugin: GridPlugin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
+
import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
|
|
4
|
+
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
5
|
+
pluginConfiguration: GridPluginOptions | undefined;
|
|
6
|
+
dependencies: [WidthPlugin];
|
|
7
|
+
sharedState: GridPluginState | null;
|
|
8
|
+
actions: {
|
|
9
|
+
displayGrid: CreateDisplayGrid;
|
|
10
|
+
};
|
|
11
|
+
}>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { gridPlugin } from './
|
|
2
|
-
export type { GridPlugin
|
|
3
|
-
export type { Highlights, GridPluginState } from './types';
|
|
1
|
+
export { gridPlugin } from './gridPlugin';
|
|
2
|
+
export type { GridPlugin } from './gridPluginType';
|
|
3
|
+
export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState } from './types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GridType } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
export type Highlights = Array<'wide' | 'full-width' | number>;
|
|
4
|
+
export type GridPluginState = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
gridType?: GridType;
|
|
7
|
+
highlight: Highlights;
|
|
8
|
+
};
|
|
9
|
+
type Required<T> = {
|
|
10
|
+
[P in keyof T]-?: T[P];
|
|
11
|
+
};
|
|
12
|
+
type DisplayGrid = (props: Required<GridPluginState>) => boolean;
|
|
13
|
+
export type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
14
|
+
export interface GridPluginOptions {
|
|
15
|
+
shouldCalcBreakoutGridLines?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type { GridType };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GridPlugin } from './gridPluginType';
|
|
2
|
+
export declare const GRID_SIZE = 12;
|
|
3
|
+
/**
|
|
4
|
+
* Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
5
|
+
* from `@atlaskit/editor-core`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const gridPlugin: GridPlugin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
+
import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
|
|
4
|
+
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
5
|
+
pluginConfiguration: GridPluginOptions | undefined;
|
|
6
|
+
dependencies: [
|
|
7
|
+
WidthPlugin
|
|
8
|
+
];
|
|
9
|
+
sharedState: GridPluginState | null;
|
|
10
|
+
actions: {
|
|
11
|
+
displayGrid: CreateDisplayGrid;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { gridPlugin } from './
|
|
2
|
-
export type { GridPlugin
|
|
3
|
-
export type { Highlights, GridPluginState } from './types';
|
|
1
|
+
export { gridPlugin } from './gridPlugin';
|
|
2
|
+
export type { GridPlugin } from './gridPluginType';
|
|
3
|
+
export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState } from './types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GridType } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
export type Highlights = Array<'wide' | 'full-width' | number>;
|
|
4
|
+
export type GridPluginState = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
gridType?: GridType;
|
|
7
|
+
highlight: Highlights;
|
|
8
|
+
};
|
|
9
|
+
type Required<T> = {
|
|
10
|
+
[P in keyof T]-?: T[P];
|
|
11
|
+
};
|
|
12
|
+
type DisplayGrid = (props: Required<GridPluginState>) => boolean;
|
|
13
|
+
export type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
14
|
+
export interface GridPluginOptions {
|
|
15
|
+
shouldCalcBreakoutGridLines?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type { GridType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^
|
|
26
|
+
"@atlaskit/editor-common": "^96.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
28
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
28
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
29
29
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@emotion/react": "^11.7.1",
|
|
@@ -42,6 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"techstack": {
|
|
44
44
|
"@atlassian/frontend": {
|
|
45
|
+
"code-structure": [
|
|
46
|
+
"editor-plugin"
|
|
47
|
+
],
|
|
45
48
|
"import-structure": [
|
|
46
49
|
"atlassian-conventions"
|
|
47
50
|
],
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { GridPluginState } from './types';
|
|
5
|
-
export declare const GRID_SIZE = 12;
|
|
6
|
-
type Required<T> = {
|
|
7
|
-
[P in keyof T]-?: T[P];
|
|
8
|
-
};
|
|
9
|
-
type DisplayGrid = (props: Required<GridPluginState>) => boolean;
|
|
10
|
-
type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
11
|
-
export interface GridPluginOptions {
|
|
12
|
-
shouldCalcBreakoutGridLines?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
15
|
-
pluginConfiguration: GridPluginOptions | undefined;
|
|
16
|
-
dependencies: [WidthPlugin];
|
|
17
|
-
sharedState: GridPluginState | null;
|
|
18
|
-
actions: {
|
|
19
|
-
displayGrid: CreateDisplayGrid;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
24
|
-
* from `@atlaskit/editor-core`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const gridPlugin: GridPlugin;
|
|
27
|
-
export {};
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { GridPluginState } from './types';
|
|
5
|
-
export declare const GRID_SIZE = 12;
|
|
6
|
-
type Required<T> = {
|
|
7
|
-
[P in keyof T]-?: T[P];
|
|
8
|
-
};
|
|
9
|
-
type DisplayGrid = (props: Required<GridPluginState>) => boolean;
|
|
10
|
-
type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
11
|
-
export interface GridPluginOptions {
|
|
12
|
-
shouldCalcBreakoutGridLines?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
15
|
-
pluginConfiguration: GridPluginOptions | undefined;
|
|
16
|
-
dependencies: [
|
|
17
|
-
WidthPlugin
|
|
18
|
-
];
|
|
19
|
-
sharedState: GridPluginState | null;
|
|
20
|
-
actions: {
|
|
21
|
-
displayGrid: CreateDisplayGrid;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
/**
|
|
25
|
-
* Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
26
|
-
* from `@atlaskit/editor-core`.
|
|
27
|
-
*/
|
|
28
|
-
export declare const gridPlugin: GridPlugin;
|
|
29
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|