@atlaskit/editor-plugin-annotation 2.1.7 → 2.1.9
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 +17 -0
- package/dist/cjs/annotationPlugin.js +2 -1
- package/dist/cjs/editor-commands/transform.js +14 -2
- package/dist/cjs/pm-plugins/toolbar.js +11 -1
- package/dist/cjs/ui/InlineCommentView.js +1 -1
- package/dist/es2019/annotationPlugin.js +2 -1
- package/dist/es2019/editor-commands/transform.js +12 -2
- package/dist/es2019/pm-plugins/toolbar.js +11 -1
- package/dist/es2019/ui/InlineCommentView.js +1 -1
- package/dist/esm/annotationPlugin.js +2 -1
- package/dist/esm/editor-commands/transform.js +14 -2
- package/dist/esm/pm-plugins/toolbar.js +11 -1
- package/dist/esm/ui/InlineCommentView.js +1 -1
- package/dist/types/pm-plugins/toolbar.d.ts +3 -1
- package/dist/types/types/index.d.ts +17 -0
- package/dist/types-ts4.5/pm-plugins/toolbar.d.ts +3 -1
- package/dist/types-ts4.5/types/index.d.ts +17 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 2.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131690](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131690)
|
|
8
|
+
[`4ef6e6cdd0cec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4ef6e6cdd0cec) -
|
|
9
|
+
Fix deleting inline comment view component if it is moved
|
|
10
|
+
|
|
11
|
+
## 2.1.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#129644](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129644)
|
|
16
|
+
[`f3daef1b37b2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3daef1b37b2f) -
|
|
17
|
+
Fix setting the annotation selection after adding a comment if it is no longer in the annotation.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 2.1.7
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -86,7 +86,8 @@ var annotationPlugin = exports.annotationPlugin = function annotationPlugin(_ref
|
|
|
86
86
|
state: state,
|
|
87
87
|
intl: intl,
|
|
88
88
|
isToolbarAbove: isToolbarAbove,
|
|
89
|
-
api: api
|
|
89
|
+
api: api,
|
|
90
|
+
createCommentExperience: annotationProviders.createCommentExperience
|
|
90
91
|
});
|
|
91
92
|
if (!toolbarConfig) {
|
|
92
93
|
return undefined;
|
|
@@ -9,8 +9,12 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
9
9
|
var _mark = require("@atlaskit/editor-common/mark");
|
|
10
10
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
|
+
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
12
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _utils2 = require("../pm-plugins/utils");
|
|
15
|
+
var isAnnotationStep = function isAnnotationStep(step) {
|
|
16
|
+
return step instanceof _transform.AddMarkStep && step.mark.type.name === 'annotation';
|
|
17
|
+
};
|
|
14
18
|
var addAnnotationMark = function addAnnotationMark(id, supportedBlockNodes) {
|
|
15
19
|
return function (transaction, state) {
|
|
16
20
|
var inlineCommentState = (0, _utils2.getPluginState)(state);
|
|
@@ -33,8 +37,16 @@ var addAnnotationMark = function addAnnotationMark(id, supportedBlockNodes) {
|
|
|
33
37
|
} else {
|
|
34
38
|
// Apply the mark only to text node in the range.
|
|
35
39
|
var _tr = (0, _mark.applyMarkOnRange)(from, to, false, annotationMark, transaction);
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
|
|
41
|
+
// The mark may not be applied to the current "head" of the bookmark so determine what was applied
|
|
42
|
+
// above and use that instead
|
|
43
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_fix_missing_selected_annotations')) {
|
|
44
|
+
var annotationMarkStep = _tr.steps.reverse().find(isAnnotationStep);
|
|
45
|
+
var headBasedOnMark = from === head ? annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.from : annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.to;
|
|
46
|
+
_tr.setSelection(_state.TextSelection.create(_tr.doc, headBasedOnMark !== null && headBasedOnMark !== void 0 ? headBasedOnMark : head));
|
|
47
|
+
} else {
|
|
48
|
+
_tr.setSelection(_state.TextSelection.create(_tr.doc, head));
|
|
49
|
+
}
|
|
38
50
|
}
|
|
39
51
|
return tr;
|
|
40
52
|
};
|
|
@@ -26,7 +26,8 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
|
|
|
26
26
|
isToolbarAbove = _ref$isToolbarAbove === void 0 ? false : _ref$isToolbarAbove,
|
|
27
27
|
_ref$_supportedNodes = _ref._supportedNodes,
|
|
28
28
|
_supportedNodes = _ref$_supportedNodes === void 0 ? [] : _ref$_supportedNodes,
|
|
29
|
-
api = _ref.api
|
|
29
|
+
api = _ref.api,
|
|
30
|
+
createCommentExperience = _ref.createCommentExperience;
|
|
30
31
|
var schema = state.schema;
|
|
31
32
|
var selectionValid = (0, _utils2.isSelectionValid)(state);
|
|
32
33
|
var isMediaSelected = (0, _mediaSingle.currentMediaNodeWithPos)(state);
|
|
@@ -88,6 +89,15 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
|
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
91
|
}
|
|
92
|
+
if ((0, _platformFeatureFlags.fg)('confluence_comments_create_comment_experience')) {
|
|
93
|
+
createCommentExperience === null || createCommentExperience === void 0 || createCommentExperience.start({
|
|
94
|
+
attributes: {
|
|
95
|
+
pageClass: 'editor',
|
|
96
|
+
commentType: 'inline'
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
createCommentExperience === null || createCommentExperience === void 0 || createCommentExperience.initExperience.start();
|
|
100
|
+
}
|
|
91
101
|
return (0, _editorCommands.setInlineCommentDraftState)(editorAnalyticsAPI)(true)(state, dispatch);
|
|
92
102
|
},
|
|
93
103
|
supportsViewMode: true // TODO: MODES-3950 - Clean up this floating toolbar view mode logic,
|
|
@@ -162,7 +162,7 @@ function InlineCommentView(_ref) {
|
|
|
162
162
|
getInlineNodeTypes: getInlineNodeTypes,
|
|
163
163
|
dom: dom,
|
|
164
164
|
onDelete: function onDelete(id) {
|
|
165
|
-
return (0, _editorCommands.removeInlineCommentNearSelection)(id, inlineCommentProvider.supportedBlockNodes)(state, dispatch);
|
|
165
|
+
return (0, _editorCommands.removeInlineCommentNearSelection)(id, inlineCommentProvider.supportedBlockNodes)(editorView.state, dispatch);
|
|
166
166
|
},
|
|
167
167
|
onResolve: function onResolve(id) {
|
|
168
168
|
return (0, _editorCommands.updateInlineCommentResolvedState)(editorAnalyticsAPI)((0, _defineProperty2.default)({}, id, true), _analytics.RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch);
|
|
@@ -3,8 +3,10 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
3
3
|
import { applyMarkOnRange } from '@atlaskit/editor-common/mark';
|
|
4
4
|
import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { getDraftCommandAnalyticsPayload, getPluginState, resolveDraftBookmark } from '../pm-plugins/utils';
|
|
9
|
+
const isAnnotationStep = step => step instanceof AddMarkStep && step.mark.type.name === 'annotation';
|
|
8
10
|
const addAnnotationMark = (id, supportedBlockNodes) => (transaction, state) => {
|
|
9
11
|
const inlineCommentState = getPluginState(state);
|
|
10
12
|
const {
|
|
@@ -28,8 +30,16 @@ const addAnnotationMark = (id, supportedBlockNodes) => (transaction, state) => {
|
|
|
28
30
|
} else {
|
|
29
31
|
// Apply the mark only to text node in the range.
|
|
30
32
|
const tr = applyMarkOnRange(from, to, false, annotationMark, transaction);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
// The mark may not be applied to the current "head" of the bookmark so determine what was applied
|
|
35
|
+
// above and use that instead
|
|
36
|
+
if (fg('platform_editor_fix_missing_selected_annotations')) {
|
|
37
|
+
const annotationMarkStep = tr.steps.reverse().find(isAnnotationStep);
|
|
38
|
+
const headBasedOnMark = from === head ? annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.from : annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.to;
|
|
39
|
+
tr.setSelection(TextSelection.create(tr.doc, headBasedOnMark !== null && headBasedOnMark !== void 0 ? headBasedOnMark : head));
|
|
40
|
+
} else {
|
|
41
|
+
tr.setSelection(TextSelection.create(tr.doc, head));
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
return tr;
|
|
35
45
|
};
|
|
@@ -15,7 +15,8 @@ export const buildToolbar = editorAnalyticsAPI => ({
|
|
|
15
15
|
intl,
|
|
16
16
|
isToolbarAbove = false,
|
|
17
17
|
_supportedNodes = [],
|
|
18
|
-
api
|
|
18
|
+
api,
|
|
19
|
+
createCommentExperience
|
|
19
20
|
}) => {
|
|
20
21
|
var _api$connectivity, _api$connectivity$sha, _api$connectivity$sha2;
|
|
21
22
|
const {
|
|
@@ -79,6 +80,15 @@ export const buildToolbar = editorAnalyticsAPI => ({
|
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
}
|
|
83
|
+
if (fg('confluence_comments_create_comment_experience')) {
|
|
84
|
+
createCommentExperience === null || createCommentExperience === void 0 ? void 0 : createCommentExperience.start({
|
|
85
|
+
attributes: {
|
|
86
|
+
pageClass: 'editor',
|
|
87
|
+
commentType: 'inline'
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
createCommentExperience === null || createCommentExperience === void 0 ? void 0 : createCommentExperience.initExperience.start();
|
|
91
|
+
}
|
|
82
92
|
return setInlineCommentDraftState(editorAnalyticsAPI)(true)(state, dispatch);
|
|
83
93
|
},
|
|
84
94
|
supportsViewMode: true // TODO: MODES-3950 - Clean up this floating toolbar view mode logic,
|
|
@@ -158,7 +158,7 @@ export function InlineCommentView({
|
|
|
158
158
|
annotations: activeAnnotations,
|
|
159
159
|
getInlineNodeTypes: getInlineNodeTypes,
|
|
160
160
|
dom: dom,
|
|
161
|
-
onDelete: id => removeInlineCommentNearSelection(id, inlineCommentProvider.supportedBlockNodes)(state, dispatch),
|
|
161
|
+
onDelete: id => removeInlineCommentNearSelection(id, inlineCommentProvider.supportedBlockNodes)(editorView.state, dispatch),
|
|
162
162
|
onResolve: id => updateInlineCommentResolvedState(editorAnalyticsAPI)({
|
|
163
163
|
[id]: true
|
|
164
164
|
}, RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch),
|
|
@@ -79,7 +79,8 @@ export var annotationPlugin = function annotationPlugin(_ref) {
|
|
|
79
79
|
state: state,
|
|
80
80
|
intl: intl,
|
|
81
81
|
isToolbarAbove: isToolbarAbove,
|
|
82
|
-
api: api
|
|
82
|
+
api: api,
|
|
83
|
+
createCommentExperience: annotationProviders.createCommentExperience
|
|
83
84
|
});
|
|
84
85
|
if (!toolbarConfig) {
|
|
85
86
|
return undefined;
|
|
@@ -3,8 +3,12 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
3
3
|
import { applyMarkOnRange } from '@atlaskit/editor-common/mark';
|
|
4
4
|
import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { getDraftCommandAnalyticsPayload, getPluginState, resolveDraftBookmark } from '../pm-plugins/utils';
|
|
9
|
+
var isAnnotationStep = function isAnnotationStep(step) {
|
|
10
|
+
return step instanceof AddMarkStep && step.mark.type.name === 'annotation';
|
|
11
|
+
};
|
|
8
12
|
var addAnnotationMark = function addAnnotationMark(id, supportedBlockNodes) {
|
|
9
13
|
return function (transaction, state) {
|
|
10
14
|
var inlineCommentState = getPluginState(state);
|
|
@@ -27,8 +31,16 @@ var addAnnotationMark = function addAnnotationMark(id, supportedBlockNodes) {
|
|
|
27
31
|
} else {
|
|
28
32
|
// Apply the mark only to text node in the range.
|
|
29
33
|
var _tr = applyMarkOnRange(from, to, false, annotationMark, transaction);
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
|
|
35
|
+
// The mark may not be applied to the current "head" of the bookmark so determine what was applied
|
|
36
|
+
// above and use that instead
|
|
37
|
+
if (fg('platform_editor_fix_missing_selected_annotations')) {
|
|
38
|
+
var annotationMarkStep = _tr.steps.reverse().find(isAnnotationStep);
|
|
39
|
+
var headBasedOnMark = from === head ? annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.from : annotationMarkStep === null || annotationMarkStep === void 0 ? void 0 : annotationMarkStep.to;
|
|
40
|
+
_tr.setSelection(TextSelection.create(_tr.doc, headBasedOnMark !== null && headBasedOnMark !== void 0 ? headBasedOnMark : head));
|
|
41
|
+
} else {
|
|
42
|
+
_tr.setSelection(TextSelection.create(_tr.doc, head));
|
|
43
|
+
}
|
|
32
44
|
}
|
|
33
45
|
return tr;
|
|
34
46
|
};
|
|
@@ -19,7 +19,8 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
|
|
|
19
19
|
isToolbarAbove = _ref$isToolbarAbove === void 0 ? false : _ref$isToolbarAbove,
|
|
20
20
|
_ref$_supportedNodes = _ref._supportedNodes,
|
|
21
21
|
_supportedNodes = _ref$_supportedNodes === void 0 ? [] : _ref$_supportedNodes,
|
|
22
|
-
api = _ref.api
|
|
22
|
+
api = _ref.api,
|
|
23
|
+
createCommentExperience = _ref.createCommentExperience;
|
|
23
24
|
var schema = state.schema;
|
|
24
25
|
var selectionValid = isSelectionValid(state);
|
|
25
26
|
var isMediaSelected = currentMediaNodeWithPos(state);
|
|
@@ -81,6 +82,15 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
|
|
|
81
82
|
}
|
|
82
83
|
});
|
|
83
84
|
}
|
|
85
|
+
if (fg('confluence_comments_create_comment_experience')) {
|
|
86
|
+
createCommentExperience === null || createCommentExperience === void 0 || createCommentExperience.start({
|
|
87
|
+
attributes: {
|
|
88
|
+
pageClass: 'editor',
|
|
89
|
+
commentType: 'inline'
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
createCommentExperience === null || createCommentExperience === void 0 || createCommentExperience.initExperience.start();
|
|
93
|
+
}
|
|
84
94
|
return setInlineCommentDraftState(editorAnalyticsAPI)(true)(state, dispatch);
|
|
85
95
|
},
|
|
86
96
|
supportsViewMode: true // TODO: MODES-3950 - Clean up this floating toolbar view mode logic,
|
|
@@ -155,7 +155,7 @@ export function InlineCommentView(_ref) {
|
|
|
155
155
|
getInlineNodeTypes: getInlineNodeTypes,
|
|
156
156
|
dom: dom,
|
|
157
157
|
onDelete: function onDelete(id) {
|
|
158
|
-
return removeInlineCommentNearSelection(id, inlineCommentProvider.supportedBlockNodes)(state, dispatch);
|
|
158
|
+
return removeInlineCommentNearSelection(id, inlineCommentProvider.supportedBlockNodes)(editorView.state, dispatch);
|
|
159
159
|
},
|
|
160
160
|
onResolve: function onResolve(id) {
|
|
161
161
|
return updateInlineCommentResolvedState(editorAnalyticsAPI)(_defineProperty({}, id, true), RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch);
|
|
@@ -6,6 +6,7 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
9
|
+
import { AnnotationProviders } from '../types';
|
|
9
10
|
interface BuildToolbarOptions {
|
|
10
11
|
state: EditorState;
|
|
11
12
|
intl: IntlShape;
|
|
@@ -13,8 +14,9 @@ interface BuildToolbarOptions {
|
|
|
13
14
|
isCommentOnMediaOn?: boolean;
|
|
14
15
|
_supportedNodes?: string[];
|
|
15
16
|
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
17
|
+
createCommentExperience?: AnnotationProviders['createCommentExperience'];
|
|
16
18
|
}
|
|
17
|
-
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api, }: BuildToolbarOptions) => {
|
|
19
|
+
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api, createCommentExperience, }: BuildToolbarOptions) => {
|
|
18
20
|
title: string;
|
|
19
21
|
nodeType: NodeType[];
|
|
20
22
|
items: FloatingToolbarButton<Command>[];
|
|
@@ -104,6 +104,23 @@ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationT
|
|
|
104
104
|
};
|
|
105
105
|
export interface AnnotationProviders {
|
|
106
106
|
inlineComment: InlineCommentAnnotationProvider;
|
|
107
|
+
createCommentExperience?: {
|
|
108
|
+
start: (_: {
|
|
109
|
+
attributes: {
|
|
110
|
+
pageClass: 'editor';
|
|
111
|
+
commentType: 'inline';
|
|
112
|
+
annotationId?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
pageClass: 'editor';
|
|
115
|
+
commentType: 'block';
|
|
116
|
+
blockType: 'media';
|
|
117
|
+
annotationId?: undefined;
|
|
118
|
+
};
|
|
119
|
+
}) => void;
|
|
120
|
+
initExperience: {
|
|
121
|
+
start: () => void;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
107
124
|
}
|
|
108
125
|
export declare enum AnnotationSelectionType {
|
|
109
126
|
INVALID = "invalid",// Annotation should not be created, toolbar should not be shown
|
|
@@ -6,6 +6,7 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
6
|
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { AnnotationPlugin } from '../annotationPluginType';
|
|
9
|
+
import { AnnotationProviders } from '../types';
|
|
9
10
|
interface BuildToolbarOptions {
|
|
10
11
|
state: EditorState;
|
|
11
12
|
intl: IntlShape;
|
|
@@ -13,8 +14,9 @@ interface BuildToolbarOptions {
|
|
|
13
14
|
isCommentOnMediaOn?: boolean;
|
|
14
15
|
_supportedNodes?: string[];
|
|
15
16
|
api?: ExtractInjectionAPI<AnnotationPlugin>;
|
|
17
|
+
createCommentExperience?: AnnotationProviders['createCommentExperience'];
|
|
16
18
|
}
|
|
17
|
-
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api, }: BuildToolbarOptions) => {
|
|
19
|
+
export declare const buildToolbar: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ state, intl, isToolbarAbove, _supportedNodes, api, createCommentExperience, }: BuildToolbarOptions) => {
|
|
18
20
|
title: string;
|
|
19
21
|
nodeType: NodeType[];
|
|
20
22
|
items: FloatingToolbarButton<Command>[];
|
|
@@ -104,6 +104,23 @@ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationT
|
|
|
104
104
|
};
|
|
105
105
|
export interface AnnotationProviders {
|
|
106
106
|
inlineComment: InlineCommentAnnotationProvider;
|
|
107
|
+
createCommentExperience?: {
|
|
108
|
+
start: (_: {
|
|
109
|
+
attributes: {
|
|
110
|
+
pageClass: 'editor';
|
|
111
|
+
commentType: 'inline';
|
|
112
|
+
annotationId?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
pageClass: 'editor';
|
|
115
|
+
commentType: 'block';
|
|
116
|
+
blockType: 'media';
|
|
117
|
+
annotationId?: undefined;
|
|
118
|
+
};
|
|
119
|
+
}) => void;
|
|
120
|
+
initExperience: {
|
|
121
|
+
start: () => void;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
107
124
|
}
|
|
108
125
|
export declare enum AnnotationSelectionType {
|
|
109
126
|
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.1.
|
|
3
|
+
"version": "2.1.9",
|
|
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": "^102.
|
|
35
|
+
"@atlaskit/editor-common": "^102.13.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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/icon": "^25.0.0",
|
|
42
42
|
"@atlaskit/onboarding": "^13.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^4.4.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -104,6 +104,9 @@
|
|
|
104
104
|
},
|
|
105
105
|
"use_comments_data_annotation_updater": {
|
|
106
106
|
"type": "boolean"
|
|
107
|
+
},
|
|
108
|
+
"confluence_comments_create_comment_experience": {
|
|
109
|
+
"type": "boolean"
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
}
|