@atlaskit/rovo-triggers 4.6.0 → 4.7.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,13 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 4.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`99f954d642b19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99f954d642b19) -
8
+ [ux] Update Rovo chat pubsub `chat-new` event to also accept prompt placeholders. Consuming this
9
+ in Skills Directory to always open a new Solutions Architect chat with a prefilled prompt
10
+
3
11
  ## 4.6.0
4
12
 
5
13
  ### Minor Changes
@@ -26,6 +26,9 @@ type TargetAgentParam = {
26
26
  agentId?: never;
27
27
  agentExternalConfigReference: string;
28
28
  };
29
+ type PlaceholderParam = {
30
+ placeholderType?: 'person' | 'link' | 'generic';
31
+ };
29
32
  export type ChatNewPayload = PayloadCore<'chat-new', {
30
33
  name?: string;
31
34
  dialogues: Array<{
@@ -39,11 +42,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
39
42
  };
40
43
  }>;
41
44
  prompt?: string | DocNode;
45
+ isPromptPlaceholder?: boolean;
42
46
  files?: UploadedFile[];
43
47
  contentContext?: 'staging-area' | 'global';
44
48
  sourceId?: string;
45
49
  minionAlias?: string;
46
- } & Partial<TargetAgentParam>>;
50
+ } & Partial<TargetAgentParam> & PlaceholderParam>;
47
51
  export type EditorContextPayloadData = {
48
52
  document: {
49
53
  type: 'text/markdown' | 'text/adf';
@@ -122,11 +126,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
122
126
  */
123
127
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
124
128
  prompt: string;
125
- /**
126
- * Overrides the default placeholder type
127
- */
128
- placeholderType?: 'person' | 'link' | 'generic';
129
- }>;
129
+ } & PlaceholderParam>;
130
130
  /** Inserts URLs as inline nodes into the chat input
131
131
  * - URLs are deduplicated against existing content
132
132
  * - Formatted as inline card nodes in the editor
@@ -26,6 +26,9 @@ type TargetAgentParam = {
26
26
  agentId?: never;
27
27
  agentExternalConfigReference: string;
28
28
  };
29
+ type PlaceholderParam = {
30
+ placeholderType?: 'person' | 'link' | 'generic';
31
+ };
29
32
  export type ChatNewPayload = PayloadCore<'chat-new', {
30
33
  name?: string;
31
34
  dialogues: Array<{
@@ -39,11 +42,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
39
42
  };
40
43
  }>;
41
44
  prompt?: string | DocNode;
45
+ isPromptPlaceholder?: boolean;
42
46
  files?: UploadedFile[];
43
47
  contentContext?: 'staging-area' | 'global';
44
48
  sourceId?: string;
45
49
  minionAlias?: string;
46
- } & Partial<TargetAgentParam>>;
50
+ } & Partial<TargetAgentParam> & PlaceholderParam>;
47
51
  export type EditorContextPayloadData = {
48
52
  document: {
49
53
  type: 'text/markdown' | 'text/adf';
@@ -122,11 +126,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
122
126
  */
123
127
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
124
128
  prompt: string;
125
- /**
126
- * Overrides the default placeholder type
127
- */
128
- placeholderType?: 'person' | 'link' | 'generic';
129
- }>;
129
+ } & PlaceholderParam>;
130
130
  /** Inserts URLs as inline nodes into the chat input
131
131
  * - URLs are deduplicated against existing content
132
132
  * - Formatted as inline card nodes in the editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.6.0",
3
+ "version": "4.7.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": {