@atlaskit/rovo-triggers 5.21.0 → 5.23.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 +14 -0
- package/dist/types/common/types/solution-architect/index.d.ts +12 -3
- package/dist/types/common/utils/params/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/main.d.ts +1 -1
- package/dist/types/types.d.ts +10 -0
- package/dist/types-ts4.5/common/types/solution-architect/index.d.ts +12 -3
- package/dist/types-ts4.5/common/utils/params/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/main.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +10 -0
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 5.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6d7db8fdc2400`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d7db8fdc2400) -
|
|
8
|
+
MAX-122 Edit MAUI App via Rovo
|
|
9
|
+
|
|
10
|
+
## 5.22.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`1f7b273265659`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1f7b273265659) -
|
|
15
|
+
[ux] Enable activate agent from outside agent view page in studio
|
|
16
|
+
|
|
3
17
|
## 5.21.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -2,20 +2,29 @@ import type { PayloadCore } from '../../../types';
|
|
|
2
2
|
type BaseHandoffPayload = {
|
|
3
3
|
conversationId: string;
|
|
4
4
|
};
|
|
5
|
-
export type
|
|
6
|
-
type: '
|
|
5
|
+
export type AutomationHandoffPayload = BaseHandoffPayload & {
|
|
6
|
+
type: 'AUTOMATION_RULE';
|
|
7
7
|
ari?: never;
|
|
8
8
|
buildId: string;
|
|
9
9
|
appBuilderAutoStart?: never;
|
|
10
|
+
shouldActivateAgent?: never;
|
|
11
|
+
};
|
|
12
|
+
export type AgentHandoffPayload = BaseHandoffPayload & {
|
|
13
|
+
type: 'ROVO_AGENT';
|
|
14
|
+
ari?: never;
|
|
15
|
+
buildId: string;
|
|
16
|
+
appBuilderAutoStart?: never;
|
|
17
|
+
shouldActivateAgent?: boolean;
|
|
10
18
|
};
|
|
11
19
|
export type AppHandoffPayload = BaseHandoffPayload & {
|
|
12
20
|
type: 'ECOSYSTEM_APP';
|
|
13
21
|
ari: string;
|
|
14
22
|
buildId?: never;
|
|
15
23
|
appBuilderAutoStart: boolean;
|
|
24
|
+
shouldActivateAgent?: never;
|
|
16
25
|
};
|
|
17
26
|
export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-handoff'> & {
|
|
18
|
-
data:
|
|
27
|
+
data: AutomationHandoffPayload | AppHandoffPayload | AgentHandoffPayload;
|
|
19
28
|
};
|
|
20
29
|
export type SolutionPlanStateUpdatePayload = PayloadCore<'solution-plan-state-updated'>;
|
|
21
30
|
export type SolutionArchitectAgentActivationPayload = PayloadCore<'solution-architect-agent-activation', {
|
|
@@ -10,6 +10,6 @@ export declare const encodeRovoParams: (params: RovoChatParams, encodeAsObject?:
|
|
|
10
10
|
[key: string]: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const assertOnlySpecificFieldsDefined: (params: RovoChatParams, fields: (keyof RovoChatParams)[]) => boolean;
|
|
13
|
-
export declare const getListOfRovoParams: ({ resourceRouterQuery }?: {
|
|
13
|
+
export declare const getListOfRovoParams: ({ resourceRouterQuery, }?: {
|
|
14
14
|
resourceRouterQuery?: boolean | undefined;
|
|
15
15
|
}) => string[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
2
|
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, DatabaseContextUpdatePayloadData, DatabaseContextPayload, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, SelectActionPayload, } from './types';
|
|
3
|
-
export type { SolutionArchitectHandoffPayload,
|
|
3
|
+
export type { SolutionArchitectHandoffPayload, AutomationHandoffPayload, AgentHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, StudioAutomationBuildUpdatePayload, } from './common/types/solution-architect';
|
|
4
4
|
export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
|
|
5
5
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
6
6
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface SubscribeOptions {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const useSubscribe: ({ topic, triggerLatest }: SubscribeOptions, callback: Callback) => void;
|
|
7
7
|
export declare const useSubscribeAll: (callback: Callback) => void;
|
|
8
|
-
export declare const usePublish: (topic: Topic) => (payload: Payload) => void;
|
|
8
|
+
export declare const usePublish: (topic: Topic) => ((payload: Payload) => void);
|
|
9
9
|
export declare const Subscriber: ({ topic, triggerLatest, onEvent, flushQueueOnUnmount, }: {
|
|
10
10
|
topic: Topic;
|
|
11
11
|
triggerLatest?: boolean;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -69,6 +69,16 @@ export type EditorContextPayloadData = {
|
|
|
69
69
|
};
|
|
70
70
|
selectionFragment?: string;
|
|
71
71
|
selectionLocalIds?: string;
|
|
72
|
+
contentMauiId?: string;
|
|
73
|
+
dynamicUiSource?: {
|
|
74
|
+
contentType: string;
|
|
75
|
+
startLocalId?: string;
|
|
76
|
+
endLocalId?: string;
|
|
77
|
+
startIndex?: number;
|
|
78
|
+
endIndex?: number;
|
|
79
|
+
fragmentAdf?: string;
|
|
80
|
+
fullAdf?: any;
|
|
81
|
+
};
|
|
72
82
|
isViewMode?: boolean;
|
|
73
83
|
useGenericEditorSkill?: boolean;
|
|
74
84
|
additionalContext?: Record<string, unknown>;
|
|
@@ -2,20 +2,29 @@ import type { PayloadCore } from '../../../types';
|
|
|
2
2
|
type BaseHandoffPayload = {
|
|
3
3
|
conversationId: string;
|
|
4
4
|
};
|
|
5
|
-
export type
|
|
6
|
-
type: '
|
|
5
|
+
export type AutomationHandoffPayload = BaseHandoffPayload & {
|
|
6
|
+
type: 'AUTOMATION_RULE';
|
|
7
7
|
ari?: never;
|
|
8
8
|
buildId: string;
|
|
9
9
|
appBuilderAutoStart?: never;
|
|
10
|
+
shouldActivateAgent?: never;
|
|
11
|
+
};
|
|
12
|
+
export type AgentHandoffPayload = BaseHandoffPayload & {
|
|
13
|
+
type: 'ROVO_AGENT';
|
|
14
|
+
ari?: never;
|
|
15
|
+
buildId: string;
|
|
16
|
+
appBuilderAutoStart?: never;
|
|
17
|
+
shouldActivateAgent?: boolean;
|
|
10
18
|
};
|
|
11
19
|
export type AppHandoffPayload = BaseHandoffPayload & {
|
|
12
20
|
type: 'ECOSYSTEM_APP';
|
|
13
21
|
ari: string;
|
|
14
22
|
buildId?: never;
|
|
15
23
|
appBuilderAutoStart: boolean;
|
|
24
|
+
shouldActivateAgent?: never;
|
|
16
25
|
};
|
|
17
26
|
export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-handoff'> & {
|
|
18
|
-
data:
|
|
27
|
+
data: AutomationHandoffPayload | AppHandoffPayload | AgentHandoffPayload;
|
|
19
28
|
};
|
|
20
29
|
export type SolutionPlanStateUpdatePayload = PayloadCore<'solution-plan-state-updated'>;
|
|
21
30
|
export type SolutionArchitectAgentActivationPayload = PayloadCore<'solution-architect-agent-activation', {
|
|
@@ -10,6 +10,6 @@ export declare const encodeRovoParams: (params: RovoChatParams, encodeAsObject?:
|
|
|
10
10
|
[key: string]: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const assertOnlySpecificFieldsDefined: (params: RovoChatParams, fields: (keyof RovoChatParams)[]) => boolean;
|
|
13
|
-
export declare const getListOfRovoParams: ({ resourceRouterQuery }?: {
|
|
13
|
+
export declare const getListOfRovoParams: ({ resourceRouterQuery, }?: {
|
|
14
14
|
resourceRouterQuery?: boolean | undefined;
|
|
15
15
|
}) => string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
2
|
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, DatabaseContextUpdatePayloadData, DatabaseContextPayload, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, SelectActionPayload, } from './types';
|
|
3
|
-
export type { SolutionArchitectHandoffPayload,
|
|
3
|
+
export type { SolutionArchitectHandoffPayload, AutomationHandoffPayload, AgentHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, StudioAutomationBuildUpdatePayload, } from './common/types/solution-architect';
|
|
4
4
|
export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
|
|
5
5
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
6
6
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
@@ -5,7 +5,7 @@ interface SubscribeOptions {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const useSubscribe: ({ topic, triggerLatest }: SubscribeOptions, callback: Callback) => void;
|
|
7
7
|
export declare const useSubscribeAll: (callback: Callback) => void;
|
|
8
|
-
export declare const usePublish: (topic: Topic) => (payload: Payload) => void;
|
|
8
|
+
export declare const usePublish: (topic: Topic) => ((payload: Payload) => void);
|
|
9
9
|
export declare const Subscriber: ({ topic, triggerLatest, onEvent, flushQueueOnUnmount, }: {
|
|
10
10
|
topic: Topic;
|
|
11
11
|
triggerLatest?: boolean;
|
|
@@ -69,6 +69,16 @@ export type EditorContextPayloadData = {
|
|
|
69
69
|
};
|
|
70
70
|
selectionFragment?: string;
|
|
71
71
|
selectionLocalIds?: string;
|
|
72
|
+
contentMauiId?: string;
|
|
73
|
+
dynamicUiSource?: {
|
|
74
|
+
contentType: string;
|
|
75
|
+
startLocalId?: string;
|
|
76
|
+
endLocalId?: string;
|
|
77
|
+
startIndex?: number;
|
|
78
|
+
endIndex?: number;
|
|
79
|
+
fragmentAdf?: string;
|
|
80
|
+
fullAdf?: any;
|
|
81
|
+
};
|
|
72
82
|
isViewMode?: boolean;
|
|
73
83
|
useGenericEditorSkill?: boolean;
|
|
74
84
|
additionalContext?: Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.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": "^52.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.2.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"bind-event-listener": "^3.0.0"
|
|
@@ -51,9 +51,6 @@
|
|
|
51
51
|
},
|
|
52
52
|
"techstack": {
|
|
53
53
|
"@atlassian/frontend": {
|
|
54
|
-
"code-structure": [
|
|
55
|
-
"tangerine-next"
|
|
56
|
-
],
|
|
57
54
|
"import-structure": [
|
|
58
55
|
"atlassian-conventions"
|
|
59
56
|
],
|