@atlaskit/editor-plugin-collab-edit 23.0.2 → 23.0.3
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 23.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b1c4e6a33dbb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1c4e6a33dbb7) -
|
|
8
|
+
Clean up feature gate `platform_editor_agent_be_review_undo`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 23.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
15
15
|
var _transformOverride = require("@atlaskit/editor-prosemirror/transform-override");
|
|
16
16
|
var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
|
|
17
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _analytics = require("./analytics");
|
|
@@ -89,7 +88,7 @@ var applyRemoteSteps = exports.applyRemoteSteps = function applyRemoteSteps(json
|
|
|
89
88
|
});
|
|
90
89
|
}
|
|
91
90
|
if (tr) {
|
|
92
|
-
var agentEditRequester = (0,
|
|
91
|
+
var agentEditRequester = (0, _agentEditRequester.getAgentEditRequester)(json, view);
|
|
93
92
|
var shouldRecordAgentEditInHistory = (agentEditRequester === null || agentEditRequester === void 0 ? void 0 : agentEditRequester.isLocalUserRequester) === true;
|
|
94
93
|
tr.setMeta('addToHistory', shouldRecordAgentEditInHistory);
|
|
95
94
|
tr.setMeta('isRemote', true);
|
|
@@ -10,7 +10,6 @@ import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state'
|
|
|
10
10
|
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
11
11
|
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
13
|
import { receiveTransaction, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
15
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
15
|
import { getAgentEditShimmerNotShownPayload } from './analytics';
|
|
@@ -92,7 +91,7 @@ export const applyRemoteSteps = (json, view, userIds, options, editorAnalyticsAp
|
|
|
92
91
|
steps.forEach(step => tr.step(step));
|
|
93
92
|
}
|
|
94
93
|
if (tr) {
|
|
95
|
-
const agentEditRequester =
|
|
94
|
+
const agentEditRequester = getAgentEditRequester(json, view);
|
|
96
95
|
const shouldRecordAgentEditInHistory = (agentEditRequester === null || agentEditRequester === void 0 ? void 0 : agentEditRequester.isLocalUserRequester) === true;
|
|
97
96
|
tr.setMeta('addToHistory', shouldRecordAgentEditInHistory);
|
|
98
97
|
tr.setMeta('isRemote', true);
|
|
@@ -13,7 +13,6 @@ import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state'
|
|
|
13
13
|
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
14
14
|
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
16
|
import { receiveTransaction, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
18
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
18
|
import { getAgentEditShimmerNotShownPayload } from './analytics';
|
|
@@ -82,7 +81,7 @@ export var applyRemoteSteps = function applyRemoteSteps(json, view, userIds, opt
|
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
83
|
if (tr) {
|
|
85
|
-
var agentEditRequester =
|
|
84
|
+
var agentEditRequester = getAgentEditRequester(json, view);
|
|
86
85
|
var shouldRecordAgentEditInHistory = (agentEditRequester === null || agentEditRequester === void 0 ? void 0 : agentEditRequester.isLocalUserRequester) === true;
|
|
87
86
|
tr.setMeta('addToHistory', shouldRecordAgentEditInHistory);
|
|
88
87
|
tr.setMeta('isRemote', true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.3",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
33
33
|
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^212.0.0",
|
|
35
35
|
"@atlaskit/tokens": "^20.1.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"memoize-one": "^6.0.0"
|
|
@@ -56,9 +56,6 @@
|
|
|
56
56
|
"type": "boolean",
|
|
57
57
|
"referenceOnly": true
|
|
58
58
|
},
|
|
59
|
-
"platform_editor_agent_be_review_undo": {
|
|
60
|
-
"type": "boolean"
|
|
61
|
-
},
|
|
62
59
|
"platform_editor_collab_organic_change_reporting": {
|
|
63
60
|
"type": "boolean"
|
|
64
61
|
}
|