@atlaskit/editor-plugin-collab-edit 18.0.6 → 18.0.7
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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 18.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e80305319abbb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e80305319abbb) -
|
|
8
|
+
CCI-19338: Gate Review moment on `platform_editor_ai_streaming_ux_experience_m1` and
|
|
9
|
+
`platform_editor_ai_xstate_migration` only, dropping
|
|
10
|
+
`platform_editor_ai_new_aifc_editor_experience` and its FE/BE params. Optional Review moment
|
|
11
|
+
slices now read prefixed tokens from `platform_editor_ai_streaming_ux_m1_config`.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 18.0.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -159,11 +159,10 @@ var applyRemoteSteps = exports.applyRemoteSteps = function applyRemoteSteps(json
|
|
|
159
159
|
|
|
160
160
|
// Record the agent's edit (original + new slice per change) onto this
|
|
161
161
|
// transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
|
|
162
|
-
//
|
|
163
|
-
// `
|
|
164
|
-
//
|
|
165
|
-
|
|
166
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
|
|
162
|
+
// Same eligibility as FE Review moment: xstate AND the M1 streaming UX
|
|
163
|
+
// experiment. `getAgentEditSegments` self-gates (returns null for non-agent
|
|
164
|
+
// edits, never throws), so this is a no-op for ordinary collaborator edits.
|
|
165
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_ai_xstate_migration', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_streaming_ux_experience_m1')) {
|
|
167
166
|
var reviewData = (0, _agentReviewSegments.getAgentEditSegments)(json, steps, tr, view);
|
|
168
167
|
if (reviewData) {
|
|
169
168
|
tr.setMeta(_collabAgentRemoteEditReview.AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
|
|
@@ -160,11 +160,10 @@ export const applyRemoteSteps = (json, view, userIds, options, editorAnalyticsAp
|
|
|
160
160
|
|
|
161
161
|
// Record the agent's edit (original + new slice per change) onto this
|
|
162
162
|
// transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
|
|
163
|
-
//
|
|
164
|
-
// `
|
|
165
|
-
//
|
|
166
|
-
|
|
167
|
-
if (expValEquals('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
|
|
163
|
+
// Same eligibility as FE Review moment: xstate AND the M1 streaming UX
|
|
164
|
+
// experiment. `getAgentEditSegments` self-gates (returns null for non-agent
|
|
165
|
+
// edits, never throws), so this is a no-op for ordinary collaborator edits.
|
|
166
|
+
if (expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
|
|
168
167
|
const reviewData = getAgentEditSegments(json, steps, tr, view);
|
|
169
168
|
if (reviewData) {
|
|
170
169
|
tr.setMeta(AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
|
|
@@ -152,11 +152,10 @@ export var applyRemoteSteps = function applyRemoteSteps(json, view, userIds, opt
|
|
|
152
152
|
|
|
153
153
|
// Record the agent's edit (original + new slice per change) onto this
|
|
154
154
|
// transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
|
|
155
|
-
//
|
|
156
|
-
// `
|
|
157
|
-
//
|
|
158
|
-
|
|
159
|
-
if (expValEquals('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
|
|
155
|
+
// Same eligibility as FE Review moment: xstate AND the M1 streaming UX
|
|
156
|
+
// experiment. `getAgentEditSegments` self-gates (returns null for non-agent
|
|
157
|
+
// edits, never throws), so this is a no-op for ordinary collaborator edits.
|
|
158
|
+
if (expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
|
|
160
159
|
var reviewData = getAgentEditSegments(json, steps, tr, view);
|
|
161
160
|
if (reviewData) {
|
|
162
161
|
tr.setMeta(AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.7",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"memoize-one": "^6.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^121.
|
|
41
|
+
"@atlaskit/editor-common": "^121.4.0",
|
|
42
42
|
"react": "^18.2.0 || ^19.2.0",
|
|
43
43
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
44
44
|
},
|