@atlaskit/editor-plugin-grid 0.1.0 → 0.1.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 +7 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +7 -7
- package/tmp/api-report-tmp.d.ts +51 -0
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`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).
|
|
8
|
+
- Updated dependencies
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
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.1",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor",
|
|
12
|
-
"releaseModel": "
|
|
12
|
+
"releaseModel": "continuous"
|
|
13
13
|
},
|
|
14
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
15
15
|
"main": "dist/cjs/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
".": "./src/index.ts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaskit/editor-common": "^74.
|
|
26
|
-
"@atlaskit/editor-plugin-width": "^0.0
|
|
25
|
+
"@atlaskit/editor-common": "^74.5.0",
|
|
26
|
+
"@atlaskit/editor-plugin-width": "^0.1.0",
|
|
27
27
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"@emotion/react": "^11.7.1",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@atlaskit/docs": "*",
|
|
39
|
-
"@atlaskit/editor-core": "^
|
|
40
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
39
|
+
"@atlaskit/editor-core": "^185.1.0",
|
|
40
|
+
"@atlaskit/editor-test-helpers": "^18.5.0",
|
|
41
41
|
"@atlaskit/ssr": "*",
|
|
42
42
|
"@atlaskit/visual-regression": "*",
|
|
43
43
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
83
|
-
}
|
|
83
|
+
}
|
|
@@ -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
|
+
```
|