@atlaskit/rovo-triggers 10.4.0 → 10.5.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,27 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 10.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`71548d5902718`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71548d5902718) -
8
+ Allow InContextAifcModal to be programmatically closed via a pubsub event. Mainly intended for use
9
+ by downstream chat actions.
10
+
11
+ Publishers can dismiss an open modal by publishing the new `close-in-context-aifc-modal` payload
12
+ on the `ai-mate` topic:
13
+
14
+ ```ts
15
+ import { usePublish } from '@atlaskit/rovo-triggers/main';
16
+
17
+ const publish = usePublish('ai-mate');
18
+
19
+ publish({
20
+ type: 'close-in-context-aifc-modal',
21
+ source: 'inline-agent-creation',
22
+ });
23
+ ```
24
+
3
25
  ## 10.4.0
4
26
 
5
27
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -105,6 +105,13 @@ var Topics = exports.Topics = {
105
105
  * optimistically in the Relay store without refetching.
106
106
  */
107
107
 
108
+ /**
109
+ * Requests that the currently mounted in-context AIFC modal close.
110
+ *
111
+ * This event is intentionally unscoped because only one such modal
112
+ * is expected to be open at a time.
113
+ */
114
+
108
115
  var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
109
116
  /**
110
117
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -99,6 +99,13 @@ export const Topics = {
99
99
  * optimistically in the Relay store without refetching.
100
100
  */
101
101
 
102
+ /**
103
+ * Requests that the currently mounted in-context AIFC modal close.
104
+ *
105
+ * This event is intentionally unscoped because only one such modal
106
+ * is expected to be open at a time.
107
+ */
108
+
102
109
  export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
103
110
  /**
104
111
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
package/dist/esm/types.js CHANGED
@@ -99,6 +99,13 @@ export var Topics = {
99
99
  * optimistically in the Relay store without refetching.
100
100
  */
101
101
 
102
+ /**
103
+ * Requests that the currently mounted in-context AIFC modal close.
104
+ *
105
+ * This event is intentionally unscoped because only one such modal
106
+ * is expected to be open at a time.
107
+ */
108
+
102
109
  export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
103
110
  /**
104
111
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -594,7 +594,14 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
594
594
  openChat: false;
595
595
  isActive: boolean;
596
596
  };
597
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | InsertSkillPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | CustomSkillUpdatePayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
597
+ /**
598
+ * Requests that the currently mounted in-context AIFC modal close.
599
+ *
600
+ * This event is intentionally unscoped because only one such modal
601
+ * is expected to be open at a time.
602
+ */
603
+ export type CloseInContextAifcModalPayload = PayloadCore<'close-in-context-aifc-modal'>;
604
+ export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | InsertSkillPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | CustomSkillUpdatePayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
598
605
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
599
606
  conversationId: string;
600
607
  planTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "10.4.0",
3
+ "version": "10.5.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": {
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/css": "^1.0.0",
44
44
  "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/ssr": "workspace:^",
46
- "@atlassian/a11y-jest-testing": "^0.14.0",
46
+ "@atlassian/a11y-jest-testing": "^0.15.0",
47
47
  "@atlassian/conversation-assistant-service-api": "^15.1.0",
48
48
  "@atlassian/feature-flags-test-utils": "^1.2.0",
49
49
  "@testing-library/react": "^16.3.0",