@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.
- package/esm/lib/components/api-wrapper/content-answers-component.js +30 -30
- package/esm/lib/components/api-wrapper/hooks/useContentAnswers.js +31 -32
- package/esm/lib/components/modal/messages.js +5 -5
- package/esm/lib/components/modal/modal.js +82 -82
- package/i18n/bn-IN.js +3 -2
- package/i18n/da-DK.js +3 -2
- package/i18n/de-DE.js +3 -2
- package/i18n/en-AU.js +3 -2
- package/i18n/en-CA.js +3 -2
- package/i18n/en-GB.js +3 -2
- package/i18n/en-US.js +1 -1
- package/i18n/en-US.properties +2 -2
- package/i18n/en-x-pseudo.js +3 -2
- package/i18n/es-419.js +3 -2
- package/i18n/es-ES.js +3 -2
- package/i18n/fi-FI.js +3 -2
- package/i18n/fr-CA.js +3 -2
- package/i18n/fr-FR.js +3 -2
- package/i18n/hi-IN.js +3 -2
- package/i18n/it-IT.js +3 -2
- package/i18n/ja-JP.js +3 -2
- package/i18n/json/src/lib/components/modal/messages.json +1 -1
- package/i18n/ko-KR.js +3 -2
- package/i18n/nb-NO.js +3 -2
- package/i18n/nl-NL.js +3 -2
- package/i18n/pl-PL.js +3 -2
- package/i18n/pt-BR.js +3 -2
- package/i18n/ru-RU.js +3 -2
- package/i18n/sv-SE.js +3 -2
- package/i18n/tr-TR.js +3 -2
- package/i18n/zh-CN.js +3 -2
- package/i18n/zh-TW.js +3 -2
- package/package.json +4 -4
- package/styles/modal.css +1 -1
- package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +1 -2
- package/types/lib/components/modal/messages.d.ts +1 -1
- package/types/lib/components/modal/modal.d.ts +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { useContentAnswers as
|
|
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
|
|
6
|
-
WrappedComponent:
|
|
5
|
+
const x = ({
|
|
6
|
+
WrappedComponent: o,
|
|
7
7
|
...e
|
|
8
8
|
}) => {
|
|
9
9
|
const {
|
|
10
|
-
itemID:
|
|
11
|
-
} = e, [
|
|
10
|
+
itemID: s
|
|
11
|
+
} = e, [n, r] = l(() => new R({
|
|
12
12
|
item: new S({
|
|
13
|
-
id:
|
|
13
|
+
id: s
|
|
14
14
|
})
|
|
15
15
|
})), {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
retryQuestion:
|
|
20
|
-
sendQuestion:
|
|
16
|
+
clearConversation: i,
|
|
17
|
+
createSession: a,
|
|
18
|
+
fetchAgentConfig: t,
|
|
19
|
+
retryQuestion: c,
|
|
20
|
+
sendQuestion: d,
|
|
21
21
|
stopQuestion: m
|
|
22
|
-
} =
|
|
23
|
-
contentAnswers:
|
|
22
|
+
} = w({
|
|
23
|
+
contentAnswers: n,
|
|
24
24
|
setContentAnswers: r,
|
|
25
25
|
...e
|
|
26
26
|
}), {
|
|
27
|
-
encodedSession:
|
|
28
|
-
error:
|
|
27
|
+
encodedSession: u,
|
|
28
|
+
error: A,
|
|
29
29
|
isLoading: f,
|
|
30
|
-
hasRequestInProgress:
|
|
30
|
+
hasRequestInProgress: C = !1,
|
|
31
31
|
questions: g
|
|
32
|
-
} =
|
|
33
|
-
return /* @__PURE__ */ h(
|
|
32
|
+
} = n;
|
|
33
|
+
return /* @__PURE__ */ h(o, {
|
|
34
34
|
...{
|
|
35
|
-
createSession:
|
|
36
|
-
encodedSession:
|
|
37
|
-
error:
|
|
38
|
-
hasRequestInProgress:
|
|
35
|
+
createSession: a,
|
|
36
|
+
encodedSession: u,
|
|
37
|
+
error: A,
|
|
38
|
+
hasRequestInProgress: C,
|
|
39
39
|
isLoading: f,
|
|
40
40
|
questions: g,
|
|
41
|
-
|
|
42
|
-
onSelectAgent:
|
|
43
|
-
onAgentEditorToggle:
|
|
44
|
-
retryQuestion:
|
|
45
|
-
sendQuestion:
|
|
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
|
-
|
|
54
|
-
|
|
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:
|
|
12
|
+
fetchTimeout: w,
|
|
13
13
|
getAgentConfig: h,
|
|
14
14
|
getAnswerStreaming: y,
|
|
15
|
-
getAnswer:
|
|
15
|
+
getAnswer: A,
|
|
16
16
|
isCitationsEnabled: Z,
|
|
17
17
|
isStreamingEnabled: R,
|
|
18
18
|
itemID: f,
|
|
19
19
|
sendLog: D,
|
|
20
|
-
setContentAnswers:
|
|
21
|
-
formatCitations:
|
|
20
|
+
setContentAnswers: M,
|
|
21
|
+
formatCitations: v = X
|
|
22
22
|
}) {
|
|
23
|
-
const I = n.useRef(null),
|
|
24
|
-
|
|
25
|
-
}, [
|
|
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]),
|
|
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]),
|
|
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",
|
|
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,
|
|
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
|
-
),
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
}),
|
|
123
|
+
}), S(u, t, !0));
|
|
124
124
|
} catch (s) {
|
|
125
|
-
|
|
125
|
+
g(s, t);
|
|
126
126
|
}
|
|
127
|
-
}, [a, R, f,
|
|
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),
|
|
132
|
-
}, [a,
|
|
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
|
-
|
|
155
|
+
q(F.GENERAL);
|
|
156
156
|
}
|
|
157
|
-
}, [a, c, _, f, x,
|
|
158
|
-
|
|
159
|
-
}, [
|
|
160
|
-
|
|
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
|
-
}, [
|
|
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
|
-
|
|
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
|
-
}, [
|
|
180
|
+
}, [N, h]);
|
|
181
181
|
return {
|
|
182
|
-
|
|
182
|
+
clearConversation: j,
|
|
183
183
|
createSession: T,
|
|
184
184
|
fetchAgentConfig: H,
|
|
185
185
|
getState: a,
|
|
186
|
-
resetContentAnswers: j,
|
|
187
186
|
retryQuestion: P,
|
|
188
|
-
sendQuestion:
|
|
189
|
-
sendQuestionAnswerRequest:
|
|
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
|
|
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
|
-
|
|
12
|
-
id: "boxAI.contentAnswers.
|
|
13
|
-
defaultMessage: "
|
|
11
|
+
clearConversationLabel: {
|
|
12
|
+
id: "boxAI.contentAnswers.clearConversationLabel",
|
|
13
|
+
defaultMessage: "Clear conversation"
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
import { BoxAiLogo as
|
|
5
|
-
import { Size8 as
|
|
6
|
-
import
|
|
7
|
-
import { useIntl as
|
|
8
|
-
import { BoxAiContentAnswers as
|
|
9
|
-
import { AgentsProvider as
|
|
10
|
-
import { AgentSelector as
|
|
11
|
-
import { LOGGER_BASE_CONFIG as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { jsxs as
|
|
15
|
-
const
|
|
16
|
-
BoxAIIconColor:
|
|
17
|
-
modalHeader:
|
|
18
|
-
contentAnswersModal:
|
|
19
|
-
boxAiContentAnswers:
|
|
20
|
-
|
|
21
|
-
"modal-close-button": "_modal-close-
|
|
22
|
-
contentAnswerModal:
|
|
23
|
-
},
|
|
24
|
-
children:
|
|
25
|
-
hostAppName:
|
|
26
|
-
isAgentSelectorEnabled:
|
|
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:
|
|
28
|
+
isResetChatEnabled: b,
|
|
29
29
|
itemSize: d,
|
|
30
|
-
extension:
|
|
31
|
-
|
|
32
|
-
onSelectAgent:
|
|
30
|
+
extension: _,
|
|
31
|
+
onClearAction: f,
|
|
32
|
+
onSelectAgent: h,
|
|
33
33
|
recordAction: r,
|
|
34
|
-
shouldRenderProviders:
|
|
35
|
-
stopPropagationOnEsc:
|
|
36
|
-
...
|
|
34
|
+
shouldRenderProviders: x = !0,
|
|
35
|
+
stopPropagationOnEsc: B,
|
|
36
|
+
...I
|
|
37
37
|
}) => {
|
|
38
38
|
const {
|
|
39
|
-
open:
|
|
39
|
+
open: A,
|
|
40
40
|
defaultOpen: v,
|
|
41
41
|
onOpenChange: z,
|
|
42
42
|
modal: L,
|
|
43
43
|
...N
|
|
44
|
-
} =
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
r && (n.data ?? (n.data = {}), n.data.hostAppName =
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
...
|
|
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:
|
|
55
|
+
fileType: _
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
}, [
|
|
58
|
+
}, [t, _, d, r]);
|
|
59
59
|
const k = () => {
|
|
60
|
-
|
|
61
|
-
...
|
|
62
|
-
action:
|
|
63
|
-
target: "
|
|
60
|
+
f && (f(), t({
|
|
61
|
+
...g,
|
|
62
|
+
action: q,
|
|
63
|
+
target: "clearChat"
|
|
64
64
|
}));
|
|
65
|
-
},
|
|
65
|
+
}, p = /* @__PURE__ */ i(a, {
|
|
66
66
|
defaultOpen: v,
|
|
67
67
|
modal: L,
|
|
68
68
|
onOpenChange: z,
|
|
69
|
-
open:
|
|
70
|
-
children: [/* @__PURE__ */ e(
|
|
71
|
-
children:
|
|
72
|
-
}), /* @__PURE__ */
|
|
73
|
-
className:
|
|
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(
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
className:
|
|
79
|
-
children: [!O && /* @__PURE__ */ e(
|
|
80
|
-
className:
|
|
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:
|
|
83
|
-
width:
|
|
82
|
+
height: C,
|
|
83
|
+
width: C
|
|
84
84
|
}), /* @__PURE__ */ e(H, {
|
|
85
85
|
as: "span",
|
|
86
86
|
variant: "titleMedium",
|
|
87
|
-
children:
|
|
88
|
-
}),
|
|
89
|
-
onSelectAgent:
|
|
90
|
-
recordAction:
|
|
87
|
+
children: s.formatMessage(l.contentAnswersTitle)
|
|
88
|
+
}), m && /* @__PURE__ */ e(K, {
|
|
89
|
+
onSelectAgent: h,
|
|
90
|
+
recordAction: t
|
|
91
91
|
})]
|
|
92
92
|
})
|
|
93
|
-
}),
|
|
94
|
-
content:
|
|
95
|
-
"data-testid": "
|
|
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":
|
|
100
|
-
className:
|
|
101
|
-
"data-testid": "
|
|
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(
|
|
107
|
-
"aria-label":
|
|
108
|
-
className:
|
|
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(
|
|
111
|
-
className:
|
|
112
|
-
isAgentSelectorEnabled:
|
|
110
|
+
}), /* @__PURE__ */ e(j, {
|
|
111
|
+
className: o.boxAiContentAnswers,
|
|
112
|
+
isAgentSelectorEnabled: m,
|
|
113
113
|
isDebugModeEnabled: w,
|
|
114
|
-
recordAction:
|
|
114
|
+
recordAction: t,
|
|
115
115
|
...N
|
|
116
116
|
})]
|
|
117
117
|
})]
|
|
118
118
|
});
|
|
119
|
-
return
|
|
120
|
-
children:
|
|
121
|
-
}) :
|
|
119
|
+
return x ? /* @__PURE__ */ e(F, {
|
|
120
|
+
children: p
|
|
121
|
+
}) : p;
|
|
122
122
|
};
|
|
123
123
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
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",
|