@box/box-ai-content-answers 0.152.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/da-DK.js +1 -0
- package/dist/i18n/de-DE.js +1 -0
- package/dist/i18n/en-AU.js +1 -0
- package/dist/i18n/en-CA.js +1 -0
- package/dist/i18n/en-GB.js +1 -0
- package/dist/i18n/en-US.js +1 -0
- package/dist/i18n/en-US.properties +2 -0
- package/dist/i18n/en-x-pseudo.js +1 -0
- package/dist/i18n/es-419.js +1 -0
- package/dist/i18n/es-ES.js +1 -0
- package/dist/i18n/fi-FI.js +1 -0
- package/dist/i18n/fr-CA.js +1 -0
- package/dist/i18n/fr-FR.js +1 -0
- package/dist/i18n/hi-IN.js +1 -0
- package/dist/i18n/it-IT.js +1 -0
- package/dist/i18n/ja-JP.js +1 -0
- package/dist/i18n/json/src/lib/components/answer/messages.json +1 -1
- package/dist/i18n/ko-KR.js +1 -0
- package/dist/i18n/nb-NO.js +1 -0
- package/dist/i18n/nl-NL.js +1 -0
- package/dist/i18n/pl-PL.js +1 -0
- package/dist/i18n/pt-BR.js +1 -0
- package/dist/i18n/ru-RU.js +1 -0
- package/dist/i18n/sv-SE.js +1 -0
- package/dist/i18n/tr-TR.js +1 -0
- package/dist/i18n/zh-CN.js +1 -0
- package/dist/i18n/zh-TW.js +1 -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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"boxAI.contentAnswers.basedOn","description":"Label for the references used for generating the answer from the AI service","defaultMessage":"Based on:"},{"id":"boxAI.contentAnswers.cardTooltipButton","description":"Text for button to open citation reference in a new tab","defaultMessage":"Open document"},{"id":"boxAI.contentAnswers.cardTooltipTitle","description":"Title of citation card tooltip in answer references section","defaultMessage":"From document:"},{"id":"boxAI.contentAnswers.cardTooltipTitleWithDocumentName","description":"Title of citation card tooltip in answer references section with document title","defaultMessage":"From \"{title}\":"},{"id":"boxAI.textInputWithCopyButton.copyButtonSuccessText","description":"Text for copy button in input with copy button indicating copy success","defaultMessage":"Copied"},{"id":"boxAI.contentAnswers.copyToClipboard","description":"Copy to clipboard tooltip","defaultMessage":"Copy to Clipboard"},{"id":"boxAI.contentAnswers.copyToClipboardSucceeded","description":"Notification displayed to the user when the answer has been successfully copied to the clipboard","defaultMessage":"Copied to your clipboard"},{"id":"boxAI.contentAnswers.feedbackTooltipCancel","description":"Cancel button text for the feedback tooltip","defaultMessage":"Cancel"},{"id":"boxAI.contentAnswers.feedbackTooltipConfirmation","description":"Confirmation message after submitting feedback in the feedback tooltip","defaultMessage":"Thank you for the feedback."},{"id":"boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer","description":"Disclaimer informing how to report inappropriate content in the feedback tooltip","defaultMessage":"To report inappropriate content, email {abuseEmailLink}"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedback","description":"Label for the feedback text area in the feedback tooltip","defaultMessage":"How can we improve the experience?"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedbackPlaceholder","description":"Placeholder text for the feedback text area in the feedback tooltip","defaultMessage":"We'd love to hear from you! Please omit personal info, sensitive content, or links in your feedback as submissions to Box aren't confidential."},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel","description":"Label for the feedback type radio group in the feedback tooltip","defaultMessage":"What type of issue do you wish to report?"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer1","description":"Label for the first radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Inaccurate answer"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2","description":"Label for the second radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Did not follow my request"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3","description":"Label for the third radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Other"},{"id":"boxAI.contentAnswers.feedbackTooltipTitle","description":"Title of a tooltip that asks the user to share feedback on the answer","defaultMessage":"Share your feedback"},{"id":"boxAI.contentAnswers.feedbackTooltipSubmit","description":"Submit button text for the feedback tooltip","defaultMessage":"Submit"},{"id":"boxAI.contentAnswers.inlineNoContentErrorText","description":"Content Answers error message when the service returns 204 (no content)","defaultMessage":"Relevant content cannot be found. Please try again later or ask a different question."},{"id":"boxAI.contentAnswers.inlineAgentNotFoundErrorText","description":"Content Answers error message when the answer fails due to an invalid agent","defaultMessage":"The selected agent is unavailable. Switching to the default agent."},{"id":"boxAI.contentAnswers.inlineErrorText","description":"Content Answers error message when the service fails","defaultMessage":"Box AI is having trouble generating a response right now. Please try again."},{"id":"boxAI.contentAnswers.inlineRateLimitingErrorText","description":"Content Answers error message when the service fails due to rate limiting","defaultMessage":"Box AI currently has limited capacity (we're working to expand bandwidth). Please try again in a few minutes."},{"id":"boxAI.contentAnswers.inlinePreconditionFailedErrorText","description":"Content Answers error message when the AI service has not yet processed the file","defaultMessage":"Additional time is needed to process this {type}, please try again later."},{"id":"boxAI.contentAnswers.loadingAnswer","description":"Aria label to show while waiting for an answer","defaultMessage":"Loading Answer..."},{"id":"boxAI.contentAnswers.noReferences","description":"Loading message if there are no citations for an answer","defaultMessage":"Response based on general document analysis"},{"id":"boxAI.contentAnswers.referenceAriaLabel","description":"ARIA label designed for screen readers to enhance clarity during the reading of citations, minimizing confusion.","defaultMessage":"Reference {number}"},{"id":"boxAI.contentAnswers.responseInterruptedError","description":"Error message to be displayed within an answer during streaming mode if the answer was interrupted due to a lack of tokens.","defaultMessage":"Response Interrupted"},{"id":"boxAI.contentAnswers.responseFailedError","description":"Error message to be displayed within an answer during streaming mode if there was another error, such as network errors.","defaultMessage":"Response Failed"},{"id":"boxAI.contentAnswers.responseStoppedError","description":"Error message to be displayed within an answer during streaming mode if the answer was stopped using the Stop Response button.","defaultMessage":"Response Stopped"},{"id":"boxAI.contentAnswers.thumbsUpAriaLabel","description":"Aria label for thumbs up icon","defaultMessage":"Helpful"},{"id":"boxAI.contentAnswers.thumbsDownAriaLabel","description":"Aria label for thumbs down icon","defaultMessage":"Not helpful"},{"id":"boxAI.contentAnswers.inlineCitationAriaLabel","description":"Aria label for inline citation button to open file in new tab","defaultMessage":"Open {fileName} in new tab"}]
|
|
1
|
+
[{"id":"boxAI.contentAnswers.basedOn","description":"Label for the references used for generating the answer from the AI service","defaultMessage":"Based on:"},{"id":"boxAI.contentAnswers.cardTooltipButton","description":"Text for button to open citation reference in a new tab","defaultMessage":"Open document"},{"id":"boxAI.contentAnswers.cardTooltipTitle","description":"Title of citation card tooltip in answer references section","defaultMessage":"From document:"},{"id":"boxAI.contentAnswers.cardTooltipTitleWithDocumentName","description":"Title of citation card tooltip in answer references section with document title","defaultMessage":"From \"{title}\":"},{"id":"boxAI.textInputWithCopyButton.copyButtonSuccessText","description":"Text for copy button in input with copy button indicating copy success","defaultMessage":"Copied"},{"id":"boxAI.contentAnswers.copyToClipboard","description":"Copy to clipboard tooltip","defaultMessage":"Copy to Clipboard"},{"id":"boxAI.contentAnswers.copyToClipboardSucceeded","description":"Notification displayed to the user when the answer has been successfully copied to the clipboard","defaultMessage":"Copied to your clipboard"},{"id":"boxAI.contentAnswers.feedbackTooltipCancel","description":"Cancel button text for the feedback tooltip","defaultMessage":"Cancel"},{"id":"boxAI.contentAnswers.feedbackTooltipConfirmation","description":"Confirmation message after submitting feedback in the feedback tooltip","defaultMessage":"Thank you for the feedback."},{"id":"boxAI.contentAnswers.feedbackTooltipAbuseDisclaimer","description":"Disclaimer informing how to report inappropriate content in the feedback tooltip","defaultMessage":"To report inappropriate content, email {abuseEmailLink}"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedback","description":"Label for the feedback text area in the feedback tooltip","defaultMessage":"How can we improve the experience?"},{"id":"boxAI.contentAnswers.feedbackTooltipFeedbackPlaceholder","description":"Placeholder text for the feedback text area in the feedback tooltip","defaultMessage":"We'd love to hear from you! Please omit personal info, sensitive content, or links in your feedback as submissions to Box aren't confidential."},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel","description":"Label for the feedback type radio group in the feedback tooltip","defaultMessage":"What type of issue do you wish to report?"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer1","description":"Label for the first radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Inaccurate answer"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2","description":"Label for the second radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Did not follow my request"},{"id":"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3","description":"Label for the third radio button in the feedback type radio group in the feedback tooltip","defaultMessage":"Other"},{"id":"boxAI.contentAnswers.feedbackTooltipPromptShareConsent","description":"Label for checkbox to consent for prompt and answer sharing in the tooltip that asks the user to share feedback on the answer","defaultMessage":"Share my prompt and response to help improve product quality."},{"id":"boxAI.contentAnswers.feedbackTooltipTitle","description":"Title of a tooltip that asks the user to share feedback on the answer","defaultMessage":"Share your feedback"},{"id":"boxAI.contentAnswers.feedbackTooltipSubmit","description":"Submit button text for the feedback tooltip","defaultMessage":"Submit"},{"id":"boxAI.contentAnswers.inlineNoContentErrorText","description":"Content Answers error message when the service returns 204 (no content)","defaultMessage":"Relevant content cannot be found. Please try again later or ask a different question."},{"id":"boxAI.contentAnswers.inlineAgentNotFoundErrorText","description":"Content Answers error message when the answer fails due to an invalid agent","defaultMessage":"The selected agent is unavailable. Switching to the default agent."},{"id":"boxAI.contentAnswers.inlineErrorText","description":"Content Answers error message when the service fails","defaultMessage":"Box AI is having trouble generating a response right now. Please try again."},{"id":"boxAI.contentAnswers.inlineRateLimitingErrorText","description":"Content Answers error message when the service fails due to rate limiting","defaultMessage":"Box AI currently has limited capacity (we're working to expand bandwidth). Please try again in a few minutes."},{"id":"boxAI.contentAnswers.inlinePreconditionFailedErrorText","description":"Content Answers error message when the AI service has not yet processed the file","defaultMessage":"Additional time is needed to process this {type}, please try again later."},{"id":"boxAI.contentAnswers.loadingAnswer","description":"Aria label to show while waiting for an answer","defaultMessage":"Loading Answer..."},{"id":"boxAI.contentAnswers.noReferences","description":"Loading message if there are no citations for an answer","defaultMessage":"Response based on general document analysis"},{"id":"boxAI.contentAnswers.referenceAriaLabel","description":"ARIA label designed for screen readers to enhance clarity during the reading of citations, minimizing confusion.","defaultMessage":"Reference {number}"},{"id":"boxAI.contentAnswers.responseInterruptedError","description":"Error message to be displayed within an answer during streaming mode if the answer was interrupted due to a lack of tokens.","defaultMessage":"Response Interrupted"},{"id":"boxAI.contentAnswers.responseFailedError","description":"Error message to be displayed within an answer during streaming mode if there was another error, such as network errors.","defaultMessage":"Response Failed"},{"id":"boxAI.contentAnswers.responseStoppedError","description":"Error message to be displayed within an answer during streaming mode if the answer was stopped using the Stop Response button.","defaultMessage":"Response Stopped"},{"id":"boxAI.contentAnswers.thumbsUpAriaLabel","description":"Aria label for thumbs up icon","defaultMessage":"Helpful"},{"id":"boxAI.contentAnswers.thumbsDownAriaLabel","description":"Aria label for thumbs down icon","defaultMessage":"Not helpful"},{"id":"boxAI.contentAnswers.inlineCitationAriaLabel","description":"Aria label for inline citation button to open file in new tab","defaultMessage":"Open {fileName} in new tab"}]
|
package/dist/i18n/ko-KR.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": "{parentItem,select,other{{parentItem}의}} {numberOfItems,plural,other{위치{files}}}",
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Fulgte ikke forespørselen min",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Annet",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Hvilken type problem ønsker du å rapportere?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Send inn",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Del tilbakemeldingen din.",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ i {parentItem}}}",
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Voldeed niet aan mijn verzoek.",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Overige",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Welk type probleem wilt u melden?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Indienen",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Deel uw feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Nie uwzględniono mojej prośby.",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Inna",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Jaki rodzaj problemu chcesz zgłosić?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Prześlij",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Udostępnij swoją opinię.",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}} few{{files}}}{parentItem,select,other{ w {parentItem}}}",
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Não seguiu minha solicitação",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Outro",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Que tipo de problema você deseja relatar?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Enviar",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Compartilhe seu feedback",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ em {parentItem}}}",
|
package/dist/i18n/ru-RU.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, undefined {} other { в {parentItem}}}",
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "Följde inte min begäran",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Övrigt",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Vilken typ av problem vill du rapportera?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Skicka in",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Dela din återkoppling",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer2": "İsteğime uymadı",
|
|
30
30
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeAnswer3": "Diğer",
|
|
31
31
|
"boxAI.contentAnswers.feedbackTooltipIssueTypeLabel": "Ne tür bir sorun bildirmek istiyorsunuz?",
|
|
32
|
+
"boxAI.contentAnswers.feedbackTooltipPromptShareConsent": "Share my prompt and response to help improve product quality.",
|
|
32
33
|
"boxAI.contentAnswers.feedbackTooltipSubmit": "Gönder",
|
|
33
34
|
"boxAI.contentAnswers.feedbackTooltipTitle": "Geri bildiriminizi paylaşın",
|
|
34
35
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ konum {parentItem}}}",
|
package/dist/i18n/zh-CN.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})}}",
|
package/dist/i18n/zh-TW.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}}}",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
div.
|
|
1
|
+
div._feedbackTooltip_hjxds_1{z-index:var(--z-index-modal);max-width:24rem;padding-block-end:var(--space-4);padding-block-start:var(--space-4);padding-inline:var(--space-4)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipForm_hjxds_8{gap:var(--bp-space-050, 1.25rem);width:20.375rem}div._feedbackTooltip_hjxds_1 ._feedbackTooltipTitle_hjxds_12{margin-block-end:var(--space-5)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipTextarea_hjxds_15{margin-block-start:var(--space-5)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipSubmitBtn_hjxds_18{margin-inline-start:var(--space-2)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipPromptShareConsent_hjxds_21{margin-block-start:var(--space-4)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipAbuseDisclaimer_hjxds_24{margin-block-start:var(--space-5);color:var(--text-text-on-light-secondary)}div._feedbackTooltip_hjxds_1 ._feedbackTooltipAbuseDisclaimer_hjxds_24 ._feedbackTooltipAbuseLink_hjxds_28{color:var(--text-text-on-light-secondary);font-size:var(--bp-font-size-03, .75rem)}
|
|
@@ -38,10 +38,14 @@ export interface AnswerProps {
|
|
|
38
38
|
onFeedbackFormSubmit?: (data: FeedbackFormData, onSuccess: () => void) => void;
|
|
39
39
|
/** Callback function for feedback tooltip open change */
|
|
40
40
|
onFeedbackTooltipOpenChange?: (isOpen: boolean, questionId: string) => void;
|
|
41
|
+
/** Prompt content to optionally include in feedback data */
|
|
42
|
+
prompt?: string;
|
|
41
43
|
/** Callback function to handle logging events */
|
|
42
44
|
recordAction?: (params: RecordActionType) => void;
|
|
43
45
|
/** Whether the feedback form includes feedback text field */
|
|
44
46
|
shouldFeedbackFormIncludeFeedbackText?: boolean;
|
|
47
|
+
/** Whether the feedback should include prompt and answer data */
|
|
48
|
+
shouldFeedbackIncludePromptData?: boolean;
|
|
45
49
|
/** If keyframe animation for appearing answer should be applied */
|
|
46
50
|
useAnimation?: boolean;
|
|
47
51
|
variant?: StyleVariant;
|
|
@@ -6,7 +6,8 @@ export type FeedbackTooltipProps = {
|
|
|
6
6
|
onOpenChange: (isOpen: boolean) => void;
|
|
7
7
|
onSubmit: (values: FeedbackFormValues) => void;
|
|
8
8
|
shouldIncludeFeedbackText?: boolean;
|
|
9
|
+
shouldIncludePromptShareConsent?: boolean;
|
|
9
10
|
shouldShow: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const FeedbackTooltip: ({ children, isOpen, onOpenChange, onSubmit, shouldIncludeFeedbackText, shouldShow, }: FeedbackTooltipProps) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const FeedbackTooltip: ({ children, isOpen, onOpenChange, onSubmit, shouldIncludeFeedbackText, shouldIncludePromptShareConsent, shouldShow, }: FeedbackTooltipProps) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default FeedbackTooltip;
|
|
@@ -79,6 +79,11 @@ declare const messages: {
|
|
|
79
79
|
description: string;
|
|
80
80
|
id: string;
|
|
81
81
|
};
|
|
82
|
+
feedbackTooltipPromptShareConsent: {
|
|
83
|
+
defaultMessage: string;
|
|
84
|
+
description: string;
|
|
85
|
+
id: string;
|
|
86
|
+
};
|
|
82
87
|
feedbackTooltipTitle: {
|
|
83
88
|
defaultMessage: string;
|
|
84
89
|
description: string;
|
|
@@ -6,13 +6,16 @@ export type ThumbButtonsProps = {
|
|
|
6
6
|
isFeedbackTooltipOpen?: boolean;
|
|
7
7
|
items: ItemType[];
|
|
8
8
|
onFeedbackTooltipOpenChange?: (isOpen: boolean, questionId: string) => void;
|
|
9
|
+
prompt?: string;
|
|
9
10
|
promptType?: PromptType;
|
|
10
11
|
questionId: string;
|
|
11
12
|
onFeedbackFormSubmit?: (data: FeedbackFormData, onSuccess: () => void) => void;
|
|
12
13
|
recordAction?: (params: RecordActionType) => void;
|
|
14
|
+
response?: string;
|
|
13
15
|
setAnswerFeedback?: (questionId: string, feedbackValue: FeedbackValue) => void;
|
|
14
16
|
shouldFeedbackFormIncludeFeedbackText?: boolean;
|
|
17
|
+
shouldFeedbackIncludePromptData?: boolean;
|
|
15
18
|
variant: StyleVariant;
|
|
16
19
|
};
|
|
17
|
-
export declare const ThumbButtons: ({ feedbackValue, hostAppName, isFeedbackFormEnabled, isFeedbackTooltipOpen, items, onFeedbackFormSubmit, onFeedbackTooltipOpenChange, promptType, questionId, recordAction, setAnswerFeedback, shouldFeedbackFormIncludeFeedbackText, variant, }: ThumbButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const ThumbButtons: ({ feedbackValue, hostAppName, isFeedbackFormEnabled, isFeedbackTooltipOpen, items, onFeedbackFormSubmit, onFeedbackTooltipOpenChange, prompt, promptType, questionId, recordAction, response, setAnswerFeedback, shouldFeedbackFormIncludeFeedbackText, shouldFeedbackIncludePromptData, variant, }: ThumbButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export default ThumbButtons;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChatProps } from '../../types';
|
|
2
|
-
export declare const Chat: ({ askSuggestedQuestion, contentType, hasCustomSuggestedQuestions, hasRequestInProgress, isCitationsEnabled, isFeedbackEnabled, isFeedbackFormEnabled, isInlineCitationsEnabled, isMarkdownEnabled, isSessionLoading, onCitationClick, onAnswerCopy, onFeedbackFormSubmit, onSuggestedQuestionInteraction, questions, recordAction, setAnswerFeedback, setAskSuggestedQuestion, suggestedQuestions, suggestedQuestionsRequestState, shouldFeedbackFormIncludeFeedbackText, shouldShowLandingPage, useAnimation, variant, hostAppName, isReactMarkdownEnabled, welcomeMessageClearText, ...welcomeMessageProps }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Chat: ({ askSuggestedQuestion, contentType, hasCustomSuggestedQuestions, hasRequestInProgress, isCitationsEnabled, isFeedbackEnabled, isFeedbackFormEnabled, isInlineCitationsEnabled, isMarkdownEnabled, isSessionLoading, onCitationClick, onAnswerCopy, onFeedbackFormSubmit, onSuggestedQuestionInteraction, questions, recordAction, setAnswerFeedback, setAskSuggestedQuestion, suggestedQuestions, suggestedQuestionsRequestState, shouldFeedbackFormIncludeFeedbackText, shouldFeedbackIncludePromptData, shouldShowLandingPage, useAnimation, variant, hostAppName, isReactMarkdownEnabled, welcomeMessageClearText, ...welcomeMessageProps }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Chat;
|
|
@@ -129,6 +129,8 @@ export type ChatProps = WelcomeMessageProps & {
|
|
|
129
129
|
onSuggestedQuestionInteraction?: () => void;
|
|
130
130
|
/** Whether the feedback form includes feedback text field */
|
|
131
131
|
shouldFeedbackFormIncludeFeedbackText?: boolean;
|
|
132
|
+
/** Whether the feedback should include prompt and answer data */
|
|
133
|
+
shouldFeedbackIncludePromptData?: boolean;
|
|
132
134
|
variant?: StyleVariant;
|
|
133
135
|
hostAppName?: string;
|
|
134
136
|
/** Whether to use the new React Markdown renderer instead of the legacy Remarkable renderer */
|
|
@@ -197,6 +199,7 @@ export declare enum FeedbackIssueType {
|
|
|
197
199
|
}
|
|
198
200
|
export type FeedbackFormValues = {
|
|
199
201
|
feedback?: string;
|
|
202
|
+
feedbackPromptShareConsent?: boolean;
|
|
200
203
|
issueType: FeedbackIssueType | '';
|
|
201
204
|
};
|
|
202
205
|
export type FeedbackValue = 'positive' | 'negative' | 'none';
|
|
@@ -266,9 +269,12 @@ export type FeedbackFormData = {
|
|
|
266
269
|
feedback?: string;
|
|
267
270
|
fileTypes: string[];
|
|
268
271
|
hasFeedback?: boolean;
|
|
272
|
+
hasPromptData: boolean;
|
|
269
273
|
hostApp: string;
|
|
270
274
|
issueType: FeedbackIssueType | '';
|
|
275
|
+
prompt?: string;
|
|
271
276
|
questionId: string;
|
|
277
|
+
response?: string;
|
|
272
278
|
selectedAgentName?: string;
|
|
273
279
|
timestamp: number;
|
|
274
280
|
};
|