@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 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 p } from "./lib/box-ai-agent-selector-with-api-container.js";
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 f } from "./lib/contexts/actions.js";
6
- import { AgentsProvider as m, useAgents as S, useAgentsDispatch as c } from "./lib/contexts/context.js";
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
- f as ACTIONS,
9
- m as AgentsProvider,
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
- p as BoxAiAgentSelectorWithApiContainer,
15
+ x as BoxAiAgentSelectorWithApiContainer,
13
16
  n as REQUEST_STATE,
14
- S as useAgents,
15
- c as useAgentsDispatch
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
- function s({
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: n,
14
- shouldHideAgentSelectorOnLoad: p = !0,
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: n,
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: p,
29
+ shouldHideAgentSelectorOnLoad: n,
28
30
  triggerChipClassName: A
29
31
  })
30
32
  });
31
33
  }
32
34
  export {
33
- s as BoxAiAgentSelectorWithApiContainer,
34
- s as default
35
+ S as BoxAiAgentSelectorWithApiContainer,
36
+ S as default
35
37
  };