@atlaskit/editor-plugin-annotation 1.26.4 → 1.26.5
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 1.26.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181212](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181212)
|
|
8
|
+
[`d9fa5a1d7f832`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9fa5a1d7f832) -
|
|
9
|
+
Removes type assertion from selectionToolbar in annotation plugin.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.26.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI,
|
|
3
|
+
import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
6
7
|
interface BuildToolbarOptions {
|
|
@@ -11,5 +12,10 @@ interface BuildToolbarOptions {
|
|
|
11
12
|
_supportedNodes?: string[];
|
|
12
13
|
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
13
14
|
}
|
|
14
|
-
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api
|
|
15
|
+
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api }: BuildToolbarOptions) => {
|
|
16
|
+
title: string;
|
|
17
|
+
nodeType: NodeType[];
|
|
18
|
+
items: FloatingToolbarButton<Command>[];
|
|
19
|
+
onPositionCalculated: (editorView: import("prosemirror-view").EditorView, nextPos: import("@atlaskit/editor-common/ui").PopupPosition) => import("@atlaskit/editor-common/ui").PopupPosition;
|
|
20
|
+
} | undefined;
|
|
15
21
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ExtractInjectionAPI,
|
|
3
|
+
import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
6
7
|
interface BuildToolbarOptions {
|
|
@@ -11,5 +12,10 @@ interface BuildToolbarOptions {
|
|
|
11
12
|
_supportedNodes?: string[];
|
|
12
13
|
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
13
14
|
}
|
|
14
|
-
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api
|
|
15
|
+
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api }: BuildToolbarOptions) => {
|
|
16
|
+
title: string;
|
|
17
|
+
nodeType: NodeType[];
|
|
18
|
+
items: FloatingToolbarButton<Command>[];
|
|
19
|
+
onPositionCalculated: (editorView: import("prosemirror-view").EditorView, nextPos: import("@atlaskit/editor-common/ui").PopupPosition) => import("@atlaskit/editor-common/ui").PopupPosition;
|
|
20
|
+
} | undefined;
|
|
15
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.5",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^96.
|
|
35
|
+
"@atlaskit/editor-common": "^96.7.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
|
-
"@atlaskit/editor-plugin-connectivity": "^1.
|
|
37
|
+
"@atlaskit/editor-plugin-connectivity": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^1.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-engagement-platform": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/icon": "^23.1.0",
|
|
43
43
|
"@atlaskit/onboarding": "^12.2.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^2.29.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|