@atlaskit/rovo-triggers 8.1.0 → 9.1.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 +16 -0
- package/dist/cjs/types.js +7 -0
- package/dist/es2019/types.js +7 -0
- package/dist/esm/types.js +7 -0
- package/dist/types/types.d.ts +32 -2
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 9.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5c49e68beadfa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c49e68beadfa) -
|
|
8
|
+
Add insights-chat-exited rovo-trigger event, published from the panel when the user leaves a
|
|
9
|
+
seeded Rovo Insight chat (gated at the call site by the rovo_growth_chat_pulse experiment) so
|
|
10
|
+
carousel surfaces can clear the selected-card highlight.
|
|
11
|
+
|
|
12
|
+
## 9.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [`6aa37d3b2e16a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6aa37d3b2e16a) -
|
|
17
|
+
Remove an internal package dependency from public package metadata.
|
|
18
|
+
|
|
3
19
|
## 8.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -28,6 +28,13 @@ var Topics = exports.Topics = {
|
|
|
28
28
|
* panel-side and is intentionally not part of this payload.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
33
|
+
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
34
|
+
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
35
|
+
* only meaning is "the user is no longer in an insight chat".
|
|
36
|
+
*/
|
|
37
|
+
|
|
31
38
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
32
39
|
|
|
33
40
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
package/dist/es2019/types.js
CHANGED
|
@@ -22,6 +22,13 @@ export const Topics = {
|
|
|
22
22
|
* panel-side and is intentionally not part of this payload.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
27
|
+
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
28
|
+
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
29
|
+
* only meaning is "the user is no longer in an insight chat".
|
|
30
|
+
*/
|
|
31
|
+
|
|
25
32
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
26
33
|
|
|
27
34
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
package/dist/esm/types.js
CHANGED
|
@@ -22,6 +22,13 @@ export var Topics = {
|
|
|
22
22
|
* panel-side and is intentionally not part of this payload.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
27
|
+
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
28
|
+
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
29
|
+
* only meaning is "the user is no longer in an insight chat".
|
|
30
|
+
*/
|
|
31
|
+
|
|
25
32
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
26
33
|
|
|
27
34
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { CreationContextParams } from '@atlassian/conversation-assistant-external-context/types';
|
|
3
2
|
import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
|
|
4
3
|
import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
|
|
5
4
|
import type { SolutionArchitectAgentActivationFlowStoppedPayload, SolutionArchitectAgentActivationPayload, SolutionArchitectAgentActivationFlowStartedPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, StudioLandingPageRedirectPayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
|
|
@@ -60,6 +59,30 @@ type ChatModeParam = {
|
|
|
60
59
|
useCurrentPageContext?: boolean;
|
|
61
60
|
appFilters?: unknown[];
|
|
62
61
|
};
|
|
62
|
+
type SerializableCreationContextValue = string | number | boolean | null | undefined | {
|
|
63
|
+
[key: string | number]: SerializableCreationContextValue;
|
|
64
|
+
} | SerializableCreationContextValue[];
|
|
65
|
+
export type CreationContextParams = {
|
|
66
|
+
templateInput?: {
|
|
67
|
+
templateId: string;
|
|
68
|
+
templateType: string;
|
|
69
|
+
};
|
|
70
|
+
jiraContext?: unknown;
|
|
71
|
+
dynamicUiType?: string;
|
|
72
|
+
dynamicUiSubtype?: string;
|
|
73
|
+
dynamicUiSource?: unknown;
|
|
74
|
+
forcedContentType?: string;
|
|
75
|
+
contentMauiId?: string;
|
|
76
|
+
mediaFileId?: string;
|
|
77
|
+
source?: string;
|
|
78
|
+
shouldUseExistingContent?: boolean;
|
|
79
|
+
isViewMode?: boolean;
|
|
80
|
+
experience?: 'cwr' | 'cwr_type' | 'cwr_edit' | 'cwr_existing' | 'inline_edit' | 'inline_view' | 'remix' | 'remix_edit' | 'remix_object' | 'remix_custom' | 'chat_edit' | 'chat_view';
|
|
81
|
+
contentTypes?: string[];
|
|
82
|
+
blocks?: string[];
|
|
83
|
+
spaceKey?: string;
|
|
84
|
+
additionalContext?: Record<string, SerializableCreationContextValue>;
|
|
85
|
+
};
|
|
63
86
|
export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
64
87
|
name?: string;
|
|
65
88
|
dialogues: Array<{
|
|
@@ -140,6 +163,13 @@ export type InsightsOpenInChatPayload = PayloadCore<'insights-open-in-chat', {
|
|
|
140
163
|
/** Follow-up prompt strings to seed into the conversation. */
|
|
141
164
|
followUps?: string[] | null;
|
|
142
165
|
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
168
|
+
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
169
|
+
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
170
|
+
* only meaning is "the user is no longer in an insight chat".
|
|
171
|
+
*/
|
|
172
|
+
export type InsightsChatExitedPayload = PayloadCore<'insights-chat-exited', {}>;
|
|
143
173
|
export type EditorContextPayloadData = {
|
|
144
174
|
document: {
|
|
145
175
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -518,7 +548,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
518
548
|
openChat: false;
|
|
519
549
|
isActive: boolean;
|
|
520
550
|
};
|
|
521
|
-
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
551
|
+
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
522
552
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
523
553
|
conversationId: string;
|
|
524
554
|
planTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.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": {
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
],
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^55.
|
|
31
|
+
"@atlaskit/adf-schema": "^55.2.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
33
|
-
"@atlassian/conversation-assistant-external-context": "^0.19.0",
|
|
34
33
|
"@babel/runtime": "^7.0.0",
|
|
35
34
|
"bind-event-listener": "^3.0.0"
|
|
36
35
|
},
|