@atlaskit/collab-provider 15.3.19 → 15.3.21

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
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 15.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.3.20
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4446a5fc716d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4446a5fc716d9) -
14
+ [ux] proactively catch up on ncs connected
15
+ - Updated dependencies
16
+
3
17
  ## 15.3.19
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) {
@@ -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.19",
3
+ "version": "15.3.21",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
38
  "@atlaskit/prosemirror-collab": "^0.22.0",
39
39
  "@atlaskit/react-ufo": "^5.4.0",
40
- "@atlaskit/tmp-editor-statsig": "^32.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^33.0.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,8 +63,8 @@
63
63
  }
64
64
  },
65
65
  "devDependencies": {
66
- "@atlaskit/adf-schema": "^52.0.0",
67
- "@atlassian/a11y-jest-testing": "^0.10.0",
66
+ "@atlaskit/adf-schema": "^52.2.0",
67
+ "@atlassian/a11y-jest-testing": "^0.11.0",
68
68
  "@atlassian/feature-flags-test-utils": "^1.0.0"
69
69
  },
70
70
  "platform-feature-flags": {
@@ -73,6 +73,6 @@
73
73
  }
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^111.20.0"
76
+ "@atlaskit/editor-common": "^111.26.0"
77
77
  }
78
78
  }