@atlaskit/rovo-triggers 3.4.0 → 3.5.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 +14 -0
- package/dist/types/types.d.ts +4 -1
- package/dist/types-ts4.5/types.d.ts +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6f26b732b4fc0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f26b732b4fc0) -
|
|
8
|
+
Include selectionFragment and selectionLocalIds on editor context payload
|
|
9
|
+
|
|
10
|
+
## 3.4.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`57b19274b9fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57b19274b9fdd) -
|
|
15
|
+
EDITOR-1373 Bump adf-schema version
|
|
16
|
+
|
|
3
17
|
## 3.4.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export type EditorContextPayloadData = {
|
|
|
48
48
|
type: 'text/markdown' | 'text/plain';
|
|
49
49
|
content: string;
|
|
50
50
|
};
|
|
51
|
+
selectionFragment?: string;
|
|
52
|
+
selectionLocalIds?: string;
|
|
51
53
|
} | undefined;
|
|
52
54
|
export type WhiteboardContextPayloadData = {
|
|
53
55
|
type: 'image/svg+xml' | 'text/plain';
|
|
@@ -103,6 +105,7 @@ export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-
|
|
|
103
105
|
export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
|
|
104
106
|
useCaseId: ValidChatCallToActionUseCases;
|
|
105
107
|
}>;
|
|
108
|
+
type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
|
|
106
109
|
export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
|
|
107
110
|
is3pActionAuth?: boolean;
|
|
108
111
|
}>;
|
|
@@ -241,7 +244,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
241
244
|
operations: JiraIssueWorkBreakdownAction;
|
|
242
245
|
}>;
|
|
243
246
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
244
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
247
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
|
|
245
248
|
export type Callback = (payload: Payload) => void;
|
|
246
249
|
export type TopicEvents = {
|
|
247
250
|
[key in Topic]?: Array<{
|
|
@@ -48,6 +48,8 @@ export type EditorContextPayloadData = {
|
|
|
48
48
|
type: 'text/markdown' | 'text/plain';
|
|
49
49
|
content: string;
|
|
50
50
|
};
|
|
51
|
+
selectionFragment?: string;
|
|
52
|
+
selectionLocalIds?: string;
|
|
51
53
|
} | undefined;
|
|
52
54
|
export type WhiteboardContextPayloadData = {
|
|
53
55
|
type: 'image/svg+xml' | 'text/plain';
|
|
@@ -103,6 +105,7 @@ export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-
|
|
|
103
105
|
export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
|
|
104
106
|
useCaseId: ValidChatCallToActionUseCases;
|
|
105
107
|
}>;
|
|
108
|
+
type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
|
|
106
109
|
export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
|
|
107
110
|
is3pActionAuth?: boolean;
|
|
108
111
|
}>;
|
|
@@ -241,7 +244,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
241
244
|
operations: JiraIssueWorkBreakdownAction;
|
|
242
245
|
}>;
|
|
243
246
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
244
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload;
|
|
247
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
|
|
245
248
|
export type Callback = (payload: Payload) => void;
|
|
246
249
|
export type TopicEvents = {
|
|
247
250
|
[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.5.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": {
|
|
@@ -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
|
},
|