@box/box-ai-content-answers 0.109.3 → 0.110.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.
package/dist/esm/index.js CHANGED
@@ -3,18 +3,18 @@ import { AnswerContent as p } from "./lib/components/answer/answer-content.js";
3
3
  import { withApiWrapper as s } from "./lib/components/api-wrapper/api-wrapper.js";
4
4
  import { C as x } from "../chunks/clear-conversation-button.js";
5
5
  import { IntelligenceModal as a } from "./lib/components/modal/modal.js";
6
- import { usePromptFocus as A } from "./lib/hooks/usePromptFocus.js";
7
- import { A as C, C as i, R as T } from "../chunks/types.js";
8
- import { APP_MODE as O } from "./lib/constants.js";
6
+ import { APP_MODE as A } from "./lib/constants.js";
7
+ import { usePromptFocus as C } from "./lib/hooks/usePromptFocus.js";
8
+ import { A as T, C as l, R as O } from "../chunks/types.js";
9
9
  export {
10
- C as ANSWER_ERROR,
11
- O as APP_MODE,
10
+ T as ANSWER_ERROR,
11
+ A as APP_MODE,
12
12
  p as AnswerContent,
13
13
  e as BoxAiContentAnswers,
14
- i as CONTENT_ERROR,
14
+ l as CONTENT_ERROR,
15
15
  x as ClearConversationButton,
16
16
  a as IntelligenceModal,
17
- T as REQUEST_STATE,
18
- A as usePromptFocus,
17
+ O as REQUEST_STATE,
18
+ C as usePromptFocus,
19
19
  s as withApiWrapper
20
20
  };
@@ -31,7 +31,7 @@ const Ge = ({
31
31
  onSelectAgent: q,
32
32
  recordAction: a,
33
33
  shouldRenderProviders: H = !0,
34
- shouldShowLandingPage: z = !0,
34
+ shouldShowLandingPage: z = !1,
35
35
  stopPropagationOnEsc: F,
36
36
  variant: j = "closable",
37
37
  items: n,
@@ -13,11 +13,11 @@ import '../../../../styles/contextual-items-message.css';const D = "_commonWelco
13
13
  }, W = ({
14
14
  contentName: x,
15
15
  isUsedInsideSidebar: d = !1,
16
- supportedItems: i,
17
- onItemClick: r,
16
+ onDropdownOpenChange: r,
17
+ onItemClick: T,
18
18
  parentItem: e,
19
- onDropdownOpenChange: T,
20
- shouldShowLandingPage: n
19
+ shouldShowLandingPage: n,
20
+ supportedItems: i
21
21
  }) => {
22
22
  var a;
23
23
  const _ = i.length || 1, f = ((a = i[0]) == null ? void 0 : a.name) || x, t = (e == null ? void 0 : e.id) !== "0" ? e == null ? void 0 : e.name : void 0;
@@ -46,8 +46,8 @@ import '../../../../styles/contextual-items-message.css';const D = "_commonWelco
46
46
  numberOfItems: _,
47
47
  files: /* @__PURE__ */ s(w, {
48
48
  className: o.itemsDropdown,
49
- onDropdownOpenChange: T,
50
- onItemClick: r,
49
+ onDropdownOpenChange: r,
50
+ onItemClick: T,
51
51
  supportedItems: i
52
52
  })
53
53
  }
@@ -1,8 +1,9 @@
1
1
  export * from './lib/box-ai-content-answers';
2
2
  export * from './lib/components/answer/answer-content';
3
3
  export * from './lib/components/api-wrapper/api-wrapper';
4
+ export * from './lib/components/api-wrapper/types';
4
5
  export * from './lib/components/modal/clear-conversation-button';
5
6
  export * from './lib/components/modal/modal';
7
+ export * from './lib/constants';
6
8
  export * from './lib/hooks/usePromptFocus';
7
9
  export * from './lib/types';
8
- export * from './lib/constants';
@@ -1,4 +1,3 @@
1
1
  import { ApiWrapperProps } from './types';
2
2
  export declare const withApiWrapper: (WrappedComponent: any) => (props: ApiWrapperProps) => import("react/jsx-runtime").JSX.Element;
3
- export { type ApiWrapperProps } from './types';
4
3
  export default withApiWrapper;
@@ -8,5 +8,5 @@ export interface Props {
8
8
  onDropdownOpenChange?: (open: boolean) => void;
9
9
  shouldShowLandingPage?: boolean;
10
10
  }
11
- export declare const ContextualItemsMessage: ({ contentName, isUsedInsideSidebar, supportedItems, onItemClick, parentItem, onDropdownOpenChange, shouldShowLandingPage, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContextualItemsMessage: ({ contentName, isUsedInsideSidebar, onDropdownOpenChange, onItemClick, parentItem, shouldShowLandingPage, supportedItems, }: Props) => import("react/jsx-runtime").JSX.Element;
12
12
  export default ContextualItemsMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-content-answers",
3
- "version": "0.109.3",
3
+ "version": "0.110.0",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.8.0",
6
6
  "@box/blueprint-web-assets": "^4.35.0",
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@box/babel-plugin-target-attributes": "1.3.0",
19
- "@box/blueprint-web": "^9.19.1",
20
- "@box/blueprint-web-assets": "^4.37.1",
21
- "@box/box-ai-agent-selector": "^0.33.2",
22
- "@box/item-icon": "^0.9.98",
19
+ "@box/blueprint-web": "^9.19.2",
20
+ "@box/blueprint-web-assets": "^4.37.2",
21
+ "@box/box-ai-agent-selector": "^0.33.3",
22
+ "@box/item-icon": "^0.9.99",
23
23
  "@box/storybook-utils": "^0.8.3",
24
24
  "@testing-library/react": "^15.0.6",
25
25
  "react": "^18.3.0",