@atlaskit/rovo-agent-analytics 1.8.0 → 1.10.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 +18 -0
- package/dist/cjs/common/utils/index.js +2 -0
- package/dist/es2019/common/utils/index.js +2 -0
- package/dist/esm/common/utils/index.js +2 -0
- package/dist/types/actions/groups/editing.d.ts +8 -1
- package/dist/types-ts4.5/actions/groups/editing.d.ts +8 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-analytics
|
|
2
2
|
|
|
3
|
+
## 1.10.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
|
+
## 1.9.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`5ad26dd7ae450`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ad26dd7ae450) -
|
|
17
|
+
Make `agentType` optional and add required `subagentId: string | null` attribute to
|
|
18
|
+
`EditingEventPayload`. Use `subagentId` to differentiate events fired at the scenario/subagent
|
|
19
|
+
level vs the agent level.
|
|
20
|
+
|
|
3
21
|
## 1.8.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -14,6 +14,8 @@ var getDefaultTrackEventConfig = exports.getDefaultTrackEventConfig = function g
|
|
|
14
14
|
tags: ['atlaskit']
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
19
|
var getAttributesFromContexts = exports.getAttributesFromContexts = function getAttributesFromContexts(context) {
|
|
18
20
|
if (!context || !Array.isArray(context)) {
|
|
19
21
|
return {};
|
|
@@ -2,6 +2,8 @@ export const getDefaultTrackEventConfig = () => ({
|
|
|
2
2
|
eventType: 'track',
|
|
3
3
|
tags: ['atlaskit']
|
|
4
4
|
});
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
7
|
export const getAttributesFromContexts = context => {
|
|
6
8
|
if (!context || !Array.isArray(context)) {
|
|
7
9
|
return {};
|
|
@@ -7,6 +7,8 @@ export var getDefaultTrackEventConfig = function getDefaultTrackEventConfig() {
|
|
|
7
7
|
tags: ['atlaskit']
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
12
|
export var getAttributesFromContexts = function getAttributesFromContexts(context) {
|
|
11
13
|
if (!context || !Array.isArray(context)) {
|
|
12
14
|
return {};
|
|
@@ -14,7 +14,14 @@ export type EditingEventPayload = {
|
|
|
14
14
|
actionSubject: 'rovoAgent';
|
|
15
15
|
action: 'updated';
|
|
16
16
|
attributes: VersionedAgentAttributes & {
|
|
17
|
-
agentType
|
|
17
|
+
agentType?: string;
|
|
18
18
|
field: string;
|
|
19
|
+
/**
|
|
20
|
+
* Identifies the subagent (formerly "scenario") whose configuration was updated.
|
|
21
|
+
* Pass the scenario/subagent id when the analytics event is fired at the
|
|
22
|
+
* scenario/subagent level. Pass `null` when the event is fired at the agent
|
|
23
|
+
* level (i.e. not scoped to any specific subagent).
|
|
24
|
+
*/
|
|
25
|
+
subagentId: string | null;
|
|
19
26
|
};
|
|
20
27
|
};
|
|
@@ -14,7 +14,14 @@ export type EditingEventPayload = {
|
|
|
14
14
|
actionSubject: 'rovoAgent';
|
|
15
15
|
action: 'updated';
|
|
16
16
|
attributes: VersionedAgentAttributes & {
|
|
17
|
-
agentType
|
|
17
|
+
agentType?: string;
|
|
18
18
|
field: string;
|
|
19
|
+
/**
|
|
20
|
+
* Identifies the subagent (formerly "scenario") whose configuration was updated.
|
|
21
|
+
* Pass the scenario/subagent id when the analytics event is fired at the
|
|
22
|
+
* scenario/subagent level. Pass `null` when the event is fired at the agent
|
|
23
|
+
* level (i.e. not scoped to any specific subagent).
|
|
24
|
+
*/
|
|
25
|
+
subagentId: string | null;
|
|
19
26
|
};
|
|
20
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-analytics",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Rovo Agents analytics",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
6
6
|
"atlassian": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@atlaskit/ssr": "workspace:^",
|
|
51
51
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
52
52
|
"@testing-library/react": "^16.3.0",
|
|
53
|
+
"react": "^18.2.0",
|
|
53
54
|
"react-dom": "^18.2.0"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|