@box/box-ai-content-answers 0.158.0 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/lib/components/answer/answer.js +153 -140
- package/dist/esm/lib/components/answer/embed-the-answer-button.js +65 -0
- package/dist/esm/lib/components/answer/messages.js +8 -0
- package/dist/esm/lib/components/chat/chat.js +74 -72
- package/dist/esm/lib/components/sidebar/content.js +78 -76
- package/dist/esm/lib/components/sidebar/sidebar.js +37 -35
- package/dist/i18n/bn-IN.js +7 -5
- package/dist/i18n/bn-IN.properties +11 -5
- package/dist/i18n/da-DK.js +7 -5
- package/dist/i18n/da-DK.properties +11 -5
- package/dist/i18n/de-DE.js +7 -5
- package/dist/i18n/de-DE.properties +11 -5
- package/dist/i18n/en-AU.js +3 -1
- package/dist/i18n/en-AU.properties +7 -1
- package/dist/i18n/en-CA.js +4 -2
- package/dist/i18n/en-CA.properties +8 -2
- package/dist/i18n/en-GB.js +3 -1
- package/dist/i18n/en-GB.properties +7 -1
- package/dist/i18n/en-US.js +2 -0
- package/dist/i18n/en-US.properties +4 -0
- package/dist/i18n/en-x-pseudo.js +88 -86
- package/dist/i18n/en-x-pseudo.properties +91 -85
- package/dist/i18n/es-419.js +7 -5
- package/dist/i18n/es-419.properties +11 -5
- package/dist/i18n/es-ES.js +7 -5
- package/dist/i18n/es-ES.properties +11 -5
- package/dist/i18n/fi-FI.js +7 -5
- package/dist/i18n/fi-FI.properties +11 -5
- package/dist/i18n/fr-CA.js +7 -5
- package/dist/i18n/fr-CA.properties +11 -5
- package/dist/i18n/fr-FR.js +7 -5
- package/dist/i18n/fr-FR.properties +11 -5
- package/dist/i18n/hi-IN.js +7 -5
- package/dist/i18n/hi-IN.properties +11 -5
- package/dist/i18n/it-IT.js +7 -5
- package/dist/i18n/it-IT.properties +11 -5
- package/dist/i18n/ja-JP.js +7 -5
- package/dist/i18n/ja-JP.properties +11 -5
- package/dist/i18n/json/src/lib/components/answer/messages.json +1 -1
- package/dist/i18n/ko-KR.js +7 -5
- package/dist/i18n/ko-KR.properties +11 -5
- package/dist/i18n/nb-NO.js +7 -5
- package/dist/i18n/nb-NO.properties +11 -5
- package/dist/i18n/nl-NL.js +7 -5
- package/dist/i18n/nl-NL.properties +11 -5
- package/dist/i18n/pl-PL.js +7 -5
- package/dist/i18n/pl-PL.properties +11 -5
- package/dist/i18n/pt-BR.js +7 -5
- package/dist/i18n/pt-BR.properties +11 -5
- package/dist/i18n/ru-RU.js +7 -5
- package/dist/i18n/ru-RU.properties +11 -5
- package/dist/i18n/sv-SE.js +7 -5
- package/dist/i18n/sv-SE.properties +11 -5
- package/dist/i18n/tr-TR.js +7 -5
- package/dist/i18n/tr-TR.properties +11 -5
- package/dist/i18n/zh-CN.js +7 -5
- package/dist/i18n/zh-CN.properties +11 -5
- package/dist/i18n/zh-TW.js +7 -5
- package/dist/i18n/zh-TW.properties +11 -5
- package/dist/styles/answer.css +1 -1
- package/dist/styles/embed-the-answer-button.css +1 -0
- package/dist/types/lib/components/answer/answer.d.ts +3 -1
- package/dist/types/lib/components/answer/embed-the-answer-button.d.ts +11 -0
- package/dist/types/lib/components/answer/messages.d.ts +10 -0
- package/dist/types/lib/components/chat/chat.d.ts +1 -1
- package/dist/types/lib/components/sidebar/content.d.ts +2 -0
- package/dist/types/lib/components/sidebar/sidebar.d.ts +2 -1
- package/dist/types/lib/stories/shared.d.ts +9 -0
- package/dist/types/lib/types.d.ts +10 -0
- package/package.json +4 -4
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Text as
|
|
2
|
-
import { ArrowsExpand as
|
|
3
|
-
import { useAgents as
|
|
1
|
+
import { Text as X, Tooltip as Z, IconButton as ee } from "@box/blueprint-web";
|
|
2
|
+
import { ArrowsExpand as te } from "@box/blueprint-web-assets/icons/Fill";
|
|
3
|
+
import { useAgents as ne, BoxAiAgentSelectorWithApi as oe } from "@box/box-ai-agent-selector";
|
|
4
4
|
import y from "clsx";
|
|
5
5
|
import F from "lodash/isEqual";
|
|
6
6
|
import * as u from "react";
|
|
7
|
-
import { useIntl as
|
|
8
|
-
import { BoxAiContentAnswers as
|
|
9
|
-
import { withApiWrapper as
|
|
10
|
-
import { ORIGIN_BOXAI_SIDEBAR as
|
|
11
|
-
import { mark as
|
|
12
|
-
import { C as
|
|
13
|
-
import { IntelligenceModal as
|
|
14
|
-
import { IntelligenceSidebarContext as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
7
|
+
import { useIntl as se } from "react-intl";
|
|
8
|
+
import { BoxAiContentAnswers as ae } from "../../box-ai-content-answers.js";
|
|
9
|
+
import { withApiWrapper as ie } from "../api-wrapper/api-wrapper.js";
|
|
10
|
+
import { ORIGIN_BOXAI_SIDEBAR as re, EVENT_JS_READY as ce } from "../common/constants.js";
|
|
11
|
+
import { mark as de } from "../common/performance.js";
|
|
12
|
+
import { C as le } from "../../../../chunks/clear-conversation-button.js";
|
|
13
|
+
import { IntelligenceModal as be } from "../modal/modal.js";
|
|
14
|
+
import { IntelligenceSidebarContext as Se } from "./context.js";
|
|
15
|
+
import x from "./messages.js";
|
|
16
|
+
import ue from "./title.js";
|
|
17
17
|
import { jsxs as A, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
18
|
-
import '../../../../styles/content.css';const
|
|
19
|
-
bcsSidebarBase:
|
|
20
|
-
bcsContent:
|
|
21
|
-
bcsBoxAISidebar:
|
|
22
|
-
bcsContentHeader:
|
|
23
|
-
bcsTitle:
|
|
24
|
-
bcsScrollContent:
|
|
25
|
-
withModalOpen:
|
|
26
|
-
bcsBoxAISidebarAgentSelector:
|
|
27
|
-
bcsBoxAISidebarAgentSelectorContainer:
|
|
18
|
+
import '../../../../styles/content.css';const Ae = "_bcsSidebarBase_gfv6u_2", ge = "_bcsContent_gfv6u_2", pe = "_bcsBoxAISidebar_gfv6u_2", he = "_bcsContentHeader_gfv6u_6", me = "_bcsTitle_gfv6u_15", fe = "_bcsScrollContent_gfv6u_22", _e = "_withModalOpen_gfv6u_32", Ie = "_bcsBoxAISidebarAgentSelector_gfv6u_35", Ce = "_bcsBoxAISidebarAgentSelectorContainer_gfv6u_39", xe = "_bcsBoxAISidebarChatActions_gfv6u_43", Be = "_bcsBoxAISidebarContent_gfv6u_47", ve = "_bcsBoxAISidebarExpand_gfv6u_50", we = "_bcsBoxAISidebarTitlePart_gfv6u_53", Te = "_sidebarChip_gfv6u_77", Ee = "_bcsContentSubheader_gfv6u_90", Ne = "_bcsScrollContentWrapper_gfv6u_99", Pe = "_withSubheader_gfv6u_104", Le = "_expanded_gfv6u_107", t = {
|
|
19
|
+
bcsSidebarBase: Ae,
|
|
20
|
+
bcsContent: ge,
|
|
21
|
+
bcsBoxAISidebar: pe,
|
|
22
|
+
bcsContentHeader: he,
|
|
23
|
+
bcsTitle: me,
|
|
24
|
+
bcsScrollContent: fe,
|
|
25
|
+
withModalOpen: _e,
|
|
26
|
+
bcsBoxAISidebarAgentSelector: Ie,
|
|
27
|
+
bcsBoxAISidebarAgentSelectorContainer: Ce,
|
|
28
28
|
bcsBoxAISidebarChatActions: xe,
|
|
29
|
-
bcsBoxAISidebarContent:
|
|
30
|
-
bcsBoxAISidebarExpand:
|
|
31
|
-
bcsBoxAISidebarTitlePart:
|
|
32
|
-
sidebarChip:
|
|
33
|
-
bcsContentSubheader:
|
|
34
|
-
bcsScrollContentWrapper:
|
|
35
|
-
withSubheader:
|
|
36
|
-
expanded:
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
const
|
|
29
|
+
bcsBoxAISidebarContent: Be,
|
|
30
|
+
bcsBoxAISidebarExpand: ve,
|
|
31
|
+
bcsBoxAISidebarTitlePart: we,
|
|
32
|
+
sidebarChip: Te,
|
|
33
|
+
bcsContentSubheader: Ee,
|
|
34
|
+
bcsScrollContentWrapper: Ne,
|
|
35
|
+
withSubheader: Pe,
|
|
36
|
+
expanded: Le
|
|
37
|
+
}, Me = `${re}_${ce}`;
|
|
38
|
+
de(Me);
|
|
39
|
+
const Oe = ({
|
|
40
40
|
actions: B,
|
|
41
41
|
children: i,
|
|
42
42
|
className: n,
|
|
@@ -56,7 +56,7 @@ const Me = ({
|
|
|
56
56
|
...d,
|
|
57
57
|
children: [/* @__PURE__ */ A("div", {
|
|
58
58
|
className: t.bcsContentHeader,
|
|
59
|
-
children: [r && /* @__PURE__ */ e(
|
|
59
|
+
children: [r && /* @__PURE__ */ e(X, {
|
|
60
60
|
as: "h3",
|
|
61
61
|
className: t.bcsTitle,
|
|
62
62
|
children: r
|
|
@@ -73,7 +73,7 @@ const Me = ({
|
|
|
73
73
|
})]
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function Re(B) {
|
|
77
77
|
const {
|
|
78
78
|
createSession: i,
|
|
79
79
|
encodedSession: n,
|
|
@@ -88,43 +88,44 @@ function Oe(B) {
|
|
|
88
88
|
shouldShowLandingPage: N = !0,
|
|
89
89
|
sendQuestion: m,
|
|
90
90
|
stopQuestion: v,
|
|
91
|
+
embedTheAnswerButtonConfig: H,
|
|
91
92
|
...P
|
|
92
93
|
} = B, {
|
|
93
94
|
formatMessage: f
|
|
94
|
-
} =
|
|
95
|
+
} = se(), L = u.useRef(!1), [w, M] = u.useState(!1), {
|
|
95
96
|
cache: s,
|
|
96
97
|
contentName: O,
|
|
97
|
-
elementId:
|
|
98
|
-
fileExtension:
|
|
98
|
+
elementId: V,
|
|
99
|
+
fileExtension: Q,
|
|
99
100
|
isFeedbackEnabled: R,
|
|
100
101
|
isFeedbackFormEnabled: k,
|
|
101
102
|
isStopResponseEnabled: q,
|
|
102
103
|
items: T,
|
|
103
|
-
itemSize:
|
|
104
|
+
itemSize: D,
|
|
104
105
|
onFeedbackFormSubmit: U,
|
|
105
106
|
onUserInteraction: W,
|
|
106
|
-
onSelectedAgentCallback:
|
|
107
|
+
onSelectedAgentCallback: j,
|
|
107
108
|
recordAction: S,
|
|
108
109
|
setCacheValue: _,
|
|
109
110
|
shouldPreinitSession: I
|
|
110
|
-
} = u.useContext(
|
|
111
|
-
agents:
|
|
112
|
-
requestState:
|
|
111
|
+
} = u.useContext(Se), {
|
|
112
|
+
agents: z,
|
|
113
|
+
requestState: J,
|
|
113
114
|
selectedAgent: E
|
|
114
|
-
} =
|
|
115
|
+
} = ne(), {
|
|
115
116
|
questions: a
|
|
116
117
|
} = s;
|
|
117
118
|
s.shouldShowLandingPage !== N && _("shouldShowLandingPage", N), s.encodedSession !== n && _("encodedSession", n), F(s.questions, h) || _("questions", h), F(s.agents.selectedAgent, E) || _("agents", {
|
|
118
|
-
agents:
|
|
119
|
-
requestState:
|
|
119
|
+
agents: z,
|
|
120
|
+
requestState: J,
|
|
120
121
|
selectedAgent: E
|
|
121
122
|
});
|
|
122
|
-
const
|
|
123
|
+
const C = (o = !1) => {
|
|
123
124
|
!I && !n && !b && i && i(!0, !1), o && W && W();
|
|
124
|
-
}, J = () => {
|
|
125
|
-
M(!1);
|
|
126
125
|
}, Y = () => {
|
|
127
|
-
|
|
126
|
+
M(!1);
|
|
127
|
+
}, G = () => {
|
|
128
|
+
C(), M(!0);
|
|
128
129
|
};
|
|
129
130
|
u.useEffect(() => (I && !n && i && i(!0, !0), n && a.length > 0 && a[a.length - 1].isCompleted === !1 && m({
|
|
130
131
|
prompt: a[a.length - 1].prompt
|
|
@@ -145,19 +146,19 @@ function Oe(B) {
|
|
|
145
146
|
const o = a[a.length - 1];
|
|
146
147
|
!I && !L.current && n && (o != null && o.isLoading) && (m(o, E, !1), L.current = !0);
|
|
147
148
|
}, [n]);
|
|
148
|
-
const
|
|
149
|
+
const K = () => /* @__PURE__ */ A("div", {
|
|
149
150
|
className: t.bcsBoxAISidebarTitlePart,
|
|
150
|
-
children: [/* @__PURE__ */ e(
|
|
151
|
+
children: [/* @__PURE__ */ e(ue, {
|
|
151
152
|
isAIStudioAgentSelectorEnabled: d
|
|
152
153
|
}), d && /* @__PURE__ */ e("div", {
|
|
153
154
|
className: t.bcsBoxAISidebarAgentSelector,
|
|
154
|
-
children: /* @__PURE__ */ e(
|
|
155
|
+
children: /* @__PURE__ */ e(oe, {
|
|
155
156
|
disabled: r,
|
|
156
157
|
fetcher: g,
|
|
157
158
|
hostAppName: c,
|
|
158
|
-
onAgentsListOpen:
|
|
159
|
+
onAgentsListOpen: C,
|
|
159
160
|
onSelectAgent: p,
|
|
160
|
-
onSelectedAgentCallback:
|
|
161
|
+
onSelectedAgentCallback: j,
|
|
161
162
|
recordAction: S,
|
|
162
163
|
shouldHideAgentSelectorOnLoad: !0,
|
|
163
164
|
useAgentLocalStorage: !0,
|
|
@@ -166,21 +167,21 @@ function Oe(B) {
|
|
|
166
167
|
})]
|
|
167
168
|
});
|
|
168
169
|
return /* @__PURE__ */ A($, {
|
|
169
|
-
children: [/* @__PURE__ */ e(
|
|
170
|
+
children: [/* @__PURE__ */ e(Oe, {
|
|
170
171
|
actions: /* @__PURE__ */ A($, {
|
|
171
|
-
children: [
|
|
172
|
+
children: [K(), /* @__PURE__ */ e(le, {
|
|
172
173
|
hasRequestInProgress: r,
|
|
173
174
|
onClick: l
|
|
174
|
-
}), /* @__PURE__ */ e(
|
|
175
|
-
content: f(
|
|
175
|
+
}), /* @__PURE__ */ e(Z, {
|
|
176
|
+
content: f(x.sidebarBoxAISwitchToModalView),
|
|
176
177
|
"data-testid": "content-answers-open-modal-tooltip",
|
|
177
178
|
variant: "standard",
|
|
178
|
-
children: /* @__PURE__ */ e(
|
|
179
|
-
"aria-label": f(
|
|
179
|
+
children: /* @__PURE__ */ e(ee, {
|
|
180
|
+
"aria-label": f(x.sidebarBoxAISwitchToModalView),
|
|
180
181
|
className: t.bcsBoxAISidebarExpand,
|
|
181
182
|
"data-target-id": "IconButton-expandBoxAISidebar",
|
|
182
|
-
icon:
|
|
183
|
-
onClick:
|
|
183
|
+
icon: te,
|
|
184
|
+
onClick: G,
|
|
184
185
|
size: "small"
|
|
185
186
|
})
|
|
186
187
|
})]
|
|
@@ -188,14 +189,15 @@ function Oe(B) {
|
|
|
188
189
|
className: y(t.bcsBoxAISidebar, {
|
|
189
190
|
[t.withModalOpen]: w
|
|
190
191
|
}),
|
|
191
|
-
elementId:
|
|
192
|
+
elementId: V,
|
|
192
193
|
sidebarView: "box-ai",
|
|
193
194
|
children: /* @__PURE__ */ e("div", {
|
|
194
195
|
className: t.bcsBoxAISidebarContent,
|
|
195
|
-
children: /* @__PURE__ */ e(
|
|
196
|
+
children: /* @__PURE__ */ e(ae, {
|
|
196
197
|
className: t.bcsBoxAISidebarContentAnswers,
|
|
197
198
|
contentName: O,
|
|
198
|
-
contentType: f(
|
|
199
|
+
contentType: f(x.sidebarBoxAIContent),
|
|
200
|
+
embedTheAnswerButtonConfig: H,
|
|
199
201
|
hostAppName: c,
|
|
200
202
|
isAIStudioAgentSelectorEnabled: d,
|
|
201
203
|
isFeedbackEnabled: R,
|
|
@@ -203,7 +205,7 @@ function Oe(B) {
|
|
|
203
205
|
isStopResponseEnabled: q,
|
|
204
206
|
items: T,
|
|
205
207
|
onFeedbackFormSubmit: U,
|
|
206
|
-
onUserIntentToUseAI:
|
|
208
|
+
onUserIntentToUseAI: C,
|
|
207
209
|
questions: h,
|
|
208
210
|
recordAction: S,
|
|
209
211
|
shouldShowLandingPage: s.shouldShowLandingPage,
|
|
@@ -214,10 +216,10 @@ function Oe(B) {
|
|
|
214
216
|
...P
|
|
215
217
|
})
|
|
216
218
|
})
|
|
217
|
-
}), /* @__PURE__ */ e(
|
|
219
|
+
}), /* @__PURE__ */ e(be, {
|
|
218
220
|
contentName: O,
|
|
219
|
-
contentType: f(
|
|
220
|
-
extension:
|
|
221
|
+
contentType: f(x.sidebarBoxAIContent),
|
|
222
|
+
extension: Q,
|
|
221
223
|
getAIStudioAgents: g,
|
|
222
224
|
hasRequestInProgress: r,
|
|
223
225
|
hostAppName: c,
|
|
@@ -226,12 +228,12 @@ function Oe(B) {
|
|
|
226
228
|
isFeedbackFormEnabled: k,
|
|
227
229
|
isStopResponseEnabled: q,
|
|
228
230
|
items: T,
|
|
229
|
-
itemSize:
|
|
231
|
+
itemSize: D,
|
|
230
232
|
onClearAction: l,
|
|
231
233
|
onFeedbackFormSubmit: U,
|
|
232
|
-
onOpenChange:
|
|
234
|
+
onOpenChange: Y,
|
|
233
235
|
onSelectAgent: p,
|
|
234
|
-
onUserIntentToUseAI:
|
|
236
|
+
onUserIntentToUseAI: C,
|
|
235
237
|
open: w,
|
|
236
238
|
questions: h,
|
|
237
239
|
recordAction: w ? S : void 0,
|
|
@@ -246,7 +248,7 @@ function Oe(B) {
|
|
|
246
248
|
})]
|
|
247
249
|
});
|
|
248
250
|
}
|
|
249
|
-
const
|
|
251
|
+
const Xe = ie(Re);
|
|
250
252
|
export {
|
|
251
|
-
|
|
253
|
+
Xe as default
|
|
252
254
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { AgentsProvider as
|
|
1
|
+
import { AgentsProvider as U } from "@box/box-ai-agent-selector";
|
|
2
2
|
import * as F from "react";
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import { SPREADSHEET_FILE_EXTENSIONS as
|
|
5
|
-
import
|
|
6
|
-
import { IntelligenceSidebarContext as
|
|
3
|
+
import { useIntl as V } from "react-intl";
|
|
4
|
+
import { SPREADSHEET_FILE_EXTENSIONS as X, INTELLIGENT_QUERY_COMPATIBLE_SPREADSHEET_EXTENSIONS as j } from "../common/constants.js";
|
|
5
|
+
import G from "./content.js";
|
|
6
|
+
import { IntelligenceSidebarContext as W } from "./context.js";
|
|
7
7
|
import g from "./messages.js";
|
|
8
8
|
import { jsx as m } from "react/jsx-runtime";
|
|
9
|
-
const
|
|
10
|
-
var
|
|
9
|
+
const te = (L) => {
|
|
10
|
+
var P;
|
|
11
11
|
const {
|
|
12
12
|
cache: e,
|
|
13
13
|
contentName: S,
|
|
14
14
|
elementId: f,
|
|
15
15
|
fileExtension: t,
|
|
16
|
-
fileID:
|
|
16
|
+
fileID: T,
|
|
17
17
|
getSuggestedQuestions: h,
|
|
18
|
-
isIntelligentQueryMode:
|
|
18
|
+
isIntelligentQueryMode: M,
|
|
19
19
|
isFeedbackEnabled: p,
|
|
20
20
|
isFeedbackFormEnabled: E,
|
|
21
21
|
isStopResponseEnabled: o = !1,
|
|
@@ -30,15 +30,16 @@ const se = (L) => {
|
|
|
30
30
|
shouldPreinitSession: r = !0,
|
|
31
31
|
setHasQuestions: l,
|
|
32
32
|
promptButtonClickHandler: H,
|
|
33
|
-
|
|
33
|
+
embedTheAnswerButtonConfig: _,
|
|
34
|
+
...v
|
|
34
35
|
} = L, {
|
|
35
36
|
questions: s,
|
|
36
|
-
agents:
|
|
37
|
+
agents: x
|
|
37
38
|
} = e, {
|
|
38
39
|
selectedAgent: a
|
|
39
|
-
} =
|
|
40
|
+
} = x, {
|
|
40
41
|
formatMessage: u
|
|
41
|
-
} =
|
|
42
|
+
} = V(), R = F.useMemo(() => ({
|
|
42
43
|
cache: e,
|
|
43
44
|
contentName: S,
|
|
44
45
|
elementId: f,
|
|
@@ -54,48 +55,49 @@ const se = (L) => {
|
|
|
54
55
|
recordAction: C,
|
|
55
56
|
setCacheValue: i,
|
|
56
57
|
shouldPreinitSession: r
|
|
57
|
-
}), [e, S, f, t, p, E, o, n, Q, I, b, N, C, i, r]),
|
|
58
|
+
}), [e, S, f, t, p, E, o, n, Q, I, b, N, C, i, r]), w = s.length > 0;
|
|
58
59
|
F.useEffect(() => {
|
|
59
|
-
l && l(
|
|
60
|
-
}, [
|
|
61
|
-
let
|
|
62
|
-
s.length > 0 && !s[s.length - 1].isCompleted && (
|
|
63
|
-
const
|
|
64
|
-
let
|
|
65
|
-
|
|
66
|
-
const
|
|
60
|
+
l && l(w);
|
|
61
|
+
}, [w, l]);
|
|
62
|
+
let d = s;
|
|
63
|
+
s.length > 0 && !s[s.length - 1].isCompleted && (d = d.slice(0, -1));
|
|
64
|
+
const y = X.includes(t), D = j.includes(t);
|
|
65
|
+
let c = "";
|
|
66
|
+
M && D ? c = u(g.welcomeMessageIntelligentQueryNotice) : y && (c = u(g.welcomeMessageSpreadsheetNotice));
|
|
67
|
+
const A = (a == null ? void 0 : a.suggestedQuestions) !== null, O = (z) => {
|
|
67
68
|
i("suggestedQuestions", z);
|
|
68
|
-
},
|
|
69
|
+
}, B = typeof h == "function" ? [] : k, q = ((P = e.suggestedQuestions) == null ? void 0 : P.length) > 0 && !A ? e.suggestedQuestions : B;
|
|
69
70
|
return (
|
|
70
71
|
// IntelligenceSidebarContent is using withApiWrapper that is not passing all provided props,
|
|
71
72
|
// that's why we need to use provider to pass other props
|
|
72
|
-
/* @__PURE__ */ m(
|
|
73
|
+
/* @__PURE__ */ m(U, {
|
|
73
74
|
value: e.agents,
|
|
74
|
-
children: /* @__PURE__ */ m(
|
|
75
|
-
value:
|
|
76
|
-
children: /* @__PURE__ */ m(
|
|
77
|
-
cachedSuggestedQuestions:
|
|
75
|
+
children: /* @__PURE__ */ m(W.Provider, {
|
|
76
|
+
value: R,
|
|
77
|
+
children: /* @__PURE__ */ m(G, {
|
|
78
|
+
cachedSuggestedQuestions: A ? [] : e.suggestedQuestions,
|
|
79
|
+
embedTheAnswerButtonConfig: _,
|
|
78
80
|
getSuggestedQuestions: h,
|
|
79
81
|
isOpen: !0,
|
|
80
82
|
isStopResponseEnabled: o,
|
|
81
|
-
itemID:
|
|
83
|
+
itemID: T,
|
|
82
84
|
items: n,
|
|
83
|
-
onSuggestedQuestionsFetched:
|
|
85
|
+
onSuggestedQuestionsFetched: O,
|
|
84
86
|
promptButtonClickHandler: H,
|
|
85
|
-
restoredQuestions:
|
|
87
|
+
restoredQuestions: d,
|
|
86
88
|
restoredSession: e.encodedSession,
|
|
87
89
|
restoredShouldShowLandingPage: e.shouldShowLandingPage,
|
|
88
90
|
shouldPreinitSession: r,
|
|
89
91
|
suggestedQuestions: q,
|
|
90
|
-
warningNotice:
|
|
92
|
+
warningNotice: c,
|
|
91
93
|
warningNoticeAriaLabel: u(g.welcomeMessageSpreadsheetNoticeAriaLabel),
|
|
92
|
-
...
|
|
94
|
+
...v
|
|
93
95
|
})
|
|
94
96
|
})
|
|
95
97
|
})
|
|
96
98
|
);
|
|
97
99
|
};
|
|
98
100
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
te as IntelligenceSidebar,
|
|
102
|
+
te as default
|
|
101
103
|
};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"boxAI.contentAnswers.addToNote": "Add to Note",
|
|
3
|
+
"boxAI.contentAnswers.addedToNote": "Added",
|
|
2
4
|
"boxAI.contentAnswers.analyzingRequest": "Analyzing your request",
|
|
3
5
|
"boxAI.contentAnswers.ariaTypeSuccessIconLabel": "সাফল্য",
|
|
4
6
|
"boxAI.contentAnswers.ask": "জিজ্ঞাসা করুন",
|
|
@@ -75,11 +77,11 @@ export default {
|
|
|
75
77
|
"boxAI.popup.closeButtonText": "বন্ধ করুন",
|
|
76
78
|
"boxAI.textInputWithCopyButton.copyButtonSuccessText": "অনুলিপি হয়েছে",
|
|
77
79
|
"boxAi.contentAnswers.closeItemList": "ফাইলের আইটেমের তালিকা বন্ধ করুন",
|
|
78
|
-
"boxui.contentAnswers.collapseThinkingContent": "
|
|
79
|
-
"boxui.contentAnswers.expandThinkingContent": "
|
|
80
|
-
"boxui.contentAnswers.thinkingCompleted": "
|
|
81
|
-
"boxui.contentAnswers.thinkingContentScrollableArea": "
|
|
82
|
-
"boxui.contentAnswers.thinkingInProgress": "
|
|
80
|
+
"boxui.contentAnswers.collapseThinkingContent": "বন্ধ করুন",
|
|
81
|
+
"boxui.contentAnswers.expandThinkingContent": "বিস্তার করুন",
|
|
82
|
+
"boxui.contentAnswers.thinkingCompleted": "চিন্তা করা সম্পূর্ণ হয়েছে",
|
|
83
|
+
"boxui.contentAnswers.thinkingContentScrollableArea": "কন্টেন্ট স্ক্রোলযোগ্য এলাকা চিন্তা করা হচ্ছে",
|
|
84
|
+
"boxui.contentAnswers.thinkingInProgress": "চিন্তা করা হচ্ছে…",
|
|
83
85
|
"boxui.contentAnswers.welcomeMessageIntelligentQueryNotice": "আপনি নিজের স্প্রেডশিটে সরল ও জটিল প্রশ্ন, উভয়ই Box AI-কে জিজ্ঞাসা করতে পারেন: মোট হিসাব, গড়পড়তা, উন্নত তুলনা, ট্রেন্ড বিশ্লেষণ এবং আরও অনেক কিছু। আজই এটি ব্যবহার করে করুন!",
|
|
84
86
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNotice": "বেশি টেক্সট থাকা ফাইলে স্প্রেডশীট সাপোর্ট সবচেয়ে ভালো কাজ করে",
|
|
85
87
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel": "স্প্রেডশীট সাপোর্ট বিজ্ঞপ্তি ব্যানার",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Add to note button aria label and tooltip text
|
|
2
|
+
boxAI.contentAnswers.addToNote = Add to Note
|
|
3
|
+
# Added to note confirmation text
|
|
4
|
+
boxAI.contentAnswers.addedToNote = Added
|
|
5
|
+
# Text shown next to the loading indicator while analyzing the request
|
|
6
|
+
boxAI.contentAnswers.analyzingRequest = Analyzing your request
|
|
1
7
|
# Notification banner success icon aria label
|
|
2
8
|
boxAI.contentAnswers.ariaTypeSuccessIconLabel = সাফল্য
|
|
3
9
|
# Content Answers submit input button text
|
|
@@ -149,15 +155,15 @@ boxAI.textInputWithCopyButton.copyButtonSuccessText = অনুলিপি হ
|
|
|
149
155
|
# Label that shows up while someone hover on close button of files dropdown
|
|
150
156
|
boxAi.contentAnswers.closeItemList = ফাইলের আইটেমের তালিকা বন্ধ করুন
|
|
151
157
|
# Tooltip label for button to collapse thinking content
|
|
152
|
-
boxui.contentAnswers.collapseThinkingContent =
|
|
158
|
+
boxui.contentAnswers.collapseThinkingContent = বন্ধ করুন
|
|
153
159
|
# Tooltip label for button to expand thinking content
|
|
154
|
-
boxui.contentAnswers.expandThinkingContent =
|
|
160
|
+
boxui.contentAnswers.expandThinkingContent = বিস্তার করুন
|
|
155
161
|
# Text shown when thinking is completed
|
|
156
|
-
boxui.contentAnswers.thinkingCompleted =
|
|
162
|
+
boxui.contentAnswers.thinkingCompleted = চিন্তা করা সম্পূর্ণ হয়েছে
|
|
157
163
|
# Aria label for the scrollable thinking content area
|
|
158
|
-
boxui.contentAnswers.thinkingContentScrollableArea =
|
|
164
|
+
boxui.contentAnswers.thinkingContentScrollableArea = কন্টেন্ট স্ক্রোলযোগ্য এলাকা চিন্তা করা হচ্ছে
|
|
159
165
|
# Text shown when thinking is in progress
|
|
160
|
-
boxui.contentAnswers.thinkingInProgress =
|
|
166
|
+
boxui.contentAnswers.thinkingInProgress = চিন্তা করা হচ্ছে…
|
|
161
167
|
# Content Answers welcome message spreadsheet supported by Intelligent Query notification
|
|
162
168
|
boxui.contentAnswers.welcomeMessageIntelligentQueryNotice = আপনি নিজের স্প্রেডশিটে সরল ও জটিল প্রশ্ন, উভয়ই Box AI-কে জিজ্ঞাসা করতে পারেন: মোট হিসাব, গড়পড়তা, উন্নত তুলনা, ট্রেন্ড বিশ্লেষণ এবং আরও অনেক কিছু। আজই এটি ব্যবহার করে করুন!
|
|
163
169
|
# Content Answers welcome message spreadsheet notification
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"boxAI.contentAnswers.addToNote": "Add to Note",
|
|
3
|
+
"boxAI.contentAnswers.addedToNote": "Added",
|
|
2
4
|
"boxAI.contentAnswers.analyzingRequest": "Analyzing your request",
|
|
3
5
|
"boxAI.contentAnswers.ariaTypeSuccessIconLabel": "udført",
|
|
4
6
|
"boxAI.contentAnswers.ask": "Spørg",
|
|
@@ -75,11 +77,11 @@ export default {
|
|
|
75
77
|
"boxAI.popup.closeButtonText": "Luk",
|
|
76
78
|
"boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopieret",
|
|
77
79
|
"boxAi.contentAnswers.closeItemList": "Luk listen over filelementer",
|
|
78
|
-
"boxui.contentAnswers.collapseThinkingContent": "
|
|
79
|
-
"boxui.contentAnswers.expandThinkingContent": "
|
|
80
|
-
"boxui.contentAnswers.thinkingCompleted": "
|
|
81
|
-
"boxui.contentAnswers.thinkingContentScrollableArea": "
|
|
82
|
-
"boxui.contentAnswers.thinkingInProgress": "
|
|
80
|
+
"boxui.contentAnswers.collapseThinkingContent": "Skjul",
|
|
81
|
+
"boxui.contentAnswers.expandThinkingContent": "Udvid",
|
|
82
|
+
"boxui.contentAnswers.thinkingCompleted": "Færdig med at tænke",
|
|
83
|
+
"boxui.contentAnswers.thinkingContentScrollableArea": "Rullbart område til tænkt indhold",
|
|
84
|
+
"boxui.contentAnswers.thinkingInProgress": "Tænker…",
|
|
83
85
|
"boxui.contentAnswers.welcomeMessageIntelligentQueryNotice": "Du kan stille Box AI både enkle og komplekse spørgsmål i dit regneark: totaltællinger, gennemsnit, avancerede sammenligninger, trendanalyser og så videre. Prøv det i dag!",
|
|
84
86
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNotice": "Regnearkssupport virker bedst med de teksttunge filer",
|
|
85
87
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel": "banner til meddelelse om regnearksstøtte",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Add to note button aria label and tooltip text
|
|
2
|
+
boxAI.contentAnswers.addToNote = Add to Note
|
|
3
|
+
# Added to note confirmation text
|
|
4
|
+
boxAI.contentAnswers.addedToNote = Added
|
|
5
|
+
# Text shown next to the loading indicator while analyzing the request
|
|
6
|
+
boxAI.contentAnswers.analyzingRequest = Analyzing your request
|
|
1
7
|
# Notification banner success icon aria label
|
|
2
8
|
boxAI.contentAnswers.ariaTypeSuccessIconLabel = udført
|
|
3
9
|
# Content Answers submit input button text
|
|
@@ -149,15 +155,15 @@ boxAI.textInputWithCopyButton.copyButtonSuccessText = Kopieret
|
|
|
149
155
|
# Label that shows up while someone hover on close button of files dropdown
|
|
150
156
|
boxAi.contentAnswers.closeItemList = Luk listen over filelementer
|
|
151
157
|
# Tooltip label for button to collapse thinking content
|
|
152
|
-
boxui.contentAnswers.collapseThinkingContent =
|
|
158
|
+
boxui.contentAnswers.collapseThinkingContent = Skjul
|
|
153
159
|
# Tooltip label for button to expand thinking content
|
|
154
|
-
boxui.contentAnswers.expandThinkingContent =
|
|
160
|
+
boxui.contentAnswers.expandThinkingContent = Udvid
|
|
155
161
|
# Text shown when thinking is completed
|
|
156
|
-
boxui.contentAnswers.thinkingCompleted =
|
|
162
|
+
boxui.contentAnswers.thinkingCompleted = Færdig med at tænke
|
|
157
163
|
# Aria label for the scrollable thinking content area
|
|
158
|
-
boxui.contentAnswers.thinkingContentScrollableArea =
|
|
164
|
+
boxui.contentAnswers.thinkingContentScrollableArea = Rullbart område til tænkt indhold
|
|
159
165
|
# Text shown when thinking is in progress
|
|
160
|
-
boxui.contentAnswers.thinkingInProgress =
|
|
166
|
+
boxui.contentAnswers.thinkingInProgress = Tænker…
|
|
161
167
|
# Content Answers welcome message spreadsheet supported by Intelligent Query notification
|
|
162
168
|
boxui.contentAnswers.welcomeMessageIntelligentQueryNotice = Du kan stille Box AI både enkle og komplekse spørgsmål i dit regneark: totaltællinger, gennemsnit, avancerede sammenligninger, trendanalyser og så videre. Prøv det i dag!
|
|
163
169
|
# Content Answers welcome message spreadsheet notification
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"boxAI.contentAnswers.addToNote": "Add to Note",
|
|
3
|
+
"boxAI.contentAnswers.addedToNote": "Added",
|
|
2
4
|
"boxAI.contentAnswers.analyzingRequest": "Analyzing your request",
|
|
3
5
|
"boxAI.contentAnswers.ariaTypeSuccessIconLabel": "Erfolg",
|
|
4
6
|
"boxAI.contentAnswers.ask": "Fragen",
|
|
@@ -75,11 +77,11 @@ export default {
|
|
|
75
77
|
"boxAI.popup.closeButtonText": "Schließen",
|
|
76
78
|
"boxAI.textInputWithCopyButton.copyButtonSuccessText": "Kopiert",
|
|
77
79
|
"boxAi.contentAnswers.closeItemList": "Liste der Dateielemente schließen",
|
|
78
|
-
"boxui.contentAnswers.collapseThinkingContent": "
|
|
79
|
-
"boxui.contentAnswers.expandThinkingContent": "
|
|
80
|
-
"boxui.contentAnswers.thinkingCompleted": "
|
|
81
|
-
"boxui.contentAnswers.thinkingContentScrollableArea": "
|
|
82
|
-
"boxui.contentAnswers.thinkingInProgress": "
|
|
80
|
+
"boxui.contentAnswers.collapseThinkingContent": "Reduzieren",
|
|
81
|
+
"boxui.contentAnswers.expandThinkingContent": "Erweitern",
|
|
82
|
+
"boxui.contentAnswers.thinkingCompleted": "Denkvorgang abgeschlossen",
|
|
83
|
+
"boxui.contentAnswers.thinkingContentScrollableArea": "Scrollbarer Bereich für Thinking-Content",
|
|
84
|
+
"boxui.contentAnswers.thinkingInProgress": "Denken…",
|
|
83
85
|
"boxui.contentAnswers.welcomeMessageIntelligentQueryNotice": "Sie können Box AI in Ihrer Tabelle sowohl einfache als auch komplexe Fragen stellen: Gesamtzahlen, Durchschnittswerte, erweiterte Vergleiche, Trendanalysen usw. Probieren Sie es aus!",
|
|
84
86
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNotice": "Der Tabellen-Support funktioniert am besten für Dateien mit hoher Textdichte",
|
|
85
87
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel": "Support-Benachrichtigungsbanner für eine Tabellenkalkulation",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Add to note button aria label and tooltip text
|
|
2
|
+
boxAI.contentAnswers.addToNote = Add to Note
|
|
3
|
+
# Added to note confirmation text
|
|
4
|
+
boxAI.contentAnswers.addedToNote = Added
|
|
5
|
+
# Text shown next to the loading indicator while analyzing the request
|
|
6
|
+
boxAI.contentAnswers.analyzingRequest = Analyzing your request
|
|
1
7
|
# Notification banner success icon aria label
|
|
2
8
|
boxAI.contentAnswers.ariaTypeSuccessIconLabel = Erfolg
|
|
3
9
|
# Content Answers submit input button text
|
|
@@ -149,15 +155,15 @@ boxAI.textInputWithCopyButton.copyButtonSuccessText = Kopiert
|
|
|
149
155
|
# Label that shows up while someone hover on close button of files dropdown
|
|
150
156
|
boxAi.contentAnswers.closeItemList = Liste der Dateielemente schließen
|
|
151
157
|
# Tooltip label for button to collapse thinking content
|
|
152
|
-
boxui.contentAnswers.collapseThinkingContent =
|
|
158
|
+
boxui.contentAnswers.collapseThinkingContent = Reduzieren
|
|
153
159
|
# Tooltip label for button to expand thinking content
|
|
154
|
-
boxui.contentAnswers.expandThinkingContent =
|
|
160
|
+
boxui.contentAnswers.expandThinkingContent = Erweitern
|
|
155
161
|
# Text shown when thinking is completed
|
|
156
|
-
boxui.contentAnswers.thinkingCompleted =
|
|
162
|
+
boxui.contentAnswers.thinkingCompleted = Denkvorgang abgeschlossen
|
|
157
163
|
# Aria label for the scrollable thinking content area
|
|
158
|
-
boxui.contentAnswers.thinkingContentScrollableArea =
|
|
164
|
+
boxui.contentAnswers.thinkingContentScrollableArea = Scrollbarer Bereich für Thinking-Content
|
|
159
165
|
# Text shown when thinking is in progress
|
|
160
|
-
boxui.contentAnswers.thinkingInProgress =
|
|
166
|
+
boxui.contentAnswers.thinkingInProgress = Denken…
|
|
161
167
|
# Content Answers welcome message spreadsheet supported by Intelligent Query notification
|
|
162
168
|
boxui.contentAnswers.welcomeMessageIntelligentQueryNotice = Sie können Box AI in Ihrer Tabelle sowohl einfache als auch komplexe Fragen stellen: Gesamtzahlen, Durchschnittswerte, erweiterte Vergleiche, Trendanalysen usw. Probieren Sie es aus!
|
|
163
169
|
# Content Answers welcome message spreadsheet notification
|
package/dist/i18n/en-AU.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"boxAI.contentAnswers.addToNote": "Add to Note",
|
|
3
|
+
"boxAI.contentAnswers.addedToNote": "Added",
|
|
2
4
|
"boxAI.contentAnswers.analyzingRequest": "Analyzing your request",
|
|
3
5
|
"boxAI.contentAnswers.ariaTypeSuccessIconLabel": "success",
|
|
4
6
|
"boxAI.contentAnswers.ask": "Ask",
|
|
@@ -79,7 +81,7 @@ export default {
|
|
|
79
81
|
"boxui.contentAnswers.expandThinkingContent": "Expand",
|
|
80
82
|
"boxui.contentAnswers.thinkingCompleted": "Thinking Complete",
|
|
81
83
|
"boxui.contentAnswers.thinkingContentScrollableArea": "Thinking content scrollable area",
|
|
82
|
-
"boxui.contentAnswers.thinkingInProgress": "Thinking
|
|
84
|
+
"boxui.contentAnswers.thinkingInProgress": "Thinking…",
|
|
83
85
|
"boxui.contentAnswers.welcomeMessageIntelligentQueryNotice": "You can ask Box AI both simple and complex questions in your spreadsheet: total counts, averages, advanced comparisons, trend analyses and so on. Try it out today!",
|
|
84
86
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNotice": "Spreadsheet support works best for text dense files",
|
|
85
87
|
"boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel": "spreadsheet support notification banner",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Add to note button aria label and tooltip text
|
|
2
|
+
boxAI.contentAnswers.addToNote = Add to Note
|
|
3
|
+
# Added to note confirmation text
|
|
4
|
+
boxAI.contentAnswers.addedToNote = Added
|
|
5
|
+
# Text shown next to the loading indicator while analyzing the request
|
|
6
|
+
boxAI.contentAnswers.analyzingRequest = Analyzing your request
|
|
1
7
|
# Notification banner success icon aria label
|
|
2
8
|
boxAI.contentAnswers.ariaTypeSuccessIconLabel = success
|
|
3
9
|
# Content Answers submit input button text
|
|
@@ -157,7 +163,7 @@ boxui.contentAnswers.thinkingCompleted = Thinking Complete
|
|
|
157
163
|
# Aria label for the scrollable thinking content area
|
|
158
164
|
boxui.contentAnswers.thinkingContentScrollableArea = Thinking content scrollable area
|
|
159
165
|
# Text shown when thinking is in progress
|
|
160
|
-
boxui.contentAnswers.thinkingInProgress = Thinking
|
|
166
|
+
boxui.contentAnswers.thinkingInProgress = Thinking…
|
|
161
167
|
# Content Answers welcome message spreadsheet supported by Intelligent Query notification
|
|
162
168
|
boxui.contentAnswers.welcomeMessageIntelligentQueryNotice = You can ask Box AI both simple and complex questions in your spreadsheet: total counts, averages, advanced comparisons, trend analyses and so on. Try it out today!
|
|
163
169
|
# Content Answers welcome message spreadsheet notification
|
package/dist/i18n/en-CA.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"boxAI.contentAnswers.addToNote": "Add to Note",
|
|
3
|
+
"boxAI.contentAnswers.addedToNote": "Added",
|
|
2
4
|
"boxAI.contentAnswers.analyzingRequest": "Analyzing your request",
|
|
3
5
|
"boxAI.contentAnswers.ariaTypeSuccessIconLabel": "success",
|
|
4
6
|
"boxAI.contentAnswers.ask": "Ask",
|
|
@@ -44,8 +46,8 @@ export default {
|
|
|
44
46
|
"boxAI.contentAnswers.intelligenceUnaivalableHeading": "Box AI is unavailable",
|
|
45
47
|
"boxAI.contentAnswers.intelligenceUnaivalableTryAgain": "Please try again later.",
|
|
46
48
|
"boxAI.contentAnswers.intelligenceUnavailableDescription": "The Box AI service is not responding.",
|
|
47
|
-
"boxAI.contentAnswers.largeFileSizeWarningDescription": "The
|
|
48
|
-
"boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire
|
|
49
|
+
"boxAI.contentAnswers.largeFileSizeWarningDescription": "The content of {numberOfItems, plural, =1 {this file} other {one or more files}} is too large for Box AI to process.",
|
|
50
|
+
"boxAI.contentAnswers.largeFileSizeWarningTitle": "Box AI won’t be able to access the entire content, which might affect its answers.",
|
|
49
51
|
"boxAI.contentAnswers.loading": "Loading...",
|
|
50
52
|
"boxAI.contentAnswers.loadingAnswer": "Loading Answer...",
|
|
51
53
|
"boxAI.contentAnswers.loadingSuggestedQuestions": "Loading suggestions",
|