@atlaskit/editor-plugin-decorations 0.1.5 → 0.2.0
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 +6 -0
- package/README.md +25 -2
- package/dist/cjs/plugin.js +4 -0
- package/dist/es2019/plugin.js +4 -0
- package/dist/esm/plugin.js +4 -0
- package/dist/types/plugin.d.ts +4 -0
- package/dist/types-ts4.5/plugin.d.ts +4 -0
- package/package.json +3 -3
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
8
|
+
|
|
3
9
|
## 0.1.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Editor plugin decorations
|
|
2
2
|
|
|
3
3
|
Decorations plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
---
|
|
10
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-decorations*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-decorations](https://www.npmjs.com/package/@atlaskit/editor-plugin-decorations)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-decorations)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-decorations/dist/)
|
|
14
|
+
|
|
5
15
|
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-decorations is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
20
|
+
|
|
21
|
+
Direct use of this component is not supported.
|
|
22
|
+
|
|
23
|
+
Please see [Atlaskit - Editor plugin decorations](https://atlaskit.atlassian.com/packages/editor/editor-plugin-decorations) for documentation and examples for this package.
|
|
6
24
|
|
|
7
|
-
|
|
25
|
+
## Support
|
|
26
|
+
---
|
|
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
|
+
## License
|
|
29
|
+
---
|
|
30
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -8,6 +8,10 @@ exports.decorationsPlugin = void 0;
|
|
|
8
8
|
var _pmPlugin = _interopRequireWildcard(require("./pm-plugin"));
|
|
9
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
/**
|
|
12
|
+
* Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
13
|
+
* from `@atlaskit/editor-core`.
|
|
14
|
+
*/
|
|
11
15
|
var decorationsPlugin = function decorationsPlugin() {
|
|
12
16
|
return {
|
|
13
17
|
name: 'decorations',
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
4
|
+
* from `@atlaskit/editor-core`.
|
|
5
|
+
*/
|
|
2
6
|
export const decorationsPlugin = () => ({
|
|
3
7
|
name: 'decorations',
|
|
4
8
|
pmPlugins() {
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
4
|
+
* from `@atlaskit/editor-core`.
|
|
5
|
+
*/
|
|
2
6
|
export var decorationsPlugin = function decorationsPlugin() {
|
|
3
7
|
return {
|
|
4
8
|
name: 'decorations',
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -8,4 +8,8 @@ export type DecorationsPlugin = NextEditorPlugin<'decorations', {
|
|
|
8
8
|
removeDecoration: typeof removeDecoration;
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
13
|
+
* from `@atlaskit/editor-core`.
|
|
14
|
+
*/
|
|
11
15
|
export declare const decorationsPlugin: DecorationsPlugin;
|
|
@@ -8,4 +8,8 @@ export type DecorationsPlugin = NextEditorPlugin<'decorations', {
|
|
|
8
8
|
removeDecoration: typeof removeDecoration;
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
13
|
+
* from `@atlaskit/editor-core`.
|
|
14
|
+
*/
|
|
11
15
|
export declare const decorationsPlugin: DecorationsPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "Editor",
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
12
|
"singleton": true,
|
|
13
13
|
"releaseModel": "continuous"
|
|
14
14
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^74.
|
|
26
|
+
"@atlaskit/editor-common": "^74.55.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0"
|
|
29
29
|
},
|
package/report.api.md
CHANGED