@box/box-ai-agent-selector 0.22.8 → 0.23.2

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,4 +1,3 @@
1
- import "../../styles/box-ai-agent-selector.css";
2
1
  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
2
  import { AlertBadge as q } from "@box/blueprint-web-assets/icons/Fill";
4
3
  import d from "clsx";
@@ -11,7 +10,7 @@ import { useAgentsDispatch as rt } from "./contexts/context.js";
11
10
  import i from "./messages.js";
12
11
  import { R } from "../../chunks/types.js";
13
12
  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 = {
13
+ import '../../styles/box-ai-agent-selector.css';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
14
  agentSelector: it,
16
15
  agentStatus: st,
17
16
  agentLoader: lt,
@@ -24,7 +23,7 @@ const it = "_agentSelector_1uxm1_1", st = "_agentStatus_1uxm1_4", lt = "_agentLo
24
23
  agentListContainer: ft,
25
24
  agentListRetryButton: ut
26
25
  };
27
- function Gt({
26
+ function yt({
28
27
  agents: f,
29
28
  contentClassName: A,
30
29
  onErrorAction: b,
@@ -148,6 +147,6 @@ function Gt({
148
147
  });
149
148
  }
150
149
  export {
151
- Gt as BoxAiAgentSelector,
152
- Gt as default
150
+ yt as BoxAiAgentSelector,
151
+ yt as default
153
152
  };
@@ -1,21 +1,20 @@
1
- import "../../styles/box-ai-agent.css";
2
1
  import { useFullTextTooltip as c, SmallList as s, Text as d, Status as f } from "@box/blueprint-web";
3
2
  import { BoxAiLogo as p } from "@box/blueprint-web-assets/icons/Logo";
4
3
  import { SurfaceStatusSurfaceGray as g } from "@box/blueprint-web-assets/tokens/tokens";
5
4
  import { useRef as A } from "react";
6
5
  import { useIntl as _ } from "react-intl";
7
6
  import I from "./messages.js";
8
- import { jsxs as i, jsx as t, Fragment as L } from "react/jsx-runtime";
9
- const S = "_agentListItem_1s7vn_1", x = "_agentListItemIcon_1s7vn_1", N = "_defaultAgentHeader_1s7vn_5", h = "_defaultAgentName_1s7vn_9", v = "_defaultAgentStatus_1s7vn_15", a = {
7
+ import { jsxs as l, jsx as t, Fragment as L } from "react/jsx-runtime";
8
+ import '../../styles/box-ai-agent.css';const S = "_agentListItem_1s7vn_1", x = "_agentListItemIcon_1s7vn_1", N = "_defaultAgentHeader_1s7vn_5", h = "_defaultAgentName_1s7vn_9", v = "_defaultAgentStatus_1s7vn_15", a = {
10
9
  agentListItem: S,
11
10
  agentListItemIcon: x,
12
11
  defaultAgentHeader: N,
13
12
  defaultAgentName: h,
14
13
  defaultAgentStatus: v
15
14
  };
16
- function w({
15
+ function k({
17
16
  agent: e,
18
- onAction: l
17
+ onAction: i
19
18
  }) {
20
19
  const {
21
20
  formatMessage: m
@@ -27,10 +26,10 @@ function w({
27
26
  textValue: e.name,
28
27
  skipOverflowCheck: !n
29
28
  });
30
- return /* @__PURE__ */ i(s.Item, {
29
+ return /* @__PURE__ */ l(s.Item, {
31
30
  className: a.agentListItem,
32
31
  id: e.id,
33
- onAction: l,
32
+ onAction: i,
34
33
  children: [/* @__PURE__ */ t(s.Thumbnail, {
35
34
  className: a.agentListItemIcon,
36
35
  children: e.imageURL ? /* @__PURE__ */ t("img", {
@@ -42,7 +41,7 @@ function w({
42
41
  }), /* @__PURE__ */ t(s.Header, {
43
42
  className: n ? a.defaultAgentHeader : void 0,
44
43
  textValue: e.name,
45
- children: n ? /* @__PURE__ */ i(L, {
44
+ children: n ? /* @__PURE__ */ l(L, {
46
45
  children: [/* @__PURE__ */ t(o, {
47
46
  ...u,
48
47
  children: /* @__PURE__ */ t(d, {
@@ -65,6 +64,6 @@ function w({
65
64
  });
66
65
  }
67
66
  export {
68
- w as BoxAiAgent,
69
- w as default
67
+ k as BoxAiAgent,
68
+ k as default
70
69
  };
@@ -1,10 +1,10 @@
1
1
  export default {
2
- "boxAI.agentSelector.agent": "⟦萬 Âġęήţ 國⟧",
3
- "boxAI.agentSelector.agentList": "⟦萬萬 Âġěлţ Ŀĩśŧ 國國⟧",
4
- "boxAI.agentSelector.defaultAgent": "⟦萬萬 Ðεƒãūļτ 國國⟧",
5
- "boxAI.agentSelector.defaultStatus": "⟦萬萬 ĎÊ₣ÂÙĻŤ 國國⟧",
6
- "boxAI.agentSelector.errorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 ₣αîĺëď ťö ĺσäď άναіľαвľê ãğèητѕ. Ỳŏμ'яě сμгŗěиτļУ ũѕіŋġ ÿõµř σřğāņíźãţíой'ś ďèƒãцļť ǻĝéήť. Çĺîçκ нёяé τø řєţгỳ. 國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧",
7
- "boxAI.agentSelector.errorTooltip": "⟦萬萬萬萬萬萬萬萬萬 ₣ąιľέď τő ļŏάď åνάίĺαьľě αĝëňţś 國國國國國國國國國⟧",
8
- "boxAI.agentSelector.loadingMessage": "⟦萬萬萬萬萬萬萬 Ľòáďĭʼnĝ ăνâιľãвľє ãĝеиţŝ 國國國國國國國⟧",
9
- "boxAI.agentSelector.selectAgent": "⟦萬萬萬萬 Ŝėľęĉτ àл Αğėиţ 國國國國⟧"
2
+ "boxAI.agentSelector.agent": "⟦萬 Åġεйŧ 國⟧",
3
+ "boxAI.agentSelector.agentList": "⟦萬萬 Ãġéňτ Ŀíşτ 國國⟧",
4
+ "boxAI.agentSelector.defaultAgent": "⟦萬萬 Ðёƒåüľŧ 國國⟧",
5
+ "boxAI.agentSelector.defaultStatus": "⟦萬萬 ĎĘ₣ĂŪĻŤ 國國⟧",
6
+ "boxAI.agentSelector.errorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 ₣āϊļéď τо ľŏåď ãνåīļàьļε αġĕπţŝ. Ýоů'гē ¢ùяřéŋťľỳ ûśїηġ ўõùŕ øґĝàńιźäŧїöл'ŝ ďêƒăμľţ åĝêņţ. Ćľĭčķ нεяē ţó яėťяγ. 國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧",
7
+ "boxAI.agentSelector.errorTooltip": "⟦萬萬萬萬萬萬萬萬萬 ₣äíľêď ţό ĺóãď ąνäϊļāьĺë äğёлťś 國國國國國國國國國⟧",
8
+ "boxAI.agentSelector.loadingMessage": "⟦萬萬萬萬萬萬萬 Ľόåďϊʼnğ ãνàĩľąвľè ǻĝёήţѕ 國國國國國國國⟧",
9
+ "boxAI.agentSelector.selectAgent": "⟦萬萬萬萬 Śěĺєсŧ âπ Åġēηţ 國國國國⟧"
10
10
  }
@@ -1,16 +1,16 @@
1
1
  # AI agent label
2
- boxAI.agentSelector.agent = ⟦萬 Âġęήţ 國⟧
2
+ boxAI.agentSelector.agent = ⟦萬 Åġεйŧ 國⟧
3
3
  # Aria Label for the list displaying the agents
4
- boxAI.agentSelector.agentList = ⟦萬萬 Âġěлţ Ŀĩśŧ 國國⟧
4
+ boxAI.agentSelector.agentList = ⟦萬萬 Ãġéňτ Ŀíşτ 國國⟧
5
5
  # Label for the default agent used when no other agents are available
6
- boxAI.agentSelector.defaultAgent = ⟦萬萬 Ðεƒãūļτ 國國⟧
6
+ boxAI.agentSelector.defaultAgent = ⟦萬萬 Ðёƒåüľŧ 國國⟧
7
7
  # Status indicator to define whether or not the agent on the list is the default for the enterprise
8
- boxAI.agentSelector.defaultStatus = ⟦萬萬 ĎÊ₣ÂÙĻŤ 國國⟧
8
+ boxAI.agentSelector.defaultStatus = ⟦萬萬 ĎĘ₣ĂŪĻŤ 國國⟧
9
9
  # Error message for retry option when the agents failed to load
10
- boxAI.agentSelector.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 ₣αîĺëď ťö ĺσäď άναіľαвľê ãğèητѕ. Ỳŏμ'яě сμгŗěиτļУ ũѕіŋġ ÿõµř σřğāņíźãţíой'ś ďèƒãцļť ǻĝéήť. Çĺîçκ нёяé τø řєţгỳ. 國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧
10
+ boxAI.agentSelector.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 ₣āϊļéď τо ľŏåď ãνåīļàьļε αġĕπţŝ. Ýоů'гē ¢ùяřéŋťľỳ ûśїηġ ўõùŕ øґĝàńιźäŧїöл'ŝ ďêƒăμľţ åĝêņţ. Ćľĭčķ нεяē ţó яėťяγ. 國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國國⟧
11
11
  # Error tooltip content for agent selector when the agents failed to load
12
- boxAI.agentSelector.errorTooltip = ⟦萬萬萬萬萬萬萬萬萬 ₣ąιľέď τő ļŏάď åνάίĺαьľě αĝëňţś 國國國國國國國國國⟧
12
+ boxAI.agentSelector.errorTooltip = ⟦萬萬萬萬萬萬萬萬萬 ₣äíľêď ţό ĺóãď ąνäϊļāьĺë äğёлťś 國國國國國國國國國⟧
13
13
  # Message for loading indicator while loading available agents
14
- boxAI.agentSelector.loadingMessage = ⟦萬萬萬萬萬萬萬 Ľòáďĭʼnĝ ăνâιľãвľє ãĝеиţŝ 國國國國國國國⟧
14
+ boxAI.agentSelector.loadingMessage = ⟦萬萬萬萬萬萬萬 Ľόåďϊʼnğ ãνàĩľąвľè ǻĝёήţѕ 國國國國國國國⟧
15
15
  # Label for the AI agent selector when the user has not selected any agent
16
- boxAI.agentSelector.selectAgent = ⟦萬萬萬萬 Ŝėľęĉτ àл Αğėиţ 國國國國⟧
16
+ boxAI.agentSelector.selectAgent = ⟦萬萬萬萬 Śěĺєсŧ âπ Åġēηţ 國國國國⟧
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-agent-selector",
3
- "version": "0.22.8",
3
+ "version": "0.23.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^7.31.1",
@@ -10,10 +10,10 @@
10
10
  "react-intl": "^6.4.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@box/blueprint-web": "^9.16.0",
14
- "@box/blueprint-web-assets": "^4.32.0",
13
+ "@box/blueprint-web": "^9.16.2",
14
+ "@box/blueprint-web-assets": "^4.32.1",
15
15
  "@box/eslint-plugin-blueprint": "^1.0.3",
16
- "@box/storybook-utils": "^0.8.1",
16
+ "@box/storybook-utils": "^0.8.2",
17
17
  "react-intl": "^6.4.2"
18
18
  },
19
19
  "scripts": {
@@ -46,5 +46,5 @@
46
46
  "sideEffects": [
47
47
  "**/*.css"
48
48
  ],
49
- "gitHead": "7167b603859db70120f58d10f8e29117271b9f9a"
49
+ "gitHead": "9c7b8b2a403ff2bc3d0f313cdc8a7fb3a73079ed"
50
50
  }
@@ -1,3 +1,3 @@
1
- import { type BoxAiAgentSelectorWithApiProps } from './types';
1
+ import { BoxAiAgentSelectorWithApiProps } from './types';
2
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
- import { type BoxAiAgentSelectorWithApiProps } from './types';
1
+ import { BoxAiAgentSelectorWithApiProps } from './types';
2
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
- import { type BoxAiAgentSelectorProps } from './types';
1
+ import { BoxAiAgentSelectorProps } from './types';
2
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;
@@ -1,4 +1,4 @@
1
- import { type AgentType } from './types';
1
+ import { AgentType } from './types';
2
2
  export interface BoxAiAgentProps {
3
3
  /**
4
4
  * Object representation of agent.
@@ -1,4 +1,4 @@
1
- import { type RecordActionType } from './types';
1
+ import { RecordActionType } from './types';
2
2
  export declare const LOGGER_ACTION_CLICK = "click";
3
3
  export declare const LOGGER_ACTION_KEYPRESS = "keypress";
4
4
  export declare const LOGGER_ACTION_PROGRAMMATIC = "programmatic";
@@ -1,2 +1,2 @@
1
- import { type AgentState } from '../types';
1
+ import { AgentState } from '../types';
2
2
  export declare const defaultState: AgentState;
@@ -1,4 +1,4 @@
1
- import { type AgentAction, type AgentState } from '../types';
1
+ import { AgentAction, AgentState } from '../types';
2
2
  type DispatchType = React.Dispatch<AgentAction>;
3
3
  export declare function useAgents(): AgentState;
4
4
  export declare function useAgentsDispatch(): DispatchType;
@@ -1,2 +1,2 @@
1
- import { type AgentAction, type AgentState } from '../types';
1
+ import { AgentAction, AgentState } from '../types';
2
2
  export declare const agentsReducer: (state: AgentState, action: AgentAction) => AgentState;
@@ -1,7 +1,7 @@
1
- import { type BoxAiAgentSelectorWithApiProps } from '../../index';
1
+ import { BoxAiAgentSelectorWithApiProps } from '../../index';
2
2
  export declare const defaultBoxAiAgentSelectorProps: {
3
3
  fetcher: () => Promise<{
4
- agents: import("../types").AgentType[];
4
+ agents: import('../types').AgentType[];
5
5
  }>;
6
6
  };
7
7
  export declare const DefaultBoxAiAgentSelectorWithApiContainer: (props: BoxAiAgentSelectorWithApiProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type AgentState, type AgentType } from '../types';
1
+ import { AgentState, AgentType } from '../types';
2
2
  export declare const mockAgents: AgentType[];
3
3
  export declare const mockAgentsWithLongNamesAndDescriptions: AgentType[];
4
4
  export declare const mockAgentProviderState: AgentState;
@@ -1,5 +1,5 @@
1
- import { type LOGGER_ACTION_CLICK, type LOGGER_ACTION_KEYPRESS, type LOGGER_ACTION_PROGRAMMATIC } from './constants';
2
- import { type ACTIONS } from './contexts';
1
+ import { LOGGER_ACTION_CLICK, LOGGER_ACTION_KEYPRESS, LOGGER_ACTION_PROGRAMMATIC } from './constants';
2
+ import { ACTIONS } from './contexts';
3
3
  export type AgentType = {
4
4
  id: string;
5
5
  name: string;