@atlaskit/rovo-triggers 9.11.0 → 9.11.1
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 +13 -0
- package/dist/cjs/main.js +7 -1
- package/dist/es2019/main.js +7 -1
- package/dist/esm/main.js +7 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 9.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ade4b041f6ad0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ade4b041f6ad0) -
|
|
8
|
+
Behind the `rovo_chat_fix_jira_prompt_dropped_on_reopen` gate, exclude
|
|
9
|
+
`jira-create-context-payload` from the `triggerLatest` replay slot (the same way
|
|
10
|
+
`set-message-context` is handled). This stops the Rovo chat panel, when reopened from a CTA, from
|
|
11
|
+
replaying the continuously-published context payload instead of the action `chat-new` that opened
|
|
12
|
+
the chat — which was dropping the prompt. The only consumer of this event
|
|
13
|
+
(`ChatContextSubscriber`) does not use `triggerLatest`, so live delivery is unaffected. Behaviour
|
|
14
|
+
is unchanged when the gate is off.
|
|
15
|
+
|
|
3
16
|
## 9.11.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/cjs/main.js
CHANGED
|
@@ -24,7 +24,13 @@ var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
|
|
|
24
24
|
if (ignoredTriggerLatestEvents.has(type)) {
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
if (type === 'set-message-context') {
|
|
28
|
+
return (0, _platformFeatureFlags.fg)('rovo_chat_fix_cold_start_prompt_insertion');
|
|
29
|
+
}
|
|
30
|
+
if (type === 'jira-create-context-payload') {
|
|
31
|
+
return (0, _platformFeatureFlags.fg)('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
28
34
|
};
|
|
29
35
|
var createPubSub = function createPubSub() {
|
|
30
36
|
var subscribedEvents = {};
|
package/dist/es2019/main.js
CHANGED
|
@@ -11,7 +11,13 @@ const isIgnoredForTriggerLatest = type => {
|
|
|
11
11
|
if (ignoredTriggerLatestEvents.has(type)) {
|
|
12
12
|
return true;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
if (type === 'set-message-context') {
|
|
15
|
+
return fg('rovo_chat_fix_cold_start_prompt_insertion');
|
|
16
|
+
}
|
|
17
|
+
if (type === 'jira-create-context-payload') {
|
|
18
|
+
return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
15
21
|
};
|
|
16
22
|
const createPubSub = () => {
|
|
17
23
|
let subscribedEvents = {};
|
package/dist/esm/main.js
CHANGED
|
@@ -17,7 +17,13 @@ var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
|
|
|
17
17
|
if (ignoredTriggerLatestEvents.has(type)) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
if (type === 'set-message-context') {
|
|
21
|
+
return fg('rovo_chat_fix_cold_start_prompt_insertion');
|
|
22
|
+
}
|
|
23
|
+
if (type === 'jira-create-context-payload') {
|
|
24
|
+
return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
21
27
|
};
|
|
22
28
|
var createPubSub = function createPubSub() {
|
|
23
29
|
var subscribedEvents = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "9.11.
|
|
3
|
+
"version": "9.11.1",
|
|
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,7 +41,7 @@
|
|
|
41
41
|
"@af/integration-testing": "workspace:^",
|
|
42
42
|
"@af/visual-regression": "workspace:^",
|
|
43
43
|
"@atlaskit/css": "^1.0.0",
|
|
44
|
-
"@atlaskit/primitives": "^
|
|
44
|
+
"@atlaskit/primitives": "^22.0.0",
|
|
45
45
|
"@atlaskit/ssr": "workspace:^",
|
|
46
46
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
47
47
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"platform-feature-flags": {
|
|
89
89
|
"rovo_chat_fix_cold_start_prompt_insertion": {
|
|
90
90
|
"type": "boolean"
|
|
91
|
+
},
|
|
92
|
+
"rovo_chat_fix_jira_prompt_dropped_on_reopen": {
|
|
93
|
+
"type": "boolean"
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
}
|