@atlaskit/rovo-triggers 4.2.1 → 4.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,12 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f5cfc5eacefad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5cfc5eacefad) -
8
+ [ux] App + agent handoff flow from solution architect
9
+
3
10
  ## 4.2.1
4
11
 
5
12
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ type BaseHandoffPayload = {
3
+ conversationId: string;
4
+ };
5
+ export type NonAppHandoffPayload = BaseHandoffPayload & {
6
+ type: 'ROVO_AGENT' | 'AUTOMATION_RULE';
7
+ ari?: never;
8
+ buildId: string;
9
+ appBuilderAutoStart?: never;
10
+ };
11
+ export type AppHandoffPayload = BaseHandoffPayload & {
12
+ type: 'ECOSYSTEM_APP';
13
+ ari: string;
14
+ buildId?: never;
15
+ appBuilderAutoStart: boolean;
16
+ };
17
+ export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-handoff'> & {
18
+ data: NonAppHandoffPayload | AppHandoffPayload;
19
+ };
20
+ export {};
@@ -1,5 +1,6 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
2
  export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
+ export type { SolutionArchitectHandoffPayload } from './common/types/solution-architect';
3
4
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
5
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
6
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,4 +1,5 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
+ import type { SolutionArchitectHandoffPayload } from './common/types/solution-architect';
2
3
  import type { ChatContextPayload } from './common/utils/chat-context';
3
4
  export declare const Topics: {
4
5
  readonly AI_MATE: "ai-mate";
@@ -253,7 +254,7 @@ export type DashboardInsightsActionsPayloadData = {
253
254
  content: string;
254
255
  } | undefined;
255
256
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
256
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload;
257
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload;
257
258
  export type Callback = (payload: Payload) => void;
258
259
  export type TopicEvents = {
259
260
  [key in Topic]?: Array<{
@@ -0,0 +1,20 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ type BaseHandoffPayload = {
3
+ conversationId: string;
4
+ };
5
+ export type NonAppHandoffPayload = BaseHandoffPayload & {
6
+ type: 'ROVO_AGENT' | 'AUTOMATION_RULE';
7
+ ari?: never;
8
+ buildId: string;
9
+ appBuilderAutoStart?: never;
10
+ };
11
+ export type AppHandoffPayload = BaseHandoffPayload & {
12
+ type: 'ECOSYSTEM_APP';
13
+ ari: string;
14
+ buildId?: never;
15
+ appBuilderAutoStart: boolean;
16
+ };
17
+ export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-handoff'> & {
18
+ data: NonAppHandoffPayload | AppHandoffPayload;
19
+ };
20
+ export {};
@@ -1,5 +1,6 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
2
  export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
+ export type { SolutionArchitectHandoffPayload } from './common/types/solution-architect';
3
4
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
5
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
6
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,4 +1,5 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
+ import type { SolutionArchitectHandoffPayload } from './common/types/solution-architect';
2
3
  import type { ChatContextPayload } from './common/utils/chat-context';
3
4
  export declare const Topics: {
4
5
  readonly AI_MATE: "ai-mate";
@@ -253,7 +254,7 @@ export type DashboardInsightsActionsPayloadData = {
253
254
  content: string;
254
255
  } | undefined;
255
256
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
256
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload;
257
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload;
257
258
  export type Callback = (payload: Payload) => void;
258
259
  export type TopicEvents = {
259
260
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.2.1",
3
+ "version": "4.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": {