@box/box-ai-agent-selector 0.26.7 → 0.27.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/esm/lib/box-ai-agent.js +13 -12
- package/package.json +4 -4
package/esm/lib/box-ai-agent.js
CHANGED
@@ -2,11 +2,11 @@ import { useFullTextTooltip as u, SmallList as s, Text as c, Status as d } from
|
|
2
2
|
import { BoxAiLogo as p } from "@box/blueprint-web-assets/icons/Logo";
|
3
3
|
import { SurfaceStatusSurfaceGray as f } from "@box/blueprint-web-assets/tokens/tokens";
|
4
4
|
import { useRef as g } from "react";
|
5
|
-
import { useIntl as
|
6
|
-
import
|
7
|
-
import { jsxs as b, jsx as t, Fragment as
|
8
|
-
import '../../styles/box-ai-agent.css';const
|
9
|
-
agentListItem:
|
5
|
+
import { useIntl as A } from "react-intl";
|
6
|
+
import _ from "./messages.js";
|
7
|
+
import { jsxs as b, jsx as t, Fragment as I } from "react/jsx-runtime";
|
8
|
+
import '../../styles/box-ai-agent.css';const h = "_agentListItem_1byz1_1", S = "_thumbnailWrapper_1byz1_6", L = "_agentListItemIcon_1byz1_9", N = "_defaultAgentHeader_1byz1_18", x = "_defaultAgentName_1byz1_22", y = "_defaultAgentStatusWrapper_1byz1_28", a = {
|
9
|
+
agentListItem: h,
|
10
10
|
thumbnailWrapper: S,
|
11
11
|
agentListItemIcon: L,
|
12
12
|
defaultAgentHeader: N,
|
@@ -15,22 +15,23 @@ import '../../styles/box-ai-agent.css';const I = "_agentListItem_1byz1_1", S = "
|
|
15
15
|
};
|
16
16
|
function j({
|
17
17
|
agent: e,
|
18
|
-
onAction:
|
18
|
+
onAction: n
|
19
19
|
}) {
|
20
20
|
const {
|
21
21
|
formatMessage: i
|
22
|
-
} =
|
22
|
+
} = A(), r = e.isEnterpriseDefault, l = g(null), {
|
23
23
|
Wrapper: m,
|
24
24
|
wrapperProps: o
|
25
25
|
} = u({
|
26
|
-
ref:
|
26
|
+
ref: l,
|
27
27
|
textValue: e.name,
|
28
28
|
skipOverflowCheck: !r
|
29
29
|
});
|
30
30
|
return /* @__PURE__ */ b(s.Item, {
|
31
31
|
className: a.agentListItem,
|
32
|
+
"data-target-id": "SmallList.Item-boxAIAgent",
|
32
33
|
id: e.id,
|
33
|
-
onAction:
|
34
|
+
onAction: n,
|
34
35
|
children: [/* @__PURE__ */ t(s.Thumbnail, {
|
35
36
|
className: a.thumbnailWrapper,
|
36
37
|
children: /* @__PURE__ */ t("div", {
|
@@ -45,11 +46,11 @@ function j({
|
|
45
46
|
}), /* @__PURE__ */ t(s.Header, {
|
46
47
|
className: r ? a.defaultAgentHeader : void 0,
|
47
48
|
textValue: e.name,
|
48
|
-
children: r ? /* @__PURE__ */ t(
|
49
|
+
children: r ? /* @__PURE__ */ t(I, {
|
49
50
|
children: /* @__PURE__ */ t(m, {
|
50
51
|
...o,
|
51
52
|
children: /* @__PURE__ */ t(c, {
|
52
|
-
ref:
|
53
|
+
ref: l,
|
53
54
|
as: "span",
|
54
55
|
className: a.defaultAgentName,
|
55
56
|
variant: "bodyDefaultSemibold",
|
@@ -62,7 +63,7 @@ function j({
|
|
62
63
|
children: r && /* @__PURE__ */ t(d, {
|
63
64
|
className: a.defaultAgentStatus,
|
64
65
|
color: f,
|
65
|
-
text: i(
|
66
|
+
text: i(_.defaultStatus)
|
66
67
|
})
|
67
68
|
}), e.description && /* @__PURE__ */ t(s.Subtitle, {
|
68
69
|
className: a.agentDescription,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/box-ai-agent-selector",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.27.0",
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
5
5
|
"peerDependencies": {
|
6
6
|
"@box/blueprint-web": "^7.31.1",
|
@@ -11,8 +11,8 @@
|
|
11
11
|
},
|
12
12
|
"devDependencies": {
|
13
13
|
"@box/babel-plugin-target-attributes": "1.3.0",
|
14
|
-
"@box/blueprint-web": "^9.18.
|
15
|
-
"@box/blueprint-web-assets": "^4.
|
14
|
+
"@box/blueprint-web": "^9.18.5",
|
15
|
+
"@box/blueprint-web-assets": "^4.34.0",
|
16
16
|
"@box/eslint-plugin-blueprint": "^1.0.3",
|
17
17
|
"@box/storybook-utils": "^0.8.3",
|
18
18
|
"react-intl": "^6.4.2"
|
@@ -47,5 +47,5 @@
|
|
47
47
|
"sideEffects": [
|
48
48
|
"**/*.css"
|
49
49
|
],
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "4186e6a642af66984f1fb57cad2b9188d4b8f89a"
|
51
51
|
}
|