@atlaskit/rovo-triggers 10.5.0 → 10.6.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 +29 -0
- package/chat-entry-point/package.json +10 -0
- package/dist/cjs/chat-entry-point.js +10 -0
- package/dist/es2019/chat-entry-point.js +4 -0
- package/dist/esm/chat-entry-point.js +4 -0
- package/dist/types/chat-entry-point.d.ts +3 -0
- package/dist/types/types.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 10.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`169859ef13e04`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/169859ef13e04) -
|
|
8
|
+
Add an additive `chatEntryPoint` attribution channel to Rovo Chat, so a product can measure chats
|
|
9
|
+
that originated from its own surfaces.
|
|
10
|
+
|
|
11
|
+
A `chat-new` publisher can now pass a `ChatEntryPoint` enum value to record which surface launched
|
|
12
|
+
the conversation. New entry points must be added to the enum before use. The value is stored on
|
|
13
|
+
the conversation record — so it also covers launches that carry no `prompt`, and keeps applying
|
|
14
|
+
past the first turn — and is reported as a new `chatEntryPoint` attribute on the
|
|
15
|
+
`aiInteraction initiated` and `aiResult viewed` events.
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { ChatEntryPoint } from '@atlaskit/rovo-triggers/chat-entry-point';
|
|
19
|
+
|
|
20
|
+
publish({
|
|
21
|
+
type: 'chat-new',
|
|
22
|
+
data: {
|
|
23
|
+
chatEntryPoint: ChatEntryPoint.SEARCH_PAGE_AUTO_OPEN_CHAT,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Purely additive: no existing analytics attribute changes value or value space. `source`,
|
|
29
|
+
`subjectId`, `interactionSource`, `followUpSource`, `invokedFrom`, `entryPoint` and
|
|
30
|
+
`proactiveAIGenerated` are untouched.
|
|
31
|
+
|
|
3
32
|
## 10.5.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/rovo-triggers/chat-entry-point",
|
|
3
|
+
"main": "../dist/cjs/chat-entry-point.js",
|
|
4
|
+
"module": "../dist/esm/chat-entry-point.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/chat-entry-point.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/chat-entry-point.d.ts"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ChatEntryPoint = void 0;
|
|
7
|
+
var ChatEntryPoint = exports.ChatEntryPoint = /*#__PURE__*/function (ChatEntryPoint) {
|
|
8
|
+
ChatEntryPoint["SEARCH_PAGE_AUTO_OPEN_CHAT"] = "searchPageAutoOpenChat";
|
|
9
|
+
return ChatEntryPoint;
|
|
10
|
+
}({});
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema/doc';
|
|
2
|
+
import type { ChatEntryPoint } from './chat-entry-point';
|
|
2
3
|
import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
|
|
3
4
|
import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
|
|
4
5
|
import type { SolutionArchitectAgentActivationFlowStoppedPayload, SolutionArchitectAgentActivationPayload, SolutionArchitectAgentActivationFlowStartedPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, StudioLandingPageRedirectPayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
|
|
@@ -139,6 +140,8 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
139
140
|
*/
|
|
140
141
|
agentName?: string;
|
|
141
142
|
agentIdentityAccountId?: string;
|
|
143
|
+
/** Identifies the product surface that launched the conversation for analytics attribution. */
|
|
144
|
+
chatEntryPoint?: ChatEntryPoint;
|
|
142
145
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
143
146
|
export type RovoSpaceEntryPoint = 'leftNav' | 'sidebar' | 'zeroQuery' | 'typeahead' | 'inChatRecommendation';
|
|
144
147
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.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": {
|