@atlaskit/rovo-triggers 1.2.0 → 1.3.0

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/rovo-triggers
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#162886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162886)
8
+ [`59490f4204eea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/59490f4204eea) -
9
+ [https://product-fabric.atlassian.net/browse/EDF-1889](EDF-1889) - add subscription to rovo agent
10
+ changes into the Editor AI plugin
11
+
3
12
  ## 1.2.0
4
13
 
5
14
  ### Minor Changes
@@ -58,6 +58,13 @@ export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
58
58
  content: string;
59
59
  agentId?: string;
60
60
  }>;
61
+ export type EditorAgentChangedPayload = PayloadCore<'agent-changed', {
62
+ agent: {
63
+ id: string;
64
+ name: string;
65
+ identityAccountId?: string | null;
66
+ } | null;
67
+ }>;
61
68
  export type ChatOpenPayload = PayloadCore<'chat-open', {
62
69
  channelId: string;
63
70
  agentId?: string;
@@ -66,7 +73,7 @@ export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success'>;
66
73
  export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
67
74
  errorMessage: string | undefined;
68
75
  }>;
69
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
76
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
70
77
  export type Callback = (payload: Payload) => void;
71
78
  export type TopicEvents = {
72
79
  [key in Topic]?: Array<{
@@ -58,6 +58,13 @@ export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
58
58
  content: string;
59
59
  agentId?: string;
60
60
  }>;
61
+ export type EditorAgentChangedPayload = PayloadCore<'agent-changed', {
62
+ agent: {
63
+ id: string;
64
+ name: string;
65
+ identityAccountId?: string | null;
66
+ } | null;
67
+ }>;
61
68
  export type ChatOpenPayload = PayloadCore<'chat-open', {
62
69
  channelId: string;
63
70
  agentId?: string;
@@ -66,7 +73,7 @@ export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success'>;
66
73
  export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
67
74
  errorMessage: string | undefined;
68
75
  }>;
69
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
76
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
70
77
  export type Callback = (payload: Payload) => void;
71
78
  export type TopicEvents = {
72
79
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {