@atlaskit/editor-plugin-grid 0.1.0 → 0.1.2

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 +1,15 @@
1
1
  # @atlaskit/editor-plugin-grid
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
8
+ - Updated dependencies
9
+
10
+ ## 0.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`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).
15
+ - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Editor",
12
- "releaseModel": "scheduled"
12
+ "singleton": true,
13
+ "releaseModel": "continuous"
13
14
  },
14
15
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
15
16
  "main": "dist/cjs/index.js",
@@ -22,8 +23,8 @@
22
23
  ".": "./src/index.ts"
23
24
  },
24
25
  "dependencies": {
25
- "@atlaskit/editor-common": "^74.2.0",
26
- "@atlaskit/editor-plugin-width": "^0.0.1",
26
+ "@atlaskit/editor-common": "^74.9.0",
27
+ "@atlaskit/editor-plugin-width": "^0.1.0",
27
28
  "@atlaskit/editor-shared-styles": "^2.4.0",
28
29
  "@babel/runtime": "^7.0.0",
29
30
  "@emotion/react": "^11.7.1",
@@ -35,12 +36,7 @@
35
36
  "react": "^16.8.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@atlaskit/docs": "*",
39
- "@atlaskit/editor-core": "^184.0.0",
40
- "@atlaskit/editor-test-helpers": "^18.2.0",
41
- "@atlaskit/ssr": "*",
42
- "@atlaskit/visual-regression": "*",
43
- "@atlaskit/webdriver-runner": "*",
39
+ "@atlaskit/editor-test-helpers": "^18.7.0",
44
40
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
45
41
  "@testing-library/react": "^12.1.5",
46
42
  "react-dom": "^16.8.0",
@@ -80,4 +76,4 @@
80
76
  }
81
77
  },
82
78
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
83
- }
79
+ }
@@ -0,0 +1,51 @@
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 { EditorView } from 'prosemirror-view';
8
+ import type { GridType } from '@atlaskit/editor-common/types';
9
+ import { 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 const gridPlugin: NextEditorPlugin<'grid', {
20
+ pluginConfiguration: GridPluginOptions | undefined;
21
+ dependencies: [typeof widthPlugin];
22
+ sharedState: GridPluginState | null;
23
+ actions: {
24
+ displayGrid: CreateDisplayGrid;
25
+ };
26
+ }>;
27
+
28
+ // @public (undocumented)
29
+ interface GridPluginOptions {
30
+ // (undocumented)
31
+ shouldCalcBreakoutGridLines?: boolean;
32
+ }
33
+
34
+ // @public (undocumented)
35
+ type GridPluginState = {
36
+ visible: boolean;
37
+ gridType?: GridType;
38
+ highlight: Highlights;
39
+ };
40
+
41
+ // @public (undocumented)
42
+ export type Highlights = Array<'full-width' | 'wide' | number>;
43
+
44
+ // @public (undocumented)
45
+ type Required_2<T> = {
46
+ [P in keyof T]-?: T[P];
47
+ };
48
+
49
+ // (No @packageDocumentation comment for this package)
50
+
51
+ ```