@atlaskit/rovo-triggers 2.0.0 → 2.2.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,22 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#122105](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122105)
8
+ [`73e1118517615`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73e1118517615) - -
9
+ Support new pubsub event to send a placeholder prompt
10
+ - Remove `rovo_conversation_starters_use_placeholder` FG
11
+
12
+ ## 2.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#119332](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119332)
17
+ [`b1b3d91f244e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1b3d91f244e2) -
18
+ Migrate package to compiled
19
+
3
20
  ## 2.0.0
4
21
 
5
22
  ### Major Changes
package/dist/cjs/types.js CHANGED
@@ -12,4 +12,9 @@ var Topics = exports.Topics = {
12
12
  // but `| undefined` will cause `data` to be removed by PayloadCore
13
13
 
14
14
  // Not using the PayloadCore because the `data: type | undefined` is necessary
15
- // but `| undefined` will cause `data` to be removed by PayloadCore
15
+ // but `| undefined` will cause `data` to be removed by PayloadCore
16
+
17
+ /** Inserts a prompt into the chat input - either:
18
+ * - A prompt without a placeholder - sends as a message
19
+ * - A prompt with a placeholder - inserts the prompt into the chat input
20
+ */
@@ -6,4 +6,9 @@ export const Topics = {
6
6
  // but `| undefined` will cause `data` to be removed by PayloadCore
7
7
 
8
8
  // Not using the PayloadCore because the `data: type | undefined` is necessary
9
- // but `| undefined` will cause `data` to be removed by PayloadCore
9
+ // but `| undefined` will cause `data` to be removed by PayloadCore
10
+
11
+ /** Inserts a prompt into the chat input - either:
12
+ * - A prompt without a placeholder - sends as a message
13
+ * - A prompt with a placeholder - inserts the prompt into the chat input
14
+ */
package/dist/esm/types.js CHANGED
@@ -6,4 +6,9 @@ export var Topics = {
6
6
  // but `| undefined` will cause `data` to be removed by PayloadCore
7
7
 
8
8
  // Not using the PayloadCore because the `data: type | undefined` is necessary
9
- // but `| undefined` will cause `data` to be removed by PayloadCore
9
+ // but `| undefined` will cause `data` to be removed by PayloadCore
10
+
11
+ /** Inserts a prompt into the chat input - either:
12
+ * - A prompt without a placeholder - sends as a message
13
+ * - A prompt with a placeholder - inserts the prompt into the chat input
14
+ */
@@ -76,7 +76,14 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
76
76
  is3pActionAuth?: boolean;
77
77
  errorMessage: string | undefined;
78
78
  }>;
79
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
79
+ /** Inserts a prompt into the chat input - either:
80
+ * - A prompt without a placeholder - sends as a message
81
+ * - A prompt with a placeholder - inserts the prompt into the chat input
82
+ */
83
+ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
84
+ prompt: string;
85
+ }>;
86
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
80
87
  export type Callback = (payload: Payload) => void;
81
88
  export type TopicEvents = {
82
89
  [key in Topic]?: Array<{
@@ -76,7 +76,14 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
76
76
  is3pActionAuth?: boolean;
77
77
  errorMessage: string | undefined;
78
78
  }>;
79
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure;
79
+ /** Inserts a prompt into the chat input - either:
80
+ * - A prompt without a placeholder - sends as a message
81
+ * - A prompt with a placeholder - inserts the prompt into the chat input
82
+ */
83
+ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
84
+ prompt: string;
85
+ }>;
86
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
80
87
  export type Callback = (payload: Payload) => void;
81
88
  export type TopicEvents = {
82
89
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.0.0",
3
+ "version": "2.2.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": {
@@ -41,6 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@af/integration-testing": "*",
43
43
  "@af/visual-regression": "*",
44
+ "@atlaskit/css": "^0.10.0",
44
45
  "@atlaskit/primitives": "*",
45
46
  "@atlaskit/ssr": "*",
46
47
  "@atlaskit/visual-regression": "*",