@atlaskit/editor-plugin-collab-edit 16.0.11 → 16.0.12

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,15 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 16.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5b8cbd160862d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5b8cbd160862d) -
8
+ Gate the backend Review moment on the `isBackendReviewMomentEnabled` param of
9
+ `platform_editor_ai_new_aifc_editor_experience` instead of the
10
+ `platform_editor_agent_be_streaming` gate.
11
+ - Updated dependencies
12
+
3
13
  ## 16.0.11
4
14
 
5
15
  ### Patch Changes
@@ -118,15 +118,13 @@ var applyRemoteSteps = exports.applyRemoteSteps = function applyRemoteSteps(json
118
118
  }
119
119
  }
120
120
 
121
- // [CCI-17994] Post Stream Review ("Review moment") for BE streaming. Record what
122
- // the agent just wrote (original + new slice per contiguous change) onto this same
123
- // transaction. `editor-plugin-ai` consumes this neutral meta to populate
124
- // `aiContentPositions` and — only on the requester's client — open the Review
125
- // moment once the edit settles. Gated on `platform_editor_agent_be_streaming`
126
- // alongside shimmer; `getAgentEditSegments` also self-gates by returning null
127
- // unless the batch contains agent-authored steps (and never throws), so this is
128
- // a no-op for ordinary collaborator edits and can't affect step application.
129
- if ((0, _expValEquals.expValEquals)('platform_editor_agent_be_streaming', 'isEnabled', true)) {
121
+ // Record the agent's edit (original + new slice per change) onto this
122
+ // transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
123
+ // Gated by the `isBackendReviewMomentEnabled` param on
124
+ // `platform_editor_ai_new_aifc_editor_experience` (mirrors `isFrontendReviewMomentEnabled`).
125
+ // `getAgentEditSegments` self-gates (returns null for non-agent edits, never throws),
126
+ // so this is a no-op for ordinary collaborator edits.
127
+ if ((0, _expValEquals.expValEquals)('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
130
128
  var reviewData = (0, _agentReviewSegments.getAgentEditSegments)(json, steps, tr, view);
131
129
  if (reviewData) {
132
130
  tr.setMeta(_collabAgentRemoteEditReview.AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
@@ -120,15 +120,13 @@ export const applyRemoteSteps = (json, view, userIds, options, editorAnalyticsAp
120
120
  }
121
121
  }
122
122
 
123
- // [CCI-17994] Post Stream Review ("Review moment") for BE streaming. Record what
124
- // the agent just wrote (original + new slice per contiguous change) onto this same
125
- // transaction. `editor-plugin-ai` consumes this neutral meta to populate
126
- // `aiContentPositions` and — only on the requester's client — open the Review
127
- // moment once the edit settles. Gated on `platform_editor_agent_be_streaming`
128
- // alongside shimmer; `getAgentEditSegments` also self-gates by returning null
129
- // unless the batch contains agent-authored steps (and never throws), so this is
130
- // a no-op for ordinary collaborator edits and can't affect step application.
131
- if (expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true)) {
123
+ // Record the agent's edit (original + new slice per change) onto this
124
+ // transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
125
+ // Gated by the `isBackendReviewMomentEnabled` param on
126
+ // `platform_editor_ai_new_aifc_editor_experience` (mirrors `isFrontendReviewMomentEnabled`).
127
+ // `getAgentEditSegments` self-gates (returns null for non-agent edits, never throws),
128
+ // so this is a no-op for ordinary collaborator edits.
129
+ if (expValEquals('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
132
130
  const reviewData = getAgentEditSegments(json, steps, tr, view);
133
131
  if (reviewData) {
134
132
  tr.setMeta(AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
@@ -109,15 +109,13 @@ export var applyRemoteSteps = function applyRemoteSteps(json, view, userIds, opt
109
109
  }
110
110
  }
111
111
 
112
- // [CCI-17994] Post Stream Review ("Review moment") for BE streaming. Record what
113
- // the agent just wrote (original + new slice per contiguous change) onto this same
114
- // transaction. `editor-plugin-ai` consumes this neutral meta to populate
115
- // `aiContentPositions` and — only on the requester's client — open the Review
116
- // moment once the edit settles. Gated on `platform_editor_agent_be_streaming`
117
- // alongside shimmer; `getAgentEditSegments` also self-gates by returning null
118
- // unless the batch contains agent-authored steps (and never throws), so this is
119
- // a no-op for ordinary collaborator edits and can't affect step application.
120
- if (expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true)) {
112
+ // Record the agent's edit (original + new slice per change) onto this
113
+ // transaction; `editor-plugin-ai` consumes the meta to open the BE Review moment.
114
+ // Gated by the `isBackendReviewMomentEnabled` param on
115
+ // `platform_editor_ai_new_aifc_editor_experience` (mirrors `isFrontendReviewMomentEnabled`).
116
+ // `getAgentEditSegments` self-gates (returns null for non-agent edits, never throws),
117
+ // so this is a no-op for ordinary collaborator edits.
118
+ if (expValEquals('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true)) {
121
119
  var reviewData = getAgentEditSegments(json, steps, tr, view);
122
120
  if (reviewData) {
123
121
  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": "16.0.11",
3
+ "version": "16.0.12",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@atlaskit/adf-schema": "^57.0.0",
23
23
  "@atlaskit/custom-steps": "^1.0.0",
24
- "@atlaskit/editor-json-transformer": "^9.5.0",
24
+ "@atlaskit/editor-json-transformer": "^9.6.0",
25
25
  "@atlaskit/editor-plugin-analytics": "^15.0.0",
26
26
  "@atlaskit/editor-plugin-connectivity": "^15.0.0",
27
27
  "@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
@@ -38,7 +38,7 @@
38
38
  "memoize-one": "^6.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@atlaskit/editor-common": "^119.12.0",
41
+ "@atlaskit/editor-common": "^119.13.0",
42
42
  "react": "^18.2.0 || ^19.2.0",
43
43
  "react-dom": "^18.2.0 || ^19.2.0"
44
44
  },