@atlaskit/rovo-triggers 7.4.2 → 7.5.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,19 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 7.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8f6e8fce75e2c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8f6e8fce75e2c) -
8
+ [ux] Show Smart Link post-auth custom action UI in the Rovo Chat mini-modal, guarded by the
9
+ post-auth chat feature gate. Includes the dedicated Smart Link launch payload, Conversation
10
+ Assistant mini-modal UI integration, post-auth action chips, and native context banner support for
11
+ the clicked Smart Link context without enabling current page context.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 7.4.2
4
18
 
5
19
  ### Patch Changes
package/dist/cjs/types.js CHANGED
@@ -28,6 +28,15 @@ var Topics = exports.Topics = {
28
28
  // Not using the PayloadCore because the `data: type | undefined` is necessary
29
29
  // but `| undefined` will cause `data` to be removed by PayloadCore
30
30
 
31
+ /**
32
+ * Experiment-scoped Smart Link post-auth launch event for
33
+ * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
34
+ *
35
+ * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
36
+ * a prompt. If the experiment does not become permanent, remove this event type as
37
+ * part of the experiment cleanup.
38
+ */
39
+
31
40
  /** Inserts a prompt into the chat input - either:
32
41
  * - A prompt without a placeholder - sends as a message
33
42
  * - A prompt with a placeholder - inserts the prompt into the chat input
@@ -22,6 +22,15 @@ export const Topics = {
22
22
  // Not using the PayloadCore because the `data: type | undefined` is necessary
23
23
  // but `| undefined` will cause `data` to be removed by PayloadCore
24
24
 
25
+ /**
26
+ * Experiment-scoped Smart Link post-auth launch event for
27
+ * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
28
+ *
29
+ * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
30
+ * a prompt. If the experiment does not become permanent, remove this event type as
31
+ * part of the experiment cleanup.
32
+ */
33
+
25
34
  /** Inserts a prompt into the chat input - either:
26
35
  * - A prompt without a placeholder - sends as a message
27
36
  * - A prompt with a placeholder - inserts the prompt into the chat input
package/dist/esm/types.js CHANGED
@@ -22,6 +22,15 @@ export var Topics = {
22
22
  // Not using the PayloadCore because the `data: type | undefined` is necessary
23
23
  // but `| undefined` will cause `data` to be removed by PayloadCore
24
24
 
25
+ /**
26
+ * Experiment-scoped Smart Link post-auth launch event for
27
+ * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
28
+ *
29
+ * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
30
+ * a prompt. If the experiment does not become permanent, remove this event type as
31
+ * part of the experiment cleanup.
32
+ */
33
+
25
34
  /** Inserts a prompt into the chat input - either:
26
35
  * - A prompt without a placeholder - sends as a message
27
36
  * - A prompt with a placeholder - inserts the prompt into the chat input
@@ -189,6 +189,25 @@ export type JiraCreateContextPayload = PayloadCore<'jira-create-context-payload'
189
189
  data: JiraCreateContextPayloadData;
190
190
  };
191
191
  export type ChatDraftPayload = PayloadCore<'chat-draft'>;
192
+ export type SmartLink3PProjectContext = {
193
+ projectId: string;
194
+ projectName: string;
195
+ projectUrl: string;
196
+ };
197
+ export type SmartLink3PPostAuthProvider = 'Google Drive';
198
+ /**
199
+ * Experiment-scoped Smart Link post-auth launch event for
200
+ * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
201
+ *
202
+ * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
203
+ * a prompt. If the experiment does not become permanent, remove this event type as
204
+ * part of the experiment cleanup.
205
+ */
206
+ export type ChatSmartLink3PPostAuthLaunchPayload = PayloadCore<'chat-smartlink-3p-post-auth-launch', {
207
+ extensionKey: string;
208
+ provider: SmartLink3PPostAuthProvider;
209
+ projectContext: SmartLink3PProjectContext;
210
+ }>;
192
211
  export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
193
212
  export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
194
213
  export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
@@ -464,7 +483,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
464
483
  openChat: false;
465
484
  isActive: boolean;
466
485
  };
467
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | 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 | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
486
+ export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | 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 | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
468
487
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
469
488
  conversationId: string;
470
489
  planTitle: string;
@@ -189,6 +189,25 @@ export type JiraCreateContextPayload = PayloadCore<'jira-create-context-payload'
189
189
  data: JiraCreateContextPayloadData;
190
190
  };
191
191
  export type ChatDraftPayload = PayloadCore<'chat-draft'>;
192
+ export type SmartLink3PProjectContext = {
193
+ projectId: string;
194
+ projectName: string;
195
+ projectUrl: string;
196
+ };
197
+ export type SmartLink3PPostAuthProvider = 'Google Drive';
198
+ /**
199
+ * Experiment-scoped Smart Link post-auth launch event for
200
+ * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
201
+ *
202
+ * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
203
+ * a prompt. If the experiment does not become permanent, remove this event type as
204
+ * part of the experiment cleanup.
205
+ */
206
+ export type ChatSmartLink3PPostAuthLaunchPayload = PayloadCore<'chat-smartlink-3p-post-auth-launch', {
207
+ extensionKey: string;
208
+ provider: SmartLink3PPostAuthProvider;
209
+ projectContext: SmartLink3PProjectContext;
210
+ }>;
192
211
  export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
193
212
  export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
194
213
  export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
@@ -464,7 +483,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
464
483
  openChat: false;
465
484
  isActive: boolean;
466
485
  };
467
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | 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 | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
486
+ export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | 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 | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
468
487
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
469
488
  conversationId: string;
470
489
  planTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "7.4.2",
3
+ "version": "7.5.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": {