@atlaskit/editor-plugin-collab-edit 11.2.4 → 11.2.6
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/cjs/collabEditPlugin.js +14 -14
- package/dist/esm/collabEditPlugin.js +14 -14
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -36,37 +36,37 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
36
36
|
var providerBuilder = function providerBuilder(collabEditProviderPromise) {
|
|
37
37
|
return /*#__PURE__*/function () {
|
|
38
38
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(codeToExecute, onError) {
|
|
39
|
-
var provider;
|
|
40
|
-
return _regenerator.default.wrap(function
|
|
39
|
+
var provider, _t;
|
|
40
|
+
return _regenerator.default.wrap(function (_context) {
|
|
41
41
|
while (1) switch (_context.prev = _context.next) {
|
|
42
42
|
case 0:
|
|
43
43
|
_context.prev = 0;
|
|
44
|
-
_context.next =
|
|
44
|
+
_context.next = 1;
|
|
45
45
|
return collabEditProviderPromise;
|
|
46
|
-
case
|
|
46
|
+
case 1:
|
|
47
47
|
provider = _context.sent;
|
|
48
48
|
if (!provider) {
|
|
49
|
-
_context.next =
|
|
49
|
+
_context.next = 2;
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
return _context.abrupt("return", codeToExecute(provider));
|
|
53
|
-
case
|
|
54
|
-
_context.next =
|
|
53
|
+
case 2:
|
|
54
|
+
_context.next = 4;
|
|
55
55
|
break;
|
|
56
|
-
case
|
|
57
|
-
_context.prev =
|
|
58
|
-
|
|
56
|
+
case 3:
|
|
57
|
+
_context.prev = 3;
|
|
58
|
+
_t = _context["catch"](0);
|
|
59
59
|
if (onError) {
|
|
60
|
-
onError(
|
|
60
|
+
onError(_t);
|
|
61
61
|
} else {
|
|
62
62
|
// eslint-disable-next-line no-console
|
|
63
|
-
console.error(
|
|
63
|
+
console.error(_t);
|
|
64
64
|
}
|
|
65
|
-
case
|
|
65
|
+
case 4:
|
|
66
66
|
case "end":
|
|
67
67
|
return _context.stop();
|
|
68
68
|
}
|
|
69
|
-
}, _callee, null, [[0,
|
|
69
|
+
}, _callee, null, [[0, 3]]);
|
|
70
70
|
}));
|
|
71
71
|
return function (_x, _x2) {
|
|
72
72
|
return _ref.apply(this, arguments);
|
|
@@ -29,37 +29,37 @@ import { getAvatarColor } from './pm-plugins/utils';
|
|
|
29
29
|
var providerBuilder = function providerBuilder(collabEditProviderPromise) {
|
|
30
30
|
return /*#__PURE__*/function () {
|
|
31
31
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(codeToExecute, onError) {
|
|
32
|
-
var provider;
|
|
33
|
-
return _regeneratorRuntime.wrap(function
|
|
32
|
+
var provider, _t;
|
|
33
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
34
34
|
while (1) switch (_context.prev = _context.next) {
|
|
35
35
|
case 0:
|
|
36
36
|
_context.prev = 0;
|
|
37
|
-
_context.next =
|
|
37
|
+
_context.next = 1;
|
|
38
38
|
return collabEditProviderPromise;
|
|
39
|
-
case
|
|
39
|
+
case 1:
|
|
40
40
|
provider = _context.sent;
|
|
41
41
|
if (!provider) {
|
|
42
|
-
_context.next =
|
|
42
|
+
_context.next = 2;
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
return _context.abrupt("return", codeToExecute(provider));
|
|
46
|
-
case
|
|
47
|
-
_context.next =
|
|
46
|
+
case 2:
|
|
47
|
+
_context.next = 4;
|
|
48
48
|
break;
|
|
49
|
-
case
|
|
50
|
-
_context.prev =
|
|
51
|
-
|
|
49
|
+
case 3:
|
|
50
|
+
_context.prev = 3;
|
|
51
|
+
_t = _context["catch"](0);
|
|
52
52
|
if (onError) {
|
|
53
|
-
onError(
|
|
53
|
+
onError(_t);
|
|
54
54
|
} else {
|
|
55
55
|
// eslint-disable-next-line no-console
|
|
56
|
-
console.error(
|
|
56
|
+
console.error(_t);
|
|
57
57
|
}
|
|
58
|
-
case
|
|
58
|
+
case 4:
|
|
59
59
|
case "end":
|
|
60
60
|
return _context.stop();
|
|
61
61
|
}
|
|
62
|
-
}, _callee, null, [[0,
|
|
62
|
+
}, _callee, null, [[0, 3]]);
|
|
63
63
|
}));
|
|
64
64
|
return function (_x, _x2) {
|
|
65
65
|
return _ref.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.6",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,9 +27,9 @@
|
|
|
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/custom-steps": "^0.17.0",
|
|
32
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
32
|
+
"@atlaskit/editor-json-transformer": "^8.33.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.1.0",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@atlaskit/frontend-utilities": "^3.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
-
"@atlaskit/tokens": "^13.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^86.0.0",
|
|
43
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"memoize-one": "^6.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^114.
|
|
48
|
+
"@atlaskit/editor-common": "^114.54.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0"
|
|
51
51
|
},
|