@atlaskit/collab-provider 37.0.0 → 37.0.1
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 +8 -0
- package/dist/cjs/channel.js +4 -4
- package/dist/cjs/errors/error-code-mapper.js +6 -13
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/channel.js +1 -1
- package/dist/es2019/errors/error-code-mapper.js +6 -13
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/channel.js +1 -1
- package/dist/esm/errors/error-code-mapper.js +6 -13
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 37.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5895fa49941d0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5895fa49941d0) -
|
|
8
|
+
Remove the platform_editor_blocked_document_ux gate so blocked documents always emit the
|
|
9
|
+
non-recoverable DOCUMENT_BLOCKED error.
|
|
10
|
+
|
|
3
11
|
## 37.0.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/channel.js
CHANGED
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _bindEventListener = require("bind-event-listener");
|
|
17
|
-
var
|
|
17
|
+
var _constants = require("@atlaskit/util-service-support/constants");
|
|
18
18
|
var _performance = require("./analytics/performance");
|
|
19
19
|
var _ufo = require("./analytics/ufo");
|
|
20
20
|
var _network = _interopRequireDefault(require("./connectivity/network"));
|
|
@@ -243,7 +243,7 @@ var Channel = exports.Channel = /*#__PURE__*/function (_Emitter) {
|
|
|
243
243
|
while (1) switch (_context2.prev = _context2.next) {
|
|
244
244
|
case 0:
|
|
245
245
|
_context2.prev = 0;
|
|
246
|
-
_t4 =
|
|
246
|
+
_t4 = _constants.utils;
|
|
247
247
|
_t5 = _this.config;
|
|
248
248
|
_t6 = "document/".concat(encodeURIComponent(_this.config.documentAri), "/catchupv2");
|
|
249
249
|
_t7 = {
|
|
@@ -324,7 +324,7 @@ var Channel = exports.Channel = /*#__PURE__*/function (_Emitter) {
|
|
|
324
324
|
reason: reason
|
|
325
325
|
}); // Ignored via go/ees005
|
|
326
326
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
327
|
-
_t1 =
|
|
327
|
+
_t1 = _constants.utils;
|
|
328
328
|
_t10 = _this.config;
|
|
329
329
|
_t11 = "document/".concat(encodeURIComponent(_this.config.documentAri), "/reconcile");
|
|
330
330
|
_t12 = _objectSpread;
|
|
@@ -383,7 +383,7 @@ var Channel = exports.Channel = /*#__PURE__*/function (_Emitter) {
|
|
|
383
383
|
productId: 'ccollab',
|
|
384
384
|
reason: reason
|
|
385
385
|
});
|
|
386
|
-
_t19 =
|
|
386
|
+
_t19 = _constants.utils;
|
|
387
387
|
_t20 = _this.config;
|
|
388
388
|
_t21 = "document/".concat(encodeURIComponent(_this.config.documentAri), "/generate-diff-steps");
|
|
389
389
|
_t22 = _objectSpread;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.errorCodeMapper = void 0;
|
|
7
7
|
var _collab = require("@atlaskit/editor-common/collab");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var _internalErrors = require("./internal-errors");
|
|
10
9
|
var _ncsErrors = require("./ncs-errors");
|
|
11
10
|
/*
|
|
@@ -60,18 +59,12 @@ var errorCodeMapper = exports.errorCodeMapper = function errorCodeMapper(error)
|
|
|
60
59
|
recoverable: true
|
|
61
60
|
};
|
|
62
61
|
case _ncsErrors.NCS_ERROR_CODE.ARI_BLACKLISTED:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
message: 'The document is blocked and cannot be edited',
|
|
70
|
-
recoverable: false,
|
|
71
|
-
status: 423
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
return;
|
|
62
|
+
return {
|
|
63
|
+
code: _collab.PROVIDER_ERROR_CODE.DOCUMENT_BLOCKED,
|
|
64
|
+
message: 'The document is blocked and cannot be edited',
|
|
65
|
+
recoverable: false,
|
|
66
|
+
status: 423
|
|
67
|
+
};
|
|
75
68
|
case _ncsErrors.NCS_ERROR_CODE.DYNAMO_ERROR:
|
|
76
69
|
return {
|
|
77
70
|
code: _collab.PROVIDER_ERROR_CODE.FAIL_TO_SAVE,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/collab-provider";
|
|
8
|
-
var version = exports.version = "
|
|
8
|
+
var version = exports.version = "37.0.1";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
package/dist/es2019/channel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
|
-
import { utils } from '@atlaskit/util-service-support';
|
|
3
|
+
import { utils } from '@atlaskit/util-service-support/constants';
|
|
4
4
|
import { MEASURE_NAME, startMeasure, stopMeasure } from './analytics/performance';
|
|
5
5
|
import { createDocInitExp } from './analytics/ufo';
|
|
6
6
|
import Network from './connectivity/network';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PROVIDER_ERROR_CODE } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { INTERNAL_ERROR_CODE } from './internal-errors';
|
|
4
3
|
import { NCS_ERROR_CODE } from './ncs-errors';
|
|
5
4
|
|
|
@@ -55,18 +54,12 @@ export const errorCodeMapper = error => {
|
|
|
55
54
|
recoverable: true
|
|
56
55
|
};
|
|
57
56
|
case NCS_ERROR_CODE.ARI_BLACKLISTED:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
message: 'The document is blocked and cannot be edited',
|
|
65
|
-
recoverable: false,
|
|
66
|
-
status: 423
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
return;
|
|
57
|
+
return {
|
|
58
|
+
code: PROVIDER_ERROR_CODE.DOCUMENT_BLOCKED,
|
|
59
|
+
message: 'The document is blocked and cannot be edited',
|
|
60
|
+
recoverable: false,
|
|
61
|
+
status: 423
|
|
62
|
+
};
|
|
70
63
|
case NCS_ERROR_CODE.DYNAMO_ERROR:
|
|
71
64
|
return {
|
|
72
65
|
code: PROVIDER_ERROR_CODE.FAIL_TO_SAVE,
|
package/dist/esm/channel.js
CHANGED
|
@@ -14,7 +14,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
14
14
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
import { bind } from 'bind-event-listener';
|
|
17
|
-
import { utils } from '@atlaskit/util-service-support';
|
|
17
|
+
import { utils } from '@atlaskit/util-service-support/constants';
|
|
18
18
|
import { MEASURE_NAME, startMeasure, stopMeasure } from './analytics/performance';
|
|
19
19
|
import { createDocInitExp } from './analytics/ufo';
|
|
20
20
|
import Network from './connectivity/network';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PROVIDER_ERROR_CODE } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { INTERNAL_ERROR_CODE } from './internal-errors';
|
|
4
3
|
import { NCS_ERROR_CODE } from './ncs-errors';
|
|
5
4
|
|
|
@@ -55,18 +54,12 @@ export var errorCodeMapper = function errorCodeMapper(error) {
|
|
|
55
54
|
recoverable: true
|
|
56
55
|
};
|
|
57
56
|
case NCS_ERROR_CODE.ARI_BLACKLISTED:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
message: 'The document is blocked and cannot be edited',
|
|
65
|
-
recoverable: false,
|
|
66
|
-
status: 423
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
return;
|
|
57
|
+
return {
|
|
58
|
+
code: PROVIDER_ERROR_CODE.DOCUMENT_BLOCKED,
|
|
59
|
+
message: 'The document is blocked and cannot be edited',
|
|
60
|
+
recoverable: false,
|
|
61
|
+
status: 423
|
|
62
|
+
};
|
|
70
63
|
case NCS_ERROR_CODE.DYNAMO_ERROR:
|
|
71
64
|
return {
|
|
72
65
|
code: PROVIDER_ERROR_CODE.FAIL_TO_SAVE,
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Manager, Socket as SocketIOSocket } from 'socket.io-client';
|
|
2
2
|
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners/types';
|
|
3
|
-
import type { AnonymousAsset } from '@atlaskit/anonymous-assets';
|
|
3
|
+
import type { AnonymousAsset } from '@atlaskit/anonymous-assets/types';
|
|
4
4
|
import type { StepJson, CollabSendableSelection, Metadata, UserPermitType, PresenceActivity, CollabRecoveryRequiredPayload } from '@atlaskit/editor-common/collab';
|
|
5
5
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
6
6
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "37.0.
|
|
3
|
+
"version": "37.0.1",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -69,9 +69,6 @@
|
|
|
69
69
|
},
|
|
70
70
|
"collab_edit_via_websocket_only_for_gcp": {
|
|
71
71
|
"type": "boolean"
|
|
72
|
-
},
|
|
73
|
-
"platform_editor_blocked_document_ux": {
|
|
74
|
-
"type": "boolean"
|
|
75
72
|
}
|
|
76
73
|
},
|
|
77
74
|
"peerDependencies": {
|