@atlaskit/rovo-triggers 9.10.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 CHANGED
@@ -1,5 +1,29 @@
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
+
16
+ ## 9.11.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [`d663d38af3803`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d663d38af3803) -
21
+ Add optional launch source attribution for Home Agents for you Rovo Chat analytics.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 9.10.0
4
28
 
5
29
  ### 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
- return type === 'set-message-context' && (0, _platformFeatureFlags.fg)('rovo_chat_fix_cold_start_prompt_insertion');
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 = {};
@@ -11,7 +11,13 @@ const isIgnoredForTriggerLatest = type => {
11
11
  if (ignoredTriggerLatestEvents.has(type)) {
12
12
  return true;
13
13
  }
14
- return type === 'set-message-context' && fg('rovo_chat_fix_cold_start_prompt_insertion');
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
- return type === 'set-message-context' && fg('rovo_chat_fix_cold_start_prompt_insertion');
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 = {};
@@ -85,6 +85,12 @@ export type CreationContextParams = {
85
85
  spaceKey?: string;
86
86
  additionalContext?: Record<string, SerializableCreationContextValue>;
87
87
  };
88
+ export type ResultAttributionContextPayload = {
89
+ /**
90
+ * Source surface that launched the agent chat, appended to generated result analytics.
91
+ */
92
+ launchSource?: string;
93
+ };
88
94
  export type ChatNewPayload = PayloadCore<'chat-new', {
89
95
  name?: string;
90
96
  dialogues: Array<{
@@ -119,6 +125,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
119
125
  resetActiveMenu?: boolean;
120
126
  mode?: ChatModeParam;
121
127
  aiFeatureContext?: Record<string, unknown>;
128
+ /**
129
+ * Optional static analytics attribution for result events generated from this
130
+ * launched conversation.
131
+ */
132
+ resultAttributionContext?: ResultAttributionContextPayload;
122
133
  agentVersion?: {
123
134
  versionId?: string;
124
135
  versionType?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "9.10.0",
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": "^21.0.0",
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
  }