@atlaskit/collab-provider 15.3.18 → 15.3.20
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 +14 -0
- package/dist/cjs/provider/index.js +3 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/provider/index.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/provider/index.js +3 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 15.3.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4446a5fc716d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4446a5fc716d9) -
|
|
8
|
+
[ux] proactively catch up on ncs connected
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 15.3.19
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.3.18
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -153,6 +153,9 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
153
153
|
offlineReplaceStepsLength: (0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true) ? (0, _getOfflineStepsLength.getOfflineReplaceStepsLength)(_this.documentService.getUnconfirmedSteps(), _this.documentService.getUnconfirmedStepsOrigins()) : undefined,
|
|
154
154
|
unconfirmedStepsLength: unconfirmedStepsLength
|
|
155
155
|
}, _this.sessionId);
|
|
156
|
+
} else if ((0, _expValEquals.expValEquals)('platform_editor_early_exit_return_draft', 'isEnabled', true)) {
|
|
157
|
+
// need to the proactively catch up because CollabDraftQuery would return confluence draft which could be lacking behind the latest document state in NCS, and without this, the editor would be initialized with an outdated draft
|
|
158
|
+
_this.documentService.throttledCatchupv2(_const.CatchupEventReason.PROCESS_STEPS);
|
|
156
159
|
}
|
|
157
160
|
_this.participantsService.startInactiveRemover(_this.sessionId);
|
|
158
161
|
if (_this.config.batchProps) {
|
|
@@ -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 = "15.3.
|
|
8
|
+
var version = exports.version = "15.3.19";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -133,6 +133,9 @@ export class Provider extends Emitter {
|
|
|
133
133
|
offlineReplaceStepsLength: editorExperiment('platform_editor_offline_editing_web', true) ? getOfflineReplaceStepsLength(this.documentService.getUnconfirmedSteps(), this.documentService.getUnconfirmedStepsOrigins()) : undefined,
|
|
134
134
|
unconfirmedStepsLength: unconfirmedStepsLength
|
|
135
135
|
}, this.sessionId);
|
|
136
|
+
} else if (expValEquals('platform_editor_early_exit_return_draft', 'isEnabled', true)) {
|
|
137
|
+
// need to the proactively catch up because CollabDraftQuery would return confluence draft which could be lacking behind the latest document state in NCS, and without this, the editor would be initialized with an outdated draft
|
|
138
|
+
this.documentService.throttledCatchupv2(CatchupEventReason.PROCESS_STEPS);
|
|
136
139
|
}
|
|
137
140
|
this.participantsService.startInactiveRemover(this.sessionId);
|
|
138
141
|
if (this.config.batchProps) {
|
|
@@ -147,6 +147,9 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
147
147
|
offlineReplaceStepsLength: editorExperiment('platform_editor_offline_editing_web', true) ? getOfflineReplaceStepsLength(_this.documentService.getUnconfirmedSteps(), _this.documentService.getUnconfirmedStepsOrigins()) : undefined,
|
|
148
148
|
unconfirmedStepsLength: unconfirmedStepsLength
|
|
149
149
|
}, _this.sessionId);
|
|
150
|
+
} else if (expValEquals('platform_editor_early_exit_return_draft', 'isEnabled', true)) {
|
|
151
|
+
// need to the proactively catch up because CollabDraftQuery would return confluence draft which could be lacking behind the latest document state in NCS, and without this, the editor would be initialized with an outdated draft
|
|
152
|
+
_this.documentService.throttledCatchupv2(CatchupEventReason.PROCESS_STEPS);
|
|
150
153
|
}
|
|
151
154
|
_this.participantsService.startInactiveRemover(_this.sessionId);
|
|
152
155
|
if (_this.config.batchProps) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.20",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
39
|
-
"@atlaskit/react-ufo": "^5.
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
+
"@atlaskit/react-ufo": "^5.4.0",
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^32.3.0",
|
|
41
41
|
"@atlaskit/ufo": "^0.4.0",
|
|
42
42
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@atlaskit/adf-schema": "^
|
|
66
|
+
"@atlaskit/adf-schema": "^52.1.0",
|
|
67
67
|
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
68
68
|
"@atlassian/feature-flags-test-utils": "^1.0.0"
|
|
69
69
|
},
|