@atlaskit/rovo-triggers 4.1.0 → 4.2.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
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`118d4ca79d39c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/118d4ca79d39c) -
8
+ EDITOR-2894 - Support Jira additionalContext
9
+
3
10
  ## 4.1.0
4
11
 
5
12
  ### Minor Changes
@@ -56,6 +56,7 @@ export type EditorContextPayloadData = {
56
56
  selectionLocalIds?: string;
57
57
  isViewMode?: boolean;
58
58
  useGenericEditorSkill?: boolean;
59
+ additionalContext?: Record<string, unknown>;
59
60
  } | undefined;
60
61
  export type WhiteboardContextPayloadData = {
61
62
  type: 'image/svg+xml' | 'text/plain';
@@ -235,9 +236,15 @@ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard
235
236
  operations?: JiraWorkflowWizardAction[];
236
237
  currentWorkflowDocument?: Record<string, unknown>;
237
238
  }>;
239
+ type MessageDescriptorWithValues = {
240
+ id?: string;
241
+ description?: string | object;
242
+ defaultMessage?: string;
243
+ messageValues?: Record<string, string | number | boolean | null | undefined | Date>;
244
+ };
238
245
  export type GenericExternalActionErrorPayload = PayloadCore<'generic-external-action-error', {
239
246
  invocationId: string;
240
- errors: string[];
247
+ errors: (string | MessageDescriptorWithValues)[];
241
248
  }>;
242
249
  export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
243
250
  data?: DashboardInsightsActionsPayloadData;
@@ -56,6 +56,7 @@ export type EditorContextPayloadData = {
56
56
  selectionLocalIds?: string;
57
57
  isViewMode?: boolean;
58
58
  useGenericEditorSkill?: boolean;
59
+ additionalContext?: Record<string, unknown>;
59
60
  } | undefined;
60
61
  export type WhiteboardContextPayloadData = {
61
62
  type: 'image/svg+xml' | 'text/plain';
@@ -235,9 +236,15 @@ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard
235
236
  operations?: JiraWorkflowWizardAction[];
236
237
  currentWorkflowDocument?: Record<string, unknown>;
237
238
  }>;
239
+ type MessageDescriptorWithValues = {
240
+ id?: string;
241
+ description?: string | object;
242
+ defaultMessage?: string;
243
+ messageValues?: Record<string, string | number | boolean | null | undefined | Date>;
244
+ };
238
245
  export type GenericExternalActionErrorPayload = PayloadCore<'generic-external-action-error', {
239
246
  invocationId: string;
240
- errors: string[];
247
+ errors: (string | MessageDescriptorWithValues)[];
241
248
  }>;
242
249
  export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
243
250
  data?: DashboardInsightsActionsPayloadData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.1.0",
3
+ "version": "4.2.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": {