@atlaskit/editor-plugin-collab-edit 28.0.5 → 29.0.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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 29.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 29.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0f0ca74ca517a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f0ca74ca517a) -
14
+ Add the `@atlaskit/editor-common/ai-xstate-migration` (`isAiXstateMigrationEnabled`) and
15
+ `@atlaskit/editor-common/ai-xstate-migration-no-exposure` (`isAiXstateMigrationEnabledNoExposure`)
16
+ entrypoints, which enable the AI xstate migration when either the Confluence
17
+ (`platform_editor_ai_xstate_migration`) or Jira (`platform_editor_ai_xstate_migration_jira`, a
18
+ platform feature experiment) experiment is on. Use the helper wherever the xstate migration is
19
+ checked.
20
+ - Updated dependencies
21
+
3
22
  ## 28.0.5
4
23
 
5
24
  ### Patch Changes
@@ -9,6 +9,7 @@ exports.registerAllCustomSteps = exports.handleTelePointer = exports.handlePrese
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var allAdfSchemaSteps = _interopRequireWildcard(require("@atlaskit/adf-schema/steps"));
11
11
  var allAtlaskitCustomSteps = _interopRequireWildcard(require("@atlaskit/custom-steps"));
12
+ var _aiXstateMigration = require("@atlaskit/editor-common/ai-xstate-migration");
12
13
  var _collabAgentEditChrome = require("@atlaskit/editor-common/collab-agent-edit-chrome");
13
14
  var _collabAgentRemoteEditReview = require("@atlaskit/editor-common/collab-agent-remote-edit-review");
14
15
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -165,7 +166,7 @@ var applyRemoteSteps = exports.applyRemoteSteps = function applyRemoteSteps(json
165
166
  // Same eligibility as FE Review moment: xstate AND the M1 streaming UX
166
167
  // experiment. `getAgentEditSegments` self-gates (returns null for non-agent
167
168
  // edits, never throws), so this is a no-op for ordinary collaborator edits.
168
- if ((0, _expValEquals.expValEquals)('platform_editor_ai_xstate_migration', 'isEnabled', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_streaming_ux_experience_m1')) {
169
+ if ((0, _aiXstateMigration.isAiXstateMigrationEnabled)() && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_streaming_ux_experience_m1')) {
169
170
  var reviewData = (0, _agentReviewSegments.getAgentEditSegments)(json, steps, tr, view);
170
171
  if (reviewData) {
171
172
  tr.setMeta(_collabAgentRemoteEditReview.AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
@@ -4,6 +4,7 @@ import * as allAdfSchemaSteps from '@atlaskit/adf-schema/steps';
4
4
  // Ignored via go/ees005
5
5
  // eslint-disable-next-line import/no-namespace
6
6
  import * as allAtlaskitCustomSteps from '@atlaskit/custom-steps';
7
+ import { isAiXstateMigrationEnabled } from '@atlaskit/editor-common/ai-xstate-migration';
7
8
  import { AGENT_EDIT_CHROME_DATA, getAgentEditChromeDynamicConfig } from '@atlaskit/editor-common/collab-agent-edit-chrome';
8
9
  import { AGENT_REMOTE_EDIT_REVIEW_DATA } from '@atlaskit/editor-common/collab-agent-remote-edit-review';
9
10
  import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
@@ -167,7 +168,7 @@ export const applyRemoteSteps = (json, view, userIds, options, editorAnalyticsAp
167
168
  // Same eligibility as FE Review moment: xstate AND the M1 streaming UX
168
169
  // experiment. `getAgentEditSegments` self-gates (returns null for non-agent
169
170
  // edits, never throws), so this is a no-op for ordinary collaborator edits.
170
- if (expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
171
+ if (isAiXstateMigrationEnabled() && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
171
172
  const reviewData = getAgentEditSegments(json, steps, tr, view);
172
173
  if (reviewData) {
173
174
  tr.setMeta(AGENT_REMOTE_EDIT_REVIEW_DATA, reviewData);
@@ -7,6 +7,7 @@ import * as allAdfSchemaSteps from '@atlaskit/adf-schema/steps';
7
7
  // Ignored via go/ees005
8
8
  // eslint-disable-next-line import/no-namespace
9
9
  import * as allAtlaskitCustomSteps from '@atlaskit/custom-steps';
10
+ import { isAiXstateMigrationEnabled } from '@atlaskit/editor-common/ai-xstate-migration';
10
11
  import { AGENT_EDIT_CHROME_DATA, getAgentEditChromeDynamicConfig } from '@atlaskit/editor-common/collab-agent-edit-chrome';
11
12
  import { AGENT_REMOTE_EDIT_REVIEW_DATA } from '@atlaskit/editor-common/collab-agent-remote-edit-review';
12
13
  import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
@@ -158,7 +159,7 @@ export var applyRemoteSteps = function applyRemoteSteps(json, view, userIds, opt
158
159
  // Same eligibility as FE Review moment: xstate AND the M1 streaming UX
159
160
  // experiment. `getAgentEditSegments` self-gates (returns null for non-agent
160
161
  // edits, never throws), so this is a no-op for ordinary collaborator edits.
161
- if (expValEquals('platform_editor_ai_xstate_migration', 'isEnabled', true) && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
162
+ if (isAiXstateMigrationEnabled() && isExperimentEnabled('platform_editor_ai_streaming_ux_experience_m1')) {
162
163
  var reviewData = getAgentEditSegments(json, steps, tr, view);
163
164
  if (reviewData) {
164
165
  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": "28.0.5",
3
+ "version": "29.0.1",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,22 +22,22 @@
22
22
  "@atlaskit/adf-schema": "^57.7.0",
23
23
  "@atlaskit/custom-steps": "^1.1.0",
24
24
  "@atlaskit/editor-json-transformer": "^10.0.0",
25
- "@atlaskit/editor-plugin-analytics": "^27.0.0",
26
- "@atlaskit/editor-plugin-connectivity": "^27.0.0",
27
- "@atlaskit/editor-plugin-editor-viewmode": "^29.0.0",
28
- "@atlaskit/editor-plugin-feature-flags": "^26.0.0",
25
+ "@atlaskit/editor-plugin-analytics": "^28.0.0",
26
+ "@atlaskit/editor-plugin-connectivity": "^28.0.0",
27
+ "@atlaskit/editor-plugin-editor-viewmode": "^30.0.0",
28
+ "@atlaskit/editor-plugin-feature-flags": "^27.0.0",
29
29
  "@atlaskit/editor-prosemirror": "^9.0.0",
30
- "@atlaskit/editor-shared-styles": "^4.4.0",
30
+ "@atlaskit/editor-shared-styles": "^4.5.0",
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": "^240.0.0",
34
+ "@atlaskit/tmp-editor-statsig": "^241.0.0",
35
35
  "@atlaskit/tokens": "^20.6.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "memoize-one": "^6.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^131.2.0",
40
+ "@atlaskit/editor-common": "^132.0.0",
41
41
  "react": "^18.2.0 || ^19.2.0",
42
42
  "react-dom": "^18.2.0 || ^19.2.0"
43
43
  },