@atlaskit/rovo-triggers 10.6.1 → 10.8.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,28 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 10.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d0a94e6972ea4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0a94e6972ea4) -
8
+ HIX-9861 First basic version of UPDATE_STATUS operation in the Jira workflow builder action card.
9
+
10
+ ## 10.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`99fb19b39f6aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99fb19b39f6aa) -
15
+ Add a Summary field (skill help text) to the create and update custom skill cards in Rovo chat,
16
+ behind the chat_skill_helptext_enabled gate
17
+
18
+ ### Patch Changes
19
+
20
+ - [`72e751cfcebf3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72e751cfcebf3) -
21
+ Cleanup feature gate `rovo_chat_fix_jira_prompt_dropped_on_reopen`. `jira-create-context-payload`
22
+ is now always excluded from the `triggerLatest` replay slot so reopening Rovo chat from a Jira CTA
23
+ keeps the action `chat-new` prompt instead of replaying the context payload.
24
+ - Updated dependencies
25
+
3
26
  ## 10.6.1
4
27
 
5
28
  ### Patch Changes
package/dist/cjs/main.js CHANGED
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
  var _react = require("react");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
14
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -19,15 +18,9 @@ var ignoredTriggerLatestEvents = new Set(['editor-context-payload', 'agent-chang
19
18
  // cause `triggerLatest` subscribers (e.g. PubSubListener) to replay them
20
19
  // instead of the real action event (e.g. open-browse-agent-modal) that
21
20
  // originally opened the chat.
22
- 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context']);
21
+ 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
23
22
  var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
24
- if (ignoredTriggerLatestEvents.has(type)) {
25
- return true;
26
- }
27
- if (type === 'jira-create-context-payload') {
28
- return (0, _platformFeatureFlags.fg)('rovo_chat_fix_jira_prompt_dropped_on_reopen');
29
- }
30
- return false;
23
+ return ignoredTriggerLatestEvents.has(type);
31
24
  };
32
25
  var createPubSub = function createPubSub() {
33
26
  var subscribedEvents = {};
@@ -1,21 +1,12 @@
1
1
  import { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  const MAX_CONSUMED_EVENT_KEYS = 5000;
4
3
  const ignoredTriggerLatestEvents = new Set(['editor-context-payload', 'agent-changed',
5
4
  // Internal signals that must never overwrite the publish queue — they would
6
5
  // cause `triggerLatest` subscribers (e.g. PubSubListener) to replay them
7
6
  // instead of the real action event (e.g. open-browse-agent-modal) that
8
7
  // originally opened the chat.
9
- 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context']);
10
- const isIgnoredForTriggerLatest = type => {
11
- if (ignoredTriggerLatestEvents.has(type)) {
12
- return true;
13
- }
14
- if (type === 'jira-create-context-payload') {
15
- return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
16
- }
17
- return false;
18
- };
8
+ 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
9
+ const isIgnoredForTriggerLatest = type => ignoredTriggerLatestEvents.has(type);
19
10
  const createPubSub = () => {
20
11
  let subscribedEvents = {};
21
12
  let publishQueue = {};
package/dist/esm/main.js CHANGED
@@ -5,22 +5,15 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
7
  import { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  var MAX_CONSUMED_EVENT_KEYS = 5000;
10
9
  var ignoredTriggerLatestEvents = new Set(['editor-context-payload', 'agent-changed',
11
10
  // Internal signals that must never overwrite the publish queue — they would
12
11
  // cause `triggerLatest` subscribers (e.g. PubSubListener) to replay them
13
12
  // instead of the real action event (e.g. open-browse-agent-modal) that
14
13
  // originally opened the chat.
15
- 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context']);
14
+ 'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
16
15
  var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
17
- if (ignoredTriggerLatestEvents.has(type)) {
18
- return true;
19
- }
20
- if (type === 'jira-create-context-payload') {
21
- return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
22
- }
23
- return false;
16
+ return ignoredTriggerLatestEvents.has(type);
24
17
  };
25
18
  var createPubSub = function createPubSub() {
26
19
  var subscribedEvents = {};
@@ -415,10 +415,11 @@ export type AddStatusRovoPayload = {
415
415
  statusCategory: StatusCategory;
416
416
  };
417
417
  export type UpdateStatusRovoPayload = {
418
- oldStatusName: string;
419
- oldStatusCategory: StatusCategory;
420
- newStatusName: string;
421
- newStatusCategory: StatusCategory;
418
+ statusId: StatusId;
419
+ fromStatusName: string;
420
+ toStatusName: string | null;
421
+ fromStatusCategory: StatusCategory;
422
+ toStatusCategory: StatusCategory | null;
422
423
  };
423
424
  export type DeleteStatusRovoPayload = {
424
425
  statusId: string;
@@ -583,6 +584,11 @@ export type CustomSkillUpdatePayload = PayloadCore<'custom-skill-update', {
583
584
  skillAri: string;
584
585
  name: string;
585
586
  displayName: string;
587
+ /**
588
+ * Concise, user-facing summary of the skill's purpose. Optional because not every
589
+ * publisher edits it — subscribers should fall back to their own persisted value.
590
+ */
591
+ helpText?: string;
586
592
  description: string;
587
593
  instructions: string;
588
594
  tools: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "10.6.1",
3
+ "version": "10.8.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": {
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^56.6.0",
31
+ "@atlaskit/adf-schema": "^56.7.0",
32
32
  "@atlaskit/platform-feature-flags": "^2.1.0",
33
33
  "@atlaskit/react-compiler-gating": "^0.2.0",
34
34
  "@babel/runtime": "^7.0.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/ssr": "workspace:^",
46
46
  "@atlassian/a11y-jest-testing": "^0.15.0",
47
- "@atlassian/conversation-assistant-service-api": "^16.0.0",
47
+ "@atlassian/conversation-assistant-service-api": "^16.1.0",
48
48
  "@atlassian/feature-flags-test-utils": "^1.2.0",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "react": "^18.2.0",
@@ -85,10 +85,5 @@
85
85
  "import-no-extraneous-disable-for-examples-and-docs"
86
86
  ]
87
87
  }
88
- },
89
- "platform-feature-flags": {
90
- "rovo_chat_fix_jira_prompt_dropped_on_reopen": {
91
- "type": "boolean"
92
- }
93
88
  }
94
89
  }