@atlaskit/rovo-triggers 3.12.0 → 3.14.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
+ ## 3.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
8
+ [EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
9
+
10
+ ## 3.13.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`f2efb53c01833`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2efb53c01833) -
15
+ [ux] Adding isViewMode property to send to chat if the user is in view mode
16
+
3
17
  ## 3.12.0
4
18
 
5
19
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -19,14 +19,6 @@ var Topics = exports.Topics = {
19
19
  // Not using the PayloadCore because the `data: type | undefined` is necessary
20
20
  // but `| undefined` will cause `data` to be removed by PayloadCore
21
21
 
22
- /**
23
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
24
- */
25
-
26
- /**
27
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
28
- */
29
-
30
22
  /** Inserts a prompt into the chat input - either:
31
23
  * - A prompt without a placeholder - sends as a message
32
24
  * - A prompt with a placeholder - inserts the prompt into the chat input
@@ -13,14 +13,6 @@ export const Topics = {
13
13
  // Not using the PayloadCore because the `data: type | undefined` is necessary
14
14
  // but `| undefined` will cause `data` to be removed by PayloadCore
15
15
 
16
- /**
17
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
18
- */
19
-
20
- /**
21
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
22
- */
23
-
24
16
  /** Inserts a prompt into the chat input - either:
25
17
  * - A prompt without a placeholder - sends as a message
26
18
  * - A prompt with a placeholder - inserts the prompt into the chat input
package/dist/esm/types.js CHANGED
@@ -13,14 +13,6 @@ export var Topics = {
13
13
  // Not using the PayloadCore because the `data: type | undefined` is necessary
14
14
  // but `| undefined` will cause `data` to be removed by PayloadCore
15
15
 
16
- /**
17
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
18
- */
19
-
20
- /**
21
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
22
- */
23
-
24
16
  /** Inserts a prompt into the chat input - either:
25
17
  * - A prompt without a placeholder - sends as a message
26
18
  * - A prompt with a placeholder - inserts the prompt into the chat input
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
2
+ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -53,6 +53,7 @@ export type EditorContextPayloadData = {
53
53
  };
54
54
  selectionFragment?: string;
55
55
  selectionLocalIds?: string;
56
+ isViewMode?: boolean;
56
57
  } | undefined;
57
58
  export type WhiteboardContextPayloadData = {
58
59
  type: 'image/svg+xml' | 'text/plain';
@@ -97,22 +98,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
97
98
  channelId: string;
98
99
  agentId?: string;
99
100
  }>;
100
- /**
101
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
102
- */
103
- export type ValidChatCallToActionUseCases = 'loom-confluence-page-script-co-use' | 'loom-confluence-page-script-cross-join';
104
- /**
105
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
106
- */
107
- export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-use-touchpoint' | 'confluence-page-loom-script-cross-join-touchpoint'
108
- /**
109
- * We want the choice of having a prefix at the end to allow for a new chat to be created for different pages
110
- */
111
- | `confluence-page-loom-script-co-use-touchpoint-${string}` | `confluence-page-loom-script-cross-join-touchpoint-${string}`;
112
- export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
113
- useCaseId: ValidChatCallToActionUseCases;
114
- }>;
115
- type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
116
101
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
117
102
  is3pActionAuth?: boolean;
118
103
  }>;
@@ -239,7 +224,7 @@ export type DashboardInsightsActionsPayloadData = {
239
224
  content: string;
240
225
  } | undefined;
241
226
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
242
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
227
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
243
228
  export type Callback = (payload: Payload) => void;
244
229
  export type TopicEvents = {
245
230
  [key in Topic]?: Array<{
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, ChatCallToActionClickedPayload, ValidChatCallToActionUseCases, ValidSourceIdsForChatCallToAction, } from './types';
2
+ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -53,6 +53,7 @@ export type EditorContextPayloadData = {
53
53
  };
54
54
  selectionFragment?: string;
55
55
  selectionLocalIds?: string;
56
+ isViewMode?: boolean;
56
57
  } | undefined;
57
58
  export type WhiteboardContextPayloadData = {
58
59
  type: 'image/svg+xml' | 'text/plain';
@@ -97,22 +98,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
97
98
  channelId: string;
98
99
  agentId?: string;
99
100
  }>;
100
- /**
101
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
102
- */
103
- export type ValidChatCallToActionUseCases = 'loom-confluence-page-script-co-use' | 'loom-confluence-page-script-cross-join';
104
- /**
105
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
106
- */
107
- export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-use-touchpoint' | 'confluence-page-loom-script-cross-join-touchpoint'
108
- /**
109
- * We want the choice of having a prefix at the end to allow for a new chat to be created for different pages
110
- */
111
- | `confluence-page-loom-script-co-use-touchpoint-${string}` | `confluence-page-loom-script-cross-join-touchpoint-${string}`;
112
- export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
113
- useCaseId: ValidChatCallToActionUseCases;
114
- }>;
115
- type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
116
101
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
117
102
  is3pActionAuth?: boolean;
118
103
  }>;
@@ -239,7 +224,7 @@ export type DashboardInsightsActionsPayloadData = {
239
224
  content: string;
240
225
  } | undefined;
241
226
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
242
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | ChatCallToActionClickedPayload | ChatCallToActionLoomScriptDisplayed;
227
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
243
228
  export type Callback = (payload: Payload) => void;
244
229
  export type TopicEvents = {
245
230
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "3.12.0",
3
+ "version": "3.14.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": {
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.2.0",
32
+ "@atlaskit/adf-schema": "^51.3.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "bind-event-listener": "^3.0.0"
35
35
  },
@@ -39,8 +39,8 @@
39
39
  "devDependencies": {
40
40
  "@af/integration-testing": "workspace:^",
41
41
  "@af/visual-regression": "workspace:^",
42
- "@atlaskit/css": "^0.14.0",
43
- "@atlaskit/primitives": "^14.15.0",
42
+ "@atlaskit/css": "^0.15.0",
43
+ "@atlaskit/primitives": "^16.0.0",
44
44
  "@atlaskit/ssr": "workspace:^",
45
45
  "@atlassian/feature-flags-test-utils": "^0.3.0",
46
46
  "@testing-library/react": "^13.4.0",