@box/box-ai-content-answers 0.86.2 → 0.87.2
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/chunks/clear-conversation-button.js +12 -13
- package/chunks/markdown.js +12168 -0
- package/esm/lib/box-ai-content-answers.js +11 -12
- package/esm/lib/components/agents/agent-editor.js +7 -8
- package/esm/lib/components/agents/agent-selector.js +3 -4
- package/esm/lib/components/answer/answer-content.js +5 -6
- package/esm/lib/components/answer/answer.js +604 -107
- package/esm/lib/components/answer/citation.js +4 -5
- package/esm/lib/components/answer/inline-error.js +4 -5
- package/esm/lib/components/answer/loading-element.js +4 -5
- package/esm/lib/components/answer/references.js +19 -20
- package/esm/lib/components/answer/thumb-buttons.js +11 -12
- package/esm/lib/components/chat/chat.js +13 -14
- package/esm/lib/components/common/markdown.js +3 -12212
- package/esm/lib/components/common/media-container.js +10 -11
- package/esm/lib/components/content/content.js +4 -5
- package/esm/lib/components/footer/footer-actions.js +3 -4
- package/esm/lib/components/footer/footer.js +3 -4
- package/esm/lib/components/modal-error/modal-error.js +3 -4
- package/esm/lib/components/question/question.js +12 -13
- package/esm/lib/components/suggested-questions/suggested-questions.js +10 -11
- package/esm/lib/components/suggested-questions/suggestions.js +8 -9
- package/esm/lib/components/welcome-message/contextual-items-message.js +4 -5
- package/esm/lib/components/welcome-message/items-dropdown.js +15 -16
- package/esm/lib/components/welcome-message/unsupported-items-notice.js +9 -10
- package/esm/lib/components/welcome-message/welcome-message.js +11 -12
- package/i18n/bn-IN.js +3 -3
- package/i18n/bn-IN.properties +7 -3
- package/i18n/da-DK.js +3 -3
- package/i18n/da-DK.properties +7 -3
- package/i18n/de-DE.js +3 -3
- package/i18n/de-DE.properties +7 -3
- package/i18n/en-AU.js +3 -3
- package/i18n/en-AU.properties +7 -3
- package/i18n/en-CA.js +1 -1
- package/i18n/en-CA.properties +5 -1
- package/i18n/en-GB.js +3 -3
- package/i18n/en-GB.properties +7 -3
- package/i18n/en-x-pseudo.js +59 -59
- package/i18n/en-x-pseudo.properties +61 -57
- package/i18n/es-419.js +3 -3
- package/i18n/es-419.properties +7 -3
- package/i18n/es-ES.js +3 -3
- package/i18n/es-ES.properties +7 -3
- package/i18n/fi-FI.js +3 -3
- package/i18n/fi-FI.properties +7 -3
- package/i18n/fr-CA.js +3 -3
- package/i18n/fr-CA.properties +7 -3
- package/i18n/fr-FR.js +3 -3
- package/i18n/fr-FR.properties +7 -3
- package/i18n/hi-IN.js +3 -3
- package/i18n/hi-IN.properties +7 -3
- package/i18n/it-IT.js +3 -3
- package/i18n/it-IT.properties +7 -3
- package/i18n/ja-JP.js +4 -4
- package/i18n/ja-JP.properties +8 -4
- package/i18n/ko-KR.js +3 -3
- package/i18n/ko-KR.properties +7 -3
- package/i18n/nb-NO.js +3 -3
- package/i18n/nb-NO.properties +7 -3
- package/i18n/nl-NL.js +3 -3
- package/i18n/nl-NL.properties +7 -3
- package/i18n/pl-PL.js +3 -3
- package/i18n/pl-PL.properties +7 -3
- package/i18n/pt-BR.js +3 -3
- package/i18n/pt-BR.properties +7 -3
- package/i18n/ru-RU.js +3 -3
- package/i18n/ru-RU.properties +7 -3
- package/i18n/sv-SE.js +3 -3
- package/i18n/sv-SE.properties +7 -3
- package/i18n/tr-TR.js +3 -3
- package/i18n/tr-TR.properties +7 -3
- package/i18n/zh-CN.js +3 -3
- package/i18n/zh-CN.properties +7 -3
- package/i18n/zh-TW.js +3 -3
- package/i18n/zh-TW.properties +7 -3
- package/package.json +7 -7
- package/types/lib/box-ai-content-answers.d.ts +1 -1
- package/types/lib/components/agents/agent-editor.d.ts +1 -1
- package/types/lib/components/agents/agent-selector.d.ts +1 -1
- package/types/lib/components/agents/stories/shared.d.ts +3 -3
- package/types/lib/components/answer/answer-content.d.ts +2 -2
- package/types/lib/components/answer/answer.d.ts +1 -1
- package/types/lib/components/answer/citation.d.ts +1 -1
- package/types/lib/components/answer/copy-button.d.ts +1 -1
- package/types/lib/components/answer/inline-error.d.ts +1 -1
- package/types/lib/components/answer/loading-element.d.ts +1 -1
- package/types/lib/components/answer/no-citations.d.ts +1 -1
- package/types/lib/components/answer/references.d.ts +1 -1
- package/types/lib/components/answer/stories/shared.d.ts +1 -1
- package/types/lib/components/answer/thumb-buttons.d.ts +1 -1
- package/types/lib/components/api-wrapper/api-wrapper.d.ts +1 -1
- package/types/lib/components/api-wrapper/constants.d.ts +1 -1
- package/types/lib/components/api-wrapper/content-answers-component.d.ts +1 -1
- package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +4 -4
- package/types/lib/components/api-wrapper/records.d.ts +1 -1
- package/types/lib/components/api-wrapper/stories/shared.d.ts +1 -1
- package/types/lib/components/api-wrapper/test-utils/ReadableStreamSimulator.d.ts +1 -1
- package/types/lib/components/api-wrapper/types.d.ts +3 -3
- package/types/lib/components/api-wrapper/utils/format.d.ts +1 -1
- package/types/lib/components/api-wrapper/utils/request.d.ts +3 -3
- package/types/lib/components/api-wrapper/utils/stream.d.ts +1 -1
- package/types/lib/components/chat/chat.d.ts +1 -1
- package/types/lib/components/common/constants.d.ts +1 -1
- package/types/lib/components/common/media-container.d.ts +2 -2
- package/types/lib/components/common/mock-data.d.ts +4 -4
- package/types/lib/components/content/content.d.ts +1 -1
- package/types/lib/components/footer/footer-actions.d.ts +1 -1
- package/types/lib/components/footer/footer.d.ts +1 -1
- package/types/lib/components/footer/stories/shared.d.ts +7 -7
- package/types/lib/components/modal/modal.d.ts +5 -5
- package/types/lib/components/modal/stories/shared.d.ts +2 -2
- package/types/lib/components/modal-error/stories/shared.d.ts +1 -1
- package/types/lib/components/question/question.d.ts +1 -1
- package/types/lib/components/question/stories/shared.d.ts +1 -1
- package/types/lib/components/suggested-questions/mocks.d.ts +1 -1
- package/types/lib/components/suggested-questions/stories/shared.d.ts +1 -1
- package/types/lib/components/suggested-questions/suggested-questions.d.ts +1 -1
- package/types/lib/components/suggested-questions/suggestions.d.ts +1 -1
- package/types/lib/components/welcome-message/contextual-items-message.d.ts +1 -1
- package/types/lib/components/welcome-message/items-dropdown.d.ts +1 -1
- package/types/lib/components/welcome-message/stories/shared.d.ts +4 -4
- package/types/lib/components/welcome-message/unsupported-items-notice.d.ts +1 -1
- package/types/lib/components/welcome-message/welcome-message.d.ts +1 -1
- package/types/lib/contexts/AgentsContext.d.ts +1 -1
- package/types/lib/stories/shared.d.ts +3 -3
- package/types/lib/types.d.ts +2 -2
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { Tooltip as r, IconButton as a } from "@box/blueprint-web";
|
|
1
|
+
import { Tooltip as a, IconButton as r } from "@box/blueprint-web";
|
|
3
2
|
import { Trash as s } from "@box/blueprint-web-assets/icons/Line";
|
|
4
3
|
import { useIntl as l } from "react-intl";
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
7
|
-
const c = "_BoxAIIconColor_1nf8s_1",
|
|
4
|
+
import n from "../esm/lib/components/modal/messages.js";
|
|
5
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
+
import '../styles/clear-conversation-button.css';const c = "_BoxAIIconColor_1nf8s_1", _ = "_modalHeader_1nf8s_5", i = "_contentAnswersModal_1nf8s_10", d = "_boxAiContentAnswers_1nf8s_17", m = "_clearButton_1nf8s_25", f = "_contentAnswerModal_1nf8s_1", C = "_modalHeaderContainer_1nf8s_54", g = "_agentSelectorTrigger_1nf8s_62", A = "_agentSelectorContent_1nf8s_73", u = {
|
|
8
7
|
BoxAIIconColor: c,
|
|
9
|
-
modalHeader:
|
|
10
|
-
contentAnswersModal:
|
|
8
|
+
modalHeader: _,
|
|
9
|
+
contentAnswersModal: i,
|
|
11
10
|
boxAiContentAnswers: d,
|
|
12
11
|
clearButton: m,
|
|
13
12
|
"modal-close-button": "_modal-close-button_1nf8s_29",
|
|
@@ -15,16 +14,16 @@ const c = "_BoxAIIconColor_1nf8s_1", i = "_modalHeader_1nf8s_5", _ = "_contentAn
|
|
|
15
14
|
modalHeaderContainer: C,
|
|
16
15
|
agentSelectorTrigger: g,
|
|
17
16
|
agentSelectorContent: A
|
|
18
|
-
},
|
|
17
|
+
}, I = ({
|
|
19
18
|
onClick: e
|
|
20
19
|
}) => {
|
|
21
20
|
const o = l();
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
content: o.formatMessage(
|
|
21
|
+
return /* @__PURE__ */ t(a, {
|
|
22
|
+
content: o.formatMessage(n.clearConversationLabel),
|
|
24
23
|
"data-testid": "clear-conversation-tooltip",
|
|
25
24
|
variant: "standard",
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
"aria-label": o.formatMessage(
|
|
25
|
+
children: /* @__PURE__ */ t(r, {
|
|
26
|
+
"aria-label": o.formatMessage(n.clearConversationLabel),
|
|
28
27
|
className: u.clearButton,
|
|
29
28
|
"data-testid": "clear-conversation-button",
|
|
30
29
|
icon: s,
|
|
@@ -34,6 +33,6 @@ const c = "_BoxAIIconColor_1nf8s_1", i = "_modalHeader_1nf8s_5", _ = "_contentAn
|
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
I as C,
|
|
38
37
|
u as s
|
|
39
38
|
};
|