@box/box-ai-content-answers 0.151.0 → 0.153.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 +94 -89
- package/dist/esm/lib/components/answer/feedback-tooltip.js +89 -77
- package/dist/esm/lib/components/answer/messages.js +4 -0
- package/dist/esm/lib/components/answer/thumb-buttons.js +79 -73
- package/dist/esm/lib/components/chat/chat.js +99 -96
- package/dist/i18n/bn-IN.js +1 -0
- package/dist/i18n/bn-IN.properties +2 -0
- package/dist/i18n/da-DK.js +1 -0
- package/dist/i18n/da-DK.properties +2 -0
- package/dist/i18n/de-DE.js +1 -0
- package/dist/i18n/de-DE.properties +2 -0
- package/dist/i18n/en-AU.js +1 -0
- package/dist/i18n/en-AU.properties +2 -0
- package/dist/i18n/en-CA.js +1 -0
- package/dist/i18n/en-CA.properties +2 -0
- package/dist/i18n/en-GB.js +1 -0
- package/dist/i18n/en-GB.properties +2 -0
- package/dist/i18n/en-US.js +1 -0
- package/dist/i18n/en-US.properties +2 -0
- package/dist/i18n/en-x-pseudo.js +80 -79
- package/dist/i18n/en-x-pseudo.properties +80 -78
- package/dist/i18n/es-419.js +1 -0
- package/dist/i18n/es-419.properties +2 -0
- package/dist/i18n/es-ES.js +1 -0
- package/dist/i18n/es-ES.properties +2 -0
- package/dist/i18n/fi-FI.js +1 -0
- package/dist/i18n/fi-FI.properties +2 -0
- package/dist/i18n/fr-CA.js +1 -0
- package/dist/i18n/fr-CA.properties +2 -0
- package/dist/i18n/fr-FR.js +1 -0
- package/dist/i18n/fr-FR.properties +2 -0
- package/dist/i18n/hi-IN.js +1 -0
- package/dist/i18n/hi-IN.properties +2 -0
- package/dist/i18n/it-IT.js +1 -0
- package/dist/i18n/it-IT.properties +2 -0
- package/dist/i18n/ja-JP.js +1 -0
- package/dist/i18n/ja-JP.properties +2 -0
- package/dist/i18n/json/src/lib/components/answer/messages.json +1 -1
- package/dist/i18n/ko-KR.js +1 -0
- package/dist/i18n/ko-KR.properties +2 -0
- package/dist/i18n/nb-NO.js +1 -0
- package/dist/i18n/nb-NO.properties +2 -0
- package/dist/i18n/nl-NL.js +1 -0
- package/dist/i18n/nl-NL.properties +2 -0
- package/dist/i18n/pl-PL.js +1 -0
- package/dist/i18n/pl-PL.properties +2 -0
- package/dist/i18n/pt-BR.js +1 -0
- package/dist/i18n/pt-BR.properties +2 -0
- package/dist/i18n/ru-RU.js +1 -0
- package/dist/i18n/ru-RU.properties +2 -0
- package/dist/i18n/sv-SE.js +1 -0
- package/dist/i18n/sv-SE.properties +2 -0
- package/dist/i18n/tr-TR.js +1 -0
- package/dist/i18n/tr-TR.properties +2 -0
- package/dist/i18n/zh-CN.js +1 -0
- package/dist/i18n/zh-CN.properties +2 -0
- package/dist/i18n/zh-TW.js +1 -0
- package/dist/i18n/zh-TW.properties +2 -0
- package/dist/styles/feedback-tooltip.css +1 -1
- package/dist/types/lib/components/answer/answer.d.ts +4 -0
- package/dist/types/lib/components/answer/feedback-tooltip.d.ts +2 -1
- package/dist/types/lib/components/answer/messages.d.ts +5 -0
- package/dist/types/lib/components/answer/thumb-buttons.d.ts +4 -1
- package/dist/types/lib/components/chat/chat.d.ts +1 -1
- package/dist/types/lib/types.d.ts +6 -0
- package/package.json +3 -3
|
@@ -1,107 +1,113 @@
|
|
|
1
|
-
import { useNotification as
|
|
2
|
-
import { ThumbUp as
|
|
3
|
-
import { ThumbUp as
|
|
4
|
-
import { useAgents as
|
|
1
|
+
import { useNotification as W, Tooltip as w, IconButton as y } from "@box/blueprint-web";
|
|
2
|
+
import { ThumbUp as $, ThumbDown as j } from "@box/blueprint-web-assets/icons/Fill";
|
|
3
|
+
import { ThumbUp as z, ThumbDown as J } from "@box/blueprint-web-assets/icons/Line";
|
|
4
|
+
import { useAgents as K } from "@box/box-ai-agent-selector";
|
|
5
5
|
import b from "react";
|
|
6
|
-
import { useIntl as
|
|
7
|
-
import { LOGGER_BASE_CONFIG as
|
|
8
|
-
import { FeedbackTooltip as
|
|
9
|
-
import
|
|
10
|
-
import { focusInput as
|
|
11
|
-
import
|
|
12
|
-
import { jsxs as
|
|
13
|
-
import '../../../../styles/thumb-buttons.css';const
|
|
14
|
-
thumbDown:
|
|
6
|
+
import { useIntl as Q } from "react-intl";
|
|
7
|
+
import { LOGGER_BASE_CONFIG as V, LOGGER_ACTION_PROGRAMMATIC as X } from "../common/constants.js";
|
|
8
|
+
import { FeedbackTooltip as Y } from "./feedback-tooltip.js";
|
|
9
|
+
import x from "../../messages.js";
|
|
10
|
+
import { focusInput as Z } from "../common/focusInputUtils.js";
|
|
11
|
+
import f from "./messages.js";
|
|
12
|
+
import { jsxs as g, Fragment as O, jsx as i } from "react/jsx-runtime";
|
|
13
|
+
import '../../../../styles/thumb-buttons.css';const C = "_thumbDown_1axcd_1", q = {
|
|
14
|
+
thumbDown: C
|
|
15
15
|
}, u = {
|
|
16
16
|
THUMB_UP: "positive",
|
|
17
17
|
THUMB_DOWN: "negative",
|
|
18
18
|
NONE: "none"
|
|
19
|
-
},
|
|
20
|
-
feedbackValue:
|
|
19
|
+
}, et = ({
|
|
20
|
+
feedbackValue: H,
|
|
21
21
|
hostAppName: n,
|
|
22
|
-
isFeedbackFormEnabled:
|
|
23
|
-
isFeedbackTooltipOpen:
|
|
24
|
-
items:
|
|
25
|
-
onFeedbackFormSubmit:
|
|
22
|
+
isFeedbackFormEnabled: P = !1,
|
|
23
|
+
isFeedbackTooltipOpen: G = !1,
|
|
24
|
+
items: _,
|
|
25
|
+
onFeedbackFormSubmit: U,
|
|
26
26
|
onFeedbackTooltipOpenChange: s,
|
|
27
|
-
|
|
27
|
+
prompt: D,
|
|
28
|
+
promptType: B,
|
|
28
29
|
questionId: a,
|
|
29
|
-
recordAction:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
recordAction: o,
|
|
31
|
+
response: T,
|
|
32
|
+
setAnswerFeedback: e,
|
|
33
|
+
shouldFeedbackFormIncludeFeedbackText: p = !1,
|
|
34
|
+
shouldFeedbackIncludePromptData: M = !1,
|
|
35
|
+
variant: L
|
|
33
36
|
}) => {
|
|
34
37
|
const {
|
|
35
38
|
formatMessage: m
|
|
36
|
-
} =
|
|
37
|
-
addNotification:
|
|
38
|
-
} =
|
|
39
|
-
selectedAgent:
|
|
40
|
-
} =
|
|
41
|
-
|
|
42
|
-
...
|
|
43
|
-
action:
|
|
39
|
+
} = Q(), {
|
|
40
|
+
addNotification: R
|
|
41
|
+
} = W(), {
|
|
42
|
+
selectedAgent: N
|
|
43
|
+
} = K(), r = H, h = b.useMemo(() => _.filter((t) => t.status === "supported").map((t) => t.fileType), [_]), c = b.useCallback((t) => {
|
|
44
|
+
r !== t && (e == null || e(a, t), o == null || o({
|
|
45
|
+
...V,
|
|
46
|
+
action: X,
|
|
44
47
|
target: "answer_feedback",
|
|
45
|
-
component:
|
|
48
|
+
component: L,
|
|
46
49
|
data: {
|
|
47
50
|
feedback_value: t,
|
|
48
|
-
file_types:
|
|
51
|
+
file_types: h,
|
|
49
52
|
feature: n,
|
|
50
|
-
prompt_type:
|
|
53
|
+
prompt_type: B
|
|
51
54
|
}
|
|
52
|
-
}),
|
|
53
|
-
}, [n,
|
|
55
|
+
}), Z());
|
|
56
|
+
}, [n, o, r, L, h, a, e, B]), S = ({
|
|
54
57
|
feedback: t,
|
|
55
|
-
|
|
58
|
+
feedbackPromptShareConsent: E,
|
|
59
|
+
issueType: I
|
|
56
60
|
}) => {
|
|
57
|
-
if (s == null || s(!1, a), !
|
|
61
|
+
if (s == null || s(!1, a), !U)
|
|
58
62
|
return;
|
|
59
|
-
const
|
|
60
|
-
fileTypes:
|
|
63
|
+
const l = {
|
|
64
|
+
fileTypes: h,
|
|
65
|
+
hasPromptData: !1,
|
|
61
66
|
hostApp: n,
|
|
62
|
-
issueType:
|
|
67
|
+
issueType: I,
|
|
63
68
|
timestamp: Date.now(),
|
|
64
69
|
questionId: a
|
|
65
70
|
};
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
p && (l.feedback = t, l.hasFeedback = !!t), M && E && D && T && (l.hasPromptData = !0, l.prompt = D, l.response = T), N && (l.selectedAgentName = N.name), U(l, () => {
|
|
72
|
+
R({
|
|
68
73
|
sensitivity: "foreground",
|
|
69
|
-
styledText: m(
|
|
74
|
+
styledText: m(f.feedbackTooltipConfirmation),
|
|
70
75
|
variant: "success",
|
|
71
|
-
typeIconAriaLabel: m(
|
|
72
|
-
closeButtonAriaLabel: m(
|
|
76
|
+
typeIconAriaLabel: m(x.ariaTypeSuccessIconLabel),
|
|
77
|
+
closeButtonAriaLabel: m(x.closeButtonText)
|
|
73
78
|
});
|
|
74
79
|
});
|
|
75
80
|
}, d = (t) => {
|
|
76
81
|
t || s == null || s(!1, a);
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
}, [
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
children: [/* @__PURE__ */
|
|
82
|
-
content: m(
|
|
83
|
-
children: /* @__PURE__ */
|
|
84
|
-
"aria-label": m(
|
|
85
|
-
disabled:
|
|
86
|
-
icon:
|
|
87
|
-
onClick:
|
|
82
|
+
}, v = b.useCallback(() => c(u.THUMB_UP), [c]), A = b.useCallback(() => {
|
|
83
|
+
c(u.THUMB_DOWN), s == null || s(!0, a);
|
|
84
|
+
}, [c, s, a]);
|
|
85
|
+
return /* @__PURE__ */ g(O, {
|
|
86
|
+
children: [/* @__PURE__ */ i(w, {
|
|
87
|
+
content: m(f.thumbsUpAriaLabel),
|
|
88
|
+
children: /* @__PURE__ */ i(y, {
|
|
89
|
+
"aria-label": m(f.thumbsUpAriaLabel),
|
|
90
|
+
disabled: r === u.THUMB_DOWN,
|
|
91
|
+
icon: r === u.THUMB_UP ? $ : z,
|
|
92
|
+
onClick: v,
|
|
88
93
|
size: "x-small",
|
|
89
94
|
"data-target-id": "IconButton-thumbsUpAriaLabel"
|
|
90
95
|
})
|
|
91
|
-
}), /* @__PURE__ */
|
|
92
|
-
isOpen:
|
|
96
|
+
}), /* @__PURE__ */ i(Y, {
|
|
97
|
+
isOpen: G,
|
|
93
98
|
onOpenChange: d,
|
|
94
|
-
onSubmit:
|
|
95
|
-
shouldIncludeFeedbackText:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
onSubmit: S,
|
|
100
|
+
shouldIncludeFeedbackText: p,
|
|
101
|
+
shouldIncludePromptShareConsent: M,
|
|
102
|
+
shouldShow: P,
|
|
103
|
+
children: /* @__PURE__ */ i(w, {
|
|
104
|
+
content: m(f.thumbsDownAriaLabel),
|
|
105
|
+
children: /* @__PURE__ */ i(y, {
|
|
106
|
+
"aria-label": m(f.thumbsDownAriaLabel),
|
|
107
|
+
className: q.thumbDown,
|
|
108
|
+
disabled: r === u.THUMB_UP,
|
|
109
|
+
icon: r === u.THUMB_DOWN ? j : J,
|
|
110
|
+
onClick: A,
|
|
105
111
|
size: "x-small",
|
|
106
112
|
"data-target-id": "IconButton-thumbsDownAriaLabel"
|
|
107
113
|
})
|
|
@@ -110,6 +116,6 @@ import '../../../../styles/thumb-buttons.css';const Y = "_thumbDown_1axcd_1", Z
|
|
|
110
116
|
});
|
|
111
117
|
};
|
|
112
118
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
et as ThumbButtons,
|
|
120
|
+
et as default
|
|
115
121
|
};
|
|
@@ -1,139 +1,142 @@
|
|
|
1
|
-
import { Text as
|
|
2
|
-
import { BoxAiLogo as
|
|
3
|
-
import { Size10 as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { useIntl as
|
|
7
|
-
import { Answer as
|
|
8
|
-
import { MediaContainer as
|
|
9
|
-
import { Question as
|
|
10
|
-
import { SuggestedQuestions as
|
|
11
|
-
import
|
|
12
|
-
import { WelcomeMessage as
|
|
13
|
-
import { jsx as e, jsxs as
|
|
14
|
-
import '../../../../styles/chat.css';const
|
|
15
|
-
chat:
|
|
16
|
-
clearChatText:
|
|
17
|
-
landingPage:
|
|
18
|
-
askQuestionText:
|
|
19
|
-
iconAvatar:
|
|
20
|
-
sidebar:
|
|
21
|
-
},
|
|
22
|
-
askSuggestedQuestion:
|
|
1
|
+
import { Text as V } from "@box/blueprint-web";
|
|
2
|
+
import { BoxAiLogo as X } from "@box/blueprint-web-assets/icons/Logo";
|
|
3
|
+
import { Size10 as _ } from "@box/blueprint-web-assets/tokens/tokens";
|
|
4
|
+
import Y from "clsx";
|
|
5
|
+
import * as Z from "react";
|
|
6
|
+
import { useIntl as $ } from "react-intl";
|
|
7
|
+
import { Answer as L } from "../answer/answer.js";
|
|
8
|
+
import { MediaContainer as P } from "../common/media-container.js";
|
|
9
|
+
import { Question as S } from "../question/question.js";
|
|
10
|
+
import { SuggestedQuestions as ee } from "../suggested-questions/suggested-questions.js";
|
|
11
|
+
import te from "../welcome-message/messages.js";
|
|
12
|
+
import { WelcomeMessage as oe } from "../welcome-message/welcome-message.js";
|
|
13
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
14
|
+
import '../../../../styles/chat.css';const ae = "_chat_77vqr_1", re = "_clearChatText_77vqr_1", se = "_landingPage_77vqr_7", ie = "_askQuestionText_77vqr_15", ne = "_iconAvatar_77vqr_23", ce = "_sidebar_77vqr_39", a = {
|
|
15
|
+
chat: ae,
|
|
16
|
+
clearChatText: re,
|
|
17
|
+
landingPage: se,
|
|
18
|
+
askQuestionText: ie,
|
|
19
|
+
iconAvatar: ne,
|
|
20
|
+
sidebar: ce
|
|
21
|
+
}, ge = ({
|
|
22
|
+
askSuggestedQuestion: h,
|
|
23
23
|
contentType: n,
|
|
24
|
-
hasCustomSuggestedQuestions:
|
|
25
|
-
hasRequestInProgress:
|
|
26
|
-
isCitationsEnabled:
|
|
27
|
-
isFeedbackEnabled:
|
|
28
|
-
isFeedbackFormEnabled:
|
|
29
|
-
isInlineCitationsEnabled:
|
|
30
|
-
isMarkdownEnabled:
|
|
31
|
-
isSessionLoading:
|
|
32
|
-
onCitationClick:
|
|
33
|
-
onAnswerCopy:
|
|
34
|
-
onFeedbackFormSubmit:
|
|
35
|
-
onSuggestedQuestionInteraction:
|
|
36
|
-
questions:
|
|
24
|
+
hasCustomSuggestedQuestions: x,
|
|
25
|
+
hasRequestInProgress: T,
|
|
26
|
+
isCitationsEnabled: b,
|
|
27
|
+
isFeedbackEnabled: v,
|
|
28
|
+
isFeedbackFormEnabled: C,
|
|
29
|
+
isInlineCitationsEnabled: g = !1,
|
|
30
|
+
isMarkdownEnabled: k,
|
|
31
|
+
isSessionLoading: q = !1,
|
|
32
|
+
onCitationClick: u,
|
|
33
|
+
onAnswerCopy: A,
|
|
34
|
+
onFeedbackFormSubmit: F,
|
|
35
|
+
onSuggestedQuestionInteraction: I,
|
|
36
|
+
questions: N,
|
|
37
37
|
recordAction: c,
|
|
38
|
-
setAnswerFeedback:
|
|
38
|
+
setAnswerFeedback: O,
|
|
39
39
|
setAskSuggestedQuestion: l,
|
|
40
40
|
suggestedQuestions: m,
|
|
41
|
-
suggestedQuestionsRequestState:
|
|
42
|
-
shouldFeedbackFormIncludeFeedbackText:
|
|
41
|
+
suggestedQuestionsRequestState: Q,
|
|
42
|
+
shouldFeedbackFormIncludeFeedbackText: j,
|
|
43
|
+
shouldFeedbackIncludePromptData: y,
|
|
43
44
|
shouldShowLandingPage: o,
|
|
44
|
-
useAnimation:
|
|
45
|
+
useAnimation: M,
|
|
45
46
|
variant: t = "modal",
|
|
46
|
-
hostAppName:
|
|
47
|
-
isReactMarkdownEnabled:
|
|
48
|
-
welcomeMessageClearText:
|
|
49
|
-
...
|
|
47
|
+
hostAppName: w = "",
|
|
48
|
+
isReactMarkdownEnabled: z,
|
|
49
|
+
welcomeMessageClearText: B,
|
|
50
|
+
...d
|
|
50
51
|
}) => {
|
|
51
52
|
const {
|
|
52
|
-
formatMessage:
|
|
53
|
-
} =
|
|
54
|
-
|
|
53
|
+
formatMessage: R
|
|
54
|
+
} = $(), [W, D] = Z.useState(null), E = (r, s) => {
|
|
55
|
+
D(r ? s : null);
|
|
55
56
|
};
|
|
56
57
|
return /* @__PURE__ */ e("div", {
|
|
57
58
|
className: a.chat,
|
|
58
59
|
"data-testid": "content-answers-chat",
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
-
className:
|
|
60
|
+
children: /* @__PURE__ */ f("div", {
|
|
61
|
+
className: Y({
|
|
61
62
|
[a.landingPage]: o,
|
|
62
63
|
[a.sidebar]: t === "sidebar"
|
|
63
64
|
}),
|
|
64
|
-
children: [o && /* @__PURE__ */ e(
|
|
65
|
+
children: [o && /* @__PURE__ */ e(P.Figure, {
|
|
65
66
|
variant: t,
|
|
66
67
|
children: /* @__PURE__ */ e("div", {
|
|
67
68
|
className: a.iconAvatar,
|
|
68
|
-
children: /* @__PURE__ */ e(
|
|
69
|
-
height:
|
|
69
|
+
children: /* @__PURE__ */ e(X, {
|
|
70
|
+
height: _,
|
|
70
71
|
role: "presentation",
|
|
71
|
-
width:
|
|
72
|
+
width: _
|
|
72
73
|
})
|
|
73
74
|
})
|
|
74
|
-
}), /* @__PURE__ */ e(
|
|
75
|
+
}), /* @__PURE__ */ e(oe, {
|
|
75
76
|
contentType: "",
|
|
76
77
|
shouldShowLandingPage: o,
|
|
77
|
-
...
|
|
78
|
+
...d,
|
|
78
79
|
variant: t
|
|
79
|
-
}), o && m !== void 0 && l !== void 0 && /* @__PURE__ */ e(
|
|
80
|
-
askSuggestedQuestion:
|
|
81
|
-
hasCustomSuggestedQuestions:
|
|
82
|
-
isLoading:
|
|
83
|
-
onSuggestedQuestionInteraction:
|
|
80
|
+
}), o && m !== void 0 && l !== void 0 && /* @__PURE__ */ e(ee, {
|
|
81
|
+
askSuggestedQuestion: h,
|
|
82
|
+
hasCustomSuggestedQuestions: x,
|
|
83
|
+
isLoading: T,
|
|
84
|
+
onSuggestedQuestionInteraction: I,
|
|
84
85
|
recordAction: c,
|
|
85
86
|
setAskSuggestedQuestion: l,
|
|
86
87
|
suggestedQuestions: m,
|
|
87
|
-
suggestedQuestionsRequestState:
|
|
88
|
+
suggestedQuestionsRequestState: Q,
|
|
88
89
|
variant: t
|
|
89
|
-
}), /* @__PURE__ */ e(
|
|
90
|
+
}), /* @__PURE__ */ e(V, {
|
|
90
91
|
as: "p",
|
|
91
92
|
className: a.clearChatText,
|
|
92
|
-
children:
|
|
93
|
+
children: B || R(te.welcomeClearChatText, {
|
|
93
94
|
type: n
|
|
94
95
|
})
|
|
95
96
|
}), !o && /* @__PURE__ */ e("ul", {
|
|
96
|
-
children:
|
|
97
|
+
children: N.map(({
|
|
97
98
|
answer: r,
|
|
98
99
|
citations: s,
|
|
99
100
|
id: i,
|
|
100
|
-
isCompleted:
|
|
101
|
-
isLoading:
|
|
102
|
-
error:
|
|
103
|
-
prompt:
|
|
104
|
-
promptType:
|
|
105
|
-
feedbackValue:
|
|
106
|
-
}) => /* @__PURE__ */
|
|
107
|
-
children: [/* @__PURE__ */ e(
|
|
108
|
-
prompt:
|
|
101
|
+
isCompleted: G,
|
|
102
|
+
isLoading: H,
|
|
103
|
+
error: J,
|
|
104
|
+
prompt: p,
|
|
105
|
+
promptType: K,
|
|
106
|
+
feedbackValue: U
|
|
107
|
+
}) => /* @__PURE__ */ f("li", {
|
|
108
|
+
children: [/* @__PURE__ */ e(S, {
|
|
109
|
+
prompt: p,
|
|
109
110
|
variant: t
|
|
110
|
-
}), /* @__PURE__ */ e(
|
|
111
|
+
}), /* @__PURE__ */ e(L, {
|
|
111
112
|
answer: r,
|
|
112
113
|
citations: s,
|
|
113
114
|
contentType: n,
|
|
114
|
-
error:
|
|
115
|
-
feedbackValue:
|
|
116
|
-
hostAppName:
|
|
117
|
-
isCitationsEnabled:
|
|
118
|
-
isCompleted:
|
|
119
|
-
isFeedbackEnabled:
|
|
120
|
-
isFeedbackFormEnabled:
|
|
121
|
-
isFeedbackTooltipOpen:
|
|
122
|
-
isInlineCitationsEnabled:
|
|
123
|
-
isLoading:
|
|
124
|
-
isMarkdownEnabled:
|
|
125
|
-
isReactMarkdownEnabled:
|
|
126
|
-
items:
|
|
127
|
-
onAnswerCopy:
|
|
128
|
-
onCitationClick:
|
|
129
|
-
onFeedbackFormSubmit:
|
|
130
|
-
onFeedbackTooltipOpenChange:
|
|
131
|
-
|
|
115
|
+
error: J,
|
|
116
|
+
feedbackValue: U,
|
|
117
|
+
hostAppName: w,
|
|
118
|
+
isCitationsEnabled: b,
|
|
119
|
+
isCompleted: G,
|
|
120
|
+
isFeedbackEnabled: v,
|
|
121
|
+
isFeedbackFormEnabled: C,
|
|
122
|
+
isFeedbackTooltipOpen: W === i,
|
|
123
|
+
isInlineCitationsEnabled: g,
|
|
124
|
+
isLoading: H || q,
|
|
125
|
+
isMarkdownEnabled: k,
|
|
126
|
+
isReactMarkdownEnabled: z,
|
|
127
|
+
items: d.items,
|
|
128
|
+
onAnswerCopy: A,
|
|
129
|
+
onCitationClick: u,
|
|
130
|
+
onFeedbackFormSubmit: F,
|
|
131
|
+
onFeedbackTooltipOpenChange: E,
|
|
132
|
+
prompt: p,
|
|
133
|
+
promptType: K,
|
|
132
134
|
questionId: i,
|
|
133
135
|
recordAction: c,
|
|
134
|
-
setAnswerFeedback:
|
|
135
|
-
shouldFeedbackFormIncludeFeedbackText:
|
|
136
|
-
|
|
136
|
+
setAnswerFeedback: O,
|
|
137
|
+
shouldFeedbackFormIncludeFeedbackText: j,
|
|
138
|
+
shouldFeedbackIncludePromptData: y,
|
|
139
|
+
useAnimation: M,
|
|
137
140
|
variant: t
|
|
138
141
|
})]
|
|
139
142
|
}, i))
|
|
@@ -142,6 +145,6 @@ import '../../../../styles/chat.css';const oe = "_chat_77vqr_1", ae = "_clearCha
|
|
|
142
145
|
});
|
|
143
146
|
};
|
|
144
147
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
ge as Chat,
|
|
149
|
+
ge as default
|
|
147
150
|
};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "আমার অনুরোধ অনুসরণ করা হয়নি",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "অন্যান্য",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "আপনি কোন ধরণের সমস্যা প্রতিবেদন করতে চান?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "জমা দিন",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "আপনার প্রতিক্রিয়া শেয়ার করুন",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ এতে {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems,plural,=1{{firstItemName}}
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Box AI-এ ফিরে যান
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = বেছে নেওয়া এজেন্ট অনুপলভ্য। ডিফল্ট এজেন্টে স্যুইচ করা হচ্ছে।
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI-এর এই মুহূর্তে প্রতিক্রিয়া তৈরি করতে সমস্যা হচ্ছে। অনুগ্রহ করে আবার চেষ্টা করুন।
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Fulgte ikke min anmodning",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Andet/Andre",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Hvilken type problem vil du rapportere?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Send",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Del din feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ i {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems,plural,=1{{firstItemName}}
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Gå tilbage til Box AI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = Den valgte agent er ikke tilgængelig. Skifter til standardagenten.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI har problemer med at generere et svar lige nu. Prøv venligst igen.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Meiner Anfrage nicht gefolgt",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Sonstiges",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Welche Art von Problem möchten Sie melden?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Senden",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Teilen Sie Ihr Feedback mit.",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems,plural,=1{{firstItemName}}
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Zurück zu Box-KI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = Der ausgewählte Agent ist nicht verfügbar. Es wird zum Standardagenten gewechselt.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI hat gerade Probleme beim Generieren einer Antwort. Versuchen Sie es bitte noch einmal.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/en-AU.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Did not follow my request",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Other",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "What type of issue to you wish to report?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Submit",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Share your feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} one{{firstItemName}} other{these {files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems,plural,=1{{firstItemName}}
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Return to Box AI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = The selected agent is unavailable. Switching to the default agent.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI is having trouble generating a response right now. Please try again.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/en-CA.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Did not follow my request",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Other",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "What type of issue do you wish to report?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Submit",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Share your feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems, plural, =1 {{firstItemNam
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Return to Box AI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = The selected agent is unavailable. Switching to the default agent.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI is having trouble generating a response right now. Please try again.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/en-GB.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Did not follow my request",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Other",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "What type of issue to you wish to report?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Submit",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Share your feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} one{{firstItemName}} other{these {files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems,plural,=1{{firstItemName}}
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Return to Box AI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = The selected agent is unavailable. Switching to the default agent.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI is having trouble generating a response right now. Please try again.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Did not follow my request",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Other",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "What type of issue do you wish to report?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Submit",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Share your feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}",
|
|
@@ -58,6 +58,8 @@ boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2 = Did not follow my request
|
|
|
58
58
|
boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3 = Other
|
|
59
59
|
# Label for the feedback type radio group in the feedback tooltip
|
|
60
60
|
boxAI.contentAnswers.feedbackTooltipIssueTypeLabel = What type of issue do you wish to report?
|
|
61
|
+
# Label for checkbox to consent for prompt and answer sharing in the tooltip that asks the user to share feedback on the answer
|
|
62
|
+
boxAI.contentAnswers.feedbackTooltipPromptShareConsent = Share my prompt and response to help improve product quality.
|
|
61
63
|
# Submit button text for the feedback tooltip
|
|
62
64
|
boxAI.contentAnswers.feedbackTooltipSubmit = Submit
|
|
63
65
|
# Title of a tooltip that asks the user to share feedback on the answer
|