@atlaskit/rovo-agent-components 0.1.4 → 0.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 +15 -0
- package/dist/cjs/ui/agent-profile-info/index.js +18 -10
- package/dist/es2019/ui/agent-profile-info/index.js +16 -8
- package/dist/esm/ui/agent-profile-info/index.js +18 -10
- package/dist/types/ui/agent-profile-info/index.d.ts +7 -1
- package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +7 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#129071](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129071)
|
|
8
|
+
[`0ebc7d96cc310`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ebc7d96cc310) -
|
|
9
|
+
Support forge agent type (THIRD_PARTY) and render profile based on that. Add product and
|
|
10
|
+
experienceId to useViewAgentDetails hook
|
|
11
|
+
|
|
12
|
+
## 0.1.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 0.1.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
54
54
|
if (!creator) {
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
if (creator === 'SYSTEM') {
|
|
57
|
+
if (creator.type === 'SYSTEM') {
|
|
58
58
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
59
59
|
creatorNameWithLink: /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
60
60
|
alignBlock: "center",
|
|
@@ -65,15 +65,23 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
65
65
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Box, null, "Atlassian"))
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
if (creator.type === 'CUSTOMER') {
|
|
69
|
+
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
70
|
+
creatorNameWithLink: /*#__PURE__*/_react.default.createElement("a", {
|
|
71
|
+
href: creator.profileLink,
|
|
72
|
+
onClick: function onClick() {
|
|
73
|
+
return onCreatorLinkClick();
|
|
74
|
+
},
|
|
75
|
+
target: "_blank"
|
|
76
|
+
}, creator.name)
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (creator.type === 'THIRD_PARTY') {
|
|
80
|
+
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
81
|
+
creatorNameWithLink: creator.name
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
77
85
|
};
|
|
78
86
|
var creatorRender = getCreatorRender();
|
|
79
87
|
return creatorRender ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
@@ -49,7 +49,7 @@ export const AgentProfileCreator = ({
|
|
|
49
49
|
if (!creator) {
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
if (creator === 'SYSTEM') {
|
|
52
|
+
if (creator.type === 'SYSTEM') {
|
|
53
53
|
return formatMessage(messages.agentCreatedBy, {
|
|
54
54
|
creatorNameWithLink: /*#__PURE__*/React.createElement(Inline, {
|
|
55
55
|
alignBlock: "center",
|
|
@@ -60,13 +60,21 @@ export const AgentProfileCreator = ({
|
|
|
60
60
|
}), /*#__PURE__*/React.createElement(Box, null, "Atlassian"))
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
if (creator.type === 'CUSTOMER') {
|
|
64
|
+
return formatMessage(messages.agentCreatedBy, {
|
|
65
|
+
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
66
|
+
href: creator.profileLink,
|
|
67
|
+
onClick: () => onCreatorLinkClick(),
|
|
68
|
+
target: "_blank"
|
|
69
|
+
}, creator.name)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (creator.type === 'THIRD_PARTY') {
|
|
73
|
+
return formatMessage(messages.agentCreatedBy, {
|
|
74
|
+
creatorNameWithLink: creator.name
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
70
78
|
};
|
|
71
79
|
const creatorRender = getCreatorRender();
|
|
72
80
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -47,7 +47,7 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
47
47
|
if (!creator) {
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
|
-
if (creator === 'SYSTEM') {
|
|
50
|
+
if (creator.type === 'SYSTEM') {
|
|
51
51
|
return formatMessage(messages.agentCreatedBy, {
|
|
52
52
|
creatorNameWithLink: /*#__PURE__*/React.createElement(Inline, {
|
|
53
53
|
alignBlock: "center",
|
|
@@ -58,15 +58,23 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
58
58
|
}), /*#__PURE__*/React.createElement(Box, null, "Atlassian"))
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
if (creator.type === 'CUSTOMER') {
|
|
62
|
+
return formatMessage(messages.agentCreatedBy, {
|
|
63
|
+
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
64
|
+
href: creator.profileLink,
|
|
65
|
+
onClick: function onClick() {
|
|
66
|
+
return onCreatorLinkClick();
|
|
67
|
+
},
|
|
68
|
+
target: "_blank"
|
|
69
|
+
}, creator.name)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (creator.type === 'THIRD_PARTY') {
|
|
73
|
+
return formatMessage(messages.agentCreatedBy, {
|
|
74
|
+
creatorNameWithLink: creator.name
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
70
78
|
};
|
|
71
79
|
var creatorRender = getCreatorRender();
|
|
72
80
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
|
|
3
3
|
creator?: {
|
|
4
|
+
type: 'CUSTOMER';
|
|
4
5
|
name: string;
|
|
5
6
|
profileLink: string;
|
|
6
|
-
} |
|
|
7
|
+
} | {
|
|
8
|
+
type: 'SYSTEM';
|
|
9
|
+
} | {
|
|
10
|
+
type: 'THIRD_PARTY';
|
|
11
|
+
name: string;
|
|
12
|
+
} | undefined;
|
|
7
13
|
isLoading: boolean;
|
|
8
14
|
onCreatorLinkClick: () => void;
|
|
9
15
|
}) => JSX.Element | null;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
|
|
3
3
|
creator?: {
|
|
4
|
+
type: 'CUSTOMER';
|
|
4
5
|
name: string;
|
|
5
6
|
profileLink: string;
|
|
6
|
-
} |
|
|
7
|
+
} | {
|
|
8
|
+
type: 'SYSTEM';
|
|
9
|
+
} | {
|
|
10
|
+
type: 'THIRD_PARTY';
|
|
11
|
+
name: string;
|
|
12
|
+
} | undefined;
|
|
7
13
|
isLoading: boolean;
|
|
8
14
|
onCreatorLinkClick: () => void;
|
|
9
15
|
}) => JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "This package host public components related to rovo agents, the components here are needed for other public atlaskit packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/avatar": "^21.
|
|
40
|
-
"@atlaskit/button": "^19.
|
|
39
|
+
"@atlaskit/avatar": "^21.14.0",
|
|
40
|
+
"@atlaskit/button": "^19.2.0",
|
|
41
41
|
"@atlaskit/heading": "^2.4.3",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
43
|
-
"@atlaskit/logo": "^14.
|
|
42
|
+
"@atlaskit/icon": "^22.12.0",
|
|
43
|
+
"@atlaskit/logo": "^14.2.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
45
|
"@atlaskit/primitives": "^12.0.0",
|
|
46
|
-
"@atlaskit/skeleton": "^0.
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/skeleton": "^0.5.0",
|
|
47
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"bind-event-listener": "^3.0.0",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|