@atlaskit/editor-plugin-grid 0.1.2 → 0.1.4
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 +12 -0
- package/dist/cjs/plugin.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugin.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugin.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugin.d.ts +1 -1
- package/package.json +6 -7
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
8
|
+
|
|
9
|
+
## 0.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) - [ED-13910] Fix prosemirror types
|
|
14
|
+
|
|
3
15
|
## 0.1.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -10,13 +10,13 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
14
13
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
15
14
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
15
|
+
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var GRID_SIZE = 12;
|
|
18
18
|
exports.GRID_SIZE = GRID_SIZE;
|
|
19
|
-
var key = new
|
|
19
|
+
var key = new _state.PluginKey('gridPlugin');
|
|
20
20
|
var createDisplayGrid = function createDisplayGrid(view) {
|
|
21
21
|
return function (props) {
|
|
22
22
|
var dispatch = view.dispatch,
|
|
@@ -150,7 +150,7 @@ var gridPlugin = function gridPlugin(options, api) {
|
|
|
150
150
|
if (!editorState) {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
|
-
return key.getState(editorState);
|
|
153
|
+
return key.getState(editorState) || null;
|
|
154
154
|
},
|
|
155
155
|
actions: {
|
|
156
156
|
displayGrid: createDisplayGrid
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { withTheme } from '@emotion/react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import { PluginKey } from 'prosemirror-state';
|
|
5
4
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
6
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
export const GRID_SIZE = 12;
|
|
9
9
|
const key = new PluginKey('gridPlugin');
|
|
@@ -141,7 +141,7 @@ export const gridPlugin = (options, api) => {
|
|
|
141
141
|
if (!editorState) {
|
|
142
142
|
return null;
|
|
143
143
|
}
|
|
144
|
-
return key.getState(editorState);
|
|
144
|
+
return key.getState(editorState) || null;
|
|
145
145
|
},
|
|
146
146
|
actions: {
|
|
147
147
|
displayGrid: createDisplayGrid
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/plugin.js
CHANGED
|
@@ -3,9 +3,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { withTheme } from '@emotion/react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
|
-
import { PluginKey } from 'prosemirror-state';
|
|
7
6
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
8
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
export var GRID_SIZE = 12;
|
|
11
11
|
var key = new PluginKey('gridPlugin');
|
|
@@ -142,7 +142,7 @@ export var gridPlugin = function gridPlugin(options, api) {
|
|
|
142
142
|
if (!editorState) {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
return key.getState(editorState);
|
|
145
|
+
return key.getState(editorState) || null;
|
|
146
146
|
},
|
|
147
147
|
actions: {
|
|
148
148
|
displayGrid: createDisplayGrid
|
package/dist/esm/version.json
CHANGED
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { GridPluginState } from './types';
|
|
5
5
|
export declare const GRID_SIZE = 12;
|
|
6
6
|
type Required<T> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
2
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { GridPluginState } from './types';
|
|
5
5
|
export declare const GRID_SIZE = 12;
|
|
6
6
|
type Required<T> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,20 +23,19 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^74.
|
|
26
|
+
"@atlaskit/editor-common": "^74.29.0",
|
|
27
27
|
"@atlaskit/editor-plugin-width": "^0.1.0",
|
|
28
|
-
"@atlaskit/editor-
|
|
28
|
+
"@atlaskit/editor-prosemirror": "1.0.2",
|
|
29
|
+
"@atlaskit/editor-shared-styles": "^2.5.0",
|
|
29
30
|
"@babel/runtime": "^7.0.0",
|
|
30
31
|
"@emotion/react": "^11.7.1",
|
|
31
|
-
"classnames": "^2.2.5"
|
|
32
|
-
"prosemirror-state": "1.3.4",
|
|
33
|
-
"prosemirror-view": "1.23.7"
|
|
32
|
+
"classnames": "^2.2.5"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
36
35
|
"react": "^16.8.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
38
|
+
"@atlaskit/editor-test-helpers": "^18.10.0",
|
|
40
39
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
41
40
|
"@testing-library/react": "^12.1.5",
|
|
42
41
|
"react-dom": "^16.8.0",
|
package/report.api.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<!--SECTION START: Main Entry Types-->
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import { EditorView } from 'prosemirror
|
|
18
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
19
19
|
import type { GridType } from '@atlaskit/editor-common/types';
|
|
20
20
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
21
21
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { EditorView } from 'prosemirror
|
|
7
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { GridType } from '@atlaskit/editor-common/types';
|
|
9
9
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|