@atlaskit/rovo-triggers 3.13.0 → 3.14.1

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,20 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 3.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b7c4ffd0fd579`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7c4ffd0fd579) -
8
+ [ux] Adding isViewMode property to send to chat if the user is in view/readonly mode on a
9
+ whiteboard
10
+
11
+ ## 3.14.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
16
+ [EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
17
+
3
18
  ## 3.13.0
4
19
 
5
20
  ### 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';
@@ -59,6 +59,7 @@ export type WhiteboardContextPayloadData = {
59
59
  type: 'image/svg+xml' | 'text/plain';
60
60
  content: string;
61
61
  contentId?: string;
62
+ isViewMode?: boolean;
62
63
  } | undefined;
63
64
  export type BrowserContextPayloadData = {
64
65
  context: {
@@ -98,22 +99,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
98
99
  channelId: string;
99
100
  agentId?: string;
100
101
  }>;
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
102
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
118
103
  is3pActionAuth?: boolean;
119
104
  }>;
@@ -240,7 +225,7 @@ export type DashboardInsightsActionsPayloadData = {
240
225
  content: string;
241
226
  } | undefined;
242
227
  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;
228
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
244
229
  export type Callback = (payload: Payload) => void;
245
230
  export type TopicEvents = {
246
231
  [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';
@@ -59,6 +59,7 @@ export type WhiteboardContextPayloadData = {
59
59
  type: 'image/svg+xml' | 'text/plain';
60
60
  content: string;
61
61
  contentId?: string;
62
+ isViewMode?: boolean;
62
63
  } | undefined;
63
64
  export type BrowserContextPayloadData = {
64
65
  context: {
@@ -98,22 +99,6 @@ export type ChatOpenPayload = PayloadCore<'chat-open', {
98
99
  channelId: string;
99
100
  agentId?: string;
100
101
  }>;
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
102
  export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
118
103
  is3pActionAuth?: boolean;
119
104
  }>;
@@ -240,7 +225,7 @@ export type DashboardInsightsActionsPayloadData = {
240
225
  content: string;
241
226
  } | undefined;
242
227
  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;
228
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
244
229
  export type Callback = (payload: Payload) => void;
245
230
  export type TopicEvents = {
246
231
  [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.1",
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,10 +39,10 @@
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
- "@atlassian/feature-flags-test-utils": "^0.3.0",
45
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
46
46
  "@testing-library/react": "^13.4.0",
47
47
  "@testing-library/react-hooks": "^8.0.1",
48
48
  "react-dom": "^18.2.0",