@box/box-ai-content-answers 1.48.11 → 1.48.12
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/chunks/answer-content.js +2 -2
- package/dist/chunks/answer.js +16 -16
- package/dist/chunks/chat.js +6 -6
- package/dist/chunks/content.js +6 -6
- package/dist/chunks/inline-error.js +3 -3
- package/dist/chunks/media-container.js +11 -11
- package/dist/chunks/question.js +3 -3
- package/dist/chunks/stopResponseButton.js +11 -11
- package/dist/chunks/suggested-questions.js +5 -5
- package/dist/chunks/suggestions.js +2 -2
- package/dist/chunks/warning-message.js +4 -4
- package/dist/styles/answer-content.css +1 -1
- package/dist/styles/answer.css +1 -1
- package/dist/styles/chat.css +1 -1
- package/dist/styles/content.css +1 -1
- package/dist/styles/inline-error.css +1 -1
- package/dist/styles/media-container.css +1 -1
- package/dist/styles/question.css +1 -1
- package/dist/styles/stopResponseButton.css +1 -1
- package/dist/styles/suggested-questions.css +1 -1
- package/dist/styles/suggestions.css +1 -1
- package/dist/styles/warning-message.css +1 -1
- package/package.json +10 -10
|
@@ -5,8 +5,8 @@ import r from "clsx";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
import '../styles/answer-content.css';var s = {
|
|
8
|
-
answerContent: "
|
|
9
|
-
answerMarkdown: "
|
|
8
|
+
answerContent: "_answerContent_1xpga_5",
|
|
9
|
+
answerMarkdown: "_answerMarkdown_1xpga_19"
|
|
10
10
|
}, c = ({ answer: c, items: l, isCompleted: u, isInlineCitationV2Enabled: d, isInlineCitationsEnabled: f, isMarkdownEnabled: p, isReactMarkdownEnabled: m = !1, className: h, variant: g = "modal", ..._ }) => {
|
|
11
11
|
let v = g === "sidebar", y = (r) => {
|
|
12
12
|
let i = t(r, {
|
package/dist/chunks/answer.js
CHANGED
|
@@ -16,22 +16,22 @@ import { Gray65 as h, Size4 as g } from "@box/blueprint-web-assets/tokens/tokens
|
|
|
16
16
|
import { AlertTriangle as _ } from "@box/blueprint-web-assets/icons/Line";
|
|
17
17
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
18
18
|
import '../styles/answer.css';var b = {
|
|
19
|
-
answer: "
|
|
20
|
-
loadingContainer: "
|
|
21
|
-
loadingText: "
|
|
22
|
-
fadeIn: "
|
|
23
|
-
alertIcon: "
|
|
24
|
-
error: "
|
|
25
|
-
footer: "
|
|
26
|
-
copyButtonContainer: "
|
|
27
|
-
feedbackButtonsContainer: "
|
|
28
|
-
shouldHaveMarginTop: "
|
|
29
|
-
shouldUseAnimation: "
|
|
30
|
-
shouldAnimateHeight: "
|
|
31
|
-
footerButtons: "
|
|
32
|
-
iconAvatar: "
|
|
33
|
-
embedTheAnswerButtonContainer: "
|
|
34
|
-
buttonsVisible: "
|
|
19
|
+
answer: "_answer_dqpxo_5",
|
|
20
|
+
loadingContainer: "_loadingContainer_dqpxo_9",
|
|
21
|
+
loadingText: "_loadingText_dqpxo_16",
|
|
22
|
+
fadeIn: "_fadeIn_dqpxo_1",
|
|
23
|
+
alertIcon: "_alertIcon_dqpxo_25",
|
|
24
|
+
error: "_error_dqpxo_28",
|
|
25
|
+
footer: "_footer_dqpxo_32",
|
|
26
|
+
copyButtonContainer: "_copyButtonContainer_dqpxo_38",
|
|
27
|
+
feedbackButtonsContainer: "_feedbackButtonsContainer_dqpxo_39",
|
|
28
|
+
shouldHaveMarginTop: "_shouldHaveMarginTop_dqpxo_43",
|
|
29
|
+
shouldUseAnimation: "_shouldUseAnimation_dqpxo_46",
|
|
30
|
+
shouldAnimateHeight: "_shouldAnimateHeight_dqpxo_50",
|
|
31
|
+
footerButtons: "_footerButtons_dqpxo_54",
|
|
32
|
+
iconAvatar: "_iconAvatar_dqpxo_60",
|
|
33
|
+
embedTheAnswerButtonContainer: "_embedTheAnswerButtonContainer_dqpxo_75",
|
|
34
|
+
buttonsVisible: "_buttonsVisible_dqpxo_83"
|
|
35
35
|
}, x = new Set([
|
|
36
36
|
e.RATE_LIMITING,
|
|
37
37
|
e.NO_CONTENT,
|
package/dist/chunks/chat.js
CHANGED
|
@@ -13,12 +13,12 @@ import { BoxAiLogo as d } from "@box/blueprint-web-assets/icons/Logo";
|
|
|
13
13
|
import { Size10 as f } from "@box/blueprint-web-assets/tokens/tokens";
|
|
14
14
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
15
15
|
import '../styles/chat.css';var h = {
|
|
16
|
-
chat: "
|
|
17
|
-
clearChatText: "
|
|
18
|
-
landingPage: "
|
|
19
|
-
askQuestionText: "
|
|
20
|
-
iconAvatar: "
|
|
21
|
-
sidebar: "
|
|
16
|
+
chat: "_chat_p3syw_5",
|
|
17
|
+
clearChatText: "_clearChatText_p3syw_5",
|
|
18
|
+
landingPage: "_landingPage_p3syw_11",
|
|
19
|
+
askQuestionText: "_askQuestionText_p3syw_19",
|
|
20
|
+
iconAvatar: "_iconAvatar_p3syw_27",
|
|
21
|
+
sidebar: "_sidebar_p3syw_45"
|
|
22
22
|
}, g = ({ askSuggestedQuestion: g, contentType: _, hasCustomSuggestedQuestions: v, hasRequestInProgress: y, isCitationsEnabled: b, isFeedbackEnabled: x, isFeedbackFormEnabled: S, isInlineCitationsEnabled: C = !1, isInlineCitationV2Enabled: w, isMarkdownEnabled: T, isSessionLoading: E = !1, onCitationClick: D, onAnswerCopy: O, embedTheAnswerButtonConfig: k, onFeedbackFormSubmit: A, onDropdownOpenChange: j, onSuggestedQuestionInteraction: M, questions: N, recordAction: P, setAnswerFeedback: F, setAskSuggestedQuestion: I, suggestedQuestions: L, suggestedQuestionsRequestState: R, shouldFeedbackFormIncludeFeedbackText: z, shouldFeedbackIncludePromptData: B, shouldShowLandingPage: V, useAnimation: H, variant: U = "modal", hostAppName: W = "", isReactMarkdownEnabled: G, welcomeMessageClearText: K, ...q }) => {
|
|
23
23
|
let { formatMessage: J } = u(), [Y, X] = c.useState(null), Z = (e, t) => {
|
|
24
24
|
X(e ? t : null);
|
package/dist/chunks/content.js
CHANGED
|
@@ -8,12 +8,12 @@ import { LoadingIndicator as o } from "@box/blueprint-web";
|
|
|
8
8
|
import { useIntl as s } from "react-intl";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import '../styles/content.css';var d = {
|
|
11
|
-
loadingIndicatorWrapper: "
|
|
12
|
-
content: "
|
|
13
|
-
sidebar: "
|
|
14
|
-
isLoading: "
|
|
15
|
-
messagesEnd: "
|
|
16
|
-
innerContent: "
|
|
11
|
+
loadingIndicatorWrapper: "_loadingIndicatorWrapper_1h3h1_5",
|
|
12
|
+
content: "_content_1h3h1_9",
|
|
13
|
+
sidebar: "_sidebar_1h3h1_16",
|
|
14
|
+
isLoading: "_isLoading_1h3h1_23",
|
|
15
|
+
messagesEnd: "_messagesEnd_1h3h1_27",
|
|
16
|
+
innerContent: "_innerContent_1h3h1_31"
|
|
17
17
|
}, f = ({ error: f, hasCustomSuggestedQuestions: p, hasRequestInProgress: m = !1, isErrorMessageShown: h = !1, isStreamingEnabled: g = !1, questions: _, recordAction: v, showLoadingIndicator: y = !1, suggestedQuestions: b, askSuggestedQuestion: x, setAskSuggestedQuestion: S, useAnimation: C, variant: w = "modal", hostAppName: T = "", ...E }) => {
|
|
18
18
|
let D = a.useRef(null), O = a.useRef(null), k = a.useRef(null), A = a.useRef(!0), [j, M] = a.useState(!1), { formatMessage: N } = s(), P = f === t.LARGE_FILE, F = a.useCallback((e) => {
|
|
19
19
|
k.current?.scrollIntoView && O.current && (!g || A.current) && k.current.scrollIntoView({
|
|
@@ -9,9 +9,9 @@ import { Size4 as s, TextTextDestructiveOnLight as c } from "@box/blueprint-web-
|
|
|
9
9
|
import { AlertTriangle as l } from "@box/blueprint-web-assets/icons/Line";
|
|
10
10
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
11
|
import '../styles/inline-error.css';var f = {
|
|
12
|
-
inlineError: "
|
|
13
|
-
text: "
|
|
14
|
-
icon: "
|
|
12
|
+
inlineError: "_inlineError_jakex_5",
|
|
13
|
+
text: "_text_jakex_8",
|
|
14
|
+
icon: "_icon_jakex_14"
|
|
15
15
|
}, p = ({ error: p, contentType: m, variant: h = "modal", recordAction: g }) => {
|
|
16
16
|
let _ = h === "sidebar", { formatMessage: v } = o();
|
|
17
17
|
i.useEffect(() => {
|
|
@@ -3,17 +3,17 @@ import "react";
|
|
|
3
3
|
import { Card as t } from "@box/blueprint-web";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import '../styles/media-container.css';var r = {
|
|
6
|
-
mediaContainer: "
|
|
7
|
-
figure: "
|
|
8
|
-
sidebar: "
|
|
9
|
-
"center-aligned": "_center-
|
|
10
|
-
"top-aligned": "_top-
|
|
11
|
-
welcomeMessage: "
|
|
12
|
-
contentCard: "
|
|
13
|
-
question: "
|
|
14
|
-
answer: "
|
|
15
|
-
body: "
|
|
16
|
-
error: "
|
|
6
|
+
mediaContainer: "_mediaContainer_buu9q_5",
|
|
7
|
+
figure: "_figure_buu9q_11",
|
|
8
|
+
sidebar: "_sidebar_buu9q_17",
|
|
9
|
+
"center-aligned": "_center-aligned_buu9q_20",
|
|
10
|
+
"top-aligned": "_top-aligned_buu9q_27",
|
|
11
|
+
welcomeMessage: "_welcomeMessage_buu9q_36",
|
|
12
|
+
contentCard: "_contentCard_buu9q_40",
|
|
13
|
+
question: "_question_buu9q_45",
|
|
14
|
+
answer: "_answer_buu9q_67",
|
|
15
|
+
body: "_body_buu9q_71",
|
|
16
|
+
error: "_error_buu9q_104"
|
|
17
17
|
}, i = ({ children: t, className: i, variant: a = "modal" }) => /* @__PURE__ */ n("div", {
|
|
18
18
|
className: e(r.mediaContainer, r[i], a === "sidebar" && r.sidebar),
|
|
19
19
|
"data-testid": "content-answers-grid-card",
|
package/dist/chunks/question.js
CHANGED
|
@@ -3,9 +3,9 @@ import t from "clsx";
|
|
|
3
3
|
import { Text as n } from "@box/blueprint-web";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import '../styles/question.css';var i = {
|
|
6
|
-
question: "
|
|
7
|
-
sidebar: "
|
|
8
|
-
text: "
|
|
6
|
+
question: "_question_1kbnc_5",
|
|
7
|
+
sidebar: "_sidebar_1kbnc_10",
|
|
8
|
+
text: "_text_1kbnc_13"
|
|
9
9
|
}, a = ({ prompt: a, variant: o = "modal" }) => {
|
|
10
10
|
let s = o === "sidebar", c = /* @__PURE__ */ r(e.Content, {
|
|
11
11
|
isUsedInsideSidebar: s,
|
|
@@ -6,17 +6,17 @@ import { useIntl as o } from "react-intl";
|
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
import { Stop as c } from "@box/blueprint-web-assets/icons/Fill";
|
|
8
8
|
import '../styles/stopResponseButton.css';var l = {
|
|
9
|
-
questionInput: "
|
|
10
|
-
questionInputWithOutPromptLibrary: "
|
|
11
|
-
avatar: "
|
|
12
|
-
inputAreaButton: "
|
|
13
|
-
square: "
|
|
14
|
-
textArea: "
|
|
15
|
-
error: "
|
|
16
|
-
sidebar: "
|
|
17
|
-
submitButtonTooltip: "
|
|
18
|
-
actionContainer: "
|
|
19
|
-
promptButton: "
|
|
9
|
+
questionInput: "_questionInput_olsh9_5",
|
|
10
|
+
questionInputWithOutPromptLibrary: "_questionInputWithOutPromptLibrary_olsh9_19",
|
|
11
|
+
avatar: "_avatar_olsh9_34",
|
|
12
|
+
inputAreaButton: "_inputAreaButton_olsh9_37",
|
|
13
|
+
square: "_square_olsh9_59",
|
|
14
|
+
textArea: "_textArea_olsh9_66",
|
|
15
|
+
error: "_error_olsh9_89",
|
|
16
|
+
sidebar: "_sidebar_olsh9_92",
|
|
17
|
+
submitButtonTooltip: "_submitButtonTooltip_olsh9_100",
|
|
18
|
+
actionContainer: "_actionContainer_olsh9_109",
|
|
19
|
+
promptButton: "_promptButton_olsh9_115"
|
|
20
20
|
};
|
|
21
21
|
function u({ recordAction: u, lastQuestion: d, onStopQuestion: f, size: p = "large" }) {
|
|
22
22
|
let m = o(), h = r.useCallback(() => {
|
|
@@ -10,11 +10,11 @@ import { Gray65 as l, Size4 as u } from "@box/blueprint-web-assets/tokens/tokens
|
|
|
10
10
|
import { AlertTriangle as d } from "@box/blueprint-web-assets/icons/Line";
|
|
11
11
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
12
12
|
import '../styles/suggested-questions.css';var m = {
|
|
13
|
-
wrapper: "
|
|
14
|
-
label: "
|
|
15
|
-
sidebar: "
|
|
16
|
-
loadingIndicator: "
|
|
17
|
-
alertIcon: "
|
|
13
|
+
wrapper: "_wrapper_x5onu_5",
|
|
14
|
+
label: "_label_x5onu_5",
|
|
15
|
+
sidebar: "_sidebar_x5onu_10",
|
|
16
|
+
loadingIndicator: "_loadingIndicator_x5onu_14",
|
|
17
|
+
alertIcon: "_alertIcon_x5onu_22"
|
|
18
18
|
}, h = ({ askSuggestedQuestion: h, hasCustomSuggestedQuestions: g, isLoading: _, onSuggestedQuestionInteraction: v, recordAction: y, setAskSuggestedQuestion: b, suggestedQuestions: x, suggestedQuestionsRequestState: S = e.SUCCESS, variant: C = "modal" }) => {
|
|
19
19
|
let w = C === "sidebar", { formatMessage: T } = c(), E = a.useCallback((e) => {
|
|
20
20
|
let { prompt: n, type: r } = e;
|
|
@@ -4,8 +4,8 @@ import { FilterChip as t } from "@box/blueprint-web";
|
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import r from "lodash/noop";
|
|
6
6
|
import '../styles/suggestions.css';var i = {
|
|
7
|
-
suggestions: "
|
|
8
|
-
suggestion: "
|
|
7
|
+
suggestions: "_suggestions_b5rc4_5",
|
|
8
|
+
suggestion: "_suggestion_b5rc4_5"
|
|
9
9
|
}, a = ({ askSuggestedQuestion: a, isLoading: o, onSuggestedQuestionClick: s, onSuggestedQuestionInteraction: c = r, suggestedQuestions: l, variant: u = "modal" }) => {
|
|
10
10
|
let d = a?.prompt;
|
|
11
11
|
return /* @__PURE__ */ n(t.Group, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InlineNotice as e, Text as t } from "@box/blueprint-web";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import '../styles/warning-message.css';var i = {
|
|
4
|
-
welcomeMessage: "
|
|
5
|
-
warnings: "
|
|
6
|
-
warningNotice: "
|
|
7
|
-
iconAvatar: "
|
|
4
|
+
welcomeMessage: "_welcomeMessage_8v9c7_5",
|
|
5
|
+
warnings: "_warnings_8v9c7_8",
|
|
6
|
+
warningNotice: "_warningNotice_8v9c7_13",
|
|
7
|
+
iconAvatar: "_iconAvatar_8v9c7_16"
|
|
8
8
|
}, a = ({ ariaLabel: a, title: o, description: s }) => /* @__PURE__ */ r(e, {
|
|
9
9
|
className: i.warningNotice,
|
|
10
10
|
variant: "warning",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._answerContent_1xpga_5{font-weight:var(--body-default-font-weight);font-size:var(--body-default-font-size);font-family:var(--body-default-font-family);line-height:var(--body-default-line-height);letter-spacing:var(--body-default-letter-spacing);text-transform:var(--body-default-text-case);-webkit-text-decoration:var(--body-default-text-decoration);text-decoration:var(--body-default-text-decoration);width:100%;font-size:.9375rem;line-height:1.5rem;overflow-x:auto}._answerContent_1xpga_5._answerMarkdown_1xpga_19{white-space:normal}._answerContent_1xpga_5._answerMarkdown_1xpga_19 p,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol,._answerContent_1xpga_5._answerMarkdown_1xpga_19 table,._answerContent_1xpga_5._answerMarkdown_1xpga_19 img,._answerContent_1xpga_5._answerMarkdown_1xpga_19 pre,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h1,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h2,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h3,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h4,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h5,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h6,._answerContent_1xpga_5._answerMarkdown_1xpga_19 blockquote{color:#222;margin-block:0 1.25rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 p:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 table:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 img:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 pre:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h1:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h2:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h3:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h4:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h5:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 h6:last-child,._answerContent_1xpga_5._answerMarkdown_1xpga_19 blockquote:last-child{margin-block-end:0}._answerContent_1xpga_5._answerMarkdown_1xpga_19 hr{border:none;margin-block:1.25rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h1{font-weight:var(--title-x-large-font-weight);font-size:var(--title-x-large-font-size);font-family:var(--title-x-large-font-family);line-height:var(--title-x-large-line-height);letter-spacing:var(--title-x-large-letter-spacing);text-transform:var(--title-x-large-text-case);-webkit-text-decoration:var(--title-x-large-text-decoration);text-decoration:var(--title-x-large-text-decoration)}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h2{font-weight:var(--title-large-font-weight);font-size:var(--title-large-font-size);font-family:var(--title-large-font-family);line-height:var(--title-large-line-height);letter-spacing:var(--title-large-letter-spacing);text-transform:var(--title-large-text-case);-webkit-text-decoration:var(--title-large-text-decoration);text-decoration:var(--title-large-text-decoration)}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h3{font-weight:var(--title-medium-font-weight);font-size:var(--title-medium-font-size);font-family:var(--title-medium-font-family);line-height:var(--title-medium-line-height);letter-spacing:var(--title-medium-letter-spacing);text-transform:var(--title-medium-text-case);-webkit-text-decoration:var(--title-medium-text-decoration);text-decoration:var(--title-medium-text-decoration)}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h4{font-weight:var(--title-small-font-weight);font-size:var(--title-small-font-size);font-family:var(--title-small-font-family);line-height:var(--title-small-line-height);letter-spacing:var(--title-small-letter-spacing);text-transform:var(--title-small-text-case);-webkit-text-decoration:var(--title-small-text-decoration);text-decoration:var(--title-small-text-decoration)}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h5{font-weight:var(--title-subtitle-font-weight);font-size:var(--title-subtitle-font-size);font-family:var(--title-subtitle-font-family);line-height:var(--title-subtitle-line-height);letter-spacing:var(--title-subtitle-letter-spacing);text-transform:var(--title-subtitle-text-case);-webkit-text-decoration:var(--title-subtitle-text-decoration);text-decoration:var(--title-subtitle-text-decoration)}._answerContent_1xpga_5._answerMarkdown_1xpga_19 h6{font-weight:var(--caption-default-font-weight);font-size:var(--caption-default-font-size);font-family:var(--caption-default-font-family);line-height:var(--caption-default-line-height);letter-spacing:var(--caption-default-letter-spacing);text-transform:var(--caption-default-text-case);-webkit-text-decoration:var(--caption-default-text-decoration);text-decoration:var(--caption-default-text-decoration);color:#6f6f6f}._answerContent_1xpga_5._answerMarkdown_1xpga_19 a{font-weight:var(--link-default-font-weight);font-size:var(--link-default-font-size);font-family:var(--link-default-font-family);line-height:var(--link-default-line-height);letter-spacing:var(--link-default-letter-spacing);text-transform:var(--link-default-text-case);-webkit-text-decoration:var(--link-default-text-decoration);text-decoration:var(--link-default-text-decoration);font-size:.9375rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 .footnote-ref a,._answerContent_1xpga_5._answerMarkdown_1xpga_19 a.footnote-backref{font-size:.75rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 strong{font-weight:var(--body-default-bold-font-weight);font-size:var(--body-default-bold-font-size);font-family:var(--body-default-bold-font-family);line-height:var(--body-default-bold-line-height);letter-spacing:var(--body-default-bold-letter-spacing);text-transform:var(--body-default-bold-text-case);-webkit-text-decoration:var(--body-default-bold-text-decoration);text-decoration:var(--body-default-bold-text-decoration);font-size:.9375rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 img{max-width:100%}._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol{padding-left:1.25rem;list-style-position:outside}._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul ul,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul ol,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol ul,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol ol{padding-left:1.25rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul li p,._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol li p{display:inline}._answerContent_1xpga_5._answerMarkdown_1xpga_19 ul>li{list-style-type:disc}._answerContent_1xpga_5._answerMarkdown_1xpga_19 ol>li{list-style-type:decimal}._answerContent_1xpga_5._answerMarkdown_1xpga_19 li>ul,._answerContent_1xpga_5._answerMarkdown_1xpga_19 li>ol,._answerContent_1xpga_5._answerMarkdown_1xpga_19 li+li{margin-top:.5rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 blockquote{background-color:#f4f4f4;border-left:.125rem solid #e8e8e8;margin-inline:1rem;padding:.5rem .75rem}._answerContent_1xpga_5._answerMarkdown_1xpga_19 pre{color:#fff}
|
package/dist/styles/answer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._answer_dqpxo_5{white-space:pre-wrap;border:none}._answer_dqpxo_5 ._loadingContainer_dqpxo_9{gap:var(--space-2);align-items:center;margin:0;padding:18px;display:flex}._answer_dqpxo_5 ._loadingContainer_dqpxo_9 ._loadingText_dqpxo_16{opacity:0;animation:.3s ease-in-out 1s forwards _fadeIn_dqpxo_1}@keyframes _fadeIn_dqpxo_1{to{opacity:1}}._answer_dqpxo_5 ._alertIcon_dqpxo_25{margin-left:.5rem}._answer_dqpxo_5 ._error_dqpxo_28{align-items:center;display:flex}._answer_dqpxo_5 ._footer_dqpxo_32{justify-content:space-between;align-items:center;height:1.5rem;display:flex}._answer_dqpxo_5 ._footer_dqpxo_32 ._copyButtonContainer_dqpxo_38,._answer_dqpxo_5 ._footer_dqpxo_32 ._feedbackButtonsContainer_dqpxo_39{opacity:0;transition:opacity .3s}._answer_dqpxo_5 ._footer_dqpxo_32._shouldHaveMarginTop_dqpxo_43{margin-top:.75rem}._answer_dqpxo_5 ._footer_dqpxo_32._shouldUseAnimation_dqpxo_46{max-height:0;overflow-y:hidden}._answer_dqpxo_5 ._footer_dqpxo_32._shouldUseAnimation_dqpxo_46._shouldAnimateHeight_dqpxo_50{max-height:200px;transition:max-height 1s ease-in}._answer_dqpxo_5 ._footer_dqpxo_32 ._footerButtons_dqpxo_54,._answer_dqpxo_5 ._footer_dqpxo_32 ._feedbackButtonsContainer_dqpxo_39{gap:.25rem;margin-inline-start:auto;display:flex}._answer_dqpxo_5 ._iconAvatar_dqpxo_60{width:var(--size-16);height:var(--size-16);background-color:#faf5fe;border-radius:50%;justify-content:center;align-items:center;display:flex}@media (width<=374px){._answer_dqpxo_5 ._iconAvatar_dqpxo_60{width:var(--size-6);height:var(--size-6)}}._answer_dqpxo_5 ._embedTheAnswerButtonContainer_dqpxo_75{opacity:1;justify-content:flex-start;margin-top:.5rem;padding:0 1rem;display:flex}._answer_dqpxo_5:hover ._copyButtonContainer_dqpxo_38,._answer_dqpxo_5:hover ._feedbackButtonsContainer_dqpxo_39,._answer_dqpxo_5 ._copyButtonContainer_dqpxo_38:focus-within,._answer_dqpxo_5 ._feedbackButtonsContainer_dqpxo_39:focus-within,._answer_dqpxo_5 ._footerButtons_dqpxo_54._buttonsVisible_dqpxo_83 ._copyButtonContainer_dqpxo_38,._answer_dqpxo_5 ._footerButtons_dqpxo_54._buttonsVisible_dqpxo_83 ._feedbackButtonsContainer_dqpxo_39{opacity:1}._answer_dqpxo_5:hover ._copyButtonContainer_dqpxo_38>button,._answer_dqpxo_5:hover ._feedbackButtonsContainer_dqpxo_39>button,._answer_dqpxo_5 ._copyButtonContainer_dqpxo_38:focus-within>button,._answer_dqpxo_5 ._feedbackButtonsContainer_dqpxo_39:focus-within>button,._answer_dqpxo_5 ._footerButtons_dqpxo_54._buttonsVisible_dqpxo_83 ._copyButtonContainer_dqpxo_38>button,._answer_dqpxo_5 ._footerButtons_dqpxo_54._buttonsVisible_dqpxo_83 ._feedbackButtonsContainer_dqpxo_39>button{outline-offset:-2px}
|
package/dist/styles/chat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._chat_p3syw_5 ._clearChatText_p3syw_5._clearChatText_p3syw_5{color:#6f6f6f;margin:0 1rem;font-size:.75rem;line-height:.875rem}._chat_p3syw_5 ._landingPage_p3syw_11{flex-direction:column;justify-content:center;align-items:center;gap:2rem;padding-top:2rem;display:flex}._chat_p3syw_5 ._landingPage_p3syw_11 ._askQuestionText_p3syw_19{font-size:1.3125rem}._chat_p3syw_5 ._landingPage_p3syw_11 ._clearChatText_p3syw_5{margin:0;font-size:.9375rem;line-height:1.25rem}._chat_p3syw_5 ._landingPage_p3syw_11 ._iconAvatar_p3syw_27{width:var(--size-16);height:var(--size-16);background-color:#faf5fe;border-radius:50%;justify-content:center;align-items:center;display:flex}@media (width<=374px){._chat_p3syw_5 ._landingPage_p3syw_11 ._iconAvatar_p3syw_27{width:var(--size-6);height:var(--size-6)}}._chat_p3syw_5 ._landingPage_p3syw_11 ._iconAvatar_p3syw_27{margin-top:2.625rem}._chat_p3syw_5 ._landingPage_p3syw_11._sidebar_p3syw_45 ._clearChatText_p3syw_5{font-size:.75rem;line-height:.875rem}._chat_p3syw_5 ._landingPage_p3syw_11._sidebar_p3syw_45 ._iconAvatar_p3syw_27{width:var(--size-12);height:var(--size-12);margin-top:.75rem}._chat_p3syw_5 ._landingPage_p3syw_11._sidebar_p3syw_45 ._iconAvatar_p3syw_27 svg{width:1.875rem;height:1.875rem}._chat_p3syw_5 ul{margin:0;padding:0;list-style:none}._chat_p3syw_5 ul li:last-of-type .footer-buttons-container>div{opacity:1}
|
package/dist/styles/content.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._loadingIndicatorWrapper_1h3h1_5{width:100%}._content_1h3h1_9{flex:auto;width:auto;max-height:35.375rem;padding:0 1rem 1rem;overflow:auto}._content_1h3h1_9._sidebar_1h3h1_16{padding:0 .75rem .75rem}._content_1h3h1_9{padding-left:1.5rem;padding-right:1.5rem}._content_1h3h1_9._isLoading_1h3h1_23{align-items:center;display:flex}._content_1h3h1_9 ._messagesEnd_1h3h1_27{margin-bottom:-1.25rem;padding-bottom:1.25rem}._content_1h3h1_9 ._innerContent_1h3h1_31{width:100%}._content_1h3h1_9._sidebar_1h3h1_16{max-height:unset}@media (width<=374px){._content_1h3h1_9{max-height:unset;flex:1;padding:1rem;overflow-x:hidden}._content_1h3h1_9 ._messagesEnd_1h3h1_27{margin-bottom:-1rem;padding-bottom:1rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._inlineError_jakex_5{margin-top:1rem}._inlineError_jakex_5 ._text_jakex_8{color:#d5324e;flex:2;margin:0 .75rem;font-size:.875rem}._inlineError_jakex_5 ._icon_jakex_14{display:inline-flex}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._mediaContainer_buu9q_5{align-items:flex-start;margin-top:1rem;margin-bottom:1rem;display:flex}._mediaContainer_buu9q_5 ._figure_buu9q_11{flex:none;place-self:flex-start;margin:.75rem .75rem 0 0;padding:0}._mediaContainer_buu9q_5 ._figure_buu9q_11._sidebar_buu9q_17{margin:0}._mediaContainer_buu9q_5 ._figure_buu9q_11._center-aligned_buu9q_20{align-self:center;margin:0 .75rem 0 0}._mediaContainer_buu9q_5 ._figure_buu9q_11._center-aligned_buu9q_20._sidebar_buu9q_17{align-self:flex-start}._mediaContainer_buu9q_5 ._figure_buu9q_11._top-aligned_buu9q_27{align-self:top;margin:0 .75rem 0 0}._mediaContainer_buu9q_5._sidebar_buu9q_17{flex-direction:column;gap:.5rem;margin-bottom:1.25rem}._mediaContainer_buu9q_5._welcomeMessage_buu9q_36{margin-top:0;margin-bottom:0}._mediaContainer_buu9q_5._welcomeMessage_buu9q_36 ._contentCard_buu9q_40{flex-direction:column;gap:2rem;display:flex}._mediaContainer_buu9q_5._question_buu9q_45{border-radius:1.5rem;justify-content:flex-end;align-items:center}._mediaContainer_buu9q_5._question_buu9q_45 ._figure_buu9q_11{align-self:center;margin:0 0 0 .75rem}._mediaContainer_buu9q_5._question_buu9q_45._sidebar_buu9q_17{margin-top:.75rem;margin-bottom:.75rem}._mediaContainer_buu9q_5._question_buu9q_45._sidebar_buu9q_17 ._figure_buu9q_11{align-self:flex-end}._mediaContainer_buu9q_5._question_buu9q_45 ._contentCard_buu9q_40{background-color:#ece9f8;border-radius:1.5rem;padding:.75rem 1rem;line-height:1.5rem}._mediaContainer_buu9q_5._answer_buu9q_67._sidebar_buu9q_17{margin-top:.75rem;margin-bottom:.75rem}._mediaContainer_buu9q_5 ._body_buu9q_71{word-wrap:break-word;overflow-wrap:break-word;min-width:0}._mediaContainer_buu9q_5 ._body_buu9q_71._answer_buu9q_67{border:none;width:100%}._mediaContainer_buu9q_5 ._body_buu9q_71._answer_buu9q_67 ._contentCard_buu9q_40{background-color:#0000;border:none;border-radius:1.5rem;padding:.75rem 1rem}._mediaContainer_buu9q_5 ._body_buu9q_71._answer_buu9q_67 ._contentCard_buu9q_40:hover{background-color:#f4f4f4}._mediaContainer_buu9q_5 ._body_buu9q_71._welcomeMessage_buu9q_36{border:none;width:100%}._mediaContainer_buu9q_5 ._body_buu9q_71._welcomeMessage_buu9q_36 ._contentCard_buu9q_40{background-color:#0000;border:none;border-radius:1.5rem;margin:0 1rem;padding:0}._mediaContainer_buu9q_5 ._body_buu9q_71._sidebar_buu9q_17._question_buu9q_45{align-self:flex-end}._mediaContainer_buu9q_5 ._body_buu9q_71._error_buu9q_104{box-sizing:border-box;width:unset;border-radius:1.75rem;flex-wrap:wrap;align-items:center;padding:.75rem 1rem;display:flex}._mediaContainer_buu9q_5 ._body_buu9q_71._error_buu9q_104:hover{background-color:#fdebee}
|
package/dist/styles/question.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._question_1kbnc_5{white-space:pre-wrap;margin-top:1rem;margin-left:8rem}._question_1kbnc_5._sidebar_1kbnc_10{margin-left:4.5rem}._question_1kbnc_5 ._text_1kbnc_13._text_1kbnc_13{font-size:.9375rem;line-height:1.5rem}@media (width<=767px){._question_1kbnc_5{margin-left:4.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._questionInput_olsh9_5{z-index:1;background:#fff;align-items:end;min-height:3rem;margin:1rem;padding:0;position:relative;box-shadow:0 2px 12px #2222221f;background-origin:border-box!important;background-clip:padding-box,border-box!important;border:1px solid #d3d3d3!important;border-radius:1.25rem!important}._questionInput_olsh9_5._questionInputWithOutPromptLibrary_olsh9_19{flex:auto;display:flex;border-radius:1.5rem!important}._questionInput_olsh9_5:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#fe03dc 0%,#2784fa 100%)!important;border:1px solid #0000!important}._questionInput_olsh9_5:focus-within{margin:calc(1rem - 1px);box-sizing:unset!important;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#fe03dc 0%,#2784fa 100%)!important;border:2px solid #0000!important}._questionInput_olsh9_5 ._avatar_olsh9_34{margin-bottom:.25rem}._questionInput_olsh9_5 ._inputAreaButton_olsh9_37{background:linear-gradient(135deg,#fe03dc 0%,#2784fa 100%);border:0;margin-bottom:.25rem;margin-right:.25rem;position:absolute;right:0;border-radius:1.5rem!important}._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:disabled{background:linear-gradient(135deg,#cb02b0 0%,#1f6ac8 100%)}._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):hover,._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):active{background:linear-gradient(135deg,#cb02b0 0%,#1f6ac8 100%);border:0}._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):focus,._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):focus-visible{background:linear-gradient(135deg,#fe03dc 0%,#2784fa 100%)}._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):hover:focus,._questionInput_olsh9_5 ._inputAreaButton_olsh9_37:not(:disabled):hover:focus-visible{background:linear-gradient(135deg,#cb02b0 0%,#1f6ac8 100%)}._questionInput_olsh9_5 ._square_olsh9_59{background-color:#fff;border-radius:3px;width:15px;height:15px;display:inline-block}._questionInput_olsh9_5 ._textArea_olsh9_66{width:100%;box-shadow:none;gap:0;margin:0 1rem 0 0;padding-right:46px}._questionInput_olsh9_5 ._textArea_olsh9_66 div{box-shadow:none!important}._questionInput_olsh9_5 ._textArea_olsh9_66 span{margin-block-start:0;padding:.5rem .75rem .75rem}._questionInput_olsh9_5 ._textArea_olsh9_66 textarea{background:inherit;width:100%;box-shadow:none;border:none;border-radius:1.25rem;margin:.475rem 0;padding:.4rem 1rem}._questionInput_olsh9_5 ._textArea_olsh9_66 textarea:not(:disabled,:focus-visible,._error_olsh9_89):hover{background:inherit}._questionInput_olsh9_5._sidebar_olsh9_92 ._textArea_olsh9_66{padding-right:26px}._questionInput_olsh9_5._sidebar_olsh9_92 ._textArea_olsh9_66 div{align-items:center;height:100%}._submitButtonTooltip_olsh9_100{text-align:center}@media (width<=767px){._questionInput_olsh9_5 ._textArea_olsh9_66{margin:0 .75rem 0 0}}._actionContainer_olsh9_109{justify-content:space-between;margin:0 0 0 .25rem;display:flex}._promptButton_olsh9_115{color:#6f6f6f;border:1px solid #00000014;margin-bottom:.25rem;background-color:#fff!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_x5onu_5 ._label_x5onu_5{margin:0 .25rem 0 1rem;line-height:1.5rem;display:inline-block}._wrapper_x5onu_5 ._label_x5onu_5._sidebar_x5onu_10{font-size:.8125rem}._loadingIndicator_x5onu_14{text-align:center;width:1.5rem;height:1.5rem;display:inline-block;position:relative}._alertIcon_x5onu_22{vertical-align:bottom;margin:.25rem .25rem .25rem .5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._suggestions_b5rc4_5{flex-flow:wrap;justify-content:center;align-items:center;gap:.75rem;display:flex}._suggestions_b5rc4_5 ._suggestion_b5rc4_5{text-align:start;background-color:#faf5fe;border-radius:1.5rem;height:auto;min-height:2.5rem;padding:.5rem 0}._suggestions_b5rc4_5 ._suggestion_b5rc4_5:hover:enabled{background-color:#f5ebfd}._suggestions_b5rc4_5 ._suggestion_b5rc4_5 span{white-space:normal;text-align:start;font-size:.9375rem;line-height:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._welcomeMessage_8v9c7_5{font-size:1.3125rem}._welcomeMessage_8v9c7_5 ._warnings_8v9c7_8{flex-direction:column;gap:.5rem;display:flex}._welcomeMessage_8v9c7_5 ._warnings_8v9c7_8 ._warningNotice_8v9c7_13{border-radius:1.5rem}._welcomeMessage_8v9c7_5 ._iconAvatar_8v9c7_16{width:var(--size-16);height:var(--size-16);background-color:#faf5fe;border-radius:50%;justify-content:center;align-items:center;display:flex}@media (width<=374px){._welcomeMessage_8v9c7_5 ._iconAvatar_8v9c7_16{width:var(--size-6);height:var(--size-6)}._welcomeMessage_8v9c7_5{margin-top:0}}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/box-ai-content-answers",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.12",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@box/blueprint-web": "^15.9.
|
|
6
|
-
"@box/blueprint-web-assets": "^4.
|
|
7
|
-
"@box/box-ai-agent-selector": "^1.43.
|
|
8
|
-
"@box/item-icon": "^2.37.
|
|
5
|
+
"@box/blueprint-web": "^15.9.7",
|
|
6
|
+
"@box/blueprint-web-assets": "^4.131.0",
|
|
7
|
+
"@box/box-ai-agent-selector": "^1.43.12",
|
|
8
|
+
"@box/item-icon": "^2.37.12",
|
|
9
9
|
"formik": "^2.0.3",
|
|
10
10
|
"highlight.js": "^11.9.0",
|
|
11
11
|
"immutable": ">3.0.0",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@box/babel-plugin-target-attributes": "1.6.7",
|
|
20
|
-
"@box/blueprint-web": "^15.9.
|
|
21
|
-
"@box/blueprint-web-assets": "^4.
|
|
22
|
-
"@box/box-ai-agent-selector": "^1.43.
|
|
23
|
-
"@box/item-icon": "^2.37.
|
|
24
|
-
"@box/storybook-utils": "^0.21.
|
|
20
|
+
"@box/blueprint-web": "^15.9.7",
|
|
21
|
+
"@box/blueprint-web-assets": "^4.131.0",
|
|
22
|
+
"@box/box-ai-agent-selector": "^1.43.12",
|
|
23
|
+
"@box/item-icon": "^2.37.12",
|
|
24
|
+
"@box/storybook-utils": "^0.21.12",
|
|
25
25
|
"@testing-library/react": "^15.0.6",
|
|
26
26
|
"immutable": "^3.8.1",
|
|
27
27
|
"react": "^18.3.0",
|