@box/box-ai-content-answers 1.10.4 → 1.11.1
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/clear-conversation-button.js +25 -22
- package/dist/chunks/stopResponseButton.js +8 -8
- package/dist/esm/lib/components/answer/copy-button.js +27 -24
- package/dist/esm/lib/components/answer/no-citations.js +22 -19
- package/dist/esm/lib/components/answer/thumb-buttons.js +85 -79
- package/dist/esm/lib/components/modal/clear-conversation-button.js +4 -3
- package/dist/esm/lib/components/modal/modal.js +114 -111
- package/dist/esm/lib/components/sidebar/content.js +100 -97
- package/dist/i18n/en-x-pseudo.js +89 -89
- package/dist/i18n/en-x-pseudo.properties +89 -89
- package/dist/styles/stopResponseButton.css +1 -1
- package/package.json +6 -6
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import { Tooltip as
|
|
2
|
-
import { Trash as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { useBlueprintModernization as c, Tooltip as i, IconButton as d } from "@box/blueprint-web";
|
|
2
|
+
import { Trash as _ } from "@box/blueprint-web-assets/icons/Line";
|
|
3
|
+
import { Trash as m } from "@box/blueprint-web-assets/icons/Medium";
|
|
4
|
+
import b from "clsx";
|
|
5
|
+
import { useIntl as C } from "react-intl";
|
|
5
6
|
import t from "../esm/lib/components/modal/messages.js";
|
|
6
7
|
import { jsx as e } from "react/jsx-runtime";
|
|
7
|
-
import '../styles/clear-conversation-button.css';const
|
|
8
|
-
BoxAIIconColor:
|
|
9
|
-
modalHeader:
|
|
10
|
-
contentAnswersModal:
|
|
11
|
-
boxAiContentAnswers:
|
|
12
|
-
clearButton:
|
|
8
|
+
import '../styles/clear-conversation-button.css';const g = "_BoxAIIconColor_ild3b_1", A = "_modalHeader_ild3b_5", u = "_contentAnswersModal_ild3b_10", p = "_boxAiContentAnswers_ild3b_18", B = "_clearButton_ild3b_26", I = "_contentAnswerModal_ild3b_1", M = "_modalHeaderContainer_ild3b_55", f = "_agentSelectorTrigger_ild3b_63", w = "_agentSelectorContent_ild3b_74", x = {
|
|
9
|
+
BoxAIIconColor: g,
|
|
10
|
+
modalHeader: A,
|
|
11
|
+
contentAnswersModal: u,
|
|
12
|
+
boxAiContentAnswers: p,
|
|
13
|
+
clearButton: B,
|
|
13
14
|
"modal-close-button": "_modal-close-button_ild3b_30",
|
|
14
|
-
contentAnswerModal:
|
|
15
|
-
modalHeaderContainer:
|
|
16
|
-
agentSelectorTrigger:
|
|
17
|
-
agentSelectorContent:
|
|
18
|
-
},
|
|
15
|
+
contentAnswerModal: I,
|
|
16
|
+
modalHeaderContainer: M,
|
|
17
|
+
agentSelectorTrigger: f,
|
|
18
|
+
agentSelectorContent: w
|
|
19
|
+
}, j = ({
|
|
19
20
|
onClick: n,
|
|
20
21
|
hasRequestInProgress: a,
|
|
21
22
|
className: r
|
|
22
23
|
}) => {
|
|
23
|
-
const o =
|
|
24
|
-
|
|
24
|
+
const o = C(), {
|
|
25
|
+
enableModernizedComponents: s
|
|
26
|
+
} = c(), l = s ? m : _;
|
|
27
|
+
return /* @__PURE__ */ e(i, {
|
|
25
28
|
content: o.formatMessage(t.clearConversationLabel),
|
|
26
29
|
"data-testid": "clear-conversation-tooltip",
|
|
27
30
|
variant: "standard",
|
|
28
|
-
children: /* @__PURE__ */ e(
|
|
31
|
+
children: /* @__PURE__ */ e(d, {
|
|
29
32
|
"aria-label": o.formatMessage(t.clearConversationLabel),
|
|
30
|
-
className:
|
|
33
|
+
className: b(x.clearButton, r),
|
|
31
34
|
"data-testid": "clear-conversation-button",
|
|
32
35
|
disabled: a,
|
|
33
|
-
icon:
|
|
36
|
+
icon: l,
|
|
34
37
|
onClick: n,
|
|
35
38
|
size: "small",
|
|
36
39
|
"data-target-id": "IconButton-clearConversationLabel"
|
|
@@ -38,6 +41,6 @@ import '../styles/clear-conversation-button.css';const _ = "_BoxAIIconColor_ild3
|
|
|
38
41
|
});
|
|
39
42
|
};
|
|
40
43
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
j as C,
|
|
45
|
+
x as s
|
|
43
46
|
};
|
|
@@ -2,13 +2,13 @@ import * as p from "react";
|
|
|
2
2
|
import { useIntl as u } from "react-intl";
|
|
3
3
|
import { Tooltip as _, Button as m } from "@box/blueprint-web";
|
|
4
4
|
import { Stop as c } from "@box/blueprint-web-assets/icons/Fill";
|
|
5
|
-
import { LOGGER_BASE_CONFIG as l, LOGGER_ACTION_CLICK as
|
|
5
|
+
import { LOGGER_BASE_CONFIG as l, LOGGER_ACTION_CLICK as x } from "../esm/lib/components/common/constants.js";
|
|
6
6
|
import e from "../esm/lib/components/footer/messages.js";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
|
-
import '../styles/stopResponseButton.css';const
|
|
9
|
-
questionInput:
|
|
10
|
-
questionInputWithOutPromptLibrary:
|
|
11
|
-
avatar:
|
|
8
|
+
import '../styles/stopResponseButton.css';const B = "_questionInput_w27x6_2", b = "_questionInputWithOutPromptLibrary_w27x6_16", w = "_avatar_w27x6_31", d = "_inputAreaButton_w27x6_34", f = "_square_w27x6_56", C = "_textArea_w27x6_63", I = "_error_w27x6_86", q = "_sidebar_w27x6_89", R = "_submitButtonTooltip_w27x6_97", A = "_actionContainer_w27x6_106", O = "_promptButton_w27x6_112", g = {
|
|
9
|
+
questionInput: B,
|
|
10
|
+
questionInputWithOutPromptLibrary: b,
|
|
11
|
+
avatar: w,
|
|
12
12
|
inputAreaButton: d,
|
|
13
13
|
square: f,
|
|
14
14
|
textArea: C,
|
|
@@ -27,7 +27,7 @@ function S({
|
|
|
27
27
|
const s = u(), i = p.useCallback(() => {
|
|
28
28
|
t && t({
|
|
29
29
|
...l,
|
|
30
|
-
action:
|
|
30
|
+
action: x,
|
|
31
31
|
target: "stopResponse"
|
|
32
32
|
}), n(o);
|
|
33
33
|
}, [o, n, t]);
|
|
@@ -38,7 +38,7 @@ function S({
|
|
|
38
38
|
children: /* @__PURE__ */ r(m, {
|
|
39
39
|
"aria-label": s.formatMessage(e.stopResponse),
|
|
40
40
|
"aria-live": "polite",
|
|
41
|
-
className:
|
|
41
|
+
className: g.inputAreaButton,
|
|
42
42
|
"data-testid": "content-answers-stop-response-button",
|
|
43
43
|
icon: c,
|
|
44
44
|
onClick: i,
|
|
@@ -49,5 +49,5 @@ function S({
|
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
51
|
S,
|
|
52
|
-
|
|
52
|
+
g as s
|
|
53
53
|
};
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { useNotification as
|
|
2
|
-
import { Clipboard as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useNotification as d, useBlueprintModernization as b, Tooltip as u, IconButton as f } from "@box/blueprint-web";
|
|
2
|
+
import { Clipboard as C } from "@box/blueprint-web-assets/icons/Line";
|
|
3
|
+
import { Clipboard as g } from "@box/blueprint-web-assets/icons/Medium";
|
|
4
|
+
import { useIntl as y } from "react-intl";
|
|
5
|
+
import T from "../../messages.js";
|
|
6
|
+
import { LOGGER_BASE_CONFIG as I, LOGGER_ACTION_CLICK as x } from "../common/constants.js";
|
|
7
|
+
import { focusInput as B } from "../common/focusInputUtils.js";
|
|
8
|
+
import { markdownToHtmlString as v } from "../common/markdown.js";
|
|
8
9
|
import a from "./messages.js";
|
|
9
|
-
import { jsx as
|
|
10
|
-
const
|
|
10
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
11
|
+
const E = ({
|
|
11
12
|
answer: t,
|
|
12
13
|
onAnswerCopy: r,
|
|
13
14
|
recordAction: e
|
|
14
15
|
}) => {
|
|
15
16
|
const {
|
|
16
17
|
formatMessage: o
|
|
17
|
-
} =
|
|
18
|
+
} = y(), {
|
|
18
19
|
addNotification: s
|
|
19
|
-
} =
|
|
20
|
+
} = d(), {
|
|
21
|
+
enableModernizedComponents: c
|
|
22
|
+
} = b(), l = async () => {
|
|
20
23
|
if (e && e({
|
|
21
|
-
...
|
|
22
|
-
action:
|
|
24
|
+
...I,
|
|
25
|
+
action: x,
|
|
23
26
|
target: "copyToClipboard"
|
|
24
27
|
}), t && navigator && navigator.clipboard && navigator.clipboard.write) {
|
|
25
|
-
const i =
|
|
28
|
+
const i = v(t), n = new ClipboardItem({
|
|
26
29
|
"text/html": new Blob([i], {
|
|
27
30
|
type: "text/html"
|
|
28
31
|
}),
|
|
@@ -30,22 +33,22 @@ const N = ({
|
|
|
30
33
|
type: "text/plain"
|
|
31
34
|
})
|
|
32
35
|
});
|
|
33
|
-
await navigator.clipboard.write([
|
|
36
|
+
await navigator.clipboard.write([n]), s({
|
|
34
37
|
sensitivity: "foreground",
|
|
35
38
|
styledText: o(a.copyToClipboardSucceeded),
|
|
36
39
|
variant: "success",
|
|
37
40
|
typeIconAriaLabel: o(a.copyButtonSuccessText),
|
|
38
|
-
closeButtonAriaLabel: o(
|
|
41
|
+
closeButtonAriaLabel: o(T.closeButtonText)
|
|
39
42
|
}), r && r(t);
|
|
40
43
|
}
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
B();
|
|
45
|
+
}, m = c ? g : C;
|
|
46
|
+
return /* @__PURE__ */ p(u, {
|
|
44
47
|
content: o(a.copyToClipboard),
|
|
45
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ p(f, {
|
|
46
49
|
"aria-label": o(a.copyToClipboard),
|
|
47
|
-
icon:
|
|
48
|
-
onClick:
|
|
50
|
+
icon: m,
|
|
51
|
+
onClick: l,
|
|
49
52
|
onFocusCapture: (i) => {
|
|
50
53
|
i.target.matches(":focus-visible") || i.stopPropagation();
|
|
51
54
|
},
|
|
@@ -55,6 +58,6 @@ const N = ({
|
|
|
55
58
|
});
|
|
56
59
|
};
|
|
57
60
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
E as CopyButton,
|
|
62
|
+
E as default
|
|
60
63
|
};
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { Tooltip as
|
|
2
|
-
import { InfoBadge as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { useBlueprintModernization as s, Tooltip as a, IconButton as i } from "@box/blueprint-web";
|
|
2
|
+
import { InfoBadge as f } from "@box/blueprint-web-assets/icons/Line";
|
|
3
|
+
import { InformationCircle as c } from "@box/blueprint-web-assets/icons/Medium";
|
|
4
|
+
import { useEffect as m } from "react";
|
|
5
|
+
import { useIntl as l } from "react-intl";
|
|
6
|
+
import { LOGGER_BASE_CONFIG as p } from "../common/constants.js";
|
|
7
|
+
import d from "./messages.js";
|
|
8
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
9
|
+
const z = ({
|
|
9
10
|
recordAction: e
|
|
10
11
|
}) => {
|
|
11
12
|
const {
|
|
12
|
-
formatMessage:
|
|
13
|
-
} =
|
|
14
|
-
|
|
13
|
+
formatMessage: t
|
|
14
|
+
} = l(), {
|
|
15
|
+
enableModernizedComponents: r
|
|
16
|
+
} = s(), o = t(d.noReferences);
|
|
17
|
+
return m(() => {
|
|
15
18
|
e && e({
|
|
16
|
-
...
|
|
19
|
+
...p,
|
|
17
20
|
target: "noReferences"
|
|
18
21
|
});
|
|
19
|
-
}, [e]), /* @__PURE__ */
|
|
22
|
+
}, [e]), /* @__PURE__ */ n(a, {
|
|
20
23
|
className: "Answer-NoCitations",
|
|
21
|
-
content:
|
|
24
|
+
content: o,
|
|
22
25
|
"data-testid": "content-answers-references-no-references-tooltip",
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
-
"aria-label":
|
|
26
|
+
children: /* @__PURE__ */ n(i, {
|
|
27
|
+
"aria-label": o,
|
|
25
28
|
"data-testid": "content-answers-references-no-references",
|
|
26
|
-
icon:
|
|
29
|
+
icon: r ? c : f,
|
|
27
30
|
size: "x-small",
|
|
28
31
|
"data-target-id": "IconButton-noReferences"
|
|
29
32
|
})
|
|
30
33
|
});
|
|
31
34
|
};
|
|
32
35
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
z as NoCitationsIcon,
|
|
37
|
+
z as default
|
|
35
38
|
};
|
|
@@ -1,114 +1,120 @@
|
|
|
1
|
-
import { useNotification as
|
|
2
|
-
import { ThumbUp as
|
|
3
|
-
import { ThumbUp as
|
|
4
|
-
import {
|
|
1
|
+
import { useBlueprintModernization as J, useNotification as K, Tooltip as N, IconButton as y } from "@box/blueprint-web";
|
|
2
|
+
import { ThumbUp as Q, ThumbDown as V } from "@box/blueprint-web-assets/icons/Fill";
|
|
3
|
+
import { ThumbUp as X, ThumbDown as Y } from "@box/blueprint-web-assets/icons/Line";
|
|
4
|
+
import { ThumbsUp as Z, ThumbsDown as C } from "@box/blueprint-web-assets/icons/Medium";
|
|
5
|
+
import { ThumbsUp as O, ThumbsDown as q } from "@box/blueprint-web-assets/icons/MediumFilled";
|
|
6
|
+
import { useAgents as k } from "@box/box-ai-agent-selector";
|
|
5
7
|
import b from "react";
|
|
6
|
-
import { useIntl as
|
|
7
|
-
import { LOGGER_BASE_CONFIG as
|
|
8
|
-
import { FeedbackTooltip as
|
|
8
|
+
import { useIntl as F } from "react-intl";
|
|
9
|
+
import { LOGGER_BASE_CONFIG as tt, LOGGER_ACTION_PROGRAMMATIC as st } from "../common/constants.js";
|
|
10
|
+
import { FeedbackTooltip as at } from "./feedback-tooltip.js";
|
|
9
11
|
import x from "../../messages.js";
|
|
10
|
-
import { focusInput as
|
|
11
|
-
import
|
|
12
|
-
import { jsxs as
|
|
13
|
-
import '../../../../styles/thumb-buttons.css';const
|
|
14
|
-
thumbDown:
|
|
15
|
-
},
|
|
12
|
+
import { focusInput as mt } from "../common/focusInputUtils.js";
|
|
13
|
+
import i from "./messages.js";
|
|
14
|
+
import { jsxs as ot, Fragment as lt, jsx as n } from "react/jsx-runtime";
|
|
15
|
+
import '../../../../styles/thumb-buttons.css';const ut = "_thumbDown_1axcd_1", rt = {
|
|
16
|
+
thumbDown: ut
|
|
17
|
+
}, r = {
|
|
16
18
|
THUMB_UP: "positive",
|
|
17
19
|
THUMB_DOWN: "negative",
|
|
18
20
|
NONE: "none"
|
|
19
|
-
},
|
|
21
|
+
}, Mt = ({
|
|
20
22
|
feedbackValue: H,
|
|
21
|
-
hostAppName:
|
|
22
|
-
isFeedbackFormEnabled:
|
|
23
|
-
isFeedbackTooltipOpen:
|
|
24
|
-
items:
|
|
25
|
-
onFeedbackFormSubmit:
|
|
23
|
+
hostAppName: h,
|
|
24
|
+
isFeedbackFormEnabled: I = !1,
|
|
25
|
+
isFeedbackTooltipOpen: P = !1,
|
|
26
|
+
items: U,
|
|
27
|
+
onFeedbackFormSubmit: D,
|
|
26
28
|
onFeedbackTooltipOpenChange: s,
|
|
27
|
-
prompt:
|
|
28
|
-
promptType:
|
|
29
|
+
prompt: p,
|
|
30
|
+
promptType: _,
|
|
29
31
|
questionId: a,
|
|
30
|
-
recordAction:
|
|
31
|
-
response:
|
|
32
|
+
recordAction: f,
|
|
33
|
+
response: B,
|
|
32
34
|
setAnswerFeedback: e,
|
|
33
|
-
shouldFeedbackFormIncludeFeedbackText:
|
|
35
|
+
shouldFeedbackFormIncludeFeedbackText: w = !1,
|
|
34
36
|
shouldFeedbackIncludePromptData: M = !1,
|
|
35
|
-
variant:
|
|
37
|
+
variant: d
|
|
36
38
|
}) => {
|
|
37
39
|
const {
|
|
38
|
-
|
|
39
|
-
} =
|
|
40
|
-
|
|
41
|
-
} =
|
|
42
|
-
|
|
43
|
-
} = K(),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
enableModernizedComponents: m
|
|
41
|
+
} = J(), {
|
|
42
|
+
formatMessage: o
|
|
43
|
+
} = F(), {
|
|
44
|
+
addNotification: v
|
|
45
|
+
} = K(), {
|
|
46
|
+
selectedAgent: L
|
|
47
|
+
} = k(), u = H, T = b.useMemo(() => U.filter((t) => t.status === "supported").map((t) => t.fileType), [U]), c = b.useCallback((t) => {
|
|
48
|
+
u !== t && (e == null || e(a, t), f == null || f({
|
|
49
|
+
...tt,
|
|
50
|
+
action: st,
|
|
47
51
|
target: "answer_feedback",
|
|
48
|
-
component:
|
|
52
|
+
component: d,
|
|
49
53
|
data: {
|
|
50
54
|
feedback_value: t,
|
|
51
|
-
file_types:
|
|
52
|
-
feature:
|
|
53
|
-
prompt_type:
|
|
55
|
+
file_types: T,
|
|
56
|
+
feature: h,
|
|
57
|
+
prompt_type: _
|
|
54
58
|
}
|
|
55
|
-
}),
|
|
56
|
-
}, [
|
|
59
|
+
}), mt());
|
|
60
|
+
}, [h, f, u, d, T, a, e, _]), G = ({
|
|
57
61
|
feedback: t,
|
|
58
|
-
feedbackPromptShareConsent:
|
|
59
|
-
issueType:
|
|
62
|
+
feedbackPromptShareConsent: j,
|
|
63
|
+
issueType: g
|
|
60
64
|
}) => {
|
|
61
|
-
if (s == null || s(!1, a), !
|
|
65
|
+
if (s == null || s(!1, a), !D)
|
|
62
66
|
return;
|
|
63
67
|
const l = {
|
|
64
|
-
fileTypes:
|
|
68
|
+
fileTypes: T,
|
|
65
69
|
hasPromptData: !1,
|
|
66
|
-
hostApp:
|
|
67
|
-
issueType:
|
|
70
|
+
hostApp: h,
|
|
71
|
+
issueType: g,
|
|
68
72
|
timestamp: Date.now(),
|
|
69
73
|
questionId: a
|
|
70
74
|
};
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
w && (l.feedback = t, l.hasFeedback = !!t), M && j && p && B && (l.hasPromptData = !0, l.prompt = p, l.response = B), L && (l.selectedAgentName = L.name), D(l, () => {
|
|
76
|
+
v({
|
|
73
77
|
sensitivity: "foreground",
|
|
74
|
-
styledText:
|
|
78
|
+
styledText: o(i.feedbackTooltipConfirmation),
|
|
75
79
|
variant: "success",
|
|
76
|
-
typeIconAriaLabel:
|
|
77
|
-
closeButtonAriaLabel:
|
|
80
|
+
typeIconAriaLabel: o(x.ariaTypeSuccessIconLabel),
|
|
81
|
+
closeButtonAriaLabel: o(x.closeButtonText)
|
|
78
82
|
});
|
|
79
83
|
});
|
|
80
|
-
},
|
|
84
|
+
}, R = (t) => {
|
|
81
85
|
t || s == null || s(!1, a);
|
|
82
|
-
},
|
|
83
|
-
c(
|
|
84
|
-
}, [c, s, a]);
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
children: [/* @__PURE__ */
|
|
87
|
-
content:
|
|
88
|
-
children: /* @__PURE__ */
|
|
89
|
-
"aria-label":
|
|
90
|
-
disabled:
|
|
91
|
-
icon:
|
|
92
|
-
onClick:
|
|
86
|
+
}, S = b.useCallback(() => c(r.THUMB_UP), [c]), $ = b.useCallback(() => {
|
|
87
|
+
c(r.THUMB_DOWN), s == null || s(!0, a);
|
|
88
|
+
}, [c, s, a]), z = m ? Z : X, A = m ? C : Y, E = m ? O : Q, W = m ? q : V;
|
|
89
|
+
return /* @__PURE__ */ ot(lt, {
|
|
90
|
+
children: [/* @__PURE__ */ n(N, {
|
|
91
|
+
content: o(i.thumbsUpAriaLabel),
|
|
92
|
+
children: /* @__PURE__ */ n(y, {
|
|
93
|
+
"aria-label": o(i.thumbsUpAriaLabel),
|
|
94
|
+
disabled: u === r.THUMB_DOWN,
|
|
95
|
+
icon: u === r.THUMB_UP ? E : z,
|
|
96
|
+
onClick: S,
|
|
93
97
|
size: "x-small",
|
|
98
|
+
variant: m ? "icon-logo" : "default",
|
|
94
99
|
"data-target-id": "IconButton-thumbsUpAriaLabel"
|
|
95
100
|
})
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
isOpen:
|
|
98
|
-
onOpenChange:
|
|
99
|
-
onSubmit:
|
|
100
|
-
shouldIncludeFeedbackText:
|
|
101
|
+
}), /* @__PURE__ */ n(at, {
|
|
102
|
+
isOpen: P,
|
|
103
|
+
onOpenChange: R,
|
|
104
|
+
onSubmit: G,
|
|
105
|
+
shouldIncludeFeedbackText: w,
|
|
101
106
|
shouldIncludePromptShareConsent: M,
|
|
102
|
-
shouldShow:
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
content:
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
"aria-label":
|
|
107
|
-
className:
|
|
108
|
-
disabled:
|
|
109
|
-
icon:
|
|
110
|
-
onClick:
|
|
107
|
+
shouldShow: I,
|
|
108
|
+
children: /* @__PURE__ */ n(N, {
|
|
109
|
+
content: o(i.thumbsDownAriaLabel),
|
|
110
|
+
children: /* @__PURE__ */ n(y, {
|
|
111
|
+
"aria-label": o(i.thumbsDownAriaLabel),
|
|
112
|
+
className: m ? "" : rt.thumbDown,
|
|
113
|
+
disabled: u === r.THUMB_UP,
|
|
114
|
+
icon: u === r.THUMB_DOWN ? W : A,
|
|
115
|
+
onClick: $,
|
|
111
116
|
size: "x-small",
|
|
117
|
+
variant: m ? "icon-logo" : "default",
|
|
112
118
|
"data-target-id": "IconButton-thumbsDownAriaLabel"
|
|
113
119
|
})
|
|
114
120
|
})
|
|
@@ -116,6 +122,6 @@ import '../../../../styles/thumb-buttons.css';const C = "_thumbDown_1axcd_1", q
|
|
|
116
122
|
});
|
|
117
123
|
};
|
|
118
124
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
125
|
+
Mt as ThumbButtons,
|
|
126
|
+
Mt as default
|
|
121
127
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "@box/blueprint-web";
|
|
2
2
|
import "@box/blueprint-web-assets/icons/Line";
|
|
3
|
+
import "@box/blueprint-web-assets/icons/Medium";
|
|
3
4
|
import "clsx";
|
|
4
5
|
import "react-intl";
|
|
5
6
|
import "./messages.js";
|
|
6
|
-
import { C, C as
|
|
7
|
+
import { C as n, C as s } from "../../../../chunks/clear-conversation-button.js";
|
|
7
8
|
import "react/jsx-runtime";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
n as ClearConversationButton,
|
|
11
|
+
s as default
|
|
11
12
|
};
|