@atlaskit/rovo-triggers 2.2.0 → 2.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/types/types.d.ts +31 -1
- package/dist/types-ts4.5/types.d.ts +31 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#127018](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127018)
|
|
8
|
+
[`a6014f18c038f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6014f18c038f) -
|
|
9
|
+
Adding types for rovo trigger to invoke workflow editor actions via pub sub
|
|
10
|
+
|
|
11
|
+
## 2.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#125175](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125175)
|
|
16
|
+
[`0befa7f34e357`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0befa7f34e357) -
|
|
17
|
+
Add `placeholderType` to `insert-prompt` pubsub event
|
|
18
|
+
|
|
3
19
|
## 2.2.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -82,8 +82,38 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
82
82
|
*/
|
|
83
83
|
export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
84
84
|
prompt: string;
|
|
85
|
+
/**
|
|
86
|
+
* Overrides the default placeholder type
|
|
87
|
+
*/
|
|
88
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
85
89
|
}>;
|
|
86
|
-
export type
|
|
90
|
+
export type TransitionId = string;
|
|
91
|
+
export type StatusId = string;
|
|
92
|
+
export type AddNewTransitionPayload = {
|
|
93
|
+
id: TransitionId;
|
|
94
|
+
name: string;
|
|
95
|
+
toRef?: StatusId;
|
|
96
|
+
links: {
|
|
97
|
+
fromRef: StatusId;
|
|
98
|
+
fromPort?: number;
|
|
99
|
+
toPort?: number;
|
|
100
|
+
}[];
|
|
101
|
+
};
|
|
102
|
+
export type AddRulePayload = {
|
|
103
|
+
id: TransitionId;
|
|
104
|
+
ruleId: string;
|
|
105
|
+
};
|
|
106
|
+
export type JiraWorkflowWizardAction = {
|
|
107
|
+
type: 'addTransition';
|
|
108
|
+
payload: AddNewTransitionPayload;
|
|
109
|
+
} | {
|
|
110
|
+
type: 'ADD_RULE';
|
|
111
|
+
payload: AddRulePayload;
|
|
112
|
+
};
|
|
113
|
+
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
114
|
+
actions: JiraWorkflowWizardAction[];
|
|
115
|
+
}>;
|
|
116
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
87
117
|
export type Callback = (payload: Payload) => void;
|
|
88
118
|
export type TopicEvents = {
|
|
89
119
|
[key in Topic]?: Array<{
|
|
@@ -82,8 +82,38 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
82
82
|
*/
|
|
83
83
|
export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
84
84
|
prompt: string;
|
|
85
|
+
/**
|
|
86
|
+
* Overrides the default placeholder type
|
|
87
|
+
*/
|
|
88
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
85
89
|
}>;
|
|
86
|
-
export type
|
|
90
|
+
export type TransitionId = string;
|
|
91
|
+
export type StatusId = string;
|
|
92
|
+
export type AddNewTransitionPayload = {
|
|
93
|
+
id: TransitionId;
|
|
94
|
+
name: string;
|
|
95
|
+
toRef?: StatusId;
|
|
96
|
+
links: {
|
|
97
|
+
fromRef: StatusId;
|
|
98
|
+
fromPort?: number;
|
|
99
|
+
toPort?: number;
|
|
100
|
+
}[];
|
|
101
|
+
};
|
|
102
|
+
export type AddRulePayload = {
|
|
103
|
+
id: TransitionId;
|
|
104
|
+
ruleId: string;
|
|
105
|
+
};
|
|
106
|
+
export type JiraWorkflowWizardAction = {
|
|
107
|
+
type: 'addTransition';
|
|
108
|
+
payload: AddNewTransitionPayload;
|
|
109
|
+
} | {
|
|
110
|
+
type: 'ADD_RULE';
|
|
111
|
+
payload: AddRulePayload;
|
|
112
|
+
};
|
|
113
|
+
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
114
|
+
actions: JiraWorkflowWizardAction[];
|
|
115
|
+
}>;
|
|
116
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
87
117
|
export type Callback = (payload: Payload) => void;
|
|
88
118
|
export type TopicEvents = {
|
|
89
119
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.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": {
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@af/integration-testing": "
|
|
43
|
-
"@af/visual-regression": "
|
|
42
|
+
"@af/integration-testing": "^0.5.0",
|
|
43
|
+
"@af/visual-regression": "^1.3.0",
|
|
44
44
|
"@atlaskit/css": "^0.10.0",
|
|
45
|
-
"@atlaskit/primitives": "
|
|
46
|
-
"@atlaskit/ssr": "
|
|
47
|
-
"@atlaskit/visual-regression": "
|
|
48
|
-
"@atlassian/feature-flags-test-utils": "0.3.
|
|
45
|
+
"@atlaskit/primitives": "^14.1.0",
|
|
46
|
+
"@atlaskit/ssr": "^0.4.0",
|
|
47
|
+
"@atlaskit/visual-regression": "^0.10.0",
|
|
48
|
+
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
49
49
|
"@testing-library/react": "^13.4.0",
|
|
50
50
|
"@testing-library/react-hooks": "^8.0.1",
|
|
51
51
|
"react-dom": "^18.2.0",
|