@atlaskit/editor-plugin-grid 0.2.2 → 0.3.1
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 +19 -7
- package/README.md +1 -1
- package/dist/cjs/plugin.js +3 -5
- package/dist/types/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/package.json +6 -5
- package/report.api.md +2 -2
- package/tmp/api-report-tmp.d.ts +0 -54
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#40763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40763) [`7ff70f99909`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ff70f99909) - Decouple media from editor-core and expose GridPluginState from grid plugin.
|
|
14
|
+
|
|
3
15
|
## 0.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -16,7 +28,7 @@
|
|
|
16
28
|
|
|
17
29
|
### Minor Changes
|
|
18
30
|
|
|
19
|
-
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
31
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325) [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
20
32
|
|
|
21
33
|
### Patch Changes
|
|
22
34
|
|
|
@@ -26,7 +38,7 @@
|
|
|
26
38
|
|
|
27
39
|
### Patch Changes
|
|
28
40
|
|
|
29
|
-
- [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing `dependencies` prop from PluginInjectionAPI and changing
|
|
41
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010) [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing `dependencies` prop from PluginInjectionAPI and changing
|
|
30
42
|
signature of `NextEditorPlugin`.
|
|
31
43
|
|
|
32
44
|
Previously a `NextEditorPlugin` would be consumed as so:
|
|
@@ -56,7 +68,7 @@
|
|
|
56
68
|
|
|
57
69
|
### Patch Changes
|
|
58
70
|
|
|
59
|
-
- [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
|
|
71
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177) [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
|
|
60
72
|
|
|
61
73
|
## 0.1.5
|
|
62
74
|
|
|
@@ -68,24 +80,24 @@
|
|
|
68
80
|
|
|
69
81
|
### Patch Changes
|
|
70
82
|
|
|
71
|
-
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
83
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785) [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
72
84
|
|
|
73
85
|
## 0.1.3
|
|
74
86
|
|
|
75
87
|
### Patch Changes
|
|
76
88
|
|
|
77
|
-
- [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) - [ED-13910] Fix prosemirror types
|
|
89
|
+
- [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241) [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) - [ED-13910] Fix prosemirror types
|
|
78
90
|
|
|
79
91
|
## 0.1.2
|
|
80
92
|
|
|
81
93
|
### Patch Changes
|
|
82
94
|
|
|
83
|
-
- [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
|
|
95
|
+
- [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782) [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
|
|
84
96
|
- Updated dependencies
|
|
85
97
|
|
|
86
98
|
## 0.1.1
|
|
87
99
|
|
|
88
100
|
### Patch Changes
|
|
89
101
|
|
|
90
|
-
- [`7cd4abcdc0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cd4abcdc0d) - Fix workaround in `editor-plugin-width`. This involved removing `WidthEmitter` in `editor-core`, removing `containerWidth` from `WidthPluginState`. This change also introduces `usePluginHook` for an `EditorPlugin` - this enables a react hook to be mounted for plugins (in all appearances).
|
|
102
|
+
- [#34938](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34938) [`7cd4abcdc0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cd4abcdc0d) - Fix workaround in `editor-plugin-width`. This involved removing `WidthEmitter` in `editor-core`, removing `containerWidth` from `WidthPluginState`. This change also introduces `usePluginHook` for an `EditorPlugin` - this enables a react hook to be mounted for plugins (in all appearances).
|
|
91
103
|
- Updated dependencies
|
package/README.md
CHANGED
|
@@ -27,4 +27,4 @@ Please see [Atlaskit - Editor plugin grid](https://atlaskit.atlassian.com/packag
|
|
|
27
27
|
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
28
|
## License
|
|
29
29
|
---
|
|
30
|
-
Please see [Atlassian Frontend - License](https://
|
|
30
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -14,8 +14,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
14
14
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
|
-
var GRID_SIZE = 12;
|
|
18
|
-
exports.GRID_SIZE = GRID_SIZE;
|
|
17
|
+
var GRID_SIZE = exports.GRID_SIZE = 12;
|
|
19
18
|
var key = new _state.PluginKey('gridPlugin');
|
|
20
19
|
var createDisplayGrid = function createDisplayGrid(view) {
|
|
21
20
|
return function (props) {
|
|
@@ -147,7 +146,7 @@ var gridPMPlugin = new _safePlugin.SafePlugin({
|
|
|
147
146
|
* Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
148
147
|
* from `@atlaskit/editor-core`.
|
|
149
148
|
*/
|
|
150
|
-
var gridPlugin = function gridPlugin(_ref5) {
|
|
149
|
+
var gridPlugin = exports.gridPlugin = function gridPlugin(_ref5) {
|
|
151
150
|
var options = _ref5.config,
|
|
152
151
|
api = _ref5.api;
|
|
153
152
|
return {
|
|
@@ -178,5 +177,4 @@ var gridPlugin = function gridPlugin(_ref5) {
|
|
|
178
177
|
});
|
|
179
178
|
}
|
|
180
179
|
};
|
|
181
|
-
};
|
|
182
|
-
exports.gridPlugin = gridPlugin;
|
|
180
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { gridPlugin } from './plugin';
|
|
2
|
-
export type { GridPlugin } from './plugin';
|
|
3
|
-
export type { Highlights } from './types';
|
|
2
|
+
export type { GridPlugin, GridPluginOptions } from './plugin';
|
|
3
|
+
export type { Highlights, GridPluginState } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { gridPlugin } from './plugin';
|
|
2
|
-
export type { GridPlugin } from './plugin';
|
|
3
|
-
export type { Highlights } from './types';
|
|
2
|
+
export type { GridPlugin, GridPluginOptions } from './plugin';
|
|
3
|
+
export type { Highlights, GridPluginState } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Media Experience Porygon",
|
|
12
12
|
"singleton": true,
|
|
13
|
-
"releaseModel": "continuous"
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
14
15
|
},
|
|
15
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
17
|
"main": "dist/cjs/index.js",
|
|
17
18
|
"module": "dist/esm/index.js",
|
|
18
19
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -23,10 +24,10 @@
|
|
|
23
24
|
".": "./src/index.ts"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^
|
|
27
|
+
"@atlaskit/editor-common": "^77.0.0",
|
|
27
28
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
28
29
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
29
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
30
|
+
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
30
31
|
"@babel/runtime": "^7.0.0",
|
|
31
32
|
"@emotion/react": "^11.7.1",
|
|
32
33
|
"classnames": "^2.2.5"
|
package/report.api.md
CHANGED
|
@@ -43,13 +43,13 @@ export type GridPlugin = NextEditorPlugin<
|
|
|
43
43
|
export const gridPlugin: GridPlugin;
|
|
44
44
|
|
|
45
45
|
// @public (undocumented)
|
|
46
|
-
interface GridPluginOptions {
|
|
46
|
+
export interface GridPluginOptions {
|
|
47
47
|
// (undocumented)
|
|
48
48
|
shouldCalcBreakoutGridLines?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// @public (undocumented)
|
|
52
|
-
type GridPluginState = {
|
|
52
|
+
export type GridPluginState = {
|
|
53
53
|
visible: boolean;
|
|
54
54
|
gridType?: GridType;
|
|
55
55
|
highlight: Highlights;
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-plugin-grid"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import type { GridType } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
10
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
11
|
-
|
|
12
|
-
// @public (undocumented)
|
|
13
|
-
type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
14
|
-
|
|
15
|
-
// @public (undocumented)
|
|
16
|
-
type DisplayGrid = (props: Required_2<GridPluginState>) => boolean;
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
export type GridPlugin = NextEditorPlugin<'grid', {
|
|
20
|
-
pluginConfiguration: GridPluginOptions | undefined;
|
|
21
|
-
dependencies: [WidthPlugin];
|
|
22
|
-
sharedState: GridPluginState | null;
|
|
23
|
-
actions: {
|
|
24
|
-
displayGrid: CreateDisplayGrid;
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
27
|
-
|
|
28
|
-
// @public
|
|
29
|
-
export const gridPlugin: GridPlugin;
|
|
30
|
-
|
|
31
|
-
// @public (undocumented)
|
|
32
|
-
interface GridPluginOptions {
|
|
33
|
-
// (undocumented)
|
|
34
|
-
shouldCalcBreakoutGridLines?: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
type GridPluginState = {
|
|
39
|
-
visible: boolean;
|
|
40
|
-
gridType?: GridType;
|
|
41
|
-
highlight: Highlights;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// @public (undocumented)
|
|
45
|
-
export type Highlights = Array<'full-width' | 'wide' | number>;
|
|
46
|
-
|
|
47
|
-
// @public (undocumented)
|
|
48
|
-
type Required_2<T> = {
|
|
49
|
-
[P in keyof T]-?: T[P];
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// (No @packageDocumentation comment for this package)
|
|
53
|
-
|
|
54
|
-
```
|