@atlaskit/rovo-triggers 10.6.0 → 10.7.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 +25 -0
- package/dist/cjs/main.js +2 -12
- package/dist/es2019/main.js +2 -14
- package/dist/esm/main.js +2 -12
- package/dist/types/types.d.ts +5 -0
- package/package.json +3 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 10.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`99fb19b39f6aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99fb19b39f6aa) -
|
|
8
|
+
Add a Summary field (skill help text) to the create and update custom skill cards in Rovo chat,
|
|
9
|
+
behind the chat_skill_helptext_enabled gate
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`72e751cfcebf3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72e751cfcebf3) -
|
|
14
|
+
Cleanup feature gate `rovo_chat_fix_jira_prompt_dropped_on_reopen`. `jira-create-context-payload`
|
|
15
|
+
is now always excluded from the `triggerLatest` replay slot so reopening Rovo chat from a Jira CTA
|
|
16
|
+
keeps the action `chat-new` prompt instead of replaying the context payload.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 10.6.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`9c1bd3f520493`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9c1bd3f520493) -
|
|
24
|
+
Cleanup feature gate `rovo_chat_fix_cold_start_prompt_insertion`. The `set-message-context` event
|
|
25
|
+
is now always ignored for trigger-latest replay, and the editor placeholder analytics event is now
|
|
26
|
+
always sent.
|
|
27
|
+
|
|
3
28
|
## 10.6.0
|
|
4
29
|
|
|
5
30
|
### Minor 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,18 +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']);
|
|
21
|
+
'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
|
|
23
22
|
var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
|
|
24
|
-
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
if (type === 'set-message-context') {
|
|
28
|
-
return (0, _platformFeatureFlags.fg)('rovo_chat_fix_cold_start_prompt_insertion');
|
|
29
|
-
}
|
|
30
|
-
if (type === 'jira-create-context-payload') {
|
|
31
|
-
return (0, _platformFeatureFlags.fg)('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
23
|
+
return ignoredTriggerLatestEvents.has(type);
|
|
34
24
|
};
|
|
35
25
|
var createPubSub = function createPubSub() {
|
|
36
26
|
var subscribedEvents = {};
|
package/dist/es2019/main.js
CHANGED
|
@@ -1,24 +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']);
|
|
10
|
-
const isIgnoredForTriggerLatest = type =>
|
|
11
|
-
if (ignoredTriggerLatestEvents.has(type)) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
if (type === 'set-message-context') {
|
|
15
|
-
return fg('rovo_chat_fix_cold_start_prompt_insertion');
|
|
16
|
-
}
|
|
17
|
-
if (type === 'jira-create-context-payload') {
|
|
18
|
-
return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
19
|
-
}
|
|
20
|
-
return false;
|
|
21
|
-
};
|
|
8
|
+
'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
|
|
9
|
+
const isIgnoredForTriggerLatest = type => ignoredTriggerLatestEvents.has(type);
|
|
22
10
|
const createPubSub = () => {
|
|
23
11
|
let subscribedEvents = {};
|
|
24
12
|
let publishQueue = {};
|
package/dist/esm/main.js
CHANGED
|
@@ -5,25 +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']);
|
|
14
|
+
'smartlinks-subscription-changed', 'smartlinks-context-payload', 'set-message-context', 'jira-create-context-payload']);
|
|
16
15
|
var isIgnoredForTriggerLatest = function isIgnoredForTriggerLatest(type) {
|
|
17
|
-
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
if (type === 'set-message-context') {
|
|
21
|
-
return fg('rovo_chat_fix_cold_start_prompt_insertion');
|
|
22
|
-
}
|
|
23
|
-
if (type === 'jira-create-context-payload') {
|
|
24
|
-
return fg('rovo_chat_fix_jira_prompt_dropped_on_reopen');
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
16
|
+
return ignoredTriggerLatestEvents.has(type);
|
|
27
17
|
};
|
|
28
18
|
var createPubSub = function createPubSub() {
|
|
29
19
|
var subscribedEvents = {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -583,6 +583,11 @@ export type CustomSkillUpdatePayload = PayloadCore<'custom-skill-update', {
|
|
|
583
583
|
skillAri: string;
|
|
584
584
|
name: string;
|
|
585
585
|
displayName: string;
|
|
586
|
+
/**
|
|
587
|
+
* Concise, user-facing summary of the skill's purpose. Optional because not every
|
|
588
|
+
* publisher edits it — subscribers should fall back to their own persisted value.
|
|
589
|
+
*/
|
|
590
|
+
helpText?: string;
|
|
586
591
|
description: string;
|
|
587
592
|
instructions: string;
|
|
588
593
|
tools: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.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.
|
|
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": "^
|
|
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,13 +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_cold_start_prompt_insertion": {
|
|
91
|
-
"type": "boolean"
|
|
92
|
-
},
|
|
93
|
-
"rovo_chat_fix_jira_prompt_dropped_on_reopen": {
|
|
94
|
-
"type": "boolean"
|
|
95
|
-
}
|
|
96
88
|
}
|
|
97
89
|
}
|