@atlaskit/rovo-triggers 10.3.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 +34 -0
- package/dist/cjs/types.js +14 -0
- package/dist/es2019/types.js +14 -0
- package/dist/esm/types.js +14 -0
- package/dist/types/types.d.ts +16 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
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
|
+
|
|
25
|
+
## 10.4.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [`d42ba7ed56112`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d42ba7ed56112) -
|
|
30
|
+
Add the public and transport contracts for gated Rovo Space source mode.
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
const sourceMode: RovoChatSourceMode = 'STRICT';
|
|
34
|
+
await assistanceService.sendMessageStream({ sourceMode });
|
|
35
|
+
```
|
|
36
|
+
|
|
3
37
|
## 10.3.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -14,6 +14,13 @@ var Topics = exports.Topics = {
|
|
|
14
14
|
|
|
15
15
|
// Can only specify either `agentId` or `agentExternalConfigReference`, not both
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Source-selection behavior requested when opening a chat.
|
|
19
|
+
*
|
|
20
|
+
* This public package owns the transport type so consumers do not depend on an internal package.
|
|
21
|
+
* A test keeps it aligned with the assistance service contract.
|
|
22
|
+
*/
|
|
23
|
+
|
|
17
24
|
/**
|
|
18
25
|
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
19
26
|
* reproducing the same experience as clicking an insight inside the in-panel
|
|
@@ -98,6 +105,13 @@ var Topics = exports.Topics = {
|
|
|
98
105
|
* optimistically in the Relay store without refetching.
|
|
99
106
|
*/
|
|
100
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
|
+
|
|
101
115
|
var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
102
116
|
/**
|
|
103
117
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
package/dist/es2019/types.js
CHANGED
|
@@ -8,6 +8,13 @@ export const Topics = {
|
|
|
8
8
|
|
|
9
9
|
// Can only specify either `agentId` or `agentExternalConfigReference`, not both
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Source-selection behavior requested when opening a chat.
|
|
13
|
+
*
|
|
14
|
+
* This public package owns the transport type so consumers do not depend on an internal package.
|
|
15
|
+
* A test keeps it aligned with the assistance service contract.
|
|
16
|
+
*/
|
|
17
|
+
|
|
11
18
|
/**
|
|
12
19
|
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
13
20
|
* reproducing the same experience as clicking an insight inside the in-panel
|
|
@@ -92,6 +99,13 @@ export const Topics = {
|
|
|
92
99
|
* optimistically in the Relay store without refetching.
|
|
93
100
|
*/
|
|
94
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
|
+
|
|
95
109
|
export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
96
110
|
/**
|
|
97
111
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
package/dist/esm/types.js
CHANGED
|
@@ -8,6 +8,13 @@ export var Topics = {
|
|
|
8
8
|
|
|
9
9
|
// Can only specify either `agentId` or `agentExternalConfigReference`, not both
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Source-selection behavior requested when opening a chat.
|
|
13
|
+
*
|
|
14
|
+
* This public package owns the transport type so consumers do not depend on an internal package.
|
|
15
|
+
* A test keeps it aligned with the assistance service contract.
|
|
16
|
+
*/
|
|
17
|
+
|
|
11
18
|
/**
|
|
12
19
|
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
13
20
|
* reproducing the same experience as clicking an insight inside the in-panel
|
|
@@ -92,6 +99,13 @@ export var Topics = {
|
|
|
92
99
|
* optimistically in the Relay store without refetching.
|
|
93
100
|
*/
|
|
94
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
|
+
|
|
95
109
|
export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
96
110
|
/**
|
|
97
111
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
package/dist/types/types.d.ts
CHANGED
|
@@ -53,12 +53,20 @@ type TargetAgentParam = {
|
|
|
53
53
|
type PlaceholderParam = {
|
|
54
54
|
placeholderType?: 'person' | 'link' | 'generic' | 'skill';
|
|
55
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* Source-selection behavior requested when opening a chat.
|
|
58
|
+
*
|
|
59
|
+
* This public package owns the transport type so consumers do not depend on an internal package.
|
|
60
|
+
* A test keeps it aligned with the assistance service contract.
|
|
61
|
+
*/
|
|
62
|
+
export type RovoChatSourceMode = 'GENERAL' | 'STRICT';
|
|
56
63
|
type ChatModeParam = {
|
|
57
64
|
deepResearchEnabled?: boolean;
|
|
58
65
|
thinkDeeperEnabled?: boolean;
|
|
59
66
|
fastModeEnabled?: boolean;
|
|
60
67
|
taskModeEnabled?: boolean;
|
|
61
68
|
webSearchEnabled?: boolean;
|
|
69
|
+
sourceMode?: RovoChatSourceMode;
|
|
62
70
|
useCurrentPageContext?: boolean;
|
|
63
71
|
appFilters?: unknown[];
|
|
64
72
|
};
|
|
@@ -586,7 +594,14 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
586
594
|
openChat: false;
|
|
587
595
|
isActive: boolean;
|
|
588
596
|
};
|
|
589
|
-
|
|
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;
|
|
590
605
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
591
606
|
conversationId: string;
|
|
592
607
|
planTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "10.
|
|
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,8 @@
|
|
|
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.
|
|
46
|
+
"@atlassian/a11y-jest-testing": "^0.15.0",
|
|
47
|
+
"@atlassian/conversation-assistant-service-api": "^15.1.0",
|
|
47
48
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
48
49
|
"@testing-library/react": "^16.3.0",
|
|
49
50
|
"react": "^18.2.0",
|