@atlaskit/editor-plugin-annotation 2.3.0 → 2.4.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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137860](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137860)
|
|
8
|
+
[`04e753d1ba0f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04e753d1ba0f4) -
|
|
9
|
+
Created a new Annotation manager implementation and interface and updated CCFE to create and share
|
|
10
|
+
this instance around
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 2.3.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
4
|
+
import type { AnnotationUpdateEmitter, AnnotationManager } from '@atlaskit/editor-common/annotation';
|
|
5
5
|
/**
|
|
6
6
|
* type of target that annotation apply to.
|
|
7
7
|
* This is used to apply correct decoration to a draft comment
|
|
@@ -121,6 +121,7 @@ export interface AnnotationProviders {
|
|
|
121
121
|
start: () => void;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
|
+
annotationManager?: AnnotationManager;
|
|
124
125
|
}
|
|
125
126
|
export declare enum AnnotationSelectionType {
|
|
126
127
|
INVALID = "invalid",// Annotation should not be created, toolbar should not be shown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
4
|
+
import type { AnnotationUpdateEmitter, AnnotationManager } from '@atlaskit/editor-common/annotation';
|
|
5
5
|
/**
|
|
6
6
|
* type of target that annotation apply to.
|
|
7
7
|
* This is used to apply correct decoration to a draft comment
|
|
@@ -121,6 +121,7 @@ export interface AnnotationProviders {
|
|
|
121
121
|
start: () => void;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
|
+
annotationManager?: AnnotationManager;
|
|
124
125
|
}
|
|
125
126
|
export declare enum AnnotationSelectionType {
|
|
126
127
|
INVALID = "invalid",// Annotation should not be created, toolbar should not be shown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^2.0.0",
|