@atlaskit/rovo-triggers 2.1.0 → 2.3.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 +17 -0
- package/dist/cjs/types.js +6 -1
- package/dist/es2019/types.js +6 -1
- package/dist/esm/types.js +6 -1
- package/dist/types/types.d.ts +12 -1
- package/dist/types-ts4.5/types.d.ts +12 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#125175](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125175)
|
|
8
|
+
[`0befa7f34e357`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0befa7f34e357) -
|
|
9
|
+
Add `placeholderType` to `insert-prompt` pubsub event
|
|
10
|
+
|
|
11
|
+
## 2.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#122105](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122105)
|
|
16
|
+
[`73e1118517615`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73e1118517615) - -
|
|
17
|
+
Support new pubsub event to send a placeholder prompt
|
|
18
|
+
- Remove `rovo_conversation_starters_use_placeholder` FG
|
|
19
|
+
|
|
3
20
|
## 2.1.0
|
|
4
21
|
|
|
5
22
|
### Minor 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
|
+
*/
|
package/dist/es2019/types.js
CHANGED
|
@@ -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
|
+
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -76,7 +76,18 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
76
76
|
is3pActionAuth?: boolean;
|
|
77
77
|
errorMessage: string | undefined;
|
|
78
78
|
}>;
|
|
79
|
-
|
|
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
|
+
* Overrides the default placeholder type
|
|
87
|
+
*/
|
|
88
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
89
|
+
}>;
|
|
90
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
|
|
80
91
|
export type Callback = (payload: Payload) => void;
|
|
81
92
|
export type TopicEvents = {
|
|
82
93
|
[key in Topic]?: Array<{
|
|
@@ -76,7 +76,18 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
76
76
|
is3pActionAuth?: boolean;
|
|
77
77
|
errorMessage: string | undefined;
|
|
78
78
|
}>;
|
|
79
|
-
|
|
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
|
+
* Overrides the default placeholder type
|
|
87
|
+
*/
|
|
88
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
89
|
+
}>;
|
|
90
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
|
|
80
91
|
export type Callback = (payload: Payload) => void;
|
|
81
92
|
export type TopicEvents = {
|
|
82
93
|
[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.3.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",
|