@box/box-ai-agent-selector 0.19.7 → 0.20.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.
@@ -1,30 +1,32 @@
1
- import { BoxAiAgentSelectorWithApi as f } from "./box-ai-agent-selector-with-api.js";
2
- import { AgentsProvider as c } from "./contexts/context.js";
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 a({
4
+ function d({
5
5
  fetcher: t,
6
6
  hostAppName: e,
7
7
  onSelectAgent: o,
8
8
  recordAction: i,
9
9
  requestState: n,
10
- shouldHideAgentSelectorOnLoad: A = !0,
11
- triggerChipClassName: m,
12
- contentClassName: p
10
+ disabled: A,
11
+ shouldHideAgentSelectorOnLoad: m = !0,
12
+ triggerChipClassName: p,
13
+ contentClassName: f
13
14
  }) {
14
- return /* @__PURE__ */ r(c, {
15
- children: /* @__PURE__ */ r(f, {
16
- contentClassName: p,
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: A,
23
- triggerChipClassName: m
24
+ shouldHideAgentSelectorOnLoad: m,
25
+ triggerChipClassName: p
24
26
  })
25
27
  });
26
28
  }
27
29
  export {
28
- a as BoxAiAgentSelectorWithApiContainer,
29
- a as default
30
+ d as BoxAiAgentSelectorWithApiContainer,
31
+ d as default
30
32
  };
@@ -1,26 +1,27 @@
1
- import { useState as N, useCallback as m, useEffect as f } from "react";
2
- import { BoxAiAgentSelector as h } from "./box-ai-agent-selector.js";
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 I, useAgents as L } from "./contexts/context.js";
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 d } from "react/jsx-runtime";
8
- function H({
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
- shouldHideAgentSelectorOnLoad: g,
15
- triggerChipClassName: l,
16
- contentClassName: G,
17
- variant: p = "modal"
14
+ disabled: g,
15
+ shouldHideAgentSelectorOnLoad: l,
16
+ triggerChipClassName: G,
17
+ contentClassName: p,
18
+ variant: C = "modal"
18
19
  }) {
19
- const e = I(), {
20
+ const e = L(), {
20
21
  agents: c,
21
22
  requestState: S,
22
23
  selectedAgent: n
23
- } = L(), [C, O] = N(!1), r = m((t) => {
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
- O(!0);
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]), g && !C || S === i.SUCCESS && c.length <= 1 ? null : /* @__PURE__ */ d(h, {
64
+ }, [o, n]), l && !O || S === i.SUCCESS && c.length <= 1 ? null : /* @__PURE__ */ U(I, {
64
65
  agents: c,
65
- contentClassName: G,
66
+ contentClassName: p,
67
+ disabled: g,
66
68
  onErrorAction: A,
67
69
  recordAction: r,
68
70
  requestState: S,
69
71
  selectedAgent: n,
70
- triggerChipClassName: l,
71
- variant: p
72
+ triggerChipClassName: G,
73
+ variant: C
72
74
  });
73
75
  }
74
76
  export {
75
- H as BoxAiAgentSelectorWithApi,
76
- H as default
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 W, FilterChip as p, Popover as d, Tooltip as Y, Status as z, LoadingIndicator as H, SmallList as J, Button as X } from "@box/blueprint-web";
3
- import { AlertBadge as Z } from "@box/blueprint-web-assets/icons/Fill";
4
- import m from "clsx";
5
- import { useState as w, useRef as $, useEffect as tt, useCallback as _ } from "react";
6
- import { useIntl as et } from "react-intl";
7
- import { BoxAiAgent as at } from "./box-ai-agent.js";
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 nt } from "./contexts/actions.js";
10
- import { useAgentsDispatch as ot } from "./contexts/context.js";
11
- import r from "./messages.js";
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 b } from "react/jsx-runtime";
14
- const it = "_agentSelector_ak9iq_1", rt = "_agentStatus_ak9iq_4", st = "_agentLoader_ak9iq_18", lt = "_agentError_ak9iq_21", ct = "_triggerChip_ak9iq_24", gt = "_agentLabel_ak9iq_29", pt = "_dropdownIndicator_ak9iq_35", dt = "_sidebar_ak9iq_47", mt = "_agentListItemIcon_ak9iq_66", _t = "_agentListContainer_ak9iq_71", ft = "_agentListRetryButton_ak9iq_90", a = {
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: rt,
17
- agentLoader: st,
18
- agentError: lt,
19
- triggerChip: ct,
20
- agentLabel: gt,
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: mt,
24
- agentListContainer: _t,
25
- agentListRetryButton: ft
23
+ agentListItemIcon: _t,
24
+ agentListContainer: ft,
25
+ agentListRetryButton: ut
26
26
  };
27
- function yt({
27
+ function Gt({
28
28
  agents: f,
29
- contentClassName: B,
30
- onErrorAction: N,
29
+ contentClassName: A,
30
+ onErrorAction: b,
31
31
  recordAction: n,
32
- requestState: L,
32
+ requestState: u,
33
+ disabled: P,
33
34
  selectedAgent: s,
34
- triggerChipClassName: v,
35
- variant: A = "modal"
35
+ triggerChipClassName: D,
36
+ variant: k = "modal"
36
37
  }) {
37
38
  const {
38
39
  formatMessage: o
39
- } = et(), [l, c] = w(!1), i = L === R.ERROR, [P, u] = w(i), O = ot(), k = L === R.SUCCESS, E = L === R.IN_PROGRESS, y = o(r.selectAgent), D = o(r.defaultAgent);
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
- k ? g = (s == null ? void 0 : s.name) || y : i && (g = D);
42
- const G = $(null), {
43
- Wrapper: K,
44
- wrapperProps: M
45
- } = W({
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
- tt(() => {
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), O({
58
- type: nt.SET_SELECTED_AGENT,
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
- }, [O, n]), F = _(() => {
66
- c(!1), N(), n && n({
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
- }, [N, n]), j = _((e) => {
72
+ }, [b, n]), Q = _((e) => {
72
73
  if (e.key === "Escape" && (c(!1), e.stopPropagation()), e.key === " ") {
73
- const x = e.target;
74
- if (x) {
75
- const Q = x.getAttribute("data-key"), q = f.find((V) => V.id === Q);
76
- q && h(q);
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]), U = _((e) => u(i && i && !l && e ? e : !1), [i, l]), C = A === "sidebar" && a.sidebar;
80
- return /* @__PURE__ */ t(p.Group, {
81
- className: m(a.agentSelector, v, C),
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__ */ b(d.Root, {
85
+ children: /* @__PURE__ */ x(p.Root, {
85
86
  modal: !1,
86
87
  onOpenChange: c,
87
88
  open: l,
88
- children: [/* @__PURE__ */ t(Y, {
89
- content: o(r.errorTooltip),
90
- onOpenChange: U,
91
- open: P,
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(d.Trigger, {
95
- disabled: E,
96
- children: /* @__PURE__ */ b(p.TriggerChip, {
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(z, {
100
+ children: [/* @__PURE__ */ t(J, {
100
101
  className: a.agentStatus,
101
102
  colorIndex: 0,
102
- text: o(r.agent)
103
- }), E && /* @__PURE__ */ t(H, {
104
- "aria-label": o(r.loadingMessage),
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
- }), i && /* @__PURE__ */ t(Z, {
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(K, {
113
- ...M,
114
- children: /* @__PURE__ */ t(p.Label, {
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(p.DropdownIndicator, {})
122
+ children: /* @__PURE__ */ t(m.DropdownIndicator, {})
122
123
  })]
123
124
  })
124
125
  })
125
- }), /* @__PURE__ */ t(d.ContentContainer, {
126
+ }), /* @__PURE__ */ t(p.ContentContainer, {
126
127
  align: "start",
127
- className: m(a.agentListContainer, C),
128
- onKeyDownCapture: j,
129
- children: /* @__PURE__ */ b(d.MainContent, {
130
- children: [k && /* @__PURE__ */ t(J, {
131
- "aria-label": o(r.agentList),
132
- className: m([a.agentList, B]),
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(at, {
135
+ children: f.map((e) => /* @__PURE__ */ t(nt, {
135
136
  agent: e,
136
137
  onAction: () => h(e)
137
138
  }, e.id))
138
- }), i && /* @__PURE__ */ t(X, {
139
- className: m(a.agentListRetryButton, C),
140
- onClick: F,
139
+ }), r && /* @__PURE__ */ t($, {
140
+ className: d(a.agentListRetryButton, C),
141
+ onClick: U,
141
142
  variant: "tertiary",
142
- children: o(r.errorMessage)
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
- yt as BoxAiAgentSelector,
151
- yt as default
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.19.7",
3
+ "version": "0.20.0",
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.8.2",
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": "1032092bf86c47425f70b0cf84cc9bcb908426c0"
49
+ "gitHead": "669489f834920de03a726e0106414e4065a239c1"
50
50
  }
@@ -1 +1 @@
1
- ._agentSelector_ak9iq_1{margin-inline-start:.75rem}._agentSelector_ak9iq_1 ._agentStatus_ak9iq_4{margin-inline-start:.5rem}._agentSelector_ak9iq_1 ._agentStatus_ak9iq_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_ak9iq_1 ._agentStatus_ak9iq_4>span span{background:linear-gradient(135deg,#fe01da,#2486fc);color:transparent;-webkit-background-clip:text;background-clip:text;text-transform:uppercase}._agentSelector_ak9iq_1 ._agentLoader_ak9iq_18{position:inherit}._agentSelector_ak9iq_1 ._agentError_ak9iq_21 path{fill:#d5324e}._agentSelector_ak9iq_1 ._triggerChip_ak9iq_24{max-width:376px;display:flex;text-align:start}._agentSelector_ak9iq_1 ._triggerChip_ak9iq_24 ._agentLabel_ak9iq_29{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._agentSelector_ak9iq_1 ._triggerChip_ak9iq_24 ._dropdownIndicator_ak9iq_35{flex-shrink:0;margin-inline-start:0}._agentSelector_ak9iq_1 ._triggerChip_ak9iq_24 ._dropdownIndicator_ak9iq_35 svg{margin-inline-start:0}@media (max-width: 374px){._agentSelector_ak9iq_1 ._triggerChip_ak9iq_24{width:100%}}._agentSelector_ak9iq_1._sidebar_ak9iq_47{margin:0 .25rem 0 0;margin-inline-start:0}@media (max-width: 767px){._agentSelector_ak9iq_1._sidebar_ak9iq_47{width:100%}}._agentSelector_ak9iq_1._sidebar_ak9iq_47 ._triggerChip_ak9iq_24{width:246px}@media (max-width: 767px){._agentSelector_ak9iq_1._sidebar_ak9iq_47 ._triggerChip_ak9iq_24{width:100%;max-width:100%}}._agentListItemIcon_ak9iq_66{height:2rem;width:2rem}._agentListContainer_ak9iq_71{min-width:320px;max-width:376px}@media (max-width: 376px){._agentListContainer_ak9iq_71{max-width:320px}}._agentListContainer_ak9iq_71._sidebar_ak9iq_47{min-width:184px;max-width:252px}@media (max-width: 252px){._agentListContainer_ak9iq_71._sidebar_ak9iq_47{max-width:184px}}._agentListRetryButton_ak9iq_90{margin:.25rem;max-width:320px;text-wrap:wrap}._agentListRetryButton_ak9iq_90._sidebar_ak9iq_47{max-width:184px}
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;
@@ -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
  */