@atlaskit/editor-plugin-annotation 3.2.1 → 3.2.3
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 +12 -0
- package/dist/types/editor-commands/transform.d.ts +6 -14
- package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/ui/CommentButton/hooks.d.ts +3 -13
- package/dist/types/ui/CommentButton/utils.d.ts +4 -24
- package/dist/types-ts4.5/editor-commands/transform.d.ts +6 -14
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/ui/CommentButton/hooks.d.ts +3 -13
- package/dist/types-ts4.5/ui/CommentButton/utils.d.ts +4 -24
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
3
5
|
import type { InlineCommentInputMethod } from '../types';
|
|
4
6
|
declare const _default: {
|
|
5
|
-
addAnnotationMark: (id: string, supportedBlockNodes?: string[]
|
|
6
|
-
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorAPI:
|
|
7
|
-
pluginConfiguration: import("../types").AnnotationProviders | undefined;
|
|
8
|
-
sharedState: import("..").InlineCommentPluginState | undefined;
|
|
9
|
-
dependencies: import("../annotationPluginType").AnnotationPluginDependencies;
|
|
10
|
-
actions: {
|
|
11
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
12
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: InlineCommentInputMethod, targetType?: import("../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
13
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
14
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
15
|
-
};
|
|
16
|
-
}> | undefined) => (id: string, supportedBlockNodes?: string[] | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
7
|
+
addAnnotationMark: (id: string, supportedBlockNodes?: string[]) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
8
|
+
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorAPI: ExtractInjectionAPI<AnnotationPlugin> | undefined) => (id: string, supportedBlockNodes?: string[]) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
17
9
|
handleDraftState: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (drafting: boolean, method?: InlineCommentInputMethod) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
18
10
|
addOpenCloseAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (drafting: boolean, method?: InlineCommentInputMethod) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
19
11
|
addInsertAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
20
|
-
addResolveAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (method?: RESOLVE_METHOD
|
|
21
|
-
addPreemptiveGateErrorAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (errorReason?: string
|
|
12
|
+
addResolveAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (method?: RESOLVE_METHOD) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
13
|
+
addPreemptiveGateErrorAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (errorReason?: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
22
14
|
addDeleteAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
23
15
|
};
|
|
24
16
|
export default _default;
|
|
@@ -10,4 +10,4 @@ import type { InlineCommentPluginState } from './types';
|
|
|
10
10
|
* @example
|
|
11
11
|
*/
|
|
12
12
|
export declare const shouldClearBookMarkCheck: (tr: ReadonlyTransaction | Transaction, editorState: EditorState, bookmark?: SelectionBookmark) => boolean;
|
|
13
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (
|
|
13
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -5,18 +5,8 @@ import type { AnnotationSelectionType } from '../../types';
|
|
|
5
5
|
import { type AnnotationProviders } from '../../types';
|
|
6
6
|
export declare const useCommentButtonMount: ({ state, annotationProviders, api, annotationSelectionType, bookmark, }: {
|
|
7
7
|
state: EditorState | null;
|
|
8
|
-
annotationProviders?: AnnotationProviders
|
|
9
|
-
api?:
|
|
10
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
11
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
12
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
13
|
-
actions: {
|
|
14
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
15
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
16
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
17
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
18
|
-
};
|
|
19
|
-
}> | undefined;
|
|
8
|
+
annotationProviders?: AnnotationProviders;
|
|
9
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
20
10
|
annotationSelectionType: AnnotationSelectionType;
|
|
21
|
-
bookmark?: SelectionBookmark
|
|
11
|
+
bookmark?: SelectionBookmark;
|
|
22
12
|
}) => void;
|
|
@@ -5,21 +5,11 @@ import type { AnnotationPlugin } from '../../annotationPluginType';
|
|
|
5
5
|
import { AnnotationSelectionType, type AnnotationProviders } from '../../types';
|
|
6
6
|
export declare const isButtonDisabled: ({ state, api, }: {
|
|
7
7
|
state: EditorState | null;
|
|
8
|
-
api?:
|
|
9
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
10
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
11
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
12
|
-
actions: {
|
|
13
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
14
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
15
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
16
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
17
|
-
};
|
|
18
|
-
}> | undefined;
|
|
8
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
19
9
|
}) => boolean;
|
|
20
10
|
export declare const shouldShowCommentButton: ({ state, isVisible, annotationSelectionType, }: {
|
|
21
11
|
state: EditorState | null;
|
|
22
|
-
isVisible?: boolean
|
|
12
|
+
isVisible?: boolean;
|
|
23
13
|
annotationSelectionType: AnnotationSelectionType;
|
|
24
14
|
}) => boolean;
|
|
25
15
|
export declare const fireOnClickAnalyticsEvent: ({ api, }: {
|
|
@@ -30,17 +20,7 @@ export declare const fireAnnotationErrorAnalyticsEvent: ({ api, errorReason, }:
|
|
|
30
20
|
errorReason: string;
|
|
31
21
|
}) => void;
|
|
32
22
|
export declare const fireCommentButtonViewedAnalyticsEvent: ({ api, isNonTextInlineNodeInludedInComment, annotationSelectionType, }: {
|
|
33
|
-
api?:
|
|
34
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
35
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
36
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
37
|
-
actions: {
|
|
38
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
39
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
40
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
41
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
42
|
-
};
|
|
43
|
-
}> | undefined;
|
|
23
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
44
24
|
isNonTextInlineNodeInludedInComment: boolean;
|
|
45
25
|
annotationSelectionType: AnnotationSelectionType;
|
|
46
26
|
}) => void;
|
|
@@ -48,5 +28,5 @@ export declare const startCommentExperience: ({ annotationProviders, api, state,
|
|
|
48
28
|
annotationProviders: AnnotationProviders;
|
|
49
29
|
api: ExtractInjectionAPI<AnnotationPlugin>;
|
|
50
30
|
state: EditorState;
|
|
51
|
-
dispatch: EditorView[
|
|
31
|
+
dispatch: EditorView["dispatch"];
|
|
52
32
|
}) => boolean;
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
3
5
|
import type { InlineCommentInputMethod } from '../types';
|
|
4
6
|
declare const _default: {
|
|
5
|
-
addAnnotationMark: (id: string, supportedBlockNodes?: string[]
|
|
6
|
-
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorAPI:
|
|
7
|
-
pluginConfiguration: import("../types").AnnotationProviders | undefined;
|
|
8
|
-
sharedState: import("..").InlineCommentPluginState | undefined;
|
|
9
|
-
dependencies: import("../annotationPluginType").AnnotationPluginDependencies;
|
|
10
|
-
actions: {
|
|
11
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
12
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: InlineCommentInputMethod, targetType?: import("../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
13
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
14
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
15
|
-
};
|
|
16
|
-
}> | undefined) => (id: string, supportedBlockNodes?: string[] | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
7
|
+
addAnnotationMark: (id: string, supportedBlockNodes?: string[]) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
8
|
+
addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorAPI: ExtractInjectionAPI<AnnotationPlugin> | undefined) => (id: string, supportedBlockNodes?: string[]) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
17
9
|
handleDraftState: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (drafting: boolean, method?: InlineCommentInputMethod) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
18
10
|
addOpenCloseAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (drafting: boolean, method?: InlineCommentInputMethod) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
19
11
|
addInsertAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
20
|
-
addResolveAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (method?: RESOLVE_METHOD
|
|
21
|
-
addPreemptiveGateErrorAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (errorReason?: string
|
|
12
|
+
addResolveAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (method?: RESOLVE_METHOD) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
13
|
+
addPreemptiveGateErrorAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (errorReason?: string) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
22
14
|
addDeleteAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (transaction: Transaction, state: EditorState) => Transaction;
|
|
23
15
|
};
|
|
24
16
|
export default _default;
|
|
@@ -10,4 +10,4 @@ import type { InlineCommentPluginState } from './types';
|
|
|
10
10
|
* @example
|
|
11
11
|
*/
|
|
12
12
|
export declare const shouldClearBookMarkCheck: (tr: ReadonlyTransaction | Transaction, editorState: EditorState, bookmark?: SelectionBookmark) => boolean;
|
|
13
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (
|
|
13
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -5,18 +5,8 @@ import type { AnnotationSelectionType } from '../../types';
|
|
|
5
5
|
import { type AnnotationProviders } from '../../types';
|
|
6
6
|
export declare const useCommentButtonMount: ({ state, annotationProviders, api, annotationSelectionType, bookmark, }: {
|
|
7
7
|
state: EditorState | null;
|
|
8
|
-
annotationProviders?: AnnotationProviders
|
|
9
|
-
api?:
|
|
10
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
11
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
12
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
13
|
-
actions: {
|
|
14
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
15
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
16
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
17
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
18
|
-
};
|
|
19
|
-
}> | undefined;
|
|
8
|
+
annotationProviders?: AnnotationProviders;
|
|
9
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
20
10
|
annotationSelectionType: AnnotationSelectionType;
|
|
21
|
-
bookmark?: SelectionBookmark
|
|
11
|
+
bookmark?: SelectionBookmark;
|
|
22
12
|
}) => void;
|
|
@@ -5,21 +5,11 @@ import type { AnnotationPlugin } from '../../annotationPluginType';
|
|
|
5
5
|
import { AnnotationSelectionType, type AnnotationProviders } from '../../types';
|
|
6
6
|
export declare const isButtonDisabled: ({ state, api, }: {
|
|
7
7
|
state: EditorState | null;
|
|
8
|
-
api?:
|
|
9
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
10
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
11
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
12
|
-
actions: {
|
|
13
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
14
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
15
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
16
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
17
|
-
};
|
|
18
|
-
}> | undefined;
|
|
8
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
19
9
|
}) => boolean;
|
|
20
10
|
export declare const shouldShowCommentButton: ({ state, isVisible, annotationSelectionType, }: {
|
|
21
11
|
state: EditorState | null;
|
|
22
|
-
isVisible?: boolean
|
|
12
|
+
isVisible?: boolean;
|
|
23
13
|
annotationSelectionType: AnnotationSelectionType;
|
|
24
14
|
}) => boolean;
|
|
25
15
|
export declare const fireOnClickAnalyticsEvent: ({ api, }: {
|
|
@@ -30,17 +20,7 @@ export declare const fireAnnotationErrorAnalyticsEvent: ({ api, errorReason, }:
|
|
|
30
20
|
errorReason: string;
|
|
31
21
|
}) => void;
|
|
32
22
|
export declare const fireCommentButtonViewedAnalyticsEvent: ({ api, isNonTextInlineNodeInludedInComment, annotationSelectionType, }: {
|
|
33
|
-
api?:
|
|
34
|
-
pluginConfiguration: AnnotationProviders | undefined;
|
|
35
|
-
sharedState: import("../..").InlineCommentPluginState | undefined;
|
|
36
|
-
dependencies: import("../../annotationPluginType").AnnotationPluginDependencies;
|
|
37
|
-
actions: {
|
|
38
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: EditorState) => boolean | undefined;
|
|
39
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("../../types").InlineCommentInputMethod, targetType?: import("../../types").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
40
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
41
|
-
hasAnyUnResolvedAnnotationInPage: (state: EditorState) => boolean;
|
|
42
|
-
};
|
|
43
|
-
}> | undefined;
|
|
23
|
+
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
44
24
|
isNonTextInlineNodeInludedInComment: boolean;
|
|
45
25
|
annotationSelectionType: AnnotationSelectionType;
|
|
46
26
|
}) => void;
|
|
@@ -48,5 +28,5 @@ export declare const startCommentExperience: ({ annotationProviders, api, state,
|
|
|
48
28
|
annotationProviders: AnnotationProviders;
|
|
49
29
|
api: ExtractInjectionAPI<AnnotationPlugin>;
|
|
50
30
|
state: EditorState;
|
|
51
|
-
dispatch: EditorView[
|
|
31
|
+
dispatch: EditorView["dispatch"];
|
|
52
32
|
}) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^3.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^3.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^2.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-toolbar": "^0.
|
|
39
|
+
"@atlaskit/editor-plugin-toolbar": "^0.2.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
42
|
-
"@atlaskit/editor-toolbar-model": "^0.0
|
|
43
|
-
"@atlaskit/icon": "^27.
|
|
41
|
+
"@atlaskit/editor-toolbar": "^0.3.0",
|
|
42
|
+
"@atlaskit/editor-toolbar-model": "^0.1.0",
|
|
43
|
+
"@atlaskit/icon": "^27.12.0",
|
|
44
44
|
"@atlaskit/onboarding": "^14.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^9.28.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^107.
|
|
51
|
+
"@atlaskit/editor-common": "^107.23.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0"
|
|
54
54
|
},
|