@atlaskit/rovo-triggers 5.41.0 → 5.43.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 +17 -0
- package/dist/cjs/types.js +3 -1
- package/dist/es2019/types.js +3 -1
- package/dist/esm/types.js +3 -1
- package/dist/types/types.d.ts +18 -1
- package/dist/types-ts4.5/types.d.ts +18 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 5.43.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d27ebf26e5d58`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d27ebf26e5d58) -
|
|
8
|
+
Add isDraftLockedForEditing flag to Rovo bridge context pipeline. When a Confluence page is locked
|
|
9
|
+
for editing due to an active approval workflow, this flag is now passed through to the Convo AI
|
|
10
|
+
backend alongside isViewMode, enabling approval-specific messaging in Rovo Chat instead of the
|
|
11
|
+
generic "no permission" message.
|
|
12
|
+
|
|
13
|
+
## 5.42.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`b2eeb3d02b882`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2eeb3d02b882) -
|
|
18
|
+
Support updating space with conversation id, and listing conversations scoped to space in sidebar
|
|
19
|
+
|
|
3
20
|
## 5.41.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -56,4 +56,6 @@ var Topics = exports.Topics = {
|
|
|
56
56
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
57
57
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
58
58
|
|
|
59
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
59
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
60
|
+
|
|
61
|
+
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
package/dist/es2019/types.js
CHANGED
|
@@ -50,4 +50,6 @@ export const Topics = {
|
|
|
50
50
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
51
51
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
52
52
|
|
|
53
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
53
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
54
|
+
|
|
55
|
+
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
package/dist/esm/types.js
CHANGED
|
@@ -50,4 +50,6 @@ export var Topics = {
|
|
|
50
50
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
51
51
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
52
52
|
|
|
53
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
53
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
54
|
+
|
|
55
|
+
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
package/dist/types/types.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
79
79
|
versionType?: string;
|
|
80
80
|
versionNumber?: number;
|
|
81
81
|
};
|
|
82
|
+
spaceId?: string;
|
|
82
83
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
83
84
|
export type EditorContextPayloadData = {
|
|
84
85
|
document: {
|
|
@@ -103,6 +104,7 @@ export type EditorContextPayloadData = {
|
|
|
103
104
|
};
|
|
104
105
|
dynamicUiType?: string;
|
|
105
106
|
isViewMode?: boolean;
|
|
107
|
+
isDraftLockedForEditing?: boolean;
|
|
106
108
|
useGenericEditorSkill?: boolean;
|
|
107
109
|
additionalContext?: Record<string, unknown>;
|
|
108
110
|
} | undefined;
|
|
@@ -207,6 +209,16 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
207
209
|
* user completion, rather than sending them immediately.
|
|
208
210
|
*/
|
|
209
211
|
overrideAutoSend?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Optional conversation ID to target. When provided, the handler will resume
|
|
214
|
+
* the specified conversation (setting placeholder agent, opening the channel,
|
|
215
|
+
* and selecting the conversation) before inserting or sending the prompt.
|
|
216
|
+
*/
|
|
217
|
+
channelId?: string;
|
|
218
|
+
agentId?: string;
|
|
219
|
+
agentName?: string;
|
|
220
|
+
agentIdentityAccountId?: string;
|
|
221
|
+
avatarUrl?: string;
|
|
210
222
|
} & PlaceholderParam>;
|
|
211
223
|
/** Inserts URLs as inline nodes into the chat input
|
|
212
224
|
* - URLs are deduplicated against existing content
|
|
@@ -402,12 +414,17 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
402
414
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
403
415
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
404
416
|
export type RecommendedSpacesDeselectedPayload = PayloadCore<'recommended-spaces-deselected'>;
|
|
417
|
+
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
418
|
+
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
419
|
+
spaceId: string;
|
|
420
|
+
conversationId: string;
|
|
421
|
+
}>;
|
|
405
422
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
406
423
|
/** Never opens chat — internal signal only. */
|
|
407
424
|
openChat: false;
|
|
408
425
|
isActive: boolean;
|
|
409
426
|
};
|
|
410
|
-
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesDeselectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
427
|
+
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesDeselectedPayload | SpaceConversationCreatedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
411
428
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
412
429
|
conversationId: string;
|
|
413
430
|
planTitle: string;
|
|
@@ -79,6 +79,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
79
79
|
versionType?: string;
|
|
80
80
|
versionNumber?: number;
|
|
81
81
|
};
|
|
82
|
+
spaceId?: string;
|
|
82
83
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
83
84
|
export type EditorContextPayloadData = {
|
|
84
85
|
document: {
|
|
@@ -103,6 +104,7 @@ export type EditorContextPayloadData = {
|
|
|
103
104
|
};
|
|
104
105
|
dynamicUiType?: string;
|
|
105
106
|
isViewMode?: boolean;
|
|
107
|
+
isDraftLockedForEditing?: boolean;
|
|
106
108
|
useGenericEditorSkill?: boolean;
|
|
107
109
|
additionalContext?: Record<string, unknown>;
|
|
108
110
|
} | undefined;
|
|
@@ -207,6 +209,16 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
207
209
|
* user completion, rather than sending them immediately.
|
|
208
210
|
*/
|
|
209
211
|
overrideAutoSend?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Optional conversation ID to target. When provided, the handler will resume
|
|
214
|
+
* the specified conversation (setting placeholder agent, opening the channel,
|
|
215
|
+
* and selecting the conversation) before inserting or sending the prompt.
|
|
216
|
+
*/
|
|
217
|
+
channelId?: string;
|
|
218
|
+
agentId?: string;
|
|
219
|
+
agentName?: string;
|
|
220
|
+
agentIdentityAccountId?: string;
|
|
221
|
+
avatarUrl?: string;
|
|
210
222
|
} & PlaceholderParam>;
|
|
211
223
|
/** Inserts URLs as inline nodes into the chat input
|
|
212
224
|
* - URLs are deduplicated against existing content
|
|
@@ -402,12 +414,17 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
402
414
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
403
415
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
404
416
|
export type RecommendedSpacesDeselectedPayload = PayloadCore<'recommended-spaces-deselected'>;
|
|
417
|
+
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
418
|
+
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
419
|
+
spaceId: string;
|
|
420
|
+
conversationId: string;
|
|
421
|
+
}>;
|
|
405
422
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
406
423
|
/** Never opens chat — internal signal only. */
|
|
407
424
|
openChat: false;
|
|
408
425
|
isActive: boolean;
|
|
409
426
|
};
|
|
410
|
-
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesDeselectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
427
|
+
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesDeselectedPayload | SpaceConversationCreatedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
411
428
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
412
429
|
conversationId: string;
|
|
413
430
|
planTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.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": {
|