@atlaskit/rovo-triggers 11.9.0 → 12.0.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 +43 -0
- package/dist/cjs/common/utils/params/constants.js +1 -1
- package/dist/cjs/types.js +0 -21
- package/dist/es2019/common/utils/params/constants.js +1 -1
- package/dist/es2019/types.js +0 -21
- package/dist/esm/common/utils/params/constants.js +1 -1
- package/dist/esm/types.js +0 -21
- package/dist/types/common/utils/params/types.d.ts +0 -1
- package/dist/types/types.d.ts +1 -35
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`4ffd006dca6d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4ffd006dca6d6) -
|
|
8
|
+
Remove the Rovo Insights home carousel and the plumbing that connected it to chat. The carousel's
|
|
9
|
+
only consumer, the Atlas Home placement, was removed in ASIMO-5175, so none of the removed APIs
|
|
10
|
+
has a remaining call site in the monorepo.
|
|
11
|
+
- `@atlassian/rovo-growth-pulse`: the `./ui/insights-carousel` and
|
|
12
|
+
`./ui/insights-carousel-container` entrypoints (`InsightsCarousel`, `InsightsCarouselContainer`)
|
|
13
|
+
and the `./common/analytics/useFireInsightCardClicked` entrypoint are deleted, along with their
|
|
14
|
+
examples and the `platform-dst-motion-uplift-custom-button` gate registration.
|
|
15
|
+
`insightsHomeCarousel` is no longer a member of `InsightsInvokedFrom`. The
|
|
16
|
+
`@atlaskit/dropdown-menu`, `@atlaskit/rovo-triggers` and `bind-event-listener` dependencies,
|
|
17
|
+
used only by the carousel, are dropped.
|
|
18
|
+
- `@atlassian/conversation-assistant`: `InsightsChatExitedPublisher` is deleted and no longer
|
|
19
|
+
exported from `./common/ui/back-behavior-override-context`, and `PubSubListener` no longer
|
|
20
|
+
handles the `insights-open-in-chat` rovo-trigger.
|
|
21
|
+
- `@atlaskit/rovo-triggers`: `InsightsOpenInChatPayload` and `InsightsChatExitedPayload` are
|
|
22
|
+
deleted from `./types` and are no longer members of the `Payload` union.
|
|
23
|
+
|
|
24
|
+
**Breaking scenario**: code importing any of the removed entrypoints or types, passing
|
|
25
|
+
`invokedFrom: 'insightsHomeCarousel'`, publishing a payload whose `type` is
|
|
26
|
+
`insights-open-in-chat` or `insights-chat-exited`, or narrowing on either of those `payload.type`
|
|
27
|
+
values will fail to compile. Publishing `insights-open-in-chat` no longer opens a seeded insight
|
|
28
|
+
chat.
|
|
29
|
+
|
|
30
|
+
**Migration**: delete those imports, publishes and branches. A surface that needs to show insights
|
|
31
|
+
should render the in-panel `InsightsFeed` from `@atlassian/rovo-growth-pulse/ui/insights-feed`,
|
|
32
|
+
which carries its own analytics and opens insight chats through `useSeedInsightConversation`
|
|
33
|
+
without the rovo-triggers bus. Insights opened from the in-panel feed are unaffected.
|
|
34
|
+
|
|
35
|
+
## 11.10.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- [`f19e4de2c0467`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f19e4de2c0467) -
|
|
40
|
+
[ux] clean up rovo_chat_openchatmode_query_param
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
|
|
3
46
|
## 11.9.0
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|
|
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ROVO_VALID_PARAMS = exports.ROVO_PARAM_PREFIX = void 0;
|
|
7
7
|
var ROVO_PARAM_PREFIX = exports.ROVO_PARAM_PREFIX = 'rovoChat';
|
|
8
|
-
var ROVO_VALID_PARAMS = exports.ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', '
|
|
8
|
+
var ROVO_VALID_PARAMS = exports.ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', 'rovoJourneyId', 'searchQuery'];
|
package/dist/cjs/types.js
CHANGED
|
@@ -27,27 +27,6 @@ var Topics = exports.Topics = {
|
|
|
27
27
|
|
|
28
28
|
/** Creation metadata forwarded when an editor surface launches Rovo Chat. */
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
32
|
-
* reproducing the same experience as clicking an insight inside the in-panel
|
|
33
|
-
* InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
|
|
34
|
-
* follow-ups, and a back-to-pulse override).
|
|
35
|
-
*
|
|
36
|
-
* Published by surfaces that render insights outside the panel (e.g. the home
|
|
37
|
-
* insights carousel). All fields are serializable: the icon is carried as the
|
|
38
|
-
* raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
|
|
39
|
-
* `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
|
|
40
|
-
* cannot cross the event bus. The standardized back-button label is owned
|
|
41
|
-
* panel-side and is intentionally not part of this payload.
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
46
|
-
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
47
|
-
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
48
|
-
* only meaning is "the user is no longer in an insight chat".
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
30
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
52
31
|
|
|
53
32
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const ROVO_PARAM_PREFIX = 'rovoChat';
|
|
2
|
-
export const ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', '
|
|
2
|
+
export const ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', 'rovoJourneyId', 'searchQuery'];
|
package/dist/es2019/types.js
CHANGED
|
@@ -21,27 +21,6 @@ export const Topics = {
|
|
|
21
21
|
|
|
22
22
|
/** Creation metadata forwarded when an editor surface launches Rovo Chat. */
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
26
|
-
* reproducing the same experience as clicking an insight inside the in-panel
|
|
27
|
-
* InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
|
|
28
|
-
* follow-ups, and a back-to-pulse override).
|
|
29
|
-
*
|
|
30
|
-
* Published by surfaces that render insights outside the panel (e.g. the home
|
|
31
|
-
* insights carousel). All fields are serializable: the icon is carried as the
|
|
32
|
-
* raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
|
|
33
|
-
* `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
|
|
34
|
-
* cannot cross the event bus. The standardized back-button label is owned
|
|
35
|
-
* panel-side and is intentionally not part of this payload.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
40
|
-
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
41
|
-
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
42
|
-
* only meaning is "the user is no longer in an insight chat".
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
24
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
46
25
|
|
|
47
26
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var ROVO_PARAM_PREFIX = 'rovoChat';
|
|
2
|
-
export var ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', '
|
|
2
|
+
export var ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'stagingAreaOpen', 'messageIdSelectedForPreview', 'invocationIdSelectedForPreview', 'promptLibraryOpen', 'rovoJourneyId', 'searchQuery'];
|
package/dist/esm/types.js
CHANGED
|
@@ -21,27 +21,6 @@ export var Topics = {
|
|
|
21
21
|
|
|
22
22
|
/** Creation metadata forwarded when an editor surface launches Rovo Chat. */
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
26
|
-
* reproducing the same experience as clicking an insight inside the in-panel
|
|
27
|
-
* InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
|
|
28
|
-
* follow-ups, and a back-to-pulse override).
|
|
29
|
-
*
|
|
30
|
-
* Published by surfaces that render insights outside the panel (e.g. the home
|
|
31
|
-
* insights carousel). All fields are serializable: the icon is carried as the
|
|
32
|
-
* raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
|
|
33
|
-
* `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
|
|
34
|
-
* cannot cross the event bus. The standardized back-button label is owned
|
|
35
|
-
* panel-side and is intentionally not part of this payload.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
40
|
-
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
41
|
-
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
42
|
-
* only meaning is "the user is no longer in an insight chat".
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
24
|
/** Partial database context for iframe updates (e.g. selection-only). */
|
|
46
25
|
|
|
47
26
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
package/dist/types/types.d.ts
CHANGED
|
@@ -196,40 +196,6 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
196
196
|
invokedByNodeLocalId?: string;
|
|
197
197
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
198
198
|
export type RovoSpaceEntryPoint = 'leftNav' | 'sidebar' | 'zeroQuery' | 'typeahead' | 'inChatRecommendation';
|
|
199
|
-
/**
|
|
200
|
-
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
201
|
-
* reproducing the same experience as clicking an insight inside the in-panel
|
|
202
|
-
* InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
|
|
203
|
-
* follow-ups, and a back-to-pulse override).
|
|
204
|
-
*
|
|
205
|
-
* Published by surfaces that render insights outside the panel (e.g. the home
|
|
206
|
-
* insights carousel). All fields are serializable: the icon is carried as the
|
|
207
|
-
* raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
|
|
208
|
-
* `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
|
|
209
|
-
* cannot cross the event bus. The standardized back-button label is owned
|
|
210
|
-
* panel-side and is intentionally not part of this payload.
|
|
211
|
-
*/
|
|
212
|
-
export type InsightsOpenInChatPayload = PayloadCore<'insights-open-in-chat', {
|
|
213
|
-
/** Stringified ADF JSON for the insight detail — seeded as the agent message. */
|
|
214
|
-
adf: string;
|
|
215
|
-
/** Conversation name / header title. */
|
|
216
|
-
conversationTitle: string;
|
|
217
|
-
/** Raw API `icon` string key (e.g. `'lightbulb'`), re-resolved panel-side. */
|
|
218
|
-
iconKey: string;
|
|
219
|
-
/** Raw API `color` string key (e.g. `'blueBold'`), re-resolved panel-side. */
|
|
220
|
-
iconColor: string;
|
|
221
|
-
/** Insight category (e.g. group category), used for click analytics attribution. */
|
|
222
|
-
insightCategory: string;
|
|
223
|
-
/** Follow-up prompt strings to seed into the conversation. */
|
|
224
|
-
followUps?: string[] | null;
|
|
225
|
-
}>;
|
|
226
|
-
/**
|
|
227
|
-
* Published from the panel (publisher) side when the user leaves a seeded Rovo
|
|
228
|
-
* Insight chat (via any exit path). Surfaces rendering the Rovo Insights carousel
|
|
229
|
-
* subscribe to this to clear the selected-card highlight. Carries no data: the
|
|
230
|
-
* only meaning is "the user is no longer in an insight chat".
|
|
231
|
-
*/
|
|
232
|
-
export type InsightsChatExitedPayload = PayloadCore<'insights-chat-exited', {}>;
|
|
233
199
|
export type EditorContextPayloadData = {
|
|
234
200
|
document: {
|
|
235
201
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -738,7 +704,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
738
704
|
* is expected to be open at a time.
|
|
739
705
|
*/
|
|
740
706
|
export type CloseInContextAifcModalPayload = PayloadCore<'close-in-context-aifc-modal'>;
|
|
741
|
-
export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload |
|
|
707
|
+
export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | OpenRovoRemixSidebarPayload | UpdateRovoRemixPresetPayload | SubmitRovoRemixPayload | RovoRemixHandoffFailedPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | ArtifactContextPayload | 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 | RecommendedSpacesFirstTimeSelectedPayload | CustomSkillUpdatePayload | RovoAgentDraftCreatedPayload | RovoAgentPublishedPayload | CustomSkillDeletedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload | ConfluenceContentFinalizedPayload;
|
|
742
708
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
743
709
|
conversationId: string;
|
|
744
710
|
planTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"atlaskit:src": "src/index.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/adf-schema": "^57.
|
|
37
|
+
"@atlaskit/adf-schema": "^57.7.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/primitives": "^22.5.0",
|
|
51
51
|
"@atlaskit/ssr": "workspace:^",
|
|
52
52
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
53
|
-
"@atlassian/conversation-assistant-service-api": "^19.
|
|
53
|
+
"@atlassian/conversation-assistant-service-api": "^19.7.0",
|
|
54
54
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
55
55
|
"@atlassian/testing-library": "^0.11.0",
|
|
56
56
|
"@atlassian/workbench": "workspace:*",
|