@atlaskit/rovo-triggers 10.4.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 +51 -0
- package/chat-entry-point/package.json +10 -0
- package/dist/cjs/chat-entry-point.js +10 -0
- package/dist/cjs/types.js +7 -0
- package/dist/es2019/chat-entry-point.js +4 -0
- package/dist/es2019/types.js +7 -0
- package/dist/esm/chat-entry-point.js +4 -0
- package/dist/esm/types.js +7 -0
- package/dist/types/chat-entry-point.d.ts +3 -0
- package/dist/types/types.d.ts +11 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
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
|
+
|
|
32
|
+
## 10.5.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- [`71548d5902718`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71548d5902718) -
|
|
37
|
+
Allow InContextAifcModal to be programmatically closed via a pubsub event. Mainly intended for use
|
|
38
|
+
by downstream chat actions.
|
|
39
|
+
|
|
40
|
+
Publishers can dismiss an open modal by publishing the new `close-in-context-aifc-modal` payload
|
|
41
|
+
on the `ai-mate` topic:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { usePublish } from '@atlaskit/rovo-triggers/main';
|
|
45
|
+
|
|
46
|
+
const publish = usePublish('ai-mate');
|
|
47
|
+
|
|
48
|
+
publish({
|
|
49
|
+
type: 'close-in-context-aifc-modal',
|
|
50
|
+
source: 'inline-agent-creation',
|
|
51
|
+
});
|
|
52
|
+
```
|
|
53
|
+
|
|
3
54
|
## 10.4.0
|
|
4
55
|
|
|
5
56
|
### 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/cjs/types.js
CHANGED
|
@@ -105,6 +105,13 @@ var Topics = exports.Topics = {
|
|
|
105
105
|
* optimistically in the Relay store without refetching.
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Requests that the currently mounted in-context AIFC modal close.
|
|
110
|
+
*
|
|
111
|
+
* This event is intentionally unscoped because only one such modal
|
|
112
|
+
* is expected to be open at a time.
|
|
113
|
+
*/
|
|
114
|
+
|
|
108
115
|
var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
109
116
|
/**
|
|
110
117
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
package/dist/es2019/types.js
CHANGED
|
@@ -99,6 +99,13 @@ export const Topics = {
|
|
|
99
99
|
* optimistically in the Relay store without refetching.
|
|
100
100
|
*/
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Requests that the currently mounted in-context AIFC modal close.
|
|
104
|
+
*
|
|
105
|
+
* This event is intentionally unscoped because only one such modal
|
|
106
|
+
* is expected to be open at a time.
|
|
107
|
+
*/
|
|
108
|
+
|
|
102
109
|
export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
103
110
|
/**
|
|
104
111
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
package/dist/esm/types.js
CHANGED
|
@@ -99,6 +99,13 @@ export var Topics = {
|
|
|
99
99
|
* optimistically in the Relay store without refetching.
|
|
100
100
|
*/
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Requests that the currently mounted in-context AIFC modal close.
|
|
104
|
+
*
|
|
105
|
+
* This event is intentionally unscoped because only one such modal
|
|
106
|
+
* is expected to be open at a time.
|
|
107
|
+
*/
|
|
108
|
+
|
|
102
109
|
export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
103
110
|
/**
|
|
104
111
|
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
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
|
/**
|
|
@@ -594,7 +597,14 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
594
597
|
openChat: false;
|
|
595
598
|
isActive: boolean;
|
|
596
599
|
};
|
|
597
|
-
|
|
600
|
+
/**
|
|
601
|
+
* Requests that the currently mounted in-context AIFC modal close.
|
|
602
|
+
*
|
|
603
|
+
* This event is intentionally unscoped because only one such modal
|
|
604
|
+
* is expected to be open at a time.
|
|
605
|
+
*/
|
|
606
|
+
export type CloseInContextAifcModalPayload = PayloadCore<'close-in-context-aifc-modal'>;
|
|
607
|
+
export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | InsertSkillPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | CustomSkillUpdatePayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
598
608
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
599
609
|
conversationId: string;
|
|
600
610
|
planTitle: string;
|
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": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/css": "^1.0.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.2.0",
|
|
45
45
|
"@atlaskit/ssr": "workspace:^",
|
|
46
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
46
|
+
"@atlassian/a11y-jest-testing": "^0.15.0",
|
|
47
47
|
"@atlassian/conversation-assistant-service-api": "^15.1.0",
|
|
48
48
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
49
49
|
"@testing-library/react": "^16.3.0",
|