@atlaskit/collab-provider 10.11.0 → 10.11.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 +9 -0
- package/dist/cjs/helpers/const.js +22 -1
- package/dist/cjs/provider/commit-step.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/helpers/const.js +22 -1
- package/dist/es2019/provider/commit-step.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/helpers/const.js +22 -1
- package/dist/esm/provider/commit-step.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 10.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135065](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135065)
|
|
8
|
+
[`26470c154bcf0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26470c154bcf0) -
|
|
9
|
+
Update step validation feature gate key
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.11.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -6,27 +6,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EVENT_STATUS = exports.EVENT_ACTION = exports.CatchupEventReason = exports.CONFLUENCE = exports.ADD_STEPS_TYPE = exports.ACK_MAX_TRY = void 0;
|
|
7
7
|
var EVENT_ACTION = exports.EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
|
|
8
8
|
EVENT_ACTION["CONNECTION"] = "connection";
|
|
9
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43970
|
|
9
10
|
EVENT_ACTION["CATCHUP"] = "catchup";
|
|
11
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/44016
|
|
10
12
|
EVENT_ACTION["DOCUMENT_INIT"] = "documentInit";
|
|
13
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43971
|
|
11
14
|
EVENT_ACTION["ADD_STEPS"] = "addSteps";
|
|
15
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43972
|
|
12
16
|
EVENT_ACTION["UPDATE_PARTICIPANTS"] = "updateParticipants";
|
|
17
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/45634
|
|
13
18
|
EVENT_ACTION["UPDATE_DOCUMENT"] = "updateDocument";
|
|
19
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/58213
|
|
14
20
|
EVENT_ACTION["COMMIT_UNCONFIRMED_STEPS"] = "commitUnconfirmedSteps";
|
|
21
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/46501
|
|
15
22
|
EVENT_ACTION["REINITIALISE_DOCUMENT"] = "reinitialiseDocument";
|
|
23
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50231
|
|
16
24
|
EVENT_ACTION["ERROR"] = "error";
|
|
25
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/51790
|
|
17
26
|
EVENT_ACTION["PUBLISH_PAGE"] = "publishPage";
|
|
27
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50235
|
|
18
28
|
EVENT_ACTION["GET_CURRENT_STATE"] = "getCurrentState";
|
|
29
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50783
|
|
19
30
|
EVENT_ACTION["INVALIDATE_TOKEN"] = "invalidateToken";
|
|
31
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50444
|
|
20
32
|
EVENT_ACTION["SEND_STEPS_RETRY"] = "sendStepsRetry";
|
|
33
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53598
|
|
21
34
|
EVENT_ACTION["CATCHUP_AFTER_MAX_SEND_STEPS_RETRY"] = "catchupAfterMaxSendStepsRetry";
|
|
35
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53723
|
|
22
36
|
EVENT_ACTION["DROPPED_STEPS"] = "droppedStepInCatchup";
|
|
37
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53724
|
|
23
38
|
EVENT_ACTION["WEBSOCKET_MESSAGE_VOLUME_METRIC"] = "websocketMessageVolumeMetric";
|
|
39
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53596
|
|
24
40
|
EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
|
|
41
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54714
|
|
25
42
|
EVENT_ACTION["RECONNECTION"] = "providerReconnection";
|
|
43
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/73992
|
|
26
44
|
EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
|
|
45
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54715
|
|
27
46
|
EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
|
|
47
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/56141
|
|
28
48
|
EVENT_ACTION["OUT_OF_SYNC"] = "outOfSync";
|
|
29
|
-
|
|
49
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/74993
|
|
50
|
+
EVENT_ACTION["STEPS_REBASED"] = "stepsRebased"; // https://data-portal.internal.atlassian.com/analytics/registry/76616
|
|
30
51
|
return EVENT_ACTION;
|
|
31
52
|
}({});
|
|
32
53
|
var EVENT_STATUS = exports.EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
|
|
@@ -105,7 +105,7 @@ var commitStepQueue = exports.commitStepQueue = function commitStepQueue(_ref) {
|
|
|
105
105
|
});
|
|
106
106
|
try {
|
|
107
107
|
var _FeatureGates$getExpe;
|
|
108
|
-
var n = (_FeatureGates$getExpe = _featureGateJsClient.default.getExperimentValue('
|
|
108
|
+
var n = (_FeatureGates$getExpe = _featureGateJsClient.default.getExperimentValue('platform_editor_step_validation_on_connect', 'steps', 0)) !== null && _FeatureGates$getExpe !== void 0 ? _FeatureGates$getExpe : 0;
|
|
109
109
|
var isExperimentEnabled = n > 0;
|
|
110
110
|
// skip validation if FG is on and we have already sent n steps, or if FG is off
|
|
111
111
|
var skipValidation = isExperimentEnabled ? numberOfStepCommitsSent >= n : true;
|
|
@@ -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 = "10.11.
|
|
8
|
+
var version = exports.version = "10.11.1";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
export let EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
|
|
2
2
|
EVENT_ACTION["CONNECTION"] = "connection";
|
|
3
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43970
|
|
3
4
|
EVENT_ACTION["CATCHUP"] = "catchup";
|
|
5
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/44016
|
|
4
6
|
EVENT_ACTION["DOCUMENT_INIT"] = "documentInit";
|
|
7
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43971
|
|
5
8
|
EVENT_ACTION["ADD_STEPS"] = "addSteps";
|
|
9
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43972
|
|
6
10
|
EVENT_ACTION["UPDATE_PARTICIPANTS"] = "updateParticipants";
|
|
11
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/45634
|
|
7
12
|
EVENT_ACTION["UPDATE_DOCUMENT"] = "updateDocument";
|
|
13
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/58213
|
|
8
14
|
EVENT_ACTION["COMMIT_UNCONFIRMED_STEPS"] = "commitUnconfirmedSteps";
|
|
15
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/46501
|
|
9
16
|
EVENT_ACTION["REINITIALISE_DOCUMENT"] = "reinitialiseDocument";
|
|
17
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50231
|
|
10
18
|
EVENT_ACTION["ERROR"] = "error";
|
|
19
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/51790
|
|
11
20
|
EVENT_ACTION["PUBLISH_PAGE"] = "publishPage";
|
|
21
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50235
|
|
12
22
|
EVENT_ACTION["GET_CURRENT_STATE"] = "getCurrentState";
|
|
23
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50783
|
|
13
24
|
EVENT_ACTION["INVALIDATE_TOKEN"] = "invalidateToken";
|
|
25
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50444
|
|
14
26
|
EVENT_ACTION["SEND_STEPS_RETRY"] = "sendStepsRetry";
|
|
27
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53598
|
|
15
28
|
EVENT_ACTION["CATCHUP_AFTER_MAX_SEND_STEPS_RETRY"] = "catchupAfterMaxSendStepsRetry";
|
|
29
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53723
|
|
16
30
|
EVENT_ACTION["DROPPED_STEPS"] = "droppedStepInCatchup";
|
|
31
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53724
|
|
17
32
|
EVENT_ACTION["WEBSOCKET_MESSAGE_VOLUME_METRIC"] = "websocketMessageVolumeMetric";
|
|
33
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53596
|
|
18
34
|
EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
|
|
35
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54714
|
|
19
36
|
EVENT_ACTION["RECONNECTION"] = "providerReconnection";
|
|
37
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/73992
|
|
20
38
|
EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
|
|
39
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54715
|
|
21
40
|
EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
|
|
41
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/56141
|
|
22
42
|
EVENT_ACTION["OUT_OF_SYNC"] = "outOfSync";
|
|
23
|
-
|
|
43
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/74993
|
|
44
|
+
EVENT_ACTION["STEPS_REBASED"] = "stepsRebased"; // https://data-portal.internal.atlassian.com/analytics/registry/76616
|
|
24
45
|
return EVENT_ACTION;
|
|
25
46
|
}({});
|
|
26
47
|
export let EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
|
|
@@ -97,7 +97,7 @@ export const commitStepQueue = ({
|
|
|
97
97
|
});
|
|
98
98
|
try {
|
|
99
99
|
var _FeatureGates$getExpe;
|
|
100
|
-
const n = (_FeatureGates$getExpe = FeatureGates.getExperimentValue('
|
|
100
|
+
const n = (_FeatureGates$getExpe = FeatureGates.getExperimentValue('platform_editor_step_validation_on_connect', 'steps', 0)) !== null && _FeatureGates$getExpe !== void 0 ? _FeatureGates$getExpe : 0;
|
|
101
101
|
const isExperimentEnabled = n > 0;
|
|
102
102
|
// skip validation if FG is on and we have already sent n steps, or if FG is off
|
|
103
103
|
const skipValidation = isExperimentEnabled ? numberOfStepCommitsSent >= n : true;
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
export var EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
|
|
2
2
|
EVENT_ACTION["CONNECTION"] = "connection";
|
|
3
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43970
|
|
3
4
|
EVENT_ACTION["CATCHUP"] = "catchup";
|
|
5
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/44016
|
|
4
6
|
EVENT_ACTION["DOCUMENT_INIT"] = "documentInit";
|
|
7
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43971
|
|
5
8
|
EVENT_ACTION["ADD_STEPS"] = "addSteps";
|
|
9
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/43972
|
|
6
10
|
EVENT_ACTION["UPDATE_PARTICIPANTS"] = "updateParticipants";
|
|
11
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/45634
|
|
7
12
|
EVENT_ACTION["UPDATE_DOCUMENT"] = "updateDocument";
|
|
13
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/58213
|
|
8
14
|
EVENT_ACTION["COMMIT_UNCONFIRMED_STEPS"] = "commitUnconfirmedSteps";
|
|
15
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/46501
|
|
9
16
|
EVENT_ACTION["REINITIALISE_DOCUMENT"] = "reinitialiseDocument";
|
|
17
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50231
|
|
10
18
|
EVENT_ACTION["ERROR"] = "error";
|
|
19
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/51790
|
|
11
20
|
EVENT_ACTION["PUBLISH_PAGE"] = "publishPage";
|
|
21
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50235
|
|
12
22
|
EVENT_ACTION["GET_CURRENT_STATE"] = "getCurrentState";
|
|
23
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50783
|
|
13
24
|
EVENT_ACTION["INVALIDATE_TOKEN"] = "invalidateToken";
|
|
25
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/50444
|
|
14
26
|
EVENT_ACTION["SEND_STEPS_RETRY"] = "sendStepsRetry";
|
|
27
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53598
|
|
15
28
|
EVENT_ACTION["CATCHUP_AFTER_MAX_SEND_STEPS_RETRY"] = "catchupAfterMaxSendStepsRetry";
|
|
29
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53723
|
|
16
30
|
EVENT_ACTION["DROPPED_STEPS"] = "droppedStepInCatchup";
|
|
31
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53724
|
|
17
32
|
EVENT_ACTION["WEBSOCKET_MESSAGE_VOLUME_METRIC"] = "websocketMessageVolumeMetric";
|
|
33
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/53596
|
|
18
34
|
EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
|
|
35
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54714
|
|
19
36
|
EVENT_ACTION["RECONNECTION"] = "providerReconnection";
|
|
37
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/73992
|
|
20
38
|
EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
|
|
39
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/54715
|
|
21
40
|
EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
|
|
41
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/56141
|
|
22
42
|
EVENT_ACTION["OUT_OF_SYNC"] = "outOfSync";
|
|
23
|
-
|
|
43
|
+
// https://data-portal.internal.atlassian.com/analytics/registry/74993
|
|
44
|
+
EVENT_ACTION["STEPS_REBASED"] = "stepsRebased"; // https://data-portal.internal.atlassian.com/analytics/registry/76616
|
|
24
45
|
return EVENT_ACTION;
|
|
25
46
|
}({});
|
|
26
47
|
export var EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
|
|
@@ -98,7 +98,7 @@ export var commitStepQueue = function commitStepQueue(_ref) {
|
|
|
98
98
|
});
|
|
99
99
|
try {
|
|
100
100
|
var _FeatureGates$getExpe;
|
|
101
|
-
var n = (_FeatureGates$getExpe = FeatureGates.getExperimentValue('
|
|
101
|
+
var n = (_FeatureGates$getExpe = FeatureGates.getExperimentValue('platform_editor_step_validation_on_connect', 'steps', 0)) !== null && _FeatureGates$getExpe !== void 0 ? _FeatureGates$getExpe : 0;
|
|
102
102
|
var isExperimentEnabled = n > 0;
|
|
103
103
|
// skip validation if FG is on and we have already sent n steps, or if FG is off
|
|
104
104
|
var skipValidation = isExperimentEnabled ? numberOfStepCommitsSent >= n : true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "10.11.
|
|
3
|
+
"version": "10.11.1",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/adf-utils": "^19.19.0",
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^102.
|
|
38
|
+
"@atlaskit/editor-common": "^102.16.0",
|
|
39
39
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.0.0",
|