@box/box-ai-agent-selector 0.19.7 → 0.20.1
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-selector-with-api-container.js +15 -13
- package/esm/lib/box-ai-agent-selector-with-api.js +20 -18
- package/esm/lib/box-ai-agent-selector.js +76 -75
- package/package.json +3 -3
- package/styles/box-ai-agent-selector.css +1 -1
- package/types/lib/box-ai-agent-selector-with-api-container.d.ts +1 -1
- package/types/lib/box-ai-agent-selector-with-api.d.ts +1 -1
- package/types/lib/box-ai-agent-selector.d.ts +1 -1
- package/types/lib/types.d.ts +8 -0
@@ -1,30 +1,32 @@
|
|
1
|
-
import { BoxAiAgentSelectorWithApi as
|
2
|
-
import { AgentsProvider as
|
1
|
+
import { BoxAiAgentSelectorWithApi as c } from "./box-ai-agent-selector-with-api.js";
|
2
|
+
import { AgentsProvider as l } from "./contexts/context.js";
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
4
|
-
function
|
4
|
+
function d({
|
5
5
|
fetcher: t,
|
6
6
|
hostAppName: e,
|
7
7
|
onSelectAgent: o,
|
8
8
|
recordAction: i,
|
9
9
|
requestState: n,
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
disabled: A,
|
11
|
+
shouldHideAgentSelectorOnLoad: m = !0,
|
12
|
+
triggerChipClassName: p,
|
13
|
+
contentClassName: f
|
13
14
|
}) {
|
14
|
-
return /* @__PURE__ */ r(
|
15
|
-
children: /* @__PURE__ */ r(
|
16
|
-
contentClassName:
|
15
|
+
return /* @__PURE__ */ r(l, {
|
16
|
+
children: /* @__PURE__ */ r(c, {
|
17
|
+
contentClassName: f,
|
18
|
+
disabled: A,
|
17
19
|
fetcher: t,
|
18
20
|
hostAppName: e,
|
19
21
|
onSelectAgent: o,
|
20
22
|
recordAction: i,
|
21
23
|
requestState: n,
|
22
|
-
shouldHideAgentSelectorOnLoad:
|
23
|
-
triggerChipClassName:
|
24
|
+
shouldHideAgentSelectorOnLoad: m,
|
25
|
+
triggerChipClassName: p
|
24
26
|
})
|
25
27
|
});
|
26
28
|
}
|
27
29
|
export {
|
28
|
-
|
29
|
-
|
30
|
+
d as BoxAiAgentSelectorWithApiContainer,
|
31
|
+
d as default
|
30
32
|
};
|
@@ -1,26 +1,27 @@
|
|
1
|
-
import { useState as
|
2
|
-
import { BoxAiAgentSelector as
|
1
|
+
import { useState as h, useCallback as m, useEffect as f } from "react";
|
2
|
+
import { BoxAiAgentSelector as I } from "./box-ai-agent-selector.js";
|
3
3
|
import { LOGGER_BASE_CONFIG as a, LOGGER_TARGET as u } from "./constants.js";
|
4
4
|
import { ACTIONS as E } from "./contexts/actions.js";
|
5
|
-
import { useAgentsDispatch as
|
5
|
+
import { useAgentsDispatch as L, useAgents as d } from "./contexts/context.js";
|
6
6
|
import { R as i } from "../../chunks/types.js";
|
7
|
-
import { jsx as
|
8
|
-
function
|
7
|
+
import { jsx as U } from "react/jsx-runtime";
|
8
|
+
function b({
|
9
9
|
fetcher: R,
|
10
10
|
hostAppName: _,
|
11
11
|
onSelectAgent: o,
|
12
12
|
recordAction: T,
|
13
13
|
requestState: s,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
disabled: g,
|
15
|
+
shouldHideAgentSelectorOnLoad: l,
|
16
|
+
triggerChipClassName: G,
|
17
|
+
contentClassName: p,
|
18
|
+
variant: C = "modal"
|
18
19
|
}) {
|
19
|
-
const e =
|
20
|
+
const e = L(), {
|
20
21
|
agents: c,
|
21
22
|
requestState: S,
|
22
23
|
selectedAgent: n
|
23
|
-
} =
|
24
|
+
} = d(), [O, N] = h(!1), r = m((t) => {
|
24
25
|
T && (t.data ?? (t.data = {}), t.data.hostAppName = _, T(t));
|
25
26
|
}, [_, T]), A = m(async () => {
|
26
27
|
e({
|
@@ -48,7 +49,7 @@ function H({
|
|
48
49
|
}, [e, r, R]);
|
49
50
|
return f(() => {
|
50
51
|
A().finally(() => {
|
51
|
-
|
52
|
+
N(!0);
|
52
53
|
});
|
53
54
|
}, [A]), f(() => {
|
54
55
|
s && s !== S && (s !== i.SUCCESS && e({
|
@@ -60,18 +61,19 @@ function H({
|
|
60
61
|
}));
|
61
62
|
}, [e, S, s]), f(() => {
|
62
63
|
o && o(n);
|
63
|
-
}, [o, n]),
|
64
|
+
}, [o, n]), l && !O || S === i.SUCCESS && c.length <= 1 ? null : /* @__PURE__ */ U(I, {
|
64
65
|
agents: c,
|
65
|
-
contentClassName:
|
66
|
+
contentClassName: p,
|
67
|
+
disabled: g,
|
66
68
|
onErrorAction: A,
|
67
69
|
recordAction: r,
|
68
70
|
requestState: S,
|
69
71
|
selectedAgent: n,
|
70
|
-
triggerChipClassName:
|
71
|
-
variant:
|
72
|
+
triggerChipClassName: G,
|
73
|
+
variant: C
|
72
74
|
});
|
73
75
|
}
|
74
76
|
export {
|
75
|
-
|
76
|
-
|
77
|
+
b as BoxAiAgentSelectorWithApi,
|
78
|
+
b as default
|
77
79
|
};
|
@@ -1,52 +1,53 @@
|
|
1
1
|
import "../../styles/box-ai-agent-selector.css";
|
2
|
-
import { useFullTextTooltip as
|
3
|
-
import { AlertBadge as
|
4
|
-
import
|
5
|
-
import { useState as
|
6
|
-
import { useIntl as
|
7
|
-
import { BoxAiAgent as
|
2
|
+
import { useFullTextTooltip as z, FilterChip as m, Popover as p, Tooltip as H, Status as J, LoadingIndicator as X, SmallList as Z, Button as $ } from "@box/blueprint-web";
|
3
|
+
import { AlertBadge as q } from "@box/blueprint-web-assets/icons/Fill";
|
4
|
+
import d from "clsx";
|
5
|
+
import { useState as v, useRef as tt, useEffect as et, useCallback as _ } from "react";
|
6
|
+
import { useIntl as at } from "react-intl";
|
7
|
+
import { BoxAiAgent as nt } from "./box-ai-agent.js";
|
8
8
|
import { LOGGER_BASE_CONFIG as S, LOGGER_ACTION_CLICK as T, LOGGER_TARGET as I } from "./constants.js";
|
9
|
-
import { ACTIONS as
|
10
|
-
import { useAgentsDispatch as
|
11
|
-
import
|
9
|
+
import { ACTIONS as ot } from "./contexts/actions.js";
|
10
|
+
import { useAgentsDispatch as rt } from "./contexts/context.js";
|
11
|
+
import i from "./messages.js";
|
12
12
|
import { R } from "../../chunks/types.js";
|
13
|
-
import { jsx as t, jsxs as
|
14
|
-
const it = "
|
13
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
14
|
+
const it = "_agentSelector_1uxm1_1", st = "_agentStatus_1uxm1_4", lt = "_agentLoader_1uxm1_18", ct = "_agentError_1uxm1_21", gt = "_triggerChip_1uxm1_24", mt = "_agentLabel_1uxm1_29", pt = "_dropdownIndicator_1uxm1_35", dt = "_sidebar_1uxm1_50", _t = "_agentListItemIcon_1uxm1_69", ft = "_agentListContainer_1uxm1_74", ut = "_agentListRetryButton_1uxm1_93", a = {
|
15
15
|
agentSelector: it,
|
16
|
-
agentStatus:
|
17
|
-
agentLoader:
|
18
|
-
agentError:
|
19
|
-
triggerChip:
|
20
|
-
agentLabel:
|
16
|
+
agentStatus: st,
|
17
|
+
agentLoader: lt,
|
18
|
+
agentError: ct,
|
19
|
+
triggerChip: gt,
|
20
|
+
agentLabel: mt,
|
21
21
|
dropdownIndicator: pt,
|
22
22
|
sidebar: dt,
|
23
|
-
agentListItemIcon:
|
24
|
-
agentListContainer:
|
25
|
-
agentListRetryButton:
|
23
|
+
agentListItemIcon: _t,
|
24
|
+
agentListContainer: ft,
|
25
|
+
agentListRetryButton: ut
|
26
26
|
};
|
27
|
-
function
|
27
|
+
function Gt({
|
28
28
|
agents: f,
|
29
|
-
contentClassName:
|
30
|
-
onErrorAction:
|
29
|
+
contentClassName: A,
|
30
|
+
onErrorAction: b,
|
31
31
|
recordAction: n,
|
32
|
-
requestState:
|
32
|
+
requestState: u,
|
33
|
+
disabled: P,
|
33
34
|
selectedAgent: s,
|
34
|
-
triggerChipClassName:
|
35
|
-
variant:
|
35
|
+
triggerChipClassName: D,
|
36
|
+
variant: k = "modal"
|
36
37
|
}) {
|
37
38
|
const {
|
38
39
|
formatMessage: o
|
39
|
-
} =
|
40
|
+
} = at(), [l, c] = v(!1), r = u === R.ERROR, [K, L] = v(r), N = rt(), O = u === R.SUCCESS, E = u === R.IN_PROGRESS, y = o(i.selectAgent), M = o(i.defaultAgent);
|
40
41
|
let g = "";
|
41
|
-
|
42
|
-
const G =
|
43
|
-
Wrapper:
|
44
|
-
wrapperProps:
|
45
|
-
} =
|
42
|
+
O ? g = (s == null ? void 0 : s.name) || y : r && (g = M);
|
43
|
+
const G = tt(null), {
|
44
|
+
Wrapper: F,
|
45
|
+
wrapperProps: j
|
46
|
+
} = z({
|
46
47
|
ref: G,
|
47
48
|
textValue: g
|
48
49
|
});
|
49
|
-
|
50
|
+
et(() => {
|
50
51
|
l && n && n({
|
51
52
|
...S,
|
52
53
|
action: T,
|
@@ -54,92 +55,92 @@ function yt({
|
|
54
55
|
});
|
55
56
|
}, [l, n]);
|
56
57
|
const h = _((e) => {
|
57
|
-
c(!1),
|
58
|
-
type:
|
58
|
+
c(!1), N({
|
59
|
+
type: ot.SET_SELECTED_AGENT,
|
59
60
|
id: e.id
|
60
61
|
}), n && n({
|
61
62
|
...S,
|
62
63
|
action: T,
|
63
64
|
target: I.SELECT_AGENT
|
64
65
|
});
|
65
|
-
}, [
|
66
|
-
c(!1),
|
66
|
+
}, [N, n]), U = _(() => {
|
67
|
+
c(!1), b(), n && n({
|
67
68
|
...S,
|
68
69
|
action: T,
|
69
70
|
target: I.RETRY_LOADING_AGENTS
|
70
71
|
});
|
71
|
-
}, [
|
72
|
+
}, [b, n]), Q = _((e) => {
|
72
73
|
if (e.key === "Escape" && (c(!1), e.stopPropagation()), e.key === " ") {
|
73
|
-
const
|
74
|
-
if (
|
75
|
-
const
|
76
|
-
|
74
|
+
const w = e.target;
|
75
|
+
if (w) {
|
76
|
+
const W = w.getAttribute("data-key"), B = f.find((Y) => Y.id === W);
|
77
|
+
B && h(B);
|
77
78
|
}
|
78
79
|
}
|
79
|
-
}, [f, h]),
|
80
|
-
return /* @__PURE__ */ t(
|
81
|
-
className:
|
80
|
+
}, [f, h]), V = _((e) => L(r && r && !l && e ? e : !1), [r, l]), C = k === "sidebar" && a.sidebar;
|
81
|
+
return /* @__PURE__ */ t(m.Group, {
|
82
|
+
className: d(a.agentSelector, D, C),
|
82
83
|
name: y,
|
83
84
|
type: "multiple",
|
84
|
-
children: /* @__PURE__ */
|
85
|
+
children: /* @__PURE__ */ x(p.Root, {
|
85
86
|
modal: !1,
|
86
87
|
onOpenChange: c,
|
87
88
|
open: l,
|
88
|
-
children: [/* @__PURE__ */ t(
|
89
|
-
content: o(
|
90
|
-
onOpenChange:
|
91
|
-
open:
|
89
|
+
children: [/* @__PURE__ */ t(H, {
|
90
|
+
content: o(i.errorTooltip),
|
91
|
+
onOpenChange: V,
|
92
|
+
open: K,
|
92
93
|
side: "bottom",
|
93
94
|
variant: "error",
|
94
|
-
children: /* @__PURE__ */ t(
|
95
|
-
disabled: E,
|
96
|
-
children: /* @__PURE__ */
|
95
|
+
children: /* @__PURE__ */ t(p.Trigger, {
|
96
|
+
disabled: P || E,
|
97
|
+
children: /* @__PURE__ */ x(m.TriggerChip, {
|
97
98
|
className: a.triggerChip,
|
98
99
|
value: "trigger-chip",
|
99
|
-
children: [/* @__PURE__ */ t(
|
100
|
+
children: [/* @__PURE__ */ t(J, {
|
100
101
|
className: a.agentStatus,
|
101
102
|
colorIndex: 0,
|
102
|
-
text: o(
|
103
|
-
}), E && /* @__PURE__ */ t(
|
104
|
-
"aria-label": o(
|
103
|
+
text: o(i.agent)
|
104
|
+
}), E && /* @__PURE__ */ t(X, {
|
105
|
+
"aria-label": o(i.loadingMessage),
|
105
106
|
className: a.agentLoader,
|
106
107
|
variant: "default"
|
107
|
-
}),
|
108
|
+
}), r && /* @__PURE__ */ t(q, {
|
108
109
|
className: a.agentError,
|
109
110
|
height: "1rem",
|
110
111
|
role: "presentation",
|
111
112
|
width: "1rem"
|
112
|
-
}), /* @__PURE__ */ t(
|
113
|
-
...
|
114
|
-
children: /* @__PURE__ */ t(
|
113
|
+
}), /* @__PURE__ */ t(F, {
|
114
|
+
...j,
|
115
|
+
children: /* @__PURE__ */ t(m.Label, {
|
115
116
|
ref: G,
|
116
117
|
className: a.agentLabel,
|
117
118
|
children: g
|
118
119
|
})
|
119
120
|
}), !E && /* @__PURE__ */ t("div", {
|
120
121
|
className: a.dropdownIndicator,
|
121
|
-
children: /* @__PURE__ */ t(
|
122
|
+
children: /* @__PURE__ */ t(m.DropdownIndicator, {})
|
122
123
|
})]
|
123
124
|
})
|
124
125
|
})
|
125
|
-
}), /* @__PURE__ */ t(
|
126
|
+
}), /* @__PURE__ */ t(p.ContentContainer, {
|
126
127
|
align: "start",
|
127
|
-
className:
|
128
|
-
onKeyDownCapture:
|
129
|
-
children: /* @__PURE__ */
|
130
|
-
children: [
|
131
|
-
"aria-label": o(
|
132
|
-
className:
|
128
|
+
className: d(a.agentListContainer, C),
|
129
|
+
onKeyDownCapture: Q,
|
130
|
+
children: /* @__PURE__ */ x(p.MainContent, {
|
131
|
+
children: [O && /* @__PURE__ */ t(Z, {
|
132
|
+
"aria-label": o(i.agentList),
|
133
|
+
className: d([a.agentList, A]),
|
133
134
|
selectedKeys: [(s == null ? void 0 : s.id) || ""],
|
134
|
-
children: f.map((e) => /* @__PURE__ */ t(
|
135
|
+
children: f.map((e) => /* @__PURE__ */ t(nt, {
|
135
136
|
agent: e,
|
136
137
|
onAction: () => h(e)
|
137
138
|
}, e.id))
|
138
|
-
}),
|
139
|
-
className:
|
140
|
-
onClick:
|
139
|
+
}), r && /* @__PURE__ */ t($, {
|
140
|
+
className: d(a.agentListRetryButton, C),
|
141
|
+
onClick: U,
|
141
142
|
variant: "tertiary",
|
142
|
-
children: o(
|
143
|
+
children: o(i.errorMessage)
|
143
144
|
})]
|
144
145
|
})
|
145
146
|
})]
|
@@ -147,6 +148,6 @@ function yt({
|
|
147
148
|
});
|
148
149
|
}
|
149
150
|
export {
|
150
|
-
|
151
|
-
|
151
|
+
Gt as BoxAiAgentSelector,
|
152
|
+
Gt as default
|
152
153
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/box-ai-agent-selector",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.20.1",
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
5
5
|
"peerDependencies": {
|
6
6
|
"@box/blueprint-web": "^7.31.1",
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"react-intl": "^6.4.2"
|
11
11
|
},
|
12
12
|
"devDependencies": {
|
13
|
-
"@box/blueprint-web": "^9.
|
13
|
+
"@box/blueprint-web": "^9.9.0",
|
14
14
|
"@box/blueprint-web-assets": "^4.31.1",
|
15
15
|
"@box/eslint-plugin-blueprint": "^1.0.3",
|
16
16
|
"@box/storybook-utils": "^0.8.1",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"sideEffects": [
|
47
47
|
"**/*.css"
|
48
48
|
],
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "53acfac32b3a628eaa3cb22e09bf1c0554c1acbe"
|
50
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._agentSelector_1uxm1_1{margin-inline-start:.75rem}._agentSelector_1uxm1_1 ._agentStatus_1uxm1_4{margin-inline-start:.5rem}._agentSelector_1uxm1_1 ._agentStatus_1uxm1_4>span{background:linear-gradient(#f4f4f4 0,#f4f4f4 0) padding-box,linear-gradient(135deg,#fe01da,#2486fc) border-box;border:.0625rem solid rgba(0,0,0,0)}._agentSelector_1uxm1_1 ._agentStatus_1uxm1_4>span span{color:transparent;text-transform:uppercase;background:linear-gradient(135deg,#fe01da,#2486fc);-webkit-background-clip:text;background-clip:text}._agentSelector_1uxm1_1 ._agentLoader_1uxm1_18{position:inherit}._agentSelector_1uxm1_1 ._agentError_1uxm1_21 path{fill:#d5324e}._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24{display:flex;max-width:376px;text-align:start}._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24 ._agentLabel_1uxm1_29{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24 ._dropdownIndicator_1uxm1_35{flex-shrink:0;margin-inline-start:0}._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24 ._dropdownIndicator_1uxm1_35 svg{margin-inline-start:0}._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24:disabled ._dropdownIndicator_1uxm1_35{opacity:.3}@media (max-width: 374px){._agentSelector_1uxm1_1 ._triggerChip_1uxm1_24{width:100%}}._agentSelector_1uxm1_1._sidebar_1uxm1_50{margin:0 .25rem 0 0;margin-inline-start:0}@media (max-width: 767px){._agentSelector_1uxm1_1._sidebar_1uxm1_50{width:100%}}._agentSelector_1uxm1_1._sidebar_1uxm1_50 ._triggerChip_1uxm1_24{width:246px}@media (max-width: 767px){._agentSelector_1uxm1_1._sidebar_1uxm1_50 ._triggerChip_1uxm1_24{width:100%;max-width:100%}}._agentListItemIcon_1uxm1_69{width:2rem;height:2rem}._agentListContainer_1uxm1_74{min-width:320px;max-width:376px}@media (max-width: 376px){._agentListContainer_1uxm1_74{max-width:320px}}._agentListContainer_1uxm1_74._sidebar_1uxm1_50{min-width:184px;max-width:252px}@media (max-width: 252px){._agentListContainer_1uxm1_74._sidebar_1uxm1_50{max-width:184px}}._agentListRetryButton_1uxm1_93{max-width:320px;margin:.25rem;text-wrap:wrap}._agentListRetryButton_1uxm1_93._sidebar_1uxm1_50{max-width:184px}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type BoxAiAgentSelectorWithApiProps } from './types';
|
2
|
-
export declare function BoxAiAgentSelectorWithApiContainer({ fetcher, hostAppName, onSelectAgent, recordAction, requestState, shouldHideAgentSelectorOnLoad, triggerChipClassName, contentClassName, }: BoxAiAgentSelectorWithApiProps): import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare function BoxAiAgentSelectorWithApiContainer({ fetcher, hostAppName, onSelectAgent, recordAction, requestState, disabled, shouldHideAgentSelectorOnLoad, triggerChipClassName, contentClassName, }: BoxAiAgentSelectorWithApiProps): import("react/jsx-runtime").JSX.Element;
|
3
3
|
export default BoxAiAgentSelectorWithApiContainer;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type BoxAiAgentSelectorWithApiProps } from './types';
|
2
|
-
export declare function BoxAiAgentSelectorWithApi({ fetcher, hostAppName, onSelectAgent, recordAction, requestState: requestStateProp, shouldHideAgentSelectorOnLoad, triggerChipClassName, contentClassName, variant, }: BoxAiAgentSelectorWithApiProps): import("react/jsx-runtime").JSX.Element | null;
|
2
|
+
export declare function BoxAiAgentSelectorWithApi({ fetcher, hostAppName, onSelectAgent, recordAction, requestState: requestStateProp, disabled, shouldHideAgentSelectorOnLoad, triggerChipClassName, contentClassName, variant, }: BoxAiAgentSelectorWithApiProps): import("react/jsx-runtime").JSX.Element | null;
|
3
3
|
export default BoxAiAgentSelectorWithApi;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type BoxAiAgentSelectorProps } from './types';
|
2
|
-
export declare function BoxAiAgentSelector({ agents, contentClassName, onErrorAction, recordAction, requestState, selectedAgent, triggerChipClassName, variant, }: BoxAiAgentSelectorProps): import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare function BoxAiAgentSelector({ agents, contentClassName, onErrorAction, recordAction, requestState, disabled, selectedAgent, triggerChipClassName, variant, }: BoxAiAgentSelectorProps): import("react/jsx-runtime").JSX.Element;
|
3
3
|
export default BoxAiAgentSelector;
|
package/types/lib/types.d.ts
CHANGED
@@ -66,6 +66,10 @@ export interface BoxAiAgentSelectorWithApiProps {
|
|
66
66
|
/** Request state of the list fetching
|
67
67
|
*/
|
68
68
|
requestState?: REQUEST_STATE | null;
|
69
|
+
/**
|
70
|
+
* Renders the dropdown in disabled state.
|
71
|
+
*/
|
72
|
+
disabled?: boolean;
|
69
73
|
/**
|
70
74
|
* Determines whether the agent selector component should remain hidden
|
71
75
|
* until the initial data fetch is complete.
|
@@ -96,6 +100,10 @@ export interface BoxAiAgentSelectorProps {
|
|
96
100
|
* Current state of the request to fetch agents, representing one of: Success, Error, In Progress, or Not Started.
|
97
101
|
*/
|
98
102
|
requestState: REQUEST_STATE;
|
103
|
+
/**
|
104
|
+
* Renders the dropdown in disabled state.
|
105
|
+
*/
|
106
|
+
disabled?: boolean;
|
99
107
|
/**
|
100
108
|
* The currently selected agent, or null if no agent is selected.
|
101
109
|
*/
|