@atlaskit/editor-plugin-decorations 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 CHANGED
@@ -1 +1,8 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
+
3
+ ## 0.1.1
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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Decorations 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,7 +23,7 @@
22
23
  ".": "./src/index.ts"
23
24
  },
24
25
  "dependencies": {
25
- "@atlaskit/editor-common": "^74.3.0",
26
+ "@atlaskit/editor-common": "^74.9.0",
26
27
  "@babel/runtime": "^7.0.0",
27
28
  "prosemirror-model": "1.16.0",
28
29
  "prosemirror-state": "1.3.4",
@@ -33,12 +34,7 @@
33
34
  "react": "^16.8.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@atlaskit/docs": "*",
37
- "@atlaskit/editor-core": "^185.0.0",
38
- "@atlaskit/editor-test-helpers": "^18.2.0",
39
- "@atlaskit/ssr": "*",
40
- "@atlaskit/visual-regression": "*",
41
- "@atlaskit/webdriver-runner": "*",
37
+ "@atlaskit/editor-test-helpers": "^18.7.0",
42
38
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
43
39
  "@testing-library/react": "^12.1.5",
44
40
  "react-dom": "^16.8.0",
@@ -0,0 +1,37 @@
1
+ ## API Report File for "@atlaskit/editor-plugin-decorations"
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 { Command } from '@atlaskit/editor-common/types';
8
+ import { Decoration } from 'prosemirror-view';
9
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
10
+ import { NodeType } from 'prosemirror-model';
11
+
12
+ // @public (undocumented)
13
+ export const decorationsPlugin: NextEditorPlugin<'decorations', {
14
+ sharedState: DecorationState;
15
+ actions: {
16
+ hoverDecoration: HoverDecorationHandler;
17
+ removeDecoration: typeof removeDecoration;
18
+ };
19
+ }>;
20
+
21
+ // @public (undocumented)
22
+ export type DecorationState = {
23
+ decoration?: Decoration;
24
+ };
25
+
26
+ // @public (undocumented)
27
+ const hoverDecoration: (nodeType: Array<NodeType> | NodeType, add: boolean, className?: string) => Command;
28
+
29
+ // @public (undocumented)
30
+ export type HoverDecorationHandler = typeof hoverDecoration;
31
+
32
+ // @public (undocumented)
33
+ const removeDecoration: Command;
34
+
35
+ // (No @packageDocumentation comment for this package)
36
+
37
+ ```