@atlaskit/rovo-triggers 3.3.0 → 3.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 +7 -0
- package/dist/cjs/types.js +3 -0
- package/dist/es2019/types.js +3 -0
- package/dist/esm/types.js +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +9 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cd33693cf4431`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd33693cf4431) -
|
|
8
|
+
Add new whiteboards context to pass along to llm as needed
|
|
9
|
+
|
|
3
10
|
## 3.3.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -16,6 +16,9 @@ var Topics = exports.Topics = {
|
|
|
16
16
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
17
17
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
18
18
|
|
|
19
|
+
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
20
|
+
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
|
|
21
24
|
*/
|
package/dist/es2019/types.js
CHANGED
|
@@ -10,6 +10,9 @@ export const Topics = {
|
|
|
10
10
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
11
11
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
12
12
|
|
|
13
|
+
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
14
|
+
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
15
|
+
|
|
13
16
|
/**
|
|
14
17
|
* Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
|
|
15
18
|
*/
|
package/dist/esm/types.js
CHANGED
|
@@ -10,6 +10,9 @@ export var Topics = {
|
|
|
10
10
|
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
11
11
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
12
12
|
|
|
13
|
+
// Not using the PayloadCore because the `data: type | undefined` is necessary
|
|
14
|
+
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
15
|
+
|
|
13
16
|
/**
|
|
14
17
|
* Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
|
|
15
18
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
|
|
3
3
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
4
4
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
5
5
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ export type EditorContextPayloadData = {
|
|
|
49
49
|
content: string;
|
|
50
50
|
};
|
|
51
51
|
} | undefined;
|
|
52
|
+
export type WhiteboardContextPayloadData = {
|
|
53
|
+
type: 'image/svg+xml' | 'text/plain';
|
|
54
|
+
content: string;
|
|
55
|
+
contentId?: string;
|
|
56
|
+
} | undefined;
|
|
52
57
|
export type BrowserContextPayloadData = {
|
|
53
58
|
context: {
|
|
54
59
|
browserUrl: string;
|
|
@@ -65,6 +70,9 @@ export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
|
|
|
65
70
|
export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
|
|
66
71
|
data: BrowserContextPayloadData;
|
|
67
72
|
};
|
|
73
|
+
export type WhiteboardContextPayload = PayloadCore<'whiteboard-context-payload'> & {
|
|
74
|
+
data: WhiteboardContextPayloadData;
|
|
75
|
+
};
|
|
68
76
|
export type ChatDraftPayload = PayloadCore<'chat-draft'>;
|
|
69
77
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
70
78
|
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
@@ -233,7 +241,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
233
241
|
operations: JiraIssueWorkBreakdownAction;
|
|
234
242
|
}>;
|
|
235
243
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
236
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
244
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
237
245
|
export type Callback = (payload: Payload) => void;
|
|
238
246
|
export type TopicEvents = {
|
|
239
247
|
[key in Topic]?: Array<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
|
|
3
3
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
4
4
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
5
5
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
|
@@ -49,6 +49,11 @@ export type EditorContextPayloadData = {
|
|
|
49
49
|
content: string;
|
|
50
50
|
};
|
|
51
51
|
} | undefined;
|
|
52
|
+
export type WhiteboardContextPayloadData = {
|
|
53
|
+
type: 'image/svg+xml' | 'text/plain';
|
|
54
|
+
content: string;
|
|
55
|
+
contentId?: string;
|
|
56
|
+
} | undefined;
|
|
52
57
|
export type BrowserContextPayloadData = {
|
|
53
58
|
context: {
|
|
54
59
|
browserUrl: string;
|
|
@@ -65,6 +70,9 @@ export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
|
|
|
65
70
|
export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
|
|
66
71
|
data: BrowserContextPayloadData;
|
|
67
72
|
};
|
|
73
|
+
export type WhiteboardContextPayload = PayloadCore<'whiteboard-context-payload'> & {
|
|
74
|
+
data: WhiteboardContextPayloadData;
|
|
75
|
+
};
|
|
68
76
|
export type ChatDraftPayload = PayloadCore<'chat-draft'>;
|
|
69
77
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
70
78
|
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
@@ -233,7 +241,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
233
241
|
operations: JiraIssueWorkBreakdownAction;
|
|
234
242
|
}>;
|
|
235
243
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
236
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
244
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
237
245
|
export type Callback = (payload: Payload) => void;
|
|
238
246
|
export type TopicEvents = {
|
|
239
247
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.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": {
|