@box/box-ai-agent-selector 0.37.2 → 0.38.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/dist/esm/index.js +12 -8
- package/dist/esm/lib/box-ai-agent-selector-with-api-container.js +9 -7
- package/dist/esm/lib/box-ai-agent-selector.js +1312 -1303
- package/dist/esm/lib/constants.js +10 -9
- package/dist/esm/lib/hooks/__tests__/useLocalStorageAIAgents.tests.js +74 -0
- package/dist/esm/lib/hooks/index.js +4 -0
- package/dist/esm/lib/hooks/useLocalStorageAIAgents.js +21 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/lib/constants.d.ts +1 -0
- package/dist/types/lib/hooks/__tests__/useLocalStorageAIAgents.tests.d.ts +1 -0
- package/dist/types/lib/hooks/index.d.ts +1 -0
- package/dist/types/lib/hooks/useLocalStorageAIAgents.d.ts +2 -0
- package/package.json +3 -2
package/dist/esm/index.js
CHANGED
@@ -1,16 +1,20 @@
|
|
1
1
|
import { BoxAiAgentSelector as t } from "./lib/box-ai-agent-selector.js";
|
2
2
|
import { BoxAiAgentSelectorWithApi as A } from "./lib/box-ai-agent-selector-with-api.js";
|
3
|
-
import { BoxAiAgentSelectorWithApiContainer as
|
3
|
+
import { BoxAiAgentSelectorWithApiContainer as x } from "./lib/box-ai-agent-selector-with-api-container.js";
|
4
|
+
import { AI_AGENTS_LOCAL_STORAGE_KEY as s } from "./lib/constants.js";
|
4
5
|
import { R as n } from "../chunks/types.js";
|
5
|
-
import { ACTIONS as
|
6
|
-
import { AgentsProvider as
|
6
|
+
import { ACTIONS as g } from "./lib/contexts/actions.js";
|
7
|
+
import { AgentsProvider as a, useAgents as E, useAgentsDispatch as T } from "./lib/contexts/context.js";
|
8
|
+
import { default as l } from "./lib/hooks/useLocalStorageAIAgents.js";
|
7
9
|
export {
|
8
|
-
|
9
|
-
|
10
|
+
g as ACTIONS,
|
11
|
+
s as AI_AGENTS_LOCAL_STORAGE_KEY,
|
12
|
+
a as AgentsProvider,
|
10
13
|
t as BoxAiAgentSelector,
|
11
14
|
A as BoxAiAgentSelectorWithApi,
|
12
|
-
|
15
|
+
x as BoxAiAgentSelectorWithApiContainer,
|
13
16
|
n as REQUEST_STATE,
|
14
|
-
|
15
|
-
|
17
|
+
E as useAgents,
|
18
|
+
T as useAgentsDispatch,
|
19
|
+
l as useLocalStorageAIAgents
|
16
20
|
};
|
@@ -2,34 +2,36 @@ import "./box-ai-agent-selector.js";
|
|
2
2
|
import { BoxAiAgentSelectorWithApi as c } from "./box-ai-agent-selector-with-api.js";
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
4
4
|
import { AgentsProvider as l } from "./contexts/context.js";
|
5
|
+
import "./constants.js";
|
5
6
|
import "../../chunks/types.js";
|
6
7
|
import "./contexts/actions.js";
|
7
|
-
|
8
|
+
import "./hooks/useLocalStorageAIAgents.js";
|
9
|
+
function S({
|
8
10
|
fetcher: t,
|
9
11
|
hostAppName: o,
|
10
12
|
onSelectAgent: i,
|
11
13
|
recordAction: e,
|
12
14
|
requestState: m,
|
13
|
-
disabled:
|
14
|
-
shouldHideAgentSelectorOnLoad:
|
15
|
+
disabled: p,
|
16
|
+
shouldHideAgentSelectorOnLoad: n = !0,
|
15
17
|
triggerChipClassName: A,
|
16
18
|
contentClassName: f
|
17
19
|
}) {
|
18
20
|
return /* @__PURE__ */ r(l, {
|
19
21
|
children: /* @__PURE__ */ r(c, {
|
20
22
|
contentClassName: f,
|
21
|
-
disabled:
|
23
|
+
disabled: p,
|
22
24
|
fetcher: t,
|
23
25
|
hostAppName: o,
|
24
26
|
onSelectAgent: i,
|
25
27
|
recordAction: e,
|
26
28
|
requestState: m,
|
27
|
-
shouldHideAgentSelectorOnLoad:
|
29
|
+
shouldHideAgentSelectorOnLoad: n,
|
28
30
|
triggerChipClassName: A
|
29
31
|
})
|
30
32
|
});
|
31
33
|
}
|
32
34
|
export {
|
33
|
-
|
34
|
-
|
35
|
+
S as BoxAiAgentSelectorWithApiContainer,
|
36
|
+
S as default
|
35
37
|
};
|