@atlaskit/rovo-triggers 3.3.0 → 3.4.1
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 +14 -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 +10 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +10 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`57b19274b9fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57b19274b9fdd) -
|
|
8
|
+
EDITOR-1373 Bump adf-schema version
|
|
9
|
+
|
|
10
|
+
## 3.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`cd33693cf4431`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd33693cf4431) -
|
|
15
|
+
Add new whiteboards context to pass along to llm as needed
|
|
16
|
+
|
|
3
17
|
## 3.3.0
|
|
4
18
|
|
|
5
19
|
### 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'>;
|
|
@@ -95,6 +103,7 @@ export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-
|
|
|
95
103
|
export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
|
|
96
104
|
useCaseId: ValidChatCallToActionUseCases;
|
|
97
105
|
}>;
|
|
106
|
+
type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
|
|
98
107
|
export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
|
|
99
108
|
is3pActionAuth?: boolean;
|
|
100
109
|
}>;
|
|
@@ -233,7 +242,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
233
242
|
operations: JiraIssueWorkBreakdownAction;
|
|
234
243
|
}>;
|
|
235
244
|
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;
|
|
245
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
|
|
237
246
|
export type Callback = (payload: Payload) => void;
|
|
238
247
|
export type TopicEvents = {
|
|
239
248
|
[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'>;
|
|
@@ -95,6 +103,7 @@ export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-
|
|
|
95
103
|
export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
|
|
96
104
|
useCaseId: ValidChatCallToActionUseCases;
|
|
97
105
|
}>;
|
|
106
|
+
type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
|
|
98
107
|
export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
|
|
99
108
|
is3pActionAuth?: boolean;
|
|
100
109
|
}>;
|
|
@@ -233,7 +242,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
233
242
|
operations: JiraIssueWorkBreakdownAction;
|
|
234
243
|
}>;
|
|
235
244
|
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;
|
|
245
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
|
|
237
246
|
export type Callback = (payload: Payload) => void;
|
|
238
247
|
export type TopicEvents = {
|
|
239
248
|
[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.1",
|
|
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": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
35
|
+
"@atlaskit/adf-schema": "^50.2.1",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"bind-event-listener": "^3.0.0"
|
|
38
38
|
},
|