@atlaskit/rovo-triggers 5.8.0 → 5.10.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 5.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`15228c9272ac3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15228c9272ac3) -
8
+ Added overrideAutoSend param to insert-prompt payload to allow for overriding default auto-send
9
+ behavior for prompts
10
+
11
+ ## 5.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`f91239ef9383c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f91239ef9383c) -
16
+ [ux] Update the workflow wizard UI action component to render a redirection button when outside of
17
+ context.
18
+
3
19
  ## 5.8.0
4
20
 
5
21
  ### Minor Changes
@@ -132,6 +132,14 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
132
132
  */
133
133
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
134
134
  prompt: string;
135
+ /**
136
+ * Overrides the default auto-send behavior for prompts.
137
+ * By default, prompts with backticks (`) are inserted as placeholders into the chat input
138
+ * (backticks indicate a placeholder), while prompts without backticks are sent immediately.
139
+ * Set this to true to insert prompts not containing backticks into the chat input for dynamic
140
+ * user completion, rather than sending them immediately.
141
+ */
142
+ overrideAutoSend?: boolean;
135
143
  } & PlaceholderParam>;
136
144
  /** Inserts URLs as inline nodes into the chat input
137
145
  * - URLs are deduplicated against existing content
@@ -230,6 +238,11 @@ export type DeleteRuleRovoPayload = {
230
238
  ruleDescription: string;
231
239
  transitionId: TransitionId;
232
240
  };
241
+ export type RedirectToWorkflowRovoPayload = {
242
+ messageId: string;
243
+ conversationId: string;
244
+ url: string;
245
+ };
233
246
  export type JiraWorkflowWizardAction = {
234
247
  operationType: 'ADD_STATUS';
235
248
  payload: AddStatusRovoPayload;
@@ -257,6 +270,9 @@ export type JiraWorkflowWizardAction = {
257
270
  } | {
258
271
  operationType: 'DELETE_RULE';
259
272
  payload: DeleteRuleRovoPayload;
273
+ } | {
274
+ operationType: 'REDIRECT_TO_WORKFLOW';
275
+ payload: RedirectToWorkflowRovoPayload;
260
276
  };
261
277
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
262
278
  invocationId?: string;
@@ -132,6 +132,14 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
132
132
  */
133
133
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
134
134
  prompt: string;
135
+ /**
136
+ * Overrides the default auto-send behavior for prompts.
137
+ * By default, prompts with backticks (`) are inserted as placeholders into the chat input
138
+ * (backticks indicate a placeholder), while prompts without backticks are sent immediately.
139
+ * Set this to true to insert prompts not containing backticks into the chat input for dynamic
140
+ * user completion, rather than sending them immediately.
141
+ */
142
+ overrideAutoSend?: boolean;
135
143
  } & PlaceholderParam>;
136
144
  /** Inserts URLs as inline nodes into the chat input
137
145
  * - URLs are deduplicated against existing content
@@ -230,6 +238,11 @@ export type DeleteRuleRovoPayload = {
230
238
  ruleDescription: string;
231
239
  transitionId: TransitionId;
232
240
  };
241
+ export type RedirectToWorkflowRovoPayload = {
242
+ messageId: string;
243
+ conversationId: string;
244
+ url: string;
245
+ };
233
246
  export type JiraWorkflowWizardAction = {
234
247
  operationType: 'ADD_STATUS';
235
248
  payload: AddStatusRovoPayload;
@@ -257,6 +270,9 @@ export type JiraWorkflowWizardAction = {
257
270
  } | {
258
271
  operationType: 'DELETE_RULE';
259
272
  payload: DeleteRuleRovoPayload;
273
+ } | {
274
+ operationType: 'REDIRECT_TO_WORKFLOW';
275
+ payload: RedirectToWorkflowRovoPayload;
260
276
  };
261
277
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
262
278
  invocationId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "5.8.0",
3
+ "version": "5.10.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": {
@@ -40,9 +40,9 @@
40
40
  "@af/integration-testing": "workspace:^",
41
41
  "@af/visual-regression": "workspace:^",
42
42
  "@atlaskit/css": "^0.19.0",
43
- "@atlaskit/primitives": "^17.1.0",
43
+ "@atlaskit/primitives": "^18.0.0",
44
44
  "@atlaskit/ssr": "workspace:^",
45
- "@atlassian/a11y-jest-testing": "^0.8.0",
45
+ "@atlassian/a11y-jest-testing": "^0.9.0",
46
46
  "@atlassian/feature-flags-test-utils": "^1.0.0",
47
47
  "@testing-library/react": "^16.3.0",
48
48
  "react-dom": "^18.2.0",