@atlaskit/rovo-triggers 10.9.0 → 10.10.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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 10.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f9bfed530dd66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9bfed530dd66) -
8
+ Route the Rovo sidebar into a Remix picker view when `activeMenu` is `remix`, gated on the
9
+ `cc-ce-maui-remix-menu-multivariant` experiment for the `variant2` cohort. Extends the public
10
+ `Menu` and `RovoChatPathway` unions with `remix`, deep-links via `rovoChatPathway=remix`, and
11
+ falls back to the default chat view for control users so they do not land on an empty panel.
12
+ Lazy-loads `RovoChatRemixView` with `React.lazy` (same pattern as the other conditionally rendered
13
+ sidebar panels) so the real picker dependencies in CCCEMAU-3365 do not need a follow-up refactor.
14
+
15
+ ```ts
16
+ import { addRovoParamsToUrl } from '@atlaskit/rovo-triggers/params';
17
+ import { useUIStoreActions } from '@atlassian/conversation-assistant-store/controllers/ui-store';
18
+
19
+ // Deep-link into Remix mode via `?rovoChatPathway=remix`
20
+ const remixUrl = addRovoParamsToUrl(window.location.href, { pathway: 'remix' });
21
+
22
+ // Or open Remix from in-product code (variant2 cohort only; control falls back to chat)
23
+ const { setActiveMenu } = useUIStoreActions();
24
+ setActiveMenu('remix');
25
+ ```
26
+
3
27
  ## 10.9.0
4
28
 
5
29
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- export type RovoChatPathway = 'chat' | 'agents-browse' | 'agents-create' | 'pulse';
1
+ export type RovoChatPathway = 'chat' | 'agents-browse' | 'agents-create' | 'pulse' | 'remix';
2
2
  export type RovoChatOpenMode = 'sidebar' | 'mini-modal' | 'full-screen-modal';
3
3
  export interface BaseRovoChatParams {
4
4
  pathway: RovoChatPathway;
@@ -24,5 +24,6 @@ type ChatParams = RovoParams<'chat'>;
24
24
  type AgentBrowseParams = RovoParams<'agents-browse'>;
25
25
  type AgentCreateParams = RovoParams<'agents-create'>;
26
26
  type PulseParams = RovoParams<'pulse'>;
27
- export type RovoChatParams = Partial<ChatParams | AgentCreateParams | AgentBrowseParams | PulseParams>;
27
+ type RemixParams = RovoParams<'remix'>;
28
+ export type RovoChatParams = Partial<ChatParams | AgentCreateParams | AgentBrowseParams | PulseParams | RemixParams>;
28
29
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "10.9.0",
3
+ "version": "10.10.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": {
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/ssr": "workspace:^",
46
46
  "@atlassian/a11y-jest-testing": "^0.15.0",
47
- "@atlassian/conversation-assistant-service-api": "^16.3.0",
47
+ "@atlassian/conversation-assistant-service-api": "^16.4.0",
48
48
  "@atlassian/feature-flags-test-utils": "^1.2.0",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "react": "^18.2.0",