@atlaskit/rovo-triggers 4.8.0 → 4.9.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
+ ## 4.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ba35a55c8437c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba35a55c8437c) -
8
+ [ux] Added new event type (jsm-journey-builder-actions) in rovo-triggers
9
+
10
+ ## 4.8.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`e3779b75fdeca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3779b75fdeca) -
15
+ EDITOR-1643 Promote syncBlock and bodiedSyncBlock to full schema
16
+
3
17
  ## 4.8.0
4
18
 
5
19
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import type { PayloadCore } from "../../../types";
1
+ import type { PayloadCore } from '../../../types';
2
2
  export type SolutionDraftAgentUpdatePayload = PayloadCore<'solution-draft-agent-update'> & {
3
3
  data: {
4
4
  buildId: string;
@@ -0,0 +1,10 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ export type JsmJourneyBuilderAgentAction = {
3
+ actionType: 'CREATE_JOURNEY' | 'UPDATE_JOURNEY' | 'DELETE_JOURNEY';
4
+ journeyId: string;
5
+ success: boolean;
6
+ };
7
+ export type JsmJourneyBuilderActionsPayload = PayloadCore<'jsm-journey-builder-actions', {
8
+ invocationId?: string;
9
+ agentActions: JsmJourneyBuilderAgentAction[];
10
+ }>;
@@ -1,6 +1,7 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
2
  export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
4
+ export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
4
5
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
5
6
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
6
7
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,5 +1,6 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
+ import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
3
4
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
4
5
  import type { ChatContextPayload } from './common/utils/chat-context';
5
6
  export declare const Topics: {
@@ -255,7 +256,7 @@ export type DashboardInsightsActionsPayloadData = {
255
256
  content: string;
256
257
  } | undefined;
257
258
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
258
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | JsmJourneyBuilderActionsPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
260
  export type Callback = (payload: Payload) => void;
260
261
  export type TopicEvents = {
261
262
  [key in Topic]?: Array<{
@@ -1,4 +1,4 @@
1
- import type { PayloadCore } from "../../../types";
1
+ import type { PayloadCore } from '../../../types';
2
2
  export type SolutionDraftAgentUpdatePayload = PayloadCore<'solution-draft-agent-update'> & {
3
3
  data: {
4
4
  buildId: string;
@@ -0,0 +1,10 @@
1
+ import type { PayloadCore } from '../../../types';
2
+ export type JsmJourneyBuilderAgentAction = {
3
+ actionType: 'CREATE_JOURNEY' | 'UPDATE_JOURNEY' | 'DELETE_JOURNEY';
4
+ journeyId: string;
5
+ success: boolean;
6
+ };
7
+ export type JsmJourneyBuilderActionsPayload = PayloadCore<'jsm-journey-builder-actions', {
8
+ invocationId?: string;
9
+ agentActions: JsmJourneyBuilderAgentAction[];
10
+ }>;
@@ -1,6 +1,7 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
2
  export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
4
+ export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
4
5
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
5
6
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
6
7
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -1,5 +1,6 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
+ import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
3
4
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
4
5
  import type { ChatContextPayload } from './common/utils/chat-context';
5
6
  export declare const Topics: {
@@ -255,7 +256,7 @@ export type DashboardInsightsActionsPayloadData = {
255
256
  content: string;
256
257
  } | undefined;
257
258
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
258
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | JsmJourneyBuilderActionsPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
259
260
  export type Callback = (payload: Payload) => void;
260
261
  export type TopicEvents = {
261
262
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.8.0",
3
+ "version": "4.9.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.4.0",
32
+ "@atlaskit/adf-schema": "^51.5.1",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "bind-event-listener": "^3.0.0"
35
35
  },