@box/box-ai-content-answers 0.50.1 → 0.50.3

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,48 +1,48 @@
1
- import { useState as C } from "react";
2
- import { useContentAnswers as l } from "./hooks/useContentAnswers.js";
1
+ import { useState as l } from "react";
2
+ import { useContentAnswers as w } from "./hooks/useContentAnswers.js";
3
3
  import { ContentAnswersRecord as R, ContentAnswersItemRecord as S } from "./records.js";
4
4
  import { jsx as h } from "react/jsx-runtime";
5
- const P = ({
6
- WrappedComponent: s,
5
+ const x = ({
6
+ WrappedComponent: o,
7
7
  ...e
8
8
  }) => {
9
9
  const {
10
- itemID: o
11
- } = e, [t, r] = C(() => new R({
10
+ itemID: s
11
+ } = e, [n, r] = l(() => new R({
12
12
  item: new S({
13
- id: o
13
+ id: s
14
14
  })
15
15
  })), {
16
- createSession: i,
17
- fetchAgentConfig: n,
18
- resetContentAnswers: c,
19
- retryQuestion: d,
20
- sendQuestion: a,
16
+ clearConversation: i,
17
+ createSession: a,
18
+ fetchAgentConfig: t,
19
+ retryQuestion: c,
20
+ sendQuestion: d,
21
21
  stopQuestion: m
22
- } = l({
23
- contentAnswers: t,
22
+ } = w({
23
+ contentAnswers: n,
24
24
  setContentAnswers: r,
25
25
  ...e
26
26
  }), {
27
- encodedSession: A,
28
- error: u,
27
+ encodedSession: u,
28
+ error: A,
29
29
  isLoading: f,
30
- hasRequestInProgress: w = !1,
30
+ hasRequestInProgress: C = !1,
31
31
  questions: g
32
- } = t;
33
- return /* @__PURE__ */ h(s, {
32
+ } = n;
33
+ return /* @__PURE__ */ h(o, {
34
34
  ...{
35
- createSession: i,
36
- encodedSession: A,
37
- error: u,
38
- hasRequestInProgress: w,
35
+ createSession: a,
36
+ encodedSession: u,
37
+ error: A,
38
+ hasRequestInProgress: C,
39
39
  isLoading: f,
40
40
  questions: g,
41
- onResetAction: c,
42
- onSelectAgent: n,
43
- onAgentEditorToggle: n,
44
- retryQuestion: d,
45
- sendQuestion: a,
41
+ onClearAction: i,
42
+ onSelectAgent: t,
43
+ onAgentEditorToggle: t,
44
+ retryQuestion: c,
45
+ sendQuestion: d,
46
46
  shouldRenderProviders: !1,
47
47
  stopQuestion: m
48
48
  },
@@ -50,6 +50,6 @@ const P = ({
50
50
  });
51
51
  };
52
52
  export {
53
- P as ContentAnswersComponent,
54
- P as default
53
+ x as ContentAnswersComponent,
54
+ x as default
55
55
  };
@@ -9,20 +9,20 @@ import L from "../utils/stream.js";
9
9
  function lt({
10
10
  contentAnswers: b,
11
11
  createSessionRequest: _,
12
- fetchTimeout: A,
12
+ fetchTimeout: w,
13
13
  getAgentConfig: h,
14
14
  getAnswerStreaming: y,
15
- getAnswer: M,
15
+ getAnswer: A,
16
16
  isCitationsEnabled: Z,
17
17
  isStreamingEnabled: R,
18
18
  itemID: f,
19
19
  sendLog: D,
20
- setContentAnswers: N,
21
- formatCitations: O = X
20
+ setContentAnswers: M,
21
+ formatCitations: v = X
22
22
  }) {
23
- const I = n.useRef(null), Q = B(), q = z((t) => Array.isArray(t) ? O(t) : null, [O]), a = n.useCallback((t = !1) => t ? new U() : b, [b]), c = n.useCallback((t) => {
24
- N(t);
25
- }, [N]), S = n.useCallback(() => {
23
+ const I = n.useRef(null), N = B(), O = z((t) => Array.isArray(t) ? v(t) : null, [v]), a = n.useCallback((t = !1) => t ? new U() : b, [b]), c = n.useCallback((t) => {
24
+ M(t);
25
+ }, [M]), Q = n.useCallback(() => {
26
26
  const e = a().withMutations((s) => {
27
27
  s.set("questions", []), s.set("contextSession", null);
28
28
  });
@@ -53,12 +53,12 @@ function lt({
53
53
  e && l.merge(e), l.set("hasRequestInProgress", !u), l.set("questions", r);
54
54
  });
55
55
  c(d), I.current = t;
56
- }, [a, c]), v = n.useCallback((t) => {
56
+ }, [a, c]), q = n.useCallback((t) => {
57
57
  const s = a().withMutations((o) => {
58
58
  o.set("error", t), o.set("isLoading", !1);
59
59
  });
60
60
  c(s);
61
- }, [a, c]), g = n.useCallback((t, e, s) => {
61
+ }, [a, c]), S = n.useCallback((t, e, s) => {
62
62
  const {
63
63
  answer: o,
64
64
  error: r,
@@ -66,7 +66,7 @@ function lt({
66
66
  createdAt: u = null,
67
67
  encodedSession: d = void 0,
68
68
  contextSession: l = void 0
69
- } = t, C = e.set("citations", q(i)).merge({
69
+ } = t, C = e.set("citations", O(i)).merge({
70
70
  answer: o,
71
71
  error: r,
72
72
  created_at: u,
@@ -79,7 +79,7 @@ function lt({
79
79
  }), l && (m = {
80
80
  contextSession: l
81
81
  }), p(C, m);
82
- }, [p, q]), E = n.useCallback(
82
+ }, [p, O]), g = n.useCallback(
83
83
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
84
  (t, e) => {
85
85
  const s = /Too Many Requests/i, o = t && t.message || "", r = t && t.response && t.response.status === 429 || s.test(o), i = e.merge({
@@ -90,7 +90,7 @@ function lt({
90
90
  p(i, void 0);
91
91
  },
92
92
  [p]
93
- ), k = n.useCallback(async (t, e) => {
93
+ ), E = n.useCallback(async (t, e) => {
94
94
  try {
95
95
  const s = a(), o = {
96
96
  prompt: t.prompt,
@@ -98,7 +98,7 @@ function lt({
98
98
  }, r = `content-answers-${t.id}`;
99
99
  let i;
100
100
  R && (i = L.createAbortRequest(r));
101
- const u = await Y(o, R, f, s, M, y, i);
101
+ const u = await Y(o, R, f, s, A, y, i);
102
102
  R ? u.ok ? L.receiveStreamedResponse(r, u, (d) => {
103
103
  const {
104
104
  data: l,
@@ -107,7 +107,7 @@ function lt({
107
107
  contextSession: J,
108
108
  isCompleted: K
109
109
  } = d;
110
- g({
110
+ S({
111
111
  ...{
112
112
  answer: l,
113
113
  citations: m,
@@ -115,21 +115,21 @@ function lt({
115
115
  contextSession: J
116
116
  }
117
117
  }, t, K);
118
- }, void 0, A) : E({
118
+ }, void 0, w) : g({
119
119
  response: u
120
120
  }, t) : (Object.entries(u).forEach(([d, l]) => {
121
121
  const C = W(d);
122
122
  delete u[d], u[C] = l;
123
- }), g(u, t, !0));
123
+ }), S(u, t, !0));
124
124
  } catch (s) {
125
- E(s, t);
125
+ g(s, t);
126
126
  }
127
- }, [a, R, f, M, y, A, g, E]), w = n.useCallback((t, e, s = !0) => {
127
+ }, [a, R, f, A, y, w, S, g]), k = n.useCallback((t, e, s = !0) => {
128
128
  const o = a();
129
129
  s && (t.id = `${o.questions.length}`);
130
130
  const r = new V(t);
131
- return p(r), k(r, e), r;
132
- }, [a, k, p]), x = n.useCallback((t) => {
131
+ return p(r), E(r, e), r;
132
+ }, [a, E, p]), x = n.useCallback((t) => {
133
133
  const e = a(), {
134
134
  encoded_session: s,
135
135
  metadata: {
@@ -152,41 +152,40 @@ function lt({
152
152
  }, f);
153
153
  x(s);
154
154
  } catch {
155
- v(F.GENERAL);
155
+ q(F.GENERAL);
156
156
  }
157
- }, [a, c, _, f, x, v]), j = n.useCallback(() => {
158
- S();
159
- }, [S]), P = n.useCallback(async (t, e) => {
160
- w({
157
+ }, [a, c, _, f, x, q]), j = n.useCallback(() => {
158
+ Q();
159
+ }, [Q]), P = n.useCallback(async (t, e) => {
160
+ k({
161
161
  ...t.toJS(),
162
162
  answer: "",
163
163
  isLoading: !0,
164
164
  isCompleted: !1,
165
165
  error: null
166
166
  }, e, !1);
167
- }, [w]), $ = n.useCallback((t) => {
167
+ }, [k]), $ = n.useCallback((t) => {
168
168
  L.abortRequest(`content-answers-${t.id}`, !0);
169
169
  }, []), H = n.useCallback(async (t) => {
170
170
  if (h)
171
171
  try {
172
172
  const e = await h(t);
173
- Q({
173
+ N({
174
174
  type: "OVERRIDE_AGENT_CONFIG",
175
175
  agentName: t.name,
176
176
  agentConfig: e
177
177
  });
178
178
  } catch {
179
179
  }
180
- }, [Q, h]);
180
+ }, [N, h]);
181
181
  return {
182
- clearChatHistory: S,
182
+ clearConversation: j,
183
183
  createSession: T,
184
184
  fetchAgentConfig: H,
185
185
  getState: a,
186
- resetContentAnswers: j,
187
186
  retryQuestion: P,
188
- sendQuestion: w,
189
- sendQuestionAnswerRequest: k,
187
+ sendQuestion: k,
188
+ sendQuestionAnswerRequest: E,
190
189
  stopQuestion: $,
191
190
  setState: c,
192
191
  updateQuestionInState: p
@@ -1,5 +1,5 @@
1
1
  import { defineMessages as e } from "react-intl";
2
- const o = e({
2
+ const a = e({
3
3
  contentAnswersTitle: {
4
4
  id: "boxAI.contentAnswers.contentAnswersTitle",
5
5
  defaultMessage: "Box AI"
@@ -8,11 +8,11 @@ const o = e({
8
8
  id: "boxAI.contentAnswers.closeModalAriaLabel",
9
9
  defaultMessage: "Close Modal"
10
10
  },
11
- resetConversationLabel: {
12
- id: "boxAI.contentAnswers.resetConversationLabel",
13
- defaultMessage: "Reset conversation"
11
+ clearConversationLabel: {
12
+ id: "boxAI.contentAnswers.clearConversationLabel",
13
+ defaultMessage: "Clear conversation"
14
14
  }
15
15
  });
16
16
  export {
17
- o as default
17
+ a as default
18
18
  };
@@ -1,126 +1,126 @@
1
1
  import "../../../../styles/modal.css";
2
- import { useBreakpoint as T, Breakpoint as G, Modal as s, Text as H, Tooltip as P, IconButton as E } from "@box/blueprint-web";
3
- import { ArrowCurveForward as S } from "@box/blueprint-web-assets/icons/Fill";
4
- import { BoxAiLogo as R } from "@box/blueprint-web-assets/icons/Logo";
5
- import { Size8 as p } from "@box/blueprint-web-assets/tokens/tokens";
6
- import C from "react";
7
- import { useIntl as j } from "react-intl";
8
- import { BoxAiContentAnswers as F } from "../../box-ai-content-answers.js";
9
- import { AgentsProvider as K } from "../../contexts/AgentsContext.js";
10
- import { AgentSelector as q } from "../agents/agent-selector.js";
11
- import { LOGGER_BASE_CONFIG as b, LOGGER_ACTION_CLICK as D } from "../common/constants.js";
12
- import J from "./hooks/useStopPropagationOnEsc.js";
13
- import i from "./messages.js";
14
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
15
- const Q = "_BoxAIIconColor_8bmuz_1", U = "_modalHeader_8bmuz_5", V = "_contentAnswersModal_8bmuz_10", W = "_boxAiContentAnswers_8bmuz_17", X = "_resetButton_8bmuz_25", Y = "_contentAnswerModal_8bmuz_1", t = {
16
- BoxAIIconColor: Q,
17
- modalHeader: U,
18
- contentAnswersModal: V,
19
- boxAiContentAnswers: W,
20
- resetButton: X,
21
- "modal-close-button": "_modal-close-button_8bmuz_29",
22
- contentAnswerModal: Y
23
- }, ue = ({
24
- children: g,
25
- hostAppName: m,
26
- isAgentSelectorEnabled: c,
2
+ import { useBreakpoint as T, Breakpoint as G, Modal as a, Text as H, Tooltip as P, IconButton as E } from "@box/blueprint-web";
3
+ import { Trash as S } from "@box/blueprint-web-assets/icons/Line";
4
+ import { BoxAiLogo as y } from "@box/blueprint-web-assets/icons/Logo";
5
+ import { Size8 as C } from "@box/blueprint-web-assets/tokens/tokens";
6
+ import u from "react";
7
+ import { useIntl as R } from "react-intl";
8
+ import { BoxAiContentAnswers as j } from "../../box-ai-content-answers.js";
9
+ import { AgentsProvider as F } from "../../contexts/AgentsContext.js";
10
+ import { AgentSelector as K } from "../agents/agent-selector.js";
11
+ import { LOGGER_BASE_CONFIG as g, LOGGER_ACTION_CLICK as q } from "../common/constants.js";
12
+ import D from "./hooks/useStopPropagationOnEsc.js";
13
+ import l from "./messages.js";
14
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
15
+ const J = "_BoxAIIconColor_e9yaz_1", Q = "_modalHeader_e9yaz_5", U = "_contentAnswersModal_e9yaz_10", V = "_boxAiContentAnswers_e9yaz_17", W = "_clearButton_e9yaz_25", X = "_contentAnswerModal_e9yaz_1", o = {
16
+ BoxAIIconColor: J,
17
+ modalHeader: Q,
18
+ contentAnswersModal: U,
19
+ boxAiContentAnswers: V,
20
+ clearButton: W,
21
+ "modal-close-button": "_modal-close-button_e9yaz_29",
22
+ contentAnswerModal: X
23
+ }, _e = ({
24
+ children: M,
25
+ hostAppName: c,
26
+ isAgentSelectorEnabled: m,
27
27
  isDebugModeEnabled: w,
28
- isResetChatEnabled: M,
28
+ isResetChatEnabled: b,
29
29
  itemSize: d,
30
- extension: u,
31
- onResetAction: _,
32
- onSelectAgent: x,
30
+ extension: _,
31
+ onClearAction: f,
32
+ onSelectAgent: h,
33
33
  recordAction: r,
34
- shouldRenderProviders: B = !0,
35
- stopPropagationOnEsc: I,
36
- ...h
34
+ shouldRenderProviders: x = !0,
35
+ stopPropagationOnEsc: B,
36
+ ...I
37
37
  }) => {
38
38
  const {
39
- open: f,
39
+ open: A,
40
40
  defaultOpen: v,
41
41
  onOpenChange: z,
42
42
  modal: L,
43
43
  ...N
44
- } = h, a = j(), O = T() <= G.Medium;
45
- J(I, f);
46
- const o = C.useCallback((n) => {
47
- r && (n.data ?? (n.data = {}), n.data.hostAppName = m, r(n));
48
- }, [m, r]);
49
- C.useEffect(() => {
50
- o({
51
- ...b,
44
+ } = I, s = R(), O = T() <= G.Medium;
45
+ D(B, A);
46
+ const t = u.useCallback((n) => {
47
+ r && (n.data ?? (n.data = {}), n.data.hostAppName = c, r(n));
48
+ }, [c, r]);
49
+ u.useEffect(() => {
50
+ t({
51
+ ...g,
52
52
  target: "loaded",
53
53
  data: {
54
54
  fileSize: d,
55
- fileType: u
55
+ fileType: _
56
56
  }
57
57
  });
58
- }, [o, u, d, r]);
58
+ }, [t, _, d, r]);
59
59
  const k = () => {
60
- _ && (_(), o({
61
- ...b,
62
- action: D,
63
- target: "resetChat"
60
+ f && (f(), t({
61
+ ...g,
62
+ action: q,
63
+ target: "clearChat"
64
64
  }));
65
- }, A = /* @__PURE__ */ l(s, {
65
+ }, p = /* @__PURE__ */ i(a, {
66
66
  defaultOpen: v,
67
67
  modal: L,
68
68
  onOpenChange: z,
69
- open: f,
70
- children: [/* @__PURE__ */ e(s.Trigger, {
71
- children: g
72
- }), /* @__PURE__ */ l(s.Content, {
73
- className: t.contentAnswersModal,
69
+ open: A,
70
+ children: [/* @__PURE__ */ e(a.Trigger, {
71
+ children: M
72
+ }), /* @__PURE__ */ i(a.Content, {
73
+ className: o.contentAnswersModal,
74
74
  "data-testid": "content-answers-modal",
75
75
  size: "xlarge",
76
- children: [/* @__PURE__ */ e(s.Header, {
77
- children: /* @__PURE__ */ l("div", {
78
- className: t.modalHeader,
79
- children: [!O && /* @__PURE__ */ e(R, {
80
- className: t.BoxAIIconColor,
76
+ children: [/* @__PURE__ */ e(a.Header, {
77
+ children: /* @__PURE__ */ i("div", {
78
+ className: o.modalHeader,
79
+ children: [!O && /* @__PURE__ */ e(y, {
80
+ className: o.BoxAIIconColor,
81
81
  "data-testid": "content-answers-icon-color",
82
- height: p,
83
- width: p
82
+ height: C,
83
+ width: C
84
84
  }), /* @__PURE__ */ e(H, {
85
85
  as: "span",
86
86
  variant: "titleMedium",
87
- children: a.formatMessage(i.contentAnswersTitle)
88
- }), c && /* @__PURE__ */ e(q, {
89
- onSelectAgent: x,
90
- recordAction: o
87
+ children: s.formatMessage(l.contentAnswersTitle)
88
+ }), m && /* @__PURE__ */ e(K, {
89
+ onSelectAgent: h,
90
+ recordAction: t
91
91
  })]
92
92
  })
93
- }), M && /* @__PURE__ */ e(P, {
94
- content: a.formatMessage(i.resetConversationLabel),
95
- "data-testid": "reset-conversation-tooltip",
93
+ }), b && /* @__PURE__ */ e(P, {
94
+ content: s.formatMessage(l.clearConversationLabel),
95
+ "data-testid": "clear-conversation-tooltip",
96
96
  side: "top",
97
97
  variant: "standard",
98
98
  children: /* @__PURE__ */ e(E, {
99
- "aria-label": a.formatMessage(i.resetConversationLabel),
100
- className: t.resetButton,
101
- "data-testid": "reset-conversation-button",
99
+ "aria-label": s.formatMessage(l.clearConversationLabel),
100
+ className: o.clearButton,
101
+ "data-testid": "clear-conversation-button",
102
102
  icon: S,
103
103
  onClick: k,
104
104
  size: "small"
105
105
  })
106
- }), /* @__PURE__ */ e(s.Close, {
107
- "aria-label": a.formatMessage(i.closeModalAriaLabel),
108
- className: t["modal-close-button"],
106
+ }), /* @__PURE__ */ e(a.Close, {
107
+ "aria-label": s.formatMessage(l.closeModalAriaLabel),
108
+ className: o["modal-close-button"],
109
109
  size: "small"
110
- }), /* @__PURE__ */ e(F, {
111
- className: t.boxAiContentAnswers,
112
- isAgentSelectorEnabled: c,
110
+ }), /* @__PURE__ */ e(j, {
111
+ className: o.boxAiContentAnswers,
112
+ isAgentSelectorEnabled: m,
113
113
  isDebugModeEnabled: w,
114
- recordAction: o,
114
+ recordAction: t,
115
115
  ...N
116
116
  })]
117
117
  })]
118
118
  });
119
- return B ? /* @__PURE__ */ e(K, {
120
- children: A
121
- }) : A;
119
+ return x ? /* @__PURE__ */ e(F, {
120
+ children: p
121
+ }) : p;
122
122
  };
123
123
  export {
124
- ue as IntelligenceModal,
125
- ue as default
124
+ _e as IntelligenceModal,
125
+ _e as default
126
126
  };
package/i18n/bn-IN.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Open document",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "ডকুমেন্ট থেকে:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "\"{title}\"-এর থেকে:",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "মোডাল বন্ধ করুন",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "তবুও চালিয়ে যান",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "সর্বাধিক {characterLimit} অক্ষরে পৌঁছেছে",
32
33
  "boxAI.contentAnswers.noReferences": "সাধারণ ডকুমেন্ট বিশ্লেষণের ভিত্তিতে জবাব",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "রেফারেন্স {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "কথোপকথন রিসেট করুন",
35
35
  "boxAI.contentAnswers.responseFailedError": "জবাব পাওয়া যায়নি",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "জবাব বাধাগ্রস্ত হয়েছে",
37
37
  "boxAI.contentAnswers.responseStoppedError": "জবাব বন্ধ হয়েছে",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "আপনি যখন এই {type}-টি বন্ধ করবেন, তখন এই চ্যাটটি মুছে দেওয়া হবে",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Box AI-এ স্বাগত",
46
46
  "boxAI.popup.closeButtonText": "বন্ধ করুন",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "অনুলিপি হয়েছে"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "অনুলিপি হয়েছে",
48
+ "boxAI.contentAnswers.resetConversationLabel": "কথোপকথন রিসেট করুন"
48
49
  }
package/i18n/da-DK.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Åbn dokument",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "Fra dokument:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Fra \"{title}\":",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Luk modal",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Fortsæt alligevel",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Det maksimale antal på {characterLimit} tegn nået",
32
33
  "boxAI.contentAnswers.noReferences": "Svar baseret på en generel analyse af dokumentet",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Reference {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Nulstil samtale",
35
35
  "boxAI.contentAnswers.responseFailedError": "Svar mislykkedes",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Svar afbrudt",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Svar stoppet",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "Denne chat vil blive ryddet, når du lukker dette {type}",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Velkommen til Box AI",
46
46
  "boxAI.popup.closeButtonText": "Luk",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopieret"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopieret",
48
+ "boxAI.contentAnswers.resetConversationLabel": "Nulstil samtale"
48
49
  }
package/i18n/de-DE.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Dokument öffnen",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "Von Dokument:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "Von „{title}“:",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Modal schließen",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box KI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Trotzdem fortfahren",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Das Maximum an {characterLimit} Zeichen ist erreicht",
32
33
  "boxAI.contentAnswers.noReferences": "Antwort basierend auf allgemeiner Dokumentanalyse",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Referenz {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Unterhaltung zurücksetzen",
35
35
  "boxAI.contentAnswers.responseFailedError": "Antwort fehlgeschlagen",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Antwort unterbrochen",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Antwort gestoppt",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "Dieser Chat wird gelöscht, wenn Sie diese(s) {type} schließen",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Willkommen bei Box KI!",
46
46
  "boxAI.popup.closeButtonText": "Schließen",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopiert"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopiert",
48
+ "boxAI.contentAnswers.resetConversationLabel": "Unterhaltung zurücksetzen"
48
49
  }
package/i18n/en-AU.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Open document",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "From document:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Maximum of {characterLimit} characters reached",
32
33
  "boxAI.contentAnswers.noReferences": "Response based on general document analysis",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Reference {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Reset conversation",
35
35
  "boxAI.contentAnswers.responseFailedError": "Response Failed",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Response Interrupted",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Response Stopped",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "This chat will be cleared when you close this {type}",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Welcome to Box AI",
46
46
  "boxAI.popup.closeButtonText": "Close",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied",
48
+ "boxAI.contentAnswers.resetConversationLabel": "Reset conversation"
48
49
  }
package/i18n/en-CA.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Open document",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "From document:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Maximum of {characterLimit} characters reached",
32
33
  "boxAI.contentAnswers.noReferences": "Response based on general document analysis",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Reference {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Reset conversation",
35
35
  "boxAI.contentAnswers.responseFailedError": "Response Failed",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Response Interrupted",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Response Stopped",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "This chat will be cleared when you close this {type}",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Welcome to Box AI",
46
46
  "boxAI.popup.closeButtonText": "Close",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied",
48
+ "boxAI.contentAnswers.resetConversationLabel": "Reset conversation"
48
49
  }
package/i18n/en-GB.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Open document",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "From document:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Maximum of {characterLimit} characters reached",
32
33
  "boxAI.contentAnswers.noReferences": "Response based on general document analysis",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Reference {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Reset conversation",
35
35
  "boxAI.contentAnswers.responseFailedError": "Response Failed",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Response Interrupted",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Response Stopped",
@@ -44,5 +44,6 @@ export default {
44
44
  "boxAI.contentAnswers.welcomeClearChatText": "This chat will be cleared when you close this {type}",
45
45
  "boxAI.contentAnswers.welcomeMessageTitle": "Welcome to Box AI",
46
46
  "boxAI.popup.closeButtonText": "Close",
47
- "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied"
47
+ "boxAI.textInputWithCopyButton.copyButtonSuccessText": "Copied",
48
+ "boxAI.contentAnswers.resetConversationLabel": "Reset conversation"
48
49
  }
package/i18n/en-US.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  "boxAI.contentAnswers.cardTooltipButton": "Open document",
9
9
  "boxAI.contentAnswers.cardTooltipTitle": "From document:",
10
10
  "boxAI.contentAnswers.cardTooltipTitleWithDocumentName": "From \"{title}\":",
11
+ "boxAI.contentAnswers.clearConversationLabel": "Clear conversation",
11
12
  "boxAI.contentAnswers.closeModalAriaLabel": "Close Modal",
12
13
  "boxAI.contentAnswers.contentAnswersTitle": "Box AI",
13
14
  "boxAI.contentAnswers.continueAnyway": "Continue anyway",
@@ -31,7 +32,6 @@ export default {
31
32
  "boxAI.contentAnswers.maxCharactersReachedError": "Maximum of {characterLimit} characters reached",
32
33
  "boxAI.contentAnswers.noReferences": "Response based on general document analysis",
33
34
  "boxAI.contentAnswers.referenceAriaLabel": "Reference {number}",
34
- "boxAI.contentAnswers.resetConversationLabel": "Reset conversation",
35
35
  "boxAI.contentAnswers.responseFailedError": "Response Failed",
36
36
  "boxAI.contentAnswers.responseInterruptedError": "Response Interrupted",
37
37
  "boxAI.contentAnswers.responseStoppedError": "Response Stopped",