@atlaskit/rovo-triggers 9.5.0 → 9.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 9.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b6919a254df4f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b6919a254df4f) -
8
+ Wire skill selection from the skills modal directly into the chat prompt input.
9
+
10
+ Clicking a skill in the "See All Skills" modal now inserts a skill chip at the cursor position in
11
+ the chat input, instead of toggling selection. Adds `InsertSkillPayload` to rovo-triggers,
12
+ `isPressable` to `SkillCard`, `onSkillClick` to `SkillsList`/`AgentStudioSkills`, and handles the
13
+ new pubsub event in `ChatInputInternal`.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 9.5.0
4
20
 
5
21
  ### Minor Changes
package/compass.yml CHANGED
@@ -1,16 +1,19 @@
1
1
  configVersion: 1
2
- id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/ca5b6629-85fe-442c-8946-01fc4e33a3d4'
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/ca5b6629-85fe-442c-8946-01fc4e33a3d4
3
3
  name: platform/conversation-assistant
4
4
  description: rovo-chat-fe
5
- ownerId: 'ari:cloud:identity::team/14c97034-d86b-45c9-8a6e-872e0cbbd69b'
5
+ ownerId: ari:cloud:identity::team/14c97034-d86b-45c9-8a6e-872e0cbbd69b # AI Mate Frontend
6
6
  typeId: OTHER
7
7
  fields:
8
8
  tier: 3
9
9
  lifecycle: Active
10
+ isMonorepoProject: true
10
11
  labels:
11
12
  - ai-mate
12
13
  - rovo-chat-fe
13
14
  - conversation-assistant
15
+ - platform-code
16
+ - platform-afm
14
17
  customFields:
15
18
  - name: Department
16
19
  type: text
@@ -27,13 +30,19 @@ customFields:
27
30
  - name: Trusted Reviewer Teams
28
31
  type: text
29
32
  value: ari:cloud:identity::team/7cfec967-4cef-4e5d-882a-9458a150a2df
33
+ - name: Technical Owner
34
+ type: user
35
+ value: ari:cloud:identity::user/557057:39edaad5-841d-4699-ac7c-527acd6a72ec # Peter Obara
30
36
  links:
31
37
  - name: Root Repository
32
38
  type: REPOSITORY
33
39
  url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
34
40
  - name: Where to log bugs with template
35
41
  type: PROJECT
36
- url: 'https://product-fabric.atlassian.net/jira/software/projects/ROVOFE/boards/5135'
42
+ url: https://product-fabric.atlassian.net/jira/software/projects/ROVOFE/boards/5135
37
43
  - name: Slack Channel
38
44
  type: CHAT_CHANNEL
39
- url: 'https://atlassian.enterprise.slack.com/archives/C0677M19GU9'
45
+ url: https://atlassian.enterprise.slack.com/archives/C0677M19GU9 # #ai-mate-frontend
46
+ - name: Rovo Triggers
47
+ type: REPOSITORY
48
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/ai-mate/rovo-triggers
package/dist/cjs/types.js CHANGED
@@ -69,6 +69,8 @@ var Topics = exports.Topics = {
69
69
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
70
70
  */
71
71
 
72
+ /** Inserts a skill chip into the chat input at the current cursor position. */
73
+
72
74
  /** Selects a conversation action by ID
73
75
  * - Used to programmatically open a specific action in the conversation actions list
74
76
  * - The action screen must be already open, and the actions list populated
@@ -63,6 +63,8 @@ export const Topics = {
63
63
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
64
64
  */
65
65
 
66
+ /** Inserts a skill chip into the chat input at the current cursor position. */
67
+
66
68
  /** Selects a conversation action by ID
67
69
  * - Used to programmatically open a specific action in the conversation actions list
68
70
  * - The action screen must be already open, and the actions list populated
package/dist/esm/types.js CHANGED
@@ -63,6 +63,8 @@ export var Topics = {
63
63
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
64
64
  */
65
65
 
66
+ /** Inserts a skill chip into the chat input at the current cursor position. */
67
+
66
68
  /** Selects a conversation action by ID
67
69
  * - Used to programmatically open a specific action in the conversation actions list
68
70
  * - The action screen must be already open, and the actions list populated
@@ -354,6 +354,19 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
354
354
  export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
355
355
  urls: string[];
356
356
  }>;
357
+ /** Inserts a skill chip into the chat input at the current cursor position. */
358
+ export type InsertSkillPayload = PayloadCore<'insert-skill-into-prompt-input', {
359
+ skill: {
360
+ id: string;
361
+ name: string;
362
+ slug: string;
363
+ description?: string;
364
+ product?: string;
365
+ iconName?: string;
366
+ color?: string;
367
+ };
368
+ skillSelectionSource?: string;
369
+ }>;
357
370
  /** Selects a conversation action by ID
358
371
  * - Used to programmatically open a specific action in the conversation actions list
359
372
  * - The action screen must be already open, and the actions list populated
@@ -567,7 +580,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
567
580
  openChat: false;
568
581
  isActive: boolean;
569
582
  };
570
- export type Payload = MessageSendPayload | ChatClosePayload | 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 | 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;
583
+ export type Payload = MessageSendPayload | ChatClosePayload | 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;
571
584
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
572
585
  conversationId: string;
573
586
  planTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "9.5.0",
3
+ "version": "9.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": {
@@ -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": "^20.2.0",
44
+ "@atlaskit/primitives": "^20.3.0",
45
45
  "@atlaskit/ssr": "workspace:^",
46
46
  "@atlassian/a11y-jest-testing": "^0.13.0",
47
47
  "@atlassian/feature-flags-test-utils": "^1.1.0",