@atlaskit/rovo-triggers 6.3.0 → 6.5.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 +17 -0
- package/dist/cjs/common/utils/params/index.js +1 -0
- package/dist/cjs/types.js +1 -3
- package/dist/es2019/common/utils/params/index.js +1 -0
- package/dist/es2019/types.js +1 -3
- package/dist/esm/common/utils/params/index.js +1 -0
- package/dist/esm/types.js +1 -3
- package/dist/types/types.d.ts +1 -6
- package/dist/types-ts4.5/types.d.ts +1 -6
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 6.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c5948348a4e51`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c5948348a4e51) -
|
|
8
|
+
TREX-1373 (part 3/3): add @typescript-eslint/no-explicit-any OXLint suppression comments across
|
|
9
|
+
rovo-\* and misc packages. Includes OXLint override and Mithril ratchet to prevent new
|
|
10
|
+
suppressions.
|
|
11
|
+
|
|
12
|
+
## 6.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`83010b0f5950d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83010b0f5950d) -
|
|
17
|
+
Clean up code relating to refetching space-scoped conversation data as that is handled by the
|
|
18
|
+
store and adding conversation to a space since it is now handled by the BE
|
|
19
|
+
|
|
3
20
|
## 6.3.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -39,6 +39,7 @@ var processParams = function processParams(input) {
|
|
|
39
39
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
40
40
|
filter: []
|
|
41
41
|
};
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
43
|
var output = {};
|
|
43
44
|
var safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
|
|
44
45
|
var processedInput = new URLSearchParams(safeSearchParamsInput);
|
package/dist/cjs/types.js
CHANGED
|
@@ -57,6 +57,4 @@ var Topics = exports.Topics = {
|
|
|
57
57
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
58
58
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
59
59
|
|
|
60
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
61
|
-
|
|
62
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
60
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
@@ -21,6 +21,7 @@ export const removePrefix = param => {
|
|
|
21
21
|
const processParams = (input, options = {
|
|
22
22
|
filter: []
|
|
23
23
|
}) => {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
const output = {};
|
|
25
26
|
const safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
|
|
26
27
|
const processedInput = new URLSearchParams(safeSearchParamsInput);
|
package/dist/es2019/types.js
CHANGED
|
@@ -51,6 +51,4 @@ export const Topics = {
|
|
|
51
51
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
52
52
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
53
53
|
|
|
54
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
55
|
-
|
|
56
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
54
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
@@ -32,6 +32,7 @@ var processParams = function processParams(input) {
|
|
|
32
32
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
33
33
|
filter: []
|
|
34
34
|
};
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
36
|
var output = {};
|
|
36
37
|
var safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
|
|
37
38
|
var processedInput = new URLSearchParams(safeSearchParamsInput);
|
package/dist/esm/types.js
CHANGED
|
@@ -51,6 +51,4 @@ export var Topics = {
|
|
|
51
51
|
// Not using PayloadCore because `data: type | undefined` is necessary
|
|
52
52
|
// but `| undefined` will cause `data` to be removed by PayloadCore
|
|
53
53
|
|
|
54
|
-
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
55
|
-
|
|
56
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
54
|
+
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
package/dist/types/types.d.ts
CHANGED
|
@@ -440,17 +440,12 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
440
440
|
}>;
|
|
441
441
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
442
442
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
443
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
444
|
-
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
445
|
-
spaceId: string;
|
|
446
|
-
conversationId: string;
|
|
447
|
-
}>;
|
|
448
443
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
449
444
|
/** Never opens chat — internal signal only. */
|
|
450
445
|
openChat: false;
|
|
451
446
|
isActive: boolean;
|
|
452
447
|
};
|
|
453
|
-
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload |
|
|
448
|
+
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
454
449
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
455
450
|
conversationId: string;
|
|
456
451
|
planTitle: string;
|
|
@@ -440,17 +440,12 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
|
|
|
440
440
|
}>;
|
|
441
441
|
export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
|
|
442
442
|
export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
|
|
443
|
-
/** Published after a new conversation is linked to a Rovo Space (e.g. space landing chat). */
|
|
444
|
-
export type SpaceConversationCreatedPayload = PayloadCore<'space-conversation-created', {
|
|
445
|
-
spaceId: string;
|
|
446
|
-
conversationId: string;
|
|
447
|
-
}>;
|
|
448
443
|
export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
|
|
449
444
|
/** Never opens chat — internal signal only. */
|
|
450
445
|
openChat: false;
|
|
451
446
|
isActive: boolean;
|
|
452
447
|
};
|
|
453
|
-
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload |
|
|
448
|
+
export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
|
|
454
449
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
455
450
|
conversationId: string;
|
|
456
451
|
planTitle: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.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": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"atlaskit:src": "src/index.ts",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^52.
|
|
39
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"bind-event-listener": "^3.0.0"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
55
55
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
56
56
|
"@testing-library/react": "^16.3.0",
|
|
57
|
+
"react": "^18.2.0",
|
|
57
58
|
"react-dom": "^18.2.0",
|
|
58
59
|
"wait-for-expect": "^1.2.0"
|
|
59
60
|
},
|