@atlaskit/rovo-triggers 6.2.0 → 6.4.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 +1 -3
- package/dist/es2019/types.js +1 -3
- package/dist/esm/types.js +1 -3
- package/dist/types/types.d.ts +13 -6
- package/dist/types-ts4.5/types.d.ts +13 -6
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 6.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`83010b0f5950d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83010b0f5950d) -
|
|
8
|
+
Clean up code relating to refetching space-scoped conversation data as that is handled by the
|
|
9
|
+
store and adding conversation to a space since it is now handled by the BE
|
|
10
|
+
|
|
11
|
+
## 6.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`b8323b0e8414e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b8323b0e8414e) -
|
|
16
|
+
Add searchArtifact parameter to the sendMessage API Integrate searchArtifact to chat-new pubsub
|
|
17
|
+
event and add to search
|
|
18
|
+
|
|
3
19
|
## 6.2.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -57,6 +57,4 @@ var Topics = exports.Topics = {
|
|
|
57
57
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
58
58
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
59
59
|
|
|
60
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
61
|
-
|
|
62
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
60
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
package/dist/es2019/types.js
CHANGED
|
@@ -51,6 +51,4 @@ export const Topics = {
|
|
|
51
51
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
52
52
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
53
53
|
|
|
54
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
55
|
-
|
|
56
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
54
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
package/dist/esm/types.js
CHANGED
|
@@ -51,6 +51,4 @@ export var Topics = {
|
|
|
51
51
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
52
52
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
53
53
|
|
|
54
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
55
|
-
|
|
56
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
54
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
package/dist/types/types.d.ts
CHANGED
|
@@ -86,6 +86,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
86
86
|
versionNumber?: number;
|
|
87
87
|
};
|
|
88
88
|
spaceId?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional artifact representing the object the user is currently interacting with or
|
|
91
|
+
* acting on (e.g. 3P forge artifacts that are not resolvable without an ARI).
|
|
92
|
+
* Sent as `search_artifact` in `body.context`.
|
|
93
|
+
*/
|
|
94
|
+
searchArtifact?: SendMessageSearchArtifact;
|
|
89
95
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
90
96
|
export type EditorContextPayloadData = {
|
|
91
97
|
document: {
|
|
@@ -434,17 +440,12 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
434
440
|
}>;
|
|
435
441
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
436
442
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
437
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
438
|
-
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
439
|
-
spaceId: string;
|
|
440
|
-
conversationId: string;
|
|
441
|
-
}>;
|
|
442
443
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
443
444
|
/** Never opens chat — internal signal only. */
|
|
444
445
|
openChat: false;
|
|
445
446
|
isActive: boolean;
|
|
446
447
|
};
|
|
447
|
-
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 | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload |
|
|
448
|
+
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 | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
448
449
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
449
450
|
conversationId: string;
|
|
450
451
|
planTitle: string;
|
|
@@ -501,4 +502,10 @@ export type UploadedFile = {
|
|
|
501
502
|
error?: string;
|
|
502
503
|
fileObject?: File;
|
|
503
504
|
};
|
|
505
|
+
type SendMessageSearchArtifact = {
|
|
506
|
+
/** The Atlassian Resource Identifier (ARI) of the object. */
|
|
507
|
+
ari?: string;
|
|
508
|
+
/** The URL of the object. */
|
|
509
|
+
url?: string;
|
|
510
|
+
};
|
|
504
511
|
export {};
|
|
@@ -86,6 +86,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
86
86
|
versionNumber?: number;
|
|
87
87
|
};
|
|
88
88
|
spaceId?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional artifact representing the object the user is currently interacting with or
|
|
91
|
+
* acting on (e.g. 3P forge artifacts that are not resolvable without an ARI).
|
|
92
|
+
* Sent as `search_artifact` in `body.context`.
|
|
93
|
+
*/
|
|
94
|
+
searchArtifact?: SendMessageSearchArtifact;
|
|
89
95
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
90
96
|
export type EditorContextPayloadData = {
|
|
91
97
|
document: {
|
|
@@ -434,17 +440,12 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
434
440
|
}>;
|
|
435
441
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
436
442
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
437
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
438
|
-
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
439
|
-
spaceId: string;
|
|
440
|
-
conversationId: string;
|
|
441
|
-
}>;
|
|
442
443
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
443
444
|
/** Never opens chat — internal signal only. */
|
|
444
445
|
openChat: false;
|
|
445
446
|
isActive: boolean;
|
|
446
447
|
};
|
|
447
|
-
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 | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload |
|
|
448
|
+
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 | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
448
449
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
449
450
|
conversationId: string;
|
|
450
451
|
planTitle: string;
|
|
@@ -501,4 +502,10 @@ export type UploadedFile = {
|
|
|
501
502
|
error?: string;
|
|
502
503
|
fileObject?: File;
|
|
503
504
|
};
|
|
505
|
+
type SendMessageSearchArtifact = {
|
|
506
|
+
/** The Atlassian Resource Identifier (ARI) of the object. */
|
|
507
|
+
ari?: string;
|
|
508
|
+
/** The URL of the object. */
|
|
509
|
+
url?: string;
|
|
510
|
+
};
|
|
504
511
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.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": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"atlaskit:src": "src/index.ts",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^52.
|
|
39
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"bind-event-listener": "^3.0.0"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
55
55
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
56
56
|
"@testing-library/react": "^16.3.0",
|
|
57
|
+
"react": "^18.2.0",
|
|
57
58
|
"react-dom": "^18.2.0",
|
|
58
59
|
"wait-for-expect": "^1.2.0"
|
|
59
60
|
},
|