@atlaskit/rovo-triggers 4.8.1 → 4.10.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,19 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 4.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7cecf9e263a5f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7cecf9e263a5f) -
8
+ Adds the opening of mini-modal as a capability to pub-sub.
9
+
10
+ ## 4.9.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`ba35a55c8437c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba35a55c8437c) -
15
+ [ux] Added new event type (jsm-journey-builder-actions) in rovo-triggers
16
+
3
17
  ## 4.8.1
4
18
 
5
19
  ### 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,10 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ export type JsmJourneyBuilderAgentAction = {
3
+ actionType: 'CREATE_JOURNEY' | 'UPDATE_JOURNEY' | 'DELETE_JOURNEY';
4
+ journeyId: string;
5
+ success: boolean;
6
+ };
7
+ export type JsmJourneyBuilderActionsPayload = PayloadCore<'jsm-journey-builder-actions', {
8
+ invocationId?: string;
9
+ agentActions: JsmJourneyBuilderAgentAction[];
10
+ }>;
@@ -1,6 +1,7 @@
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
3
  export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
4
+ export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
4
5
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
5
6
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
6
7
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,5 +1,6 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
+ import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
3
4
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
4
5
  import type { ChatContextPayload } from './common/utils/chat-context';
5
6
  export declare const Topics: {
@@ -10,6 +11,7 @@ export type PayloadCore<TKey extends string, TData = void> = {
10
11
  type: TKey;
11
12
  source: string;
12
13
  openChat?: boolean;
14
+ openChatMode?: 'sidebar' | 'mini-modal';
13
15
  product?: string;
14
16
  interactionSource?: string;
15
17
  } & (TData extends void ? {} : {
@@ -255,7 +257,7 @@ export type DashboardInsightsActionsPayloadData = {
255
257
  content: string;
256
258
  } | undefined;
257
259
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
258
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
260
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | JsmJourneyBuilderActionsPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
261
  export type Callback = (payload: Payload) => void;
260
262
  export type TopicEvents = {
261
263
  [key in Topic]?: Array<{
@@ -0,0 +1,10 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ export type JsmJourneyBuilderAgentAction = {
3
+ actionType: 'CREATE_JOURNEY' | 'UPDATE_JOURNEY' | 'DELETE_JOURNEY';
4
+ journeyId: string;
5
+ success: boolean;
6
+ };
7
+ export type JsmJourneyBuilderActionsPayload = PayloadCore<'jsm-journey-builder-actions', {
8
+ invocationId?: string;
9
+ agentActions: JsmJourneyBuilderAgentAction[];
10
+ }>;
@@ -1,6 +1,7 @@
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
3
  export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
4
+ export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
4
5
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
5
6
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
6
7
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,5 +1,6 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
+ import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
3
4
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
4
5
  import type { ChatContextPayload } from './common/utils/chat-context';
5
6
  export declare const Topics: {
@@ -10,6 +11,7 @@ export type PayloadCore<TKey extends string, TData = void> = {
10
11
  type: TKey;
11
12
  source: string;
12
13
  openChat?: boolean;
14
+ openChatMode?: 'sidebar' | 'mini-modal';
13
15
  product?: string;
14
16
  interactionSource?: string;
15
17
  } & (TData extends void ? {} : {
@@ -255,7 +257,7 @@ export type DashboardInsightsActionsPayloadData = {
255
257
  content: string;
256
258
  } | undefined;
257
259
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
258
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
260
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | JsmJourneyBuilderActionsPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
261
  export type Callback = (payload: Payload) => void;
260
262
  export type TopicEvents = {
261
263
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.8.1",
3
+ "version": "4.10.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": {