@atlaskit/collab-provider 25.0.4 → 25.0.5

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,14 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 25.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4f5cb2d60c652`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f5cb2d60c652) -
8
+ [ux] Preserve agent types for step-driven presence behind `platform_editor_agent_be_streaming` so
9
+ `confluence_agent_presence_profile_by_type` can resolve type-only agents.
10
+ - Updated dependencies
11
+
3
12
  ## 25.0.4
4
13
 
5
14
  ### Patch Changes
@@ -16,7 +16,6 @@ var _transformOverride = require("@atlaskit/editor-prosemirror/transform-overrid
16
16
  var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
17
17
  var _state = require("@atlaskit/editor-prosemirror/state");
18
18
  var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
19
- var _fg = require("@atlaskit/platform-feature-flags/fg");
20
19
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
20
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
22
21
  var _const = require("../helpers/const");
@@ -1014,7 +1013,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
1014
1013
  totalStepCount: steps.length
1015
1014
  });
1016
1015
  agentTypeByProviderId.forEach(function (agentType, providerId) {
1017
- return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, (0, _fg.fg)('platform_move_presence_agents') ? agentType : undefined);
1016
+ return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, agentType);
1018
1017
  });
1019
1018
  } catch (error) {
1020
1019
  var _this$analyticsHelper35;
@@ -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 = "25.0.3";
8
+ var version = exports.version = "25.0.4";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -4,7 +4,6 @@ import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-
4
4
  import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
5
5
  import { Transaction } from '@atlaskit/editor-prosemirror/state';
6
6
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
@@ -880,7 +879,7 @@ export class DocumentService {
880
879
  agentStepCount,
881
880
  totalStepCount: steps.length
882
881
  });
883
- agentTypeByProviderId.forEach((agentType, providerId) => this.participantsService.upsertAIProviderParticipantLocally(providerId, fg('platform_move_presence_agents') ? agentType : undefined));
882
+ agentTypeByProviderId.forEach((agentType, providerId) => this.participantsService.upsertAIProviderParticipantLocally(providerId, agentType));
884
883
  } catch (error) {
885
884
  var _this$analyticsHelper35;
886
885
  (_this$analyticsHelper35 = this.analyticsHelper) === null || _this$analyticsHelper35 === void 0 ? void 0 : _this$analyticsHelper35.sendErrorEvent(error, 'Error while adding agent presence from steps');
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "25.0.3";
2
+ export const version = "25.0.4";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -14,7 +14,6 @@ import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-
14
14
  import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
15
15
  import { Transaction } from '@atlaskit/editor-prosemirror/state';
16
16
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
17
- import { fg } from '@atlaskit/platform-feature-flags/fg';
18
17
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
19
  import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
@@ -1008,7 +1007,7 @@ export var DocumentService = /*#__PURE__*/function () {
1008
1007
  totalStepCount: steps.length
1009
1008
  });
1010
1009
  agentTypeByProviderId.forEach(function (agentType, providerId) {
1011
- return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, fg('platform_move_presence_agents') ? agentType : undefined);
1010
+ return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, agentType);
1012
1011
  });
1013
1012
  } catch (error) {
1014
1013
  var _this$analyticsHelper35;
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "25.0.3";
2
+ export var version = "25.0.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "25.0.4",
3
+ "version": "25.0.5",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -78,6 +78,6 @@
78
78
  }
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^120.3.0"
81
+ "@atlaskit/editor-common": "^120.5.0"
82
82
  }
83
83
  }