@atlaskit/rovo-triggers 3.13.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,12 @@
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
+
3
10
  ## 3.13.0
4
11
 
5
12
  ### 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';
@@ -98,22 +98,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
98
98
  channelId: string;
99
99
  agentId?: string;
100
100
  }>;
101
- /**
102
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
103
- */
104
- export type ValidChatCallToActionUseCases = 'loom-confluence-page-script-co-use' | 'loom-confluence-page-script-cross-join';
105
- /**
106
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
107
- */
108
- export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-use-touchpoint' | 'confluence-page-loom-script-cross-join-touchpoint'
109
- /**
110
- * We want the choice of having a prefix at the end to allow for a new chat to be created for different pages
111
- */
112
- | `confluence-page-loom-script-co-use-touchpoint-${string}` | `confluence-page-loom-script-cross-join-touchpoint-${string}`;
113
- export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
114
- useCaseId: ValidChatCallToActionUseCases;
115
- }>;
116
- type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
117
101
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
118
102
  is3pActionAuth?: boolean;
119
103
  }>;
@@ -240,7 +224,7 @@ export type DashboardInsightsActionsPayloadData = {
240
224
  content: string;
241
225
  } | undefined;
242
226
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
243
- 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;
244
228
  export type Callback = (payload: Payload) => void;
245
229
  export type TopicEvents = {
246
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';
@@ -98,22 +98,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
98
98
  channelId: string;
99
99
  agentId?: string;
100
100
  }>;
101
- /**
102
- * Possible `useCaseIds` for when the cta is clicked and sends a {@link ChatCallToActionClickedPayload} event
103
- */
104
- export type ValidChatCallToActionUseCases = 'loom-confluence-page-script-co-use' | 'loom-confluence-page-script-cross-join';
105
- /**
106
- * Source Ids that will initiate a chat containing a call-to-action from the first assistant message
107
- */
108
- export type ValidSourceIdsForChatCallToAction = 'confluence-page-loom-script-co-use-touchpoint' | 'confluence-page-loom-script-cross-join-touchpoint'
109
- /**
110
- * We want the choice of having a prefix at the end to allow for a new chat to be created for different pages
111
- */
112
- | `confluence-page-loom-script-co-use-touchpoint-${string}` | `confluence-page-loom-script-cross-join-touchpoint-${string}`;
113
- export type ChatCallToActionClickedPayload = PayloadCore<'chat-cta-clicked', {
114
- useCaseId: ValidChatCallToActionUseCases;
115
- }>;
116
- type ChatCallToActionLoomScriptDisplayed = PayloadCore<'chat-cta-loom-script-displayed'>;
117
101
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
118
102
  is3pActionAuth?: boolean;
119
103
  }>;
@@ -240,7 +224,7 @@ export type DashboardInsightsActionsPayloadData = {
240
224
  content: string;
241
225
  } | undefined;
242
226
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
243
- 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;
244
228
  export type Callback = (payload: Payload) => void;
245
229
  export type TopicEvents = {
246
230
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "3.13.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",