@box/box-ai-content-answers 0.100.1 → 0.101.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.
Files changed (40) hide show
  1. package/esm/lib/components/api-wrapper/hooks/useContentAnswers.js +49 -49
  2. package/esm/lib/components/welcome-message/contextual-items-message.js +28 -26
  3. package/esm/lib/components/welcome-message/items-dropdown.js +36 -34
  4. package/esm/lib/components/welcome-message/messages.js +2 -2
  5. package/esm/lib/components/welcome-message/unsupported-items-notice.js +15 -14
  6. package/esm/lib/components/welcome-message/welcome-message.js +51 -45
  7. package/i18n/bn-IN.js +2 -2
  8. package/i18n/da-DK.js +2 -2
  9. package/i18n/de-DE.js +2 -2
  10. package/i18n/en-AU.js +2 -2
  11. package/i18n/en-CA.js +2 -2
  12. package/i18n/en-GB.js +2 -2
  13. package/i18n/en-US.js +2 -2
  14. package/i18n/en-US.properties +4 -4
  15. package/i18n/en-x-pseudo.js +2 -2
  16. package/i18n/es-419.js +2 -2
  17. package/i18n/es-ES.js +2 -2
  18. package/i18n/fi-FI.js +2 -2
  19. package/i18n/fr-CA.js +2 -2
  20. package/i18n/fr-FR.js +2 -2
  21. package/i18n/hi-IN.js +2 -2
  22. package/i18n/it-IT.js +2 -2
  23. package/i18n/ja-JP.js +2 -2
  24. package/i18n/json/src/lib/components/welcome-message/messages.json +1 -1
  25. package/i18n/ko-KR.js +2 -2
  26. package/i18n/nb-NO.js +2 -2
  27. package/i18n/nl-NL.js +2 -2
  28. package/i18n/pl-PL.js +2 -2
  29. package/i18n/pt-BR.js +2 -2
  30. package/i18n/ru-RU.js +2 -2
  31. package/i18n/sv-SE.js +2 -2
  32. package/i18n/tr-TR.js +2 -2
  33. package/i18n/zh-CN.js +2 -2
  34. package/i18n/zh-TW.js +2 -2
  35. package/package.json +5 -5
  36. package/styles/contextual-items-message.css +1 -1
  37. package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +1 -1
  38. package/types/lib/components/api-wrapper/types.d.ts +1 -1
  39. package/types/lib/components/welcome-message/items-dropdown.d.ts +1 -1
  40. package/types/lib/types.d.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  import h from "lodash/camelCase";
2
- import t, { useCallback as U } from "react";
2
+ import n, { useCallback as U } from "react";
3
3
  import { useAgentsDispatch as ss } from "../../../contexts/AgentsContext.js";
4
4
  import { A as T, C as es, R as x } from "../../../../../chunks/types.js";
5
- import { SET_NEW_ITEM as os, UPDATE_QUESTION as ts, SET_MODAL_ERROR as ns, SET_ANSWER_FEEDBACK as as, SET_MODAL_SUCCESS as is, SET_IS_LOADING as ls, CLEAR_CONVERSATION_HISTORY as us, SET_SUGGESTED_QUESTIONS_REQUEST_STATE as W, SET_SUGGESTED_QUESTIONS as cs } from "../actions.js";
5
+ import { SET_NEW_ITEM as os, UPDATE_QUESTION as ts, SET_MODAL_ERROR as ns, SET_ANSWER_FEEDBACK as as, SET_MODAL_SUCCESS as is, SET_IS_LOADING as us, CLEAR_CONVERSATION_HISTORY as ls, SET_SUGGESTED_QUESTIONS_REQUEST_STATE as W, SET_SUGGESTED_QUESTIONS as cs } from "../actions.js";
6
6
  import { QuestionRecord as Es } from "../records.js";
7
7
  import { defaultFormatSuggestions as rs, defaultFormatCitations as fs } from "../utils/format.js";
8
8
  import { getAnswerRequest as _s } from "../utils/request.js";
@@ -20,48 +20,48 @@ function ks({
20
20
  isCitationsEnabled: Rs,
21
21
  isStopResponseEnabled: F,
22
22
  isStreamingEnabled: O,
23
- itemID: u,
23
+ itemID: l,
24
24
  items: N,
25
25
  sendErrorLog: A,
26
26
  formatCitations: P = fs
27
27
  }) {
28
- const b = t.useRef(null), v = ss(), D = U((s) => Array.isArray(s) ? P(s) : null, [P]);
29
- t.useEffect(
28
+ const b = n.useRef(null), v = ss(), D = U((s) => Array.isArray(s) ? P(s) : null, [P]);
29
+ n.useEffect(
30
30
  (s) => {
31
- u && u !== i.item.id && o({
31
+ l && l !== i.item.id && o({
32
32
  type: os,
33
- itemID: u,
33
+ itemID: l,
34
34
  fileVersionID: s
35
35
  });
36
36
  },
37
37
  // eslint-disable-next-line react-hooks/exhaustive-deps
38
- [u]
38
+ [l]
39
39
  );
40
- const E = t.useCallback((s, e) => {
40
+ const E = n.useCallback((s, e) => {
41
41
  o({
42
42
  type: ts,
43
43
  newQuestion: s,
44
44
  session: e
45
45
  }), b.current = s;
46
- }, [o]), q = t.useCallback((s) => {
46
+ }, [o]), q = n.useCallback((s) => {
47
47
  o({
48
48
  type: ns,
49
49
  error: s
50
50
  });
51
- }, [o]), k = t.useCallback((s, e, n) => {
51
+ }, [o]), k = n.useCallback((s, e, t) => {
52
52
  const {
53
- answer: l,
53
+ answer: u,
54
54
  error: c,
55
55
  citations: a = [],
56
56
  createdAt: r = null,
57
57
  encodedSession: f = void 0,
58
58
  contextSession: _ = void 0
59
59
  } = s, R = e.set("citations", D(a)).merge({
60
- answer: l,
60
+ answer: u,
61
61
  error: c,
62
62
  created_at: r,
63
63
  isLoading: !1,
64
- isCompleted: n
64
+ isCompleted: t
65
65
  });
66
66
  let C;
67
67
  f && (C = {
@@ -69,11 +69,11 @@ function ks({
69
69
  }), _ && (C = {
70
70
  contextSession: _
71
71
  }), E(R, C);
72
- }, [E, D]), Q = t.useCallback(
72
+ }, [E, D]), Q = n.useCallback(
73
73
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
74
74
  (s, e) => {
75
75
  var R, C, S;
76
- const n = (s == null ? void 0 : s.message) || "", l = ((R = s == null ? void 0 : s.response) == null ? void 0 : R.status) === 429 || Cs.test(n), c = (s == null ? void 0 : s.code) === $ || (s == null ? void 0 : s.errorCode) === $, a = ((C = s == null ? void 0 : s.response) == null ? void 0 : C.status) === 204, r = ((S = s == null ? void 0 : s.response) == null ? void 0 : S.status) === 412, f = a ? T.NO_CONTENT : l ? T.RATE_LIMITING : r ? T.PRECONDITION_FAILED : c ? T.AGENT_NOT_FOUND : T.GENERAL, _ = e.merge({
76
+ const t = (s == null ? void 0 : s.message) || "", u = ((R = s == null ? void 0 : s.response) == null ? void 0 : R.status) === 429 || Cs.test(t), c = (s == null ? void 0 : s.code) === $ || (s == null ? void 0 : s.errorCode) === $, a = ((C = s == null ? void 0 : s.response) == null ? void 0 : C.status) === 204, r = ((S = s == null ? void 0 : s.response) == null ? void 0 : S.status) === 412, f = a ? T.NO_CONTENT : u ? T.RATE_LIMITING : r ? T.PRECONDITION_FAILED : c ? T.AGENT_NOT_FOUND : T.GENERAL, _ = e.merge({
77
77
  error: f,
78
78
  isLoading: !1,
79
79
  isCompleted: !0
@@ -81,16 +81,16 @@ function ks({
81
81
  E(_, void 0);
82
82
  },
83
83
  [E]
84
- ), G = t.useCallback(async (s, e) => {
84
+ ), G = n.useCallback(async (s, e) => {
85
85
  try {
86
- const n = {
86
+ const t = {
87
87
  prompt: s.prompt,
88
88
  aiAgent: e || void 0
89
- }, l = `content-answers-${s.id}`;
89
+ }, u = `content-answers-${s.id}`;
90
90
  let c;
91
- O && (c = I.createAbortRequest(l));
92
- const a = await _s(n, O, l, u, N, i, p, M, c, y, A);
93
- O ? I.receiveStreamedResponse(l, a, (r) => {
91
+ O && (c = I.createAbortRequest(u));
92
+ const a = await _s(t, O, u, l, N, i, p, M, c, y, A);
93
+ O ? I.receiveStreamedResponse(u, a, (r) => {
94
94
  const {
95
95
  code: f,
96
96
  data: _,
@@ -116,33 +116,33 @@ function ks({
116
116
  const _ = h(r);
117
117
  delete a[r], a[_] = f;
118
118
  }), k(a, s, !0));
119
- } catch (n) {
120
- if (F && n instanceof Error && n.name === "AbortError") {
121
- const l = s.set("error", []).merge({
119
+ } catch (t) {
120
+ if (F && t instanceof Error && t.name === "AbortError") {
121
+ const u = s.set("error", []).merge({
122
122
  error: T.RESPONSE_STOPPED,
123
123
  isLoading: !1,
124
124
  isCompleted: !0
125
125
  });
126
- E(l);
126
+ E(u);
127
127
  } else
128
- Q(n, s);
128
+ Q(t, s);
129
129
  }
130
- }, [O, u, N, i, p, M, y, A, k, Q, F, E]), L = t.useCallback((s, e, n = !0) => {
131
- const l = (i == null ? void 0 : i.questions) || [];
132
- n && (s.id = `${l.length}`);
130
+ }, [O, l, N, i, p, M, y, A, k, Q, F, E]), L = n.useCallback((s, e, t = !0) => {
131
+ const u = (i == null ? void 0 : i.questions) || [];
132
+ t && (s.id = `${u.length}`);
133
133
  const c = new Es(s);
134
134
  return E(c), G(c, e), c;
135
- }, [i == null ? void 0 : i.questions, G, E]), K = t.useCallback((s, e) => {
135
+ }, [i == null ? void 0 : i.questions, G, E]), K = n.useCallback((s, e) => {
136
136
  o({
137
137
  type: as,
138
138
  questionId: s,
139
139
  feedbackValue: e
140
140
  });
141
- }, [o]), j = t.useCallback((s) => {
141
+ }, [o]), j = n.useCallback((s) => {
142
142
  const {
143
143
  encoded_session: e,
144
144
  metadata: {
145
- is_large_file: n
145
+ is_large_file: t
146
146
  } = {
147
147
  is_large_file: !1
148
148
  }
@@ -150,26 +150,26 @@ function ks({
150
150
  o({
151
151
  type: is,
152
152
  encodedSession: e,
153
- isLargeFile: n
153
+ isLargeFile: t
154
154
  });
155
- }, [o]), V = t.useCallback(async () => {
155
+ }, [o]), V = n.useCallback(async (s = !0, e = !0) => {
156
156
  try {
157
- o({
158
- type: ls,
157
+ s && o({
158
+ type: us,
159
159
  isLoading: !0
160
160
  });
161
- const s = await g({
161
+ const t = await g({
162
162
  items: [i.item]
163
- }, u);
164
- j(s);
163
+ }, l);
164
+ j(t);
165
165
  } catch {
166
- q(es.GENERAL);
166
+ e && q(es.GENERAL);
167
167
  }
168
- }, [o, g, i.item, u, j, q]), B = t.useCallback(() => {
168
+ }, [o, g, i.item, l, j, q]), B = n.useCallback(() => {
169
169
  o({
170
- type: us
170
+ type: ls
171
171
  });
172
- }, [o]), H = t.useCallback(async (s, e) => {
172
+ }, [o]), H = n.useCallback(async (s, e) => {
173
173
  L({
174
174
  ...s.toJS(),
175
175
  answer: "",
@@ -177,10 +177,10 @@ function ks({
177
177
  isCompleted: !1,
178
178
  error: null
179
179
  }, e, !1);
180
- }, [L]), J = t.useCallback((s) => {
180
+ }, [L]), J = n.useCallback((s) => {
181
181
  let e;
182
182
  s ? e = s.id : b.current && (e = b.current.id), e && I.abortRequest(`content-answers-${e}`, !0);
183
- }, []), X = t.useCallback(async (s) => {
183
+ }, []), X = n.useCallback(async (s) => {
184
184
  if (d)
185
185
  try {
186
186
  const e = await d(s);
@@ -191,7 +191,7 @@ function ks({
191
191
  });
192
192
  } catch {
193
193
  }
194
- }, [v, d]), Y = t.useCallback(async () => {
194
+ }, [v, d]), Y = n.useCallback(async () => {
195
195
  const s = Array.isArray(N) && N.length > 1;
196
196
  if (!(!m || s)) {
197
197
  o({
@@ -199,7 +199,7 @@ function ks({
199
199
  requestState: x.IN_PROGRESS
200
200
  });
201
201
  try {
202
- const e = rs(await m(u));
202
+ const e = rs(await m(l));
203
203
  o({
204
204
  type: cs,
205
205
  suggestedQuestions: e
@@ -211,7 +211,7 @@ function ks({
211
211
  });
212
212
  }
213
213
  }
214
- }, [o, m, u, N]);
214
+ }, [o, m, l, N]);
215
215
  return {
216
216
  clearConversation: B,
217
217
  createSession: V,
@@ -1,43 +1,45 @@
1
1
  import l from "clsx";
2
2
  import { FormattedMessage as f } from "react-intl";
3
3
  import { ItemsDropdown as x } from "./items-dropdown.js";
4
- import u from "./messages.js";
5
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
6
- import '../../../../styles/contextual-items-message.css';const _ = "_askQuestionText_cd7at_1", k = "_sidebar_cd7at_5", a = {
7
- askQuestionText: _,
8
- sidebar: k
9
- }, v = ({
10
- contentName: m,
4
+ import _ from "./messages.js";
5
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
6
+ import '../../../../styles/contextual-items-message.css';const b = "_askQuestionText_145d3_1", w = "_sidebar_145d3_5", k = "_itemsDropdown_145d3_8", i = {
7
+ askQuestionText: b,
8
+ sidebar: w,
9
+ itemsDropdown: k
10
+ }, h = ({
11
+ contentName: n,
11
12
  isUsedInsideSidebar: r = !1,
12
- supportedItems: o,
13
- onItemClick: c,
13
+ supportedItems: e,
14
+ onItemClick: a,
14
15
  parentItem: s
15
16
  }) => {
16
- var t;
17
- const n = o.length || 1, d = ((t = o[0]) == null ? void 0 : t.name) || m, i = (s == null ? void 0 : s.id) !== "0" ? s == null ? void 0 : s.name : void 0;
18
- return /* @__PURE__ */ e("div", {
19
- className: l(a.askQuestionText, {
20
- [a.sidebar]: r
17
+ var m;
18
+ const d = e.length || 1, c = ((m = e[0]) == null ? void 0 : m.name) || n, t = (s == null ? void 0 : s.id) !== "0" ? s == null ? void 0 : s.name : void 0;
19
+ return /* @__PURE__ */ o("div", {
20
+ className: l(i.askQuestionText, {
21
+ [i.sidebar]: r
21
22
  }),
22
- children: /* @__PURE__ */ e(f, {
23
- ...u.welcomeAskQuestionText,
23
+ children: /* @__PURE__ */ o(f, {
24
+ ..._.welcomeAskQuestionText,
24
25
  values: {
25
- firstItemName: /* @__PURE__ */ e("b", {
26
- children: d
26
+ firstItemName: /* @__PURE__ */ o("b", {
27
+ children: c
27
28
  }),
28
- parentItem: i && /* @__PURE__ */ b("b", {
29
- children: ["“", i, "”"]
29
+ parentItem: t && /* @__PURE__ */ u("b", {
30
+ children: ["“", t, "”"]
30
31
  }),
31
- numberOfItems: n,
32
- files: /* @__PURE__ */ e(x, {
33
- onItemClick: c,
34
- supportedItems: o
32
+ numberOfItems: d,
33
+ files: /* @__PURE__ */ o(x, {
34
+ className: i.itemsDropdown,
35
+ onItemClick: a,
36
+ supportedItems: e
35
37
  })
36
38
  }
37
39
  })
38
40
  });
39
41
  };
40
42
  export {
41
- v as ContextualItemsMessage,
42
- v as default
43
+ h as ContextualItemsMessage,
44
+ h as default
43
45
  };
@@ -1,48 +1,50 @@
1
- import { useBreakpoint as u, Breakpoint as N, DropdownMenu as e, Link as T, Text as f } from "@box/blueprint-web";
2
- import { Size5 as I } from "@box/blueprint-web-assets/tokens/tokens";
3
- import { ItemIcon as k } from "@box/item-icon";
4
- import { useMemo as g, useCallback as x } from "react";
5
- import { useIntl as M } from "react-intl";
1
+ import { useBreakpoint as N, Breakpoint as T, DropdownMenu as e, Link as I, Text as _ } from "@box/blueprint-web";
2
+ import { Size5 as k } from "@box/blueprint-web-assets/tokens/tokens";
3
+ import { ItemIcon as x } from "@box/item-icon";
4
+ import M from "clsx";
5
+ import { useMemo as g, useCallback as C } from "react";
6
+ import { useIntl as F } from "react-intl";
6
7
  import r from "./messages.js";
7
- import { jsxs as s, jsx as n, Fragment as C } from "react/jsx-runtime";
8
- import '../../../../styles/items-dropdown.css';const F = "_itemsDropdownTriggerLink_12lcp_1", H = "_itemsDropdownContent_12lcp_6", y = "_itemsDropdownItemIcon_12lcp_11", S = "_itemsDropdownItemName_12lcp_15", B = "_itemsDropdownLabel_12lcp_21", o = {
9
- itemsDropdownTriggerLink: F,
10
- itemsDropdownContent: H,
11
- itemsDropdownItemIcon: y,
12
- itemsDropdownItemName: S,
13
- itemsDropdownLabel: B
14
- }, q = ({
8
+ import { jsxs as s, jsx as n, Fragment as H } from "react/jsx-runtime";
9
+ import '../../../../styles/items-dropdown.css';const y = "_itemsDropdownTriggerLink_12lcp_1", S = "_itemsDropdownContent_12lcp_6", B = "_itemsDropdownItemIcon_12lcp_11", O = "_itemsDropdownItemName_12lcp_15", j = "_itemsDropdownLabel_12lcp_21", o = {
10
+ itemsDropdownTriggerLink: y,
11
+ itemsDropdownContent: S,
12
+ itemsDropdownItemIcon: B,
13
+ itemsDropdownItemName: O,
14
+ itemsDropdownLabel: j
15
+ }, J = ({
16
+ className: b,
15
17
  supportedItems: t = [],
16
18
  unsupportedItems: d = [],
17
19
  noPermissionItems: p = [],
18
20
  onItemClick: i
19
21
  }) => {
20
22
  const {
21
- formatMessage: a
22
- } = M(), D = u(), h = g(() => D === N.Small, [D]), b = x(({
23
- id: m,
23
+ formatMessage: m
24
+ } = F(), D = N(), h = g(() => D === T.Small, [D]), u = C(({
25
+ id: a,
24
26
  name: l
25
27
  }) => {
26
- i == null || i(m, l);
27
- }, [i]), L = g(() => t.length > 0 ? r.welcomeMessageFilesLink : r.welcomeMessageItemsLink, [t]), _ = g(() => a(L, {
28
+ i == null || i(a, l);
29
+ }, [i]), L = g(() => t.length > 0 ? r.welcomeMessageFilesLink : r.welcomeMessageItemsLink, [t]), f = g(() => m(L, {
28
30
  numberOfItems: t.length + d.length + p.length
29
- }), [t, d, p, L]), w = (m, l) => l.length === 0 ? null : /* @__PURE__ */ s(C, {
30
- children: [m && /* @__PURE__ */ n(e.Header, {
31
+ }), [t, d, p, L]), w = (a, l) => l.length === 0 ? null : /* @__PURE__ */ s(H, {
32
+ children: [a && /* @__PURE__ */ n(e.Header, {
31
33
  className: o.itemsDropdownLabel,
32
- children: /* @__PURE__ */ n(f, {
34
+ children: /* @__PURE__ */ n(_, {
33
35
  as: "label",
34
36
  color: "textOnLightSecondary",
35
- children: m
37
+ children: a
36
38
  })
37
39
  }), l.map((c) => /* @__PURE__ */ s(e.Item, {
38
40
  className: o.itemsDropdownItem,
39
- onClick: () => b(c),
40
- children: [/* @__PURE__ */ n(k, {
41
+ onClick: () => u(c),
42
+ children: [/* @__PURE__ */ n(x, {
41
43
  ariaHidden: !0,
42
44
  className: o.itemsDropdownItemIcon,
43
- dimension: I,
45
+ dimension: k,
44
46
  iconType: c.fileType
45
- }), /* @__PURE__ */ n(f, {
47
+ }), /* @__PURE__ */ n(_, {
46
48
  as: "span",
47
49
  className: o.itemsDropdownItemName,
48
50
  children: c.name
@@ -52,11 +54,11 @@ import '../../../../styles/items-dropdown.css';const F = "_itemsDropdownTriggerL
52
54
  return /* @__PURE__ */ s(e.Root, {
53
55
  isFullScreenEnabled: h,
54
56
  children: [/* @__PURE__ */ n(e.Trigger, {
55
- className: o.itemsDropdownTrigger,
56
- children: /* @__PURE__ */ n(T, {
57
+ className: M(b, o.itemsDropdownTrigger),
58
+ children: /* @__PURE__ */ n(I, {
57
59
  className: o.itemsDropdownTriggerLink,
58
60
  href: "#",
59
- children: _
61
+ children: f
60
62
  })
61
63
  }), /* @__PURE__ */ s(e.Content, {
62
64
  align: "start",
@@ -64,15 +66,15 @@ import '../../../../styles/items-dropdown.css';const F = "_itemsDropdownTriggerL
64
66
  "data-testid": "content-answers-items-dropdown-content",
65
67
  children: [h && /* @__PURE__ */ s(e.Header, {
66
68
  children: [/* @__PURE__ */ n(e.Header.TextContent, {
67
- title: _
69
+ title: f
68
70
  }), /* @__PURE__ */ n(e.Header.MenuCloseButton, {
69
- "aria-label": a(r.closeItemList)
71
+ "aria-label": m(r.closeItemList)
70
72
  })]
71
- }), w(null, t), w(a(r.unsupportedFormatLabel), d), w(a(r.noPermissionsLabel), p)]
73
+ }), w(null, t), w(m(r.unsupportedFormatLabel), d), w(m(r.noPermissionsLabel), p)]
72
74
  })]
73
75
  });
74
76
  };
75
77
  export {
76
- q as ItemsDropdown,
77
- q as default
78
+ J as ItemsDropdown,
79
+ J as default
78
80
  };
@@ -2,11 +2,11 @@ import { defineMessages as e } from "react-intl";
2
2
  const t = e({
3
3
  largeFileSizeWarningTitle: {
4
4
  id: "boxAI.contentAnswers.largeFileSizeWarningTitle",
5
- defaultMessage: "Box AI won’t be able to access the entire text, which might affect its answers."
5
+ defaultMessage: "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers."
6
6
  },
7
7
  largeFileSizeWarningDescription: {
8
8
  id: "boxAI.contentAnswers.largeFileSizeWarningDescription",
9
- defaultMessage: "The text content of this file is too large for Box AI to process."
9
+ defaultMessage: "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process."
10
10
  },
11
11
  welcomeAskQuestionText: {
12
12
  id: "boxAI.contentAnswers.welcomeAskQuestionText",
@@ -1,25 +1,26 @@
1
- import { InlineNotice as o } from "@box/blueprint-web";
1
+ import { InlineNotice as s } from "@box/blueprint-web";
2
2
  import { FormattedMessage as r } from "react-intl";
3
- import { ItemsDropdown as s } from "./items-dropdown.js";
4
- import a from "./messages.js";
3
+ import { ItemsDropdown as a } from "./items-dropdown.js";
4
+ import m from "./messages.js";
5
5
  import { jsx as e } from "react/jsx-runtime";
6
- import '../../../../styles/unsupported-items-notice.css';const m = "_inlineNotice_15y3b_1", l = {
7
- inlineNotice: m
8
- }, N = ({
6
+ import '../../../../styles/unsupported-items-notice.css';const l = "_inlineNotice_15y3b_1", i = {
7
+ inlineNotice: l
8
+ }, u = ({
9
9
  unsupportedItems: t,
10
10
  noPermissionsItems: n,
11
- onItemClick: i
12
- }) => /* @__PURE__ */ e(o, {
13
- className: l.inlineNotice,
11
+ onItemClick: o
12
+ }) => /* @__PURE__ */ e(s, {
13
+ className: i.inlineNotice,
14
14
  "data-testid": "content-answers-unsupported-items-notice",
15
15
  variant: "warning",
16
16
  variantIconAriaLabel: "warning",
17
17
  children: /* @__PURE__ */ e(r, {
18
- ...a.unsupportedItems,
18
+ ...m.unsupportedItems,
19
19
  values: {
20
- files: /* @__PURE__ */ e(s, {
20
+ files: /* @__PURE__ */ e(a, {
21
+ className: i.itemsDropdown,
21
22
  noPermissionItems: n,
22
- onItemClick: i,
23
+ onItemClick: o,
23
24
  unsupportedItems: t
24
25
  }),
25
26
  numberOfFiles: t.length + n.length
@@ -27,6 +28,6 @@ import '../../../../styles/unsupported-items-notice.css';const m = "_inlineNotic
27
28
  })
28
29
  });
29
30
  export {
30
- N as UnsupportedItemsNotice,
31
- N as default
31
+ u as UnsupportedItemsNotice,
32
+ u as default
32
33
  };
@@ -1,58 +1,64 @@
1
- import { Text as W } from "@box/blueprint-web";
2
- import { useMemo as o } from "react";
3
- import { useIntl as w } from "react-intl";
4
- import { MediaContainer as c } from "../common/media-container.js";
5
- import { ContextualItemsMessage as C } from "./contextual-items-message.js";
1
+ import { Text as w } from "@box/blueprint-web";
2
+ import { useMemo as i } from "react";
3
+ import { useIntl as C } from "react-intl";
4
+ import { MediaContainer as f } from "../common/media-container.js";
5
+ import { ContextualItemsMessage as T } from "./contextual-items-message.js";
6
6
  import a from "./messages.js";
7
- import { s as g, W as f } from "../../../../chunks/warning-message.js";
8
- import { UnsupportedItemsNotice as T } from "./unsupported-items-notice.js";
9
- import { jsx as e, jsxs as z } from "react/jsx-runtime";
7
+ import { s as u, W as h } from "../../../../chunks/warning-message.js";
8
+ import { UnsupportedItemsNotice as z } from "./unsupported-items-notice.js";
9
+ import { jsx as e, jsxs as F } from "react/jsx-runtime";
10
10
  const V = ({
11
- contentName: u,
12
- contentType: h,
13
- isFileSizeError: M = !1,
11
+ contentName: I,
12
+ contentType: M,
13
+ isFileSizeError: b = !1,
14
14
  items: s = [],
15
- parentItem: I,
16
- onItemClick: i,
17
- variant: n = "modal",
18
- warningNotice: l,
19
- warningNoticeAriaLabel: x,
20
- welcomeMessageClearText: b
15
+ parentItem: x,
16
+ onItemClick: n,
17
+ variant: l = "modal",
18
+ warningNotice: m,
19
+ warningNoticeAriaLabel: S,
20
+ welcomeMessageClearText: W
21
21
  }) => {
22
- const m = n === "sidebar", {
22
+ const p = l === "sidebar", {
23
23
  formatMessage: r
24
- } = w(), S = o(() => s.filter((t) => t.status === "supported"), [s]), p = o(() => s.filter((t) => t.status === "unsupported"), [s]), d = o(() => s.filter((t) => t.status === "no_permission"), [s]);
24
+ } = C(), d = i(() => s.filter((t) => t.status === "supported"), [s]), c = i(() => s.filter((t) => t.status === "unsupported"), [s]), g = i(() => s.filter((t) => t.status === "no_permission"), [s]), o = d.length || 1;
25
25
  return /* @__PURE__ */ e("div", {
26
- className: g.welcomeMessage,
26
+ className: u.welcomeMessage,
27
27
  "data-testid": "content-answers-welcome-message",
28
- children: /* @__PURE__ */ e(c, {
28
+ children: /* @__PURE__ */ e(f, {
29
29
  className: "welcomeMessage",
30
- variant: n,
31
- children: /* @__PURE__ */ z(c.Content, {
32
- isUsedInsideSidebar: m,
30
+ variant: l,
31
+ children: /* @__PURE__ */ F(f.Content, {
32
+ isUsedInsideSidebar: p,
33
33
  variant: "welcomeMessage",
34
- children: [M && /* @__PURE__ */ e(f, {
35
- ariaLabel: r(a.largeFileSizeWarningTitle),
36
- description: r(a.largeFileSizeWarningDescription),
37
- title: r(a.largeFileSizeWarningTitle)
38
- }), l && /* @__PURE__ */ e(f, {
39
- ariaLabel: x,
40
- title: l
41
- }), (p.length > 0 || d.length > 0) && /* @__PURE__ */ e(T, {
42
- noPermissionsItems: d,
43
- onItemClick: i,
44
- unsupportedItems: p
45
- }), /* @__PURE__ */ e(C, {
46
- contentName: u,
47
- isUsedInsideSidebar: m,
48
- onItemClick: i,
49
- parentItem: I,
50
- supportedItems: S
51
- }), /* @__PURE__ */ e(W, {
34
+ children: [b && /* @__PURE__ */ e(h, {
35
+ ariaLabel: r(a.largeFileSizeWarningTitle, {
36
+ numberOfItems: o
37
+ }),
38
+ description: r(a.largeFileSizeWarningDescription, {
39
+ numberOfItems: o
40
+ }),
41
+ title: r(a.largeFileSizeWarningTitle, {
42
+ numberOfItems: o
43
+ })
44
+ }), m && /* @__PURE__ */ e(h, {
45
+ ariaLabel: S,
46
+ title: m
47
+ }), (c.length > 0 || g.length > 0) && /* @__PURE__ */ e(z, {
48
+ noPermissionsItems: g,
49
+ onItemClick: n,
50
+ unsupportedItems: c
51
+ }), /* @__PURE__ */ e(T, {
52
+ contentName: I,
53
+ isUsedInsideSidebar: p,
54
+ onItemClick: n,
55
+ parentItem: x,
56
+ supportedItems: d
57
+ }), /* @__PURE__ */ e(w, {
52
58
  as: "p",
53
- className: g.clearChatText,
54
- children: b || r(a.welcomeClearChatText, {
55
- type: h
59
+ className: u.clearChatText,
60
+ children: W || r(a.welcomeClearChatText, {
61
+ type: M
56
62
  })
57
63
  })]
58
64
  })
package/i18n/bn-IN.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI পাওয়া যাচ্ছে না",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "অনুগ্রহ করে পরে আবার চেষ্টা করুন।",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI পরিষেবা উত্তর দিচ্ছে না।",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "লোড করা হচ্ছে...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "উত্তর লোড হচ্ছে...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "পরামর্শ লোড হচ্ছে",
package/i18n/da-DK.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI er ikke tilgængelig",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Prøv igen senere.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI-tjenesten reagerer ikke.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Indlæser ...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Indlæser svar ...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Indlæsning af forslag",
package/i18n/de-DE.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box-KI ist nicht verfügbar",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Versuchen Sie es bitte später erneut.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Der Box-KI-Dienst reagiert nicht.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Laden …",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Die Antwort wird geladen ...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Vorschläge werden geladen",
package/i18n/en-AU.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is unavailable",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Please try again later.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "The Box AI service is not responding.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Loading...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Loading Answer...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Loading suggestions",
package/i18n/en-CA.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is unavailable",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Please try again later.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "The Box AI service is not responding.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Loading...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Loading Answer...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Loading suggestions",
package/i18n/en-GB.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is unavailable",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Please try again later.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "The Box AI service is not responding.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Loading...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Loading Answer...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Loading suggestions",
package/i18n/en-US.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is unavailable",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Please try again later.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "The Box AI service is not responding.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Loading...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Loading Answer...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Loading suggestions",
@@ -58,10 +58,10 @@ boxAI.contentAnswers.intelligenceUnaivalableHeading = Box AI is unavailable
58
58
  boxAI.contentAnswers.intelligenceUnaivalableTryAgain = Please try again later.
59
59
  # Box AI Q&A service unavailable error description
60
60
  boxAI.contentAnswers.intelligenceUnavailableDescription = The Box AI service is not responding.
61
- # Box AI Q&A file too large warning description
62
- boxAI.contentAnswers.largeFileSizeWarningDescription = The text content of this file is too large for Box AI to process.
63
- # Box AI Q&A file too large warning title
64
- boxAI.contentAnswers.largeFileSizeWarningTitle = Box AI won’t be able to access the entire text, which might affect its answers.
61
+ # Box AI Q&A file too large warning description. {numberOfItems} is the number of items used in the context
62
+ boxAI.contentAnswers.largeFileSizeWarningDescription = The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.
63
+ # Box AI Q&A file too large warning title. {numberOfItems} is the number of items used in the context
64
+ boxAI.contentAnswers.largeFileSizeWarningTitle = Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.
65
65
  # Aria label to show while waiting for the modal to load
66
66
  boxAI.contentAnswers.loading = Loading...
67
67
  # Aria label to show while waiting for an answer
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "⟦萬萬萬萬萬萬 Βόх ÂĬ íś μńàνàїļąвļê 國國國國國國⟧",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "⟦萬萬萬萬萬萬 Pľēåŝε ŧŕỳ âġαìη ľăτєя. 國國國國國國⟧",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "⟦萬萬萬萬萬萬萬萬萬萬萬 Τħε Бòх ÁĨ ŝěяνįсе ιѕ ήσţ ŕěśΡòņďίиğ. 國國國國國國國國國國國⟧",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "⟦萬萬 Ŀσãďіńğ... 國國⟧",
35
35
  "boxAI.contentAnswers.loadingAnswer": "⟦萬萬萬萬萬 Ľőąďїήĝ Αŋśωεŗ... 國國國國國⟧",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "⟦萬萬萬萬萬 Ĺòäďíńĝ ѕŭĝġėŝťìõηѕ 國國國國國⟧",
package/i18n/es-419.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI no está disponible",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Inténtelo de nuevo más tarde.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "El servicio Box AI no está respondiendo.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Cargando…",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Cargando respuesta...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Cargando sugerencias",
package/i18n/es-ES.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI no está disponible",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Inténtelo de nuevo más tarde.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "El servicio Box AI no está respondiendo.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Cargando…",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Cargando respuesta...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Cargando sugerencias",
package/i18n/fi-FI.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI ei ole käytettävissä",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Yritä myöhemmin uudelleen.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI -palvelu ei vastaa.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Ladataan...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Ladataan vastausta...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Ladataan ehdotuksia",
package/i18n/fr-CA.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI n’est pas disponible",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Veuillez réessayer ultérieurement.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Le service Box AI ne répond pas.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Chargement en cours...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Chargement de la réponse...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Chargement des suggestions",
package/i18n/fr-FR.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI n’est pas disponible",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Veuillez réessayer ultérieurement.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Le service Box AI ne répond pas.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Chargement en cours...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Chargement de la réponse...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Chargement des suggestions",
package/i18n/hi-IN.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI अनुपलब्ध है",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "कृपया बाद में पुनः प्रयास करें।",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI सेवा जवाब नहीं दे रही है।",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "लोड हो रहा है...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "उत्तर लोड किया जा रहा है...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "सुझाव लोड हो रहे हैं",
package/i18n/it-IT.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI non è disponibile.",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Riprova più tardi.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Il servizio Box AI non risponde.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Caricamento in corso...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Caricamento risposta in corso...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Caricamento dei suggerimenti",
package/i18n/ja-JP.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AIは使用できません",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "後でもう一度やり直してください。",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AIサービスが応答していません。",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "読み込み中...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "回答を読み込んでいます...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "候補を読み込み中",
@@ -1 +1 @@
1
- [{"id":"boxAI.contentAnswers.largeFileSizeWarningTitle","description":"Box AI Q&A file too large warning title","defaultMessage":"Box AI won’t be able to access the entire text, which might affect its answers."},{"id":"boxAI.contentAnswers.largeFileSizeWarningDescription","description":"Box AI Q&A file too large warning description","defaultMessage":"The text content of this file is too large for Box AI to process."},{"id":"boxAI.contentAnswers.welcomeAskQuestionText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI. Ask questions about {numberOfItems, plural, =1 {{firstItemName}} other {these {files}}}{parentItem, select, undefined {} other { in {parentItem}}}."},{"id":"boxAI.contentAnswers.welcomeMessageFilesLink","description":"Link that show the number of files that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# file}\n other {# files}\n }"},{"id":"boxAI.contentAnswers.welcomeMessageItemsLink","description":"Link that show the number of items that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# item}\n other {# items}\n }"},{"id":"boxAI.contentAnswers.welcomeClearChatText","description":"Content Answers welcome message for clearing the chat. {type} is the type of content that we are going to query","defaultMessage":"This chat will be cleared when you close this {type}"},{"id":"boxAI.contentAnswers.unsupportedItems","description":"Warning message that shows how many files are not supported by Box AI","defaultMessage":"{numberOfFiles, plural,\n one {{files} is unavailable for Box AI}\n other {{files} are unavailable for Box AI}\n }"},{"id":"boxAI.contentAnswers.unsupportedFormatLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to correct format","defaultMessage":"Unsupported format"},{"id":"boxAI.contentAnswers.noPermissionsLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to file not having permissions","defaultMessage":"No Box AI permissions"},{"id":"boxAi.contentAnswers.closeItemList","description":"Label that shows up while someone hover on close button of files dropdown","defaultMessage":"Close file items list"}]
1
+ [{"id":"boxAI.contentAnswers.largeFileSizeWarningTitle","description":"Box AI Q&A file too large warning title. {numberOfItems} is the number of items used in the context","defaultMessage":"Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers."},{"id":"boxAI.contentAnswers.largeFileSizeWarningDescription","description":"Box AI Q&A file too large warning description. {numberOfItems} is the number of items used in the context","defaultMessage":"The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process."},{"id":"boxAI.contentAnswers.welcomeAskQuestionText","description":"Content Answers welcome message for asking questions. {firstItemName} is the name of the content, {files} is a list of items, and {parentItem} is the name of the parent item.","defaultMessage":"Welcome to Box AI. Ask questions about {numberOfItems, plural, =1 {{firstItemName}} other {these {files}}}{parentItem, select, undefined {} other { in {parentItem}}}."},{"id":"boxAI.contentAnswers.welcomeMessageFilesLink","description":"Link that show the number of files that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# file}\n other {# files}\n }"},{"id":"boxAI.contentAnswers.welcomeMessageItemsLink","description":"Link that show the number of items that are going to be displayed within the modal","defaultMessage":"{numberOfItems, plural,\n one {# item}\n other {# items}\n }"},{"id":"boxAI.contentAnswers.welcomeClearChatText","description":"Content Answers welcome message for clearing the chat. {type} is the type of content that we are going to query","defaultMessage":"This chat will be cleared when you close this {type}"},{"id":"boxAI.contentAnswers.unsupportedItems","description":"Warning message that shows how many files are not supported by Box AI","defaultMessage":"{numberOfFiles, plural,\n one {{files} is unavailable for Box AI}\n other {{files} are unavailable for Box AI}\n }"},{"id":"boxAI.contentAnswers.unsupportedFormatLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to correct format","defaultMessage":"Unsupported format"},{"id":"boxAI.contentAnswers.noPermissionsLabel","description":"Label that shows within the modal to show how many files are not supported by Box AI due to file not having permissions","defaultMessage":"No Box AI permissions"},{"id":"boxAi.contentAnswers.closeItemList","description":"Label that shows up while someone hover on close button of files dropdown","defaultMessage":"Close file items list"}]
package/i18n/ko-KR.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI를 사용할 수 없습니다",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "나중에 다시 시도하십시오.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI 서비스가 응답하고 있지 않습니다.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "로드 중...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "답변 불러오는 중...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "제안 불러오는 중",
package/i18n/nb-NO.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI er utilgjengelig",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Prøv igjen senere.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI-tjenesten responderer ikke.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Laster inn …",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Laster inn svar …",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Laster inn forslag",
package/i18n/nl-NL.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is niet beschikbaar",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Probeer het later opnieuw.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "De Box AI-service reageert niet.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Laden...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Antwoord laden...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Suggesties laden",
package/i18n/pl-PL.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Usługa Box AI jest niedostępna",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Spróbuj ponownie później.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Usługa Box AI nie odpowiada.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Trwa wczytywanie...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Wczytywanie odpowiedzi...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Wczytywanie sugestii",
package/i18n/pt-BR.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI está indisponível",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Tente novamente mais tarde.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "O serviço do Box AI não está respondendo.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Carregando...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Carregando a resposta...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Carregando sugestões",
package/i18n/ru-RU.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "ИИ Box недоступен",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Повторите попытку позже.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Служба ИИ Box не отвечает.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Загрузка...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Загрузка ответа...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Загрузка предложений",
package/i18n/sv-SE.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI är inte tillgängligt",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Försök igen senare.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI-tjänsten svarar inte.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Läser in...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Laddar svar …",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Laddar förslag",
package/i18n/tr-TR.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI kullanılamıyor",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Lütfen daha sonra tekrar deneyin.",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI hizmeti yanıt vermiyor.",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "Yükleniyor...",
35
35
  "boxAI.contentAnswers.loadingAnswer": "Cevap Yükleniyor...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "Öneriler yükleniyor",
package/i18n/zh-CN.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI 无法使用",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "请稍后重试。",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI 服务未响应。",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "正在加载......",
35
35
  "boxAI.contentAnswers.loadingAnswer": "正在加载答案...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "正在加载建议",
package/i18n/zh-TW.js CHANGED
@@ -29,8 +29,8 @@ export default {
29
29
  "boxAI.contentAnswers.intelligenceUnaivalableHeading": "無法使用 Box AI",
30
30
  "boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "請稍後再試一次。",
31
31
  "boxAI.contentAnswers.intelligenceUnavailableDescription": "Box AI 服務未回應。",
32
- "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of this file is too large for Box AI to process.",
33
- "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire text, which might affect its answers.",
32
+ "boxAI.contentAnswers.largeFileSizeWarningDescription": "The text content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
33
+ "boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire {numberOfItems, plural, =1 {text} other {content}}, which might affect its answers.",
34
34
  "boxAI.contentAnswers.loading": "載入中......",
35
35
  "boxAI.contentAnswers.loadingAnswer": "正在載入答案...",
36
36
  "boxAI.contentAnswers.loadingSuggestedQuestions": "正在載入建議",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/box-ai-content-answers",
3
- "version": "0.100.1",
3
+ "version": "0.101.1",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.8.0",
6
6
  "@box/blueprint-web-assets": "^4.16.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.18.7",
19
+ "@box/blueprint-web": "^9.18.8",
20
20
  "@box/blueprint-web-assets": "^4.35.0",
21
- "@box/box-ai-agent-selector": "^0.28.0",
22
- "@box/item-icon": "^0.9.89",
21
+ "@box/box-ai-agent-selector": "^0.29.0",
22
+ "@box/item-icon": "^0.9.90",
23
23
  "@box/storybook-utils": "^0.8.3",
24
24
  "@testing-library/react": "^15.0.6",
25
25
  "react": "^18.3.0",
@@ -57,5 +57,5 @@
57
57
  "**/*.css"
58
58
  ],
59
59
  "license": "SEE LICENSE IN LICENSE",
60
- "gitHead": "f6ab2a20576eaded5fb37f37c119c9eb031cc86d"
60
+ "gitHead": "6e3fffa688deb1364211bbbc68fbb9098060d97f"
61
61
  }
@@ -1 +1 @@
1
- ._askQuestionText_cd7at_1{margin:.75rem 0;font-size:.9375rem}._askQuestionText_cd7at_1._sidebar_cd7at_5{font-size:.875rem}
1
+ ._askQuestionText_145d3_1{margin:.75rem 0;font-size:.9375rem}._askQuestionText_145d3_1._sidebar_145d3_5{font-size:.875rem}._askQuestionText_145d3_1 ._itemsDropdown_145d3_8{font-size:.9375rem}
@@ -3,7 +3,7 @@ import { QuestionRecordType } from '../records';
3
3
  import { UseContentAnswersProps } from '../types';
4
4
  export declare function useContentAnswers({ contentAnswers, createSessionRequest, dispatchStateUpdate, fetchTimeout, getAgentConfig, getAnswerStreaming, getAnswer, getSuggestedQuestions, isCitationsEnabled, isStopResponseEnabled, isStreamingEnabled, itemID, items, sendErrorLog, formatCitations, }: UseContentAnswersProps): {
5
5
  clearConversation: () => void;
6
- createSession: () => Promise<void>;
6
+ createSession: (shouldAddLoading?: boolean, shouldTriggerError?: boolean) => Promise<void>;
7
7
  fetchAgentConfig: (agent: AgentType) => Promise<void>;
8
8
  fetchSuggestedQuestions: () => Promise<void>;
9
9
  retryQuestion: (question: QuestionRecordType, aiAgent?: unknown) => Promise<void>;
@@ -101,7 +101,7 @@ export type UseContentAnswersProps = ApiWrapperProps & {
101
101
  };
102
102
  export type ApiWrapperWithInjectedProps = ApiWrapperProps & {
103
103
  chatMessages?: (QuestionType | WelcomeMessageType)[];
104
- createSession: () => void;
104
+ createSession: (shouldAddLoading?: boolean, shouldTriggerError?: boolean) => void;
105
105
  encodedSession: string | null;
106
106
  error: CONTENT_ERROR;
107
107
  hasRequestInProgress: boolean;
@@ -1,3 +1,3 @@
1
1
  import { ItemsDropdownProps } from '../../types';
2
- export declare const ItemsDropdown: ({ supportedItems, unsupportedItems, noPermissionItems, onItemClick, }: ItemsDropdownProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ItemsDropdown: ({ className, supportedItems, unsupportedItems, noPermissionItems, onItemClick, }: ItemsDropdownProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ItemsDropdown;
@@ -195,6 +195,7 @@ export type SuggestedQuestionsResponse = {
195
195
  suggestedPrompts: string[];
196
196
  };
197
197
  export type ItemsDropdownProps = {
198
+ className?: string;
198
199
  noPermissionItems?: Array<ItemType>;
199
200
  supportedItems?: Array<ItemType>;
200
201
  unsupportedItems?: Array<ItemType>;