@atlaskit/collab-provider 28.2.0 → 28.2.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 +12 -0
- package/dist/cjs/participants/participants-service.js +10 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/participants/participants-service.js +10 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/participants/participants-service.js +10 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 28.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d2d4a126ef64e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2d4a126ef64e) -
|
|
8
|
+
Gate the periodic AI-provider presence re-broadcast behind platform_move_presence_agents, matching
|
|
9
|
+
the existing gating of the ai-provider:change send in Provider.sendMessage. When the gate is
|
|
10
|
+
enabled the presence heartbeat no longer re-announces editor AI plugin provider ids, which
|
|
11
|
+
previously registered a duplicate, agentType-less presence participant for an agent that was
|
|
12
|
+
already present under its AAID and caused it to render as the External agent fallback.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 28.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -820,8 +820,16 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
820
820
|
return _this.sendPresence();
|
|
821
821
|
}, SEND_PRESENCE_INTERVAL);
|
|
822
822
|
|
|
823
|
-
// Expose existing AI providers to the newly joined user
|
|
824
|
-
|
|
823
|
+
// Expose existing AI providers to the newly joined user.
|
|
824
|
+
//
|
|
825
|
+
// Gated to match the `ai-provider:change` send in `Provider.sendMessage`. Under the new
|
|
826
|
+
// agent-presence path an agent is registered from its own authored steps, keyed on its
|
|
827
|
+
// AAID and carrying an `agentType`. These ids come from the editor AI plugin instead,
|
|
828
|
+
// keyed on the agent's Convo-AI id with no `agentType`, so re-broadcasting them adds a
|
|
829
|
+
// second, unresolvable participant for an agent that is already present.
|
|
830
|
+
if (!(0, _fg.fg)('platform_move_presence_agents')) {
|
|
831
|
+
_this.sendAIProvidersPresence();
|
|
832
|
+
}
|
|
825
833
|
} catch (error) {
|
|
826
834
|
var _this$analyticsHelper9;
|
|
827
835
|
// We don't want to throw errors for Presence features as they tend to self-restore
|
|
@@ -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 = "28.
|
|
8
|
+
var version = exports.version = "28.2.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -659,8 +659,16 @@ export class ParticipantsService {
|
|
|
659
659
|
this.channelBroadcast('participant:updated', data);
|
|
660
660
|
this.presenceUpdateTimeout = window.setTimeout(() => this.sendPresence(), SEND_PRESENCE_INTERVAL);
|
|
661
661
|
|
|
662
|
-
// Expose existing AI providers to the newly joined user
|
|
663
|
-
|
|
662
|
+
// Expose existing AI providers to the newly joined user.
|
|
663
|
+
//
|
|
664
|
+
// Gated to match the `ai-provider:change` send in `Provider.sendMessage`. Under the new
|
|
665
|
+
// agent-presence path an agent is registered from its own authored steps, keyed on its
|
|
666
|
+
// AAID and carrying an `agentType`. These ids come from the editor AI plugin instead,
|
|
667
|
+
// keyed on the agent's Convo-AI id with no `agentType`, so re-broadcasting them adds a
|
|
668
|
+
// second, unresolvable participant for an agent that is already present.
|
|
669
|
+
if (!fg('platform_move_presence_agents')) {
|
|
670
|
+
this.sendAIProvidersPresence();
|
|
671
|
+
}
|
|
664
672
|
} catch (error) {
|
|
665
673
|
var _this$analyticsHelper9;
|
|
666
674
|
// We don't want to throw errors for Presence features as they tend to self-restore
|
|
@@ -813,8 +813,16 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
813
813
|
return _this.sendPresence();
|
|
814
814
|
}, SEND_PRESENCE_INTERVAL);
|
|
815
815
|
|
|
816
|
-
// Expose existing AI providers to the newly joined user
|
|
817
|
-
|
|
816
|
+
// Expose existing AI providers to the newly joined user.
|
|
817
|
+
//
|
|
818
|
+
// Gated to match the `ai-provider:change` send in `Provider.sendMessage`. Under the new
|
|
819
|
+
// agent-presence path an agent is registered from its own authored steps, keyed on its
|
|
820
|
+
// AAID and carrying an `agentType`. These ids come from the editor AI plugin instead,
|
|
821
|
+
// keyed on the agent's Convo-AI id with no `agentType`, so re-broadcasting them adds a
|
|
822
|
+
// second, unresolvable participant for an agent that is already present.
|
|
823
|
+
if (!fg('platform_move_presence_agents')) {
|
|
824
|
+
_this.sendAIProvidersPresence();
|
|
825
|
+
}
|
|
818
826
|
} catch (error) {
|
|
819
827
|
var _this$analyticsHelper9;
|
|
820
828
|
// We don't want to throw errors for Presence features as they tend to self-restore
|