@atlaskit/editor-plugin-grid 0.3.0 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
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://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
30
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "0.3.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": "^76.1.0",
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.8.0",
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"
@@ -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
- export interface GridPluginOptions {
33
- // (undocumented)
34
- shouldCalcBreakoutGridLines?: boolean;
35
- }
36
-
37
- // @public (undocumented)
38
- export 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
- ```