@atlaskit/editor-plugin-annotation 10.5.2 → 10.5.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
CHANGED
|
@@ -24,18 +24,18 @@ var _utils3 = require("./utils");
|
|
|
24
24
|
var fetchProviderStates = /*#__PURE__*/function () {
|
|
25
25
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(provider, annotationIds) {
|
|
26
26
|
var data, result;
|
|
27
|
-
return _regenerator.default.wrap(function
|
|
27
|
+
return _regenerator.default.wrap(function (_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
30
30
|
if (!(!provider || !provider.getState)) {
|
|
31
|
-
_context.next =
|
|
31
|
+
_context.next = 1;
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
return _context.abrupt("return", {});
|
|
35
|
-
case
|
|
36
|
-
_context.next =
|
|
35
|
+
case 1:
|
|
36
|
+
_context.next = 2;
|
|
37
37
|
return provider.getState(annotationIds);
|
|
38
|
-
case
|
|
38
|
+
case 2:
|
|
39
39
|
data = _context.sent;
|
|
40
40
|
result = {};
|
|
41
41
|
data.forEach(function (annotation) {
|
|
@@ -44,7 +44,7 @@ var fetchProviderStates = /*#__PURE__*/function () {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
return _context.abrupt("return", result);
|
|
47
|
-
case
|
|
47
|
+
case 3:
|
|
48
48
|
case "end":
|
|
49
49
|
return _context.stop();
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ var fetchProviderStates = /*#__PURE__*/function () {
|
|
|
60
60
|
var fetchState = /*#__PURE__*/function () {
|
|
61
61
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(provider, annotationIds, editorView, editorAnalyticsAPI) {
|
|
62
62
|
var inlineCommentStates, _ref3, annotationsLoaded;
|
|
63
|
-
return _regenerator.default.wrap(function
|
|
63
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
64
64
|
while (1) switch (_context2.prev = _context2.next) {
|
|
65
65
|
case 0:
|
|
66
|
-
_context2.next =
|
|
66
|
+
_context2.next = 1;
|
|
67
67
|
return fetchProviderStates(provider, annotationIds);
|
|
68
|
-
case
|
|
68
|
+
case 1:
|
|
69
69
|
inlineCommentStates = _context2.sent;
|
|
70
70
|
if (!(Object.keys(inlineCommentStates).length === 0)) {
|
|
71
|
-
_context2.next =
|
|
71
|
+
_context2.next = 2;
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
_ref3 = (0, _utils3.getPluginState)(editorView.state) || {}, annotationsLoaded = _ref3.annotationsLoaded;
|
|
@@ -76,11 +76,11 @@ var fetchState = /*#__PURE__*/function () {
|
|
|
76
76
|
(0, _editorCommands.setInlineCommentsFetched)()(editorView.state, editorView.dispatch);
|
|
77
77
|
}
|
|
78
78
|
return _context2.abrupt("return");
|
|
79
|
-
case
|
|
79
|
+
case 2:
|
|
80
80
|
if (editorView.dispatch) {
|
|
81
81
|
(0, _editorCommands.updateInlineCommentResolvedState)(editorAnalyticsAPI)(inlineCommentStates)(editorView.state, editorView.dispatch);
|
|
82
82
|
}
|
|
83
|
-
case
|
|
83
|
+
case 3:
|
|
84
84
|
case "end":
|
|
85
85
|
return _context2.stop();
|
|
86
86
|
}
|
|
@@ -17,18 +17,18 @@ import { decorationKey, getAllAnnotations, getPluginState, inlineCommentPluginKe
|
|
|
17
17
|
var fetchProviderStates = /*#__PURE__*/function () {
|
|
18
18
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(provider, annotationIds) {
|
|
19
19
|
var data, result;
|
|
20
|
-
return _regeneratorRuntime.wrap(function
|
|
20
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
21
21
|
while (1) switch (_context.prev = _context.next) {
|
|
22
22
|
case 0:
|
|
23
23
|
if (!(!provider || !provider.getState)) {
|
|
24
|
-
_context.next =
|
|
24
|
+
_context.next = 1;
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
27
|
return _context.abrupt("return", {});
|
|
28
|
-
case
|
|
29
|
-
_context.next =
|
|
28
|
+
case 1:
|
|
29
|
+
_context.next = 2;
|
|
30
30
|
return provider.getState(annotationIds);
|
|
31
|
-
case
|
|
31
|
+
case 2:
|
|
32
32
|
data = _context.sent;
|
|
33
33
|
result = {};
|
|
34
34
|
data.forEach(function (annotation) {
|
|
@@ -37,7 +37,7 @@ var fetchProviderStates = /*#__PURE__*/function () {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
return _context.abrupt("return", result);
|
|
40
|
-
case
|
|
40
|
+
case 3:
|
|
41
41
|
case "end":
|
|
42
42
|
return _context.stop();
|
|
43
43
|
}
|
|
@@ -53,15 +53,15 @@ var fetchProviderStates = /*#__PURE__*/function () {
|
|
|
53
53
|
var fetchState = /*#__PURE__*/function () {
|
|
54
54
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(provider, annotationIds, editorView, editorAnalyticsAPI) {
|
|
55
55
|
var inlineCommentStates, _ref3, annotationsLoaded;
|
|
56
|
-
return _regeneratorRuntime.wrap(function
|
|
56
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
57
57
|
while (1) switch (_context2.prev = _context2.next) {
|
|
58
58
|
case 0:
|
|
59
|
-
_context2.next =
|
|
59
|
+
_context2.next = 1;
|
|
60
60
|
return fetchProviderStates(provider, annotationIds);
|
|
61
|
-
case
|
|
61
|
+
case 1:
|
|
62
62
|
inlineCommentStates = _context2.sent;
|
|
63
63
|
if (!(Object.keys(inlineCommentStates).length === 0)) {
|
|
64
|
-
_context2.next =
|
|
64
|
+
_context2.next = 2;
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
67
67
|
_ref3 = getPluginState(editorView.state) || {}, annotationsLoaded = _ref3.annotationsLoaded;
|
|
@@ -69,11 +69,11 @@ var fetchState = /*#__PURE__*/function () {
|
|
|
69
69
|
setInlineCommentsFetched()(editorView.state, editorView.dispatch);
|
|
70
70
|
}
|
|
71
71
|
return _context2.abrupt("return");
|
|
72
|
-
case
|
|
72
|
+
case 2:
|
|
73
73
|
if (editorView.dispatch) {
|
|
74
74
|
updateInlineCommentResolvedState(editorAnalyticsAPI)(inlineCommentStates)(editorView.state, editorView.dispatch);
|
|
75
75
|
}
|
|
76
|
-
case
|
|
76
|
+
case 3:
|
|
77
77
|
case "end":
|
|
78
78
|
return _context2.stop();
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.3",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^52.
|
|
30
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
31
31
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
32
32
|
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^10.1.0",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-toolbar": "^7.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-user-intent": "^8.2.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
38
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
38
|
+
"@atlaskit/editor-toolbar": "^1.8.0",
|
|
39
39
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
40
40
|
"@atlaskit/icon": "^35.3.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^114.
|
|
46
|
+
"@atlaskit/editor-common": "^114.50.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|