@box/box-ai-content-answers 0.150.0 → 0.151.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/chunks/markdown.module.js +19 -0
- package/dist/esm/lib/components/answer/answer.js +123 -127
- package/dist/esm/lib/components/answer/messages.js +4 -0
- package/dist/esm/lib/components/answer/thumb-buttons.js +31 -31
- package/dist/esm/lib/components/common/inline-citation.js +47 -0
- package/dist/esm/lib/components/common/markdown-react.js +81 -59
- package/dist/esm/lib/components/common/markdown.js +723 -721
- package/dist/esm/lib/utils/inlineCitationsUtils.js +36 -0
- 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/markdown.css +1 -7
- package/dist/styles/markdown2.css +7 -0
- package/dist/types/lib/components/answer/answer.d.ts +1 -2
- package/dist/types/lib/components/answer/messages.d.ts +5 -0
- package/dist/types/lib/components/answer/stories/shared.d.ts +15 -3
- package/dist/types/lib/components/common/inline-citation.d.ts +7 -0
- package/dist/types/lib/utils/inlineCitationsUtils.d.ts +17 -0
- package/package.json +1 -1
- package/dist/esm/lib/utils/getBoxLinks.js +0 -13
- package/dist/types/lib/utils/getBoxLinks.d.ts +0 -15
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const d = (e) => {
|
|
2
|
+
try {
|
|
3
|
+
const {
|
|
4
|
+
hostname: o
|
|
5
|
+
} = new URL(e);
|
|
6
|
+
return o.endsWith(".box.com") || o.endsWith(".box.net");
|
|
7
|
+
} catch {
|
|
8
|
+
return !1;
|
|
9
|
+
}
|
|
10
|
+
}, u = (e) => e.includes(".box.com") || e.includes(".box.net"), f = (e, o = {}) => {
|
|
11
|
+
const {
|
|
12
|
+
items: t = [],
|
|
13
|
+
isCompleted: r = !0,
|
|
14
|
+
isInlineCitationsEnabled: c = !0,
|
|
15
|
+
baseUrl: i = typeof window < "u" ? window.location.origin : ""
|
|
16
|
+
} = o;
|
|
17
|
+
if (!t.length || !r || !c)
|
|
18
|
+
return e;
|
|
19
|
+
let a = e;
|
|
20
|
+
return t.forEach((n) => {
|
|
21
|
+
if (!n.name)
|
|
22
|
+
return;
|
|
23
|
+
const l = `${i}/file/${n.id}`, $ = [`["${n.name}"]`, `['${n.name}']`, `[${n.name}]`, `("${n.name}")`, `('${n.name}')`, `(${n.name})`, `{"${n.name}"}`, `{'${n.name}'}`, `{${n.name}}`, `"${n.name}"`, `'${n.name}'`, n.name];
|
|
24
|
+
for (const s of $)
|
|
25
|
+
if (a.includes(s)) {
|
|
26
|
+
a = a.replaceAll(s, `[${n.name}](${l})`);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}), a;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
f as default,
|
|
33
|
+
f as injectInlineCitation,
|
|
34
|
+
u as isBoxCitation,
|
|
35
|
+
d as isBoxDomain
|
|
36
|
+
};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ এতে {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Box AI-এ ফিরে যান",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "বেছে নেওয়া এজেন্ট অনুপলভ্য। ডিফল্ট এজেন্টে স্যুইচ করা হচ্ছে।",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI-এর এই মুহূর্তে প্রতিক্রিয়া তৈরি করতে সমস্যা হচ্ছে। অনুগ্রহ করে আবার চেষ্টা করুন।",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "প্রাসঙ্গিক কনটেন্ট পাওয়া যাচ্ছে না। অনুগ্রহ করে পরে আবার চেষ্টা করুন বা অন্য প্রশ্ন করুন।",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "এটি {type} প্রক্রিয়া করার জন্য অতিরিক্ত সময় দরকার, অনুগ্রহ করে পরে আবার চেষ্টা করুন।",
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ i {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Gå tilbage til Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Den valgte agent er ikke tilgængelig. Skifter til standardagenten.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI har problemer med at generere et svar lige nu. Prøv venligst igen.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Det relevante indhold kan ikke findes. Prøv igen senere eller stil et andet spørgsmål.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Det tager længere tid at behandle denne {type}, prøv venligst igen senere.",
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Zurück zu Box-KI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Der ausgewählte Agent ist nicht verfügbar. Es wird zum Standardagenten gewechselt.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI hat gerade Probleme beim Generieren einer Antwort. Versuchen Sie es bitte noch einmal.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevante Inhalte können nicht gefunden werden. Versuchen Sie es bitte später noch einmal, oder stellen Sie eine andere Frage.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Für die Verarbeitung dieser {type} wird zusätzliche Zeit benötigt. Versuchen Sie es bitte später erneut.",
|
package/dist/i18n/en-AU.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} one{{firstItemName}} other{these {files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Return to Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "The selected agent is unavailable. Switching to the default agent.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI is having trouble generating a response right now. Please try again.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevant content cannot be found. Please try again later or ask a different question.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Additional time is needed to process this {type}, please try again later.",
|
package/dist/i18n/en-CA.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Return to Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "The selected agent is unavailable. Switching to the default agent.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI is having trouble generating a response right now. Please try again.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevant content cannot be found. Please try again later or ask a different question.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Additional time is needed to process this {type}, please try again later.",
|
package/dist/i18n/en-GB.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} one{{firstItemName}} other{these {files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Return to Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "The selected agent is unavailable. Switching to the default agent.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI is having trouble generating a response right now. Please try again.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevant content cannot be found. Please try again later or ask a different question.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Additional time is needed to process this {type}, please try again later.",
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Return to Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "The selected agent is unavailable. Switching to the default agent.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI is having trouble generating a response right now. Please try again.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevant content cannot be found. Please try again later or ask a different question.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Additional time is needed to process this {type}, please try again later.",
|
|
@@ -68,6 +68,8 @@ boxAI.contentAnswers.fileLandingText = {numberOfItems, plural, =1 {{firstItemNam
|
|
|
68
68
|
boxAI.contentAnswers.hasQuestionsTooltip = Return to Box AI
|
|
69
69
|
# Content Answers error message when the answer fails due to an invalid agent
|
|
70
70
|
boxAI.contentAnswers.inlineAgentNotFoundErrorText = The selected agent is unavailable. Switching to the default agent.
|
|
71
|
+
# Aria label for inline citation button to open file in new tab
|
|
72
|
+
boxAI.contentAnswers.inlineCitationAriaLabel = Open {fileName} in new tab
|
|
71
73
|
# Content Answers error message when the service fails
|
|
72
74
|
boxAI.contentAnswers.inlineErrorText = Box AI is having trouble generating a response right now. Please try again.
|
|
73
75
|
# Content Answers error message when the service returns 204 (no content)
|
package/dist/i18n/en-x-pseudo.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 {numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { ïή {parentItem}}} 國國國國國國國國國國國國國國⟧",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "⟦萬萬萬萬 Ѓėτüґň ťò Бσх ΑĬ 國國國國⟧",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ťнє ѕêĺëčťέď αğěňť ĩś μпäνàίļāвļė. Ŝŵīŧçĥìņğ τō ŧħé ďëƒâùĺŧ äĝĕйť. 國國國國國國國國國國國國國國國國國國國⟧",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 βóх ĄÎ îѕ нãνîлġ τŕöûьľё ğëήèŕαŧîиğ ą ѓęѕΡσйŝé ŕіğĥŧ πоŵ. Pĺėâśê ťѓý āğåίŋ. 國國國國國國國國國國國國國國國國國國國國國國⟧",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Γеľêνâήŧ ćôηťèйť ĉáηņõť вε ƒоµпď. Pļėāśĕ τŗŷ ăĝǻîл ľåťěŗ òŗ ǻѕķ ã ď샃éŗεпť qũεşτĩőή. 國國國國國國國國國國國國國國國國國國國國國國國國國⟧",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ãďďìŧĩоπäľ τïmę īś ŋĕėďêď ţõ Ρґöсεŝѕ ţĥīş {type}, Ρľëāѕе ŧŗý ãĝąϊή ľäťёг. 國國國國國國國國國國國國國國國國國國國國國⟧",
|
package/dist/i18n/es-419.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ en {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Volver a Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "El agente seleccionado no está disponible. Cambiar al agente predeterminado.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI tiene problemas para generar una respuesta en este momento. Inténtelo de nuevo.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "No se encuentran contenidos pertinentes. Inténtalo más tarde o haz otra pregunta.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Para procesar este {type} se requiere más tiempo, inténtalo de nuevo más tarde.",
|
package/dist/i18n/es-ES.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ en {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Volver a Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "El agente seleccionado no está disponible. Cambiar al agente predeterminado.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI tiene problemas para generar una respuesta en este momento. Inténtelo de nuevo.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "No se encuentran contenidos pertinentes. Inténtalo más tarde o haz otra pregunta.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Para procesar este {type} se requiere más tiempo, inténtalo de nuevo más tarde.",
|
package/dist/i18n/fi-FI.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ kohteessa {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Palaa Box AI:n kysymyksiin ja vastauksiin",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Valittu edustaja ei ole käytettävissä. Vaihdetaan oletusedustajaan.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI:lla on ongelmia vastauksen luomisessa juuri nyt. Yritä uudelleen.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Olennaista sisältöä ei löydy. Yritä myöhemmin uudelleen tai esitä toinen kysymys.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Tämän tyypin {type} käsittelyyn tarvitaan lisäaikaa. Yritä myöhemmin uudelleen.",
|
package/dist/i18n/fr-CA.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ dans {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Revenir dans Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "L'agent sélectionné est indisponible. Passer à l'agent par défaut.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI rencontre des difficultés à générer une réponse pour le moment. Veuillez réessayer.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Le contenu pertinent ne peut pas être trouvé. Veuillez réessayer plus tard ou poser une question différente.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Un délai supplémentaire est nécessaire pour traiter ce {type}, veuillez réessayer plus tard.",
|
package/dist/i18n/fr-FR.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ dans {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Revenir dans Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "L'agent sélectionné est indisponible. Passer à l'agent par défaut.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI rencontre des difficultés à générer une réponse pour le moment. Veuillez réessayer.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Le contenu pertinent ne peut pas être trouvé. Veuillez réessayer plus tard ou poser une question différente.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Un délai supplémentaire est nécessaire pour traiter ce {type}, veuillez réessayer plus tard.",
|
package/dist/i18n/hi-IN.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ अंदर {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Box AI में वापस जाएं",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "चयनित एजेंट, अनुपलब्ध है। डिफ़ॉल्ट एजेंट में स्विच किया जा रहा है।",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI अभी जवाब देने में असमर्थ है. कृपया थोड़ी देर बाद फिर से कोशिश करें.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "प्रासंगिक सामग्री को ढूँढा नहीं जा सकता। कृपया बाद में पुनः प्रयास करें या एक अलग प्रश्न पूछें।",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "इस {type} को प्रोसेस करने के लिए अतिरिक्त समय चाहिए, कृपया बाद में पुनः प्रयास करें.",
|
package/dist/i18n/it-IT.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Torna a Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "L'agente selezionato non è disponibile. Passaggio all'agente predefinito.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI sta riscontrando dei problemi durante la generazione della risposta, riprova.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Impossibile trovare i contenuti pertinenti. Riprova più tardi o fai una domanda diversa.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "È necessario ulteriore tempo per elaborare questo {type}, riprova più tardi.",
|
package/dist/i18n/ja-JP.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{parentItem, select, undefined {} other {{parentItem}の}}{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Box AIに戻る",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "選択したエージェントは利用できません。デフォルトエージェントに切り替えます。",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AIは現在応答を生成できません。もう一度やり直してください。",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "関連するコンテンツが見つかりません。後でもう一度やり直すか、別の質問を送信してください。",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "この{type}の処理には追加の時間が必要です。後でもう一度やり直してください。",
|
|
@@ -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"}]
|
|
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"}]
|
package/dist/i18n/ko-KR.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{parentItem,select,other{{parentItem}의}} {numberOfItems,plural,other{위치{files}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Box AI로 돌아가기",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "선택한 상담원은 이용할 수 없습니다. 기본 상담원으로 전환합니다.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "응답을 생성하는 중 Box AI에 문제가 발생했습니다. 다시 시도해 주십시오.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "관련 콘텐츠를 찾을 수 없습니다. 나중에 다시 시도하거나 다른 질문을 하십시오.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "이 {type}을 처리하는 데 추가 시간이 필요합니다. 나중에 다시 시도하십시오.",
|
package/dist/i18n/nb-NO.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ i {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Gå tilbake til Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Den valgte agenten er ikke tilgjengelig. Bytt til standardagenten.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI har problemer med å generere et svar akkurat nå. Prøv igjen.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Fant ikke noe relevant innhold Prøv igjen senere eller still et annet spørsmål.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Du må bruke ekstra tid på å behandle denne {type}, prøv igjen senere.",
|
package/dist/i18n/nl-NL.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Ga terug naar Box AI Q&A",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "De geselecteerde agent is niet beschikbaar. Overschakelen naar de standaardagent.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI heeft op dit moment problemen bij het genereren van een antwoord. Probeer het opnieuw.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevante inhoud kan niet worden gevonden. Probeer het later opnieuw of stel een andere vraag.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Er is extra tijd nodig om dit {type} te verwerken. Probeer het later opnieuw.",
|
package/dist/i18n/pl-PL.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}} few{{files}}}{parentItem,select,other{ w {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Wróć do usługi Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Wybrany agent jest niedostępny. Przełączanie na agenta domyślnego.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Obecnie występują problemy z generowaniem odpowiedzi w usłudze Box AI. Spróbuj ponownie.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Nie można znaleźć odpowiedniej zawartości. Spróbuj ponownie później lub zadaj inne pytanie.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Do przetworzenia tego {type} potrzebny jest dodatkowy czas. Spróbuj ponownie później.",
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ em {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Voltar ao Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "O agente selecionado não está disponível. Mudando para o agente padrão.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "O Box AI está tendo problemas para gerar uma resposta agora. Tente novamente.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Não é possível encontrar conteúdo relevante. Tente novamente mais tarde ou faça uma pergunta diferente.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "É necessário tempo adicional para processar esse {type}; tente novamente mais tarde.",
|
package/dist/i18n/ru-RU.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems, plural, =1 {{firstItemName}} other {{files}}}{parentItem, select, undefined {} other { в {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Возврат к ИИ Box",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Выбранный агент недоступен. Переход к агенту по умолчанию.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "В настоящий момент у Box AI возникают проблемы с генерацией ответа. Повторите попытку.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Не удалось найти соответствующий контент. Повторите попытку позже или задайте другой вопрос.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Для обработки этого {type} требуется дополнительное время. Повторите попытку позже.",
|
package/dist/i18n/sv-SE.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,undefined{} other{ in {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Återgå till Box AI Q&A",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Den valda agenten är inte tillgänglig. Växlar till standardagenten.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI har problem med att generera ett svar just nu. Försök igen.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "Relevant innehåll kan inte hittas. Försök igen senare eller ställ en annan fråga.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Mer tid behövs för att bearbeta denna {type}, försök igen senare.",
|
package/dist/i18n/tr-TR.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ konum {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "Box AI Soruları ve Yanıtları'na dön",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "Seçilen aracıya erişilemiyor. Varsayılan aracıya geçiliyor.",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI şu anda bir yanıt oluşturmakta sorun yaşıyor. Lütfen tekrar deneyin.",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "İlgili içerik bulunamıyor. Lütfen daha sonra tekrar deneyin veya farklı bir soru sorun.",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "Bu {type} işleminin gerçekleştirilmesi için ek süre gereklidir, lütfen daha sonra tekrar deneyin.",
|
package/dist/i18n/zh-CN.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ (位于 {parentItem})}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "返回至 Box AI 常见问题解答",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "选定的代理不可用。切换到默认代理。",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI 当前无法生成响应。请重试。",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "无法找到相关内容。请稍后重试,或询问不同问题。",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "处理此 {type} 需要额外的时间,请稍后重试。",
|
package/dist/i18n/zh-TW.js
CHANGED
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
"boxAI.contentAnswers.fileLandingText": "{numberOfItems,plural,=1{{firstItemName}} other{{files}}}{parentItem,select,other{ 於 {parentItem}}}",
|
|
35
35
|
"boxAI.contentAnswers.hasQuestionsTooltip": "返回 Box AI",
|
|
36
36
|
"boxAI.contentAnswers.inlineAgentNotFoundErrorText": "選擇的代理無法使用。切換至預設代理。",
|
|
37
|
+
"boxAI.contentAnswers.inlineCitationAriaLabel": "Open {fileName} in new tab",
|
|
37
38
|
"boxAI.contentAnswers.inlineErrorText": "Box AI 目前無法產生回應。請再試一次。",
|
|
38
39
|
"boxAI.contentAnswers.inlineNoContentErrorText": "無法找到相關內容。 請稍後再試一次,或詢問不同的問題。",
|
|
39
40
|
"boxAI.contentAnswers.inlinePreconditionFailedErrorText": "處理此 {type} 需要更長時間,請稍後再試一次。",
|
package/dist/styles/markdown.css
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Theme: a11y-dark
|
|
3
|
-
Author: @ericwbailey
|
|
4
|
-
Maintainer: @ericwbailey
|
|
5
|
-
|
|
6
|
-
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
|
|
7
|
-
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}._tableWrapper_15th0_1{margin:1.25rem 0;overflow-x:auto}._tableWrapper_15th0_1 table{width:max-content;min-width:100%;border-collapse:collapse}._tableWrapper_15th0_1 table,._tableWrapper_15th0_1 th,._tableWrapper_15th0_1 td{padding:.5rem .75rem;border:.0625rem solid #e8e8e8}._tableWrapper_15th0_1 th{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);text-decoration:var(--title-medium-text-decoration);color:#222;background-color:#f4f4f4}._tableWrapper_15th0_1 th,._tableWrapper_15th0_1 td{max-width:15rem}._hljs_15th0_32{position:relative;display:flex;flex-direction:column;overflow-x:auto;background:#222}._hljs_15th0_32 code{display:grid;white-space:pre}._hljsLanguage_15th0_44{position:sticky;top:0;left:0;padding:.5rem .75rem;color:#fff;background:#383838;border-bottom:.0625rem solid #4e4e4e;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);text-decoration:var(--title-medium-text-decoration)}._hljsContent_15th0_61{flex:1 1 auto;padding:1.25rem}._hljsLine_15th0_66{display:flex;align-items:flex-start}._hljsLineNumber_15th0_71{flex:0 0 auto;box-sizing:border-box;width:2.5rem;padding:.5rem .25rem;color:#a7a7a7;text-align:center;background:#383838;border-right:.0625rem solid #4e4e4e;-webkit-user-select:none;user-select:none}._hljsLineContent_15th0_83{padding:.5rem 0 0 .25rem;overflow:hidden}
|
|
1
|
+
._markdownContent_hd94b_1{display:block}._inlineParagraph_hd94b_5{display:block;margin:0 0 1em;line-height:1.6}._tableWrapper_hd94b_11{margin:var(--space-5) 0;overflow-x:auto}._tableWrapper_hd94b_11 table{width:max-content;min-width:100%;border-collapse:collapse}._tableWrapper_hd94b_11 table,._tableWrapper_hd94b_11 th,._tableWrapper_hd94b_11 td{padding:var(--space-2) var(--space-3);border:var(--border-1) solid var(--gray-10)}._tableWrapper_hd94b_11 th{color:var(--text-text-on-light);font-weight:var(--bp-font-weight-semibold);font-size:var(--bp-font-size-05);line-height:var(--bp-font-line-height-05);background-color:var(--gray-05)}._tableWrapper_hd94b_11 th,._tableWrapper_hd94b_11 td{max-width:calc(var(--space-20) * 3)}._hljs_hd94b_38{position:relative;display:flex;flex-direction:column;overflow-x:auto;background:var(--gray-100)}._hljs_hd94b_38 code{display:grid;white-space:pre}._hljsLanguage_hd94b_50{position:sticky;top:0;left:0;padding:var(--space-2) var(--space-3);color:var(--gray-white);font-weight:var(--bp-font-weight-semibold);font-size:var(--bp-font-size-05);line-height:var(--bp-font-line-height-05);background:var(--gray-90);border-bottom:var(--border-1) solid var(--gray-80)}._hljsContent_hd94b_63{flex:1 1 auto;padding:var(--space-5)}._hljsLine_hd94b_68{display:flex;align-items:flex-start}._hljsLineNumber_hd94b_73{flex:0 0 auto;box-sizing:border-box;width:var(--size-10);padding:var(--space-2) var(--space-1);color:var(--gray-40);text-align:center;background:var(--gray-90);border-right:var(--border-1) solid var(--gray-80);-webkit-user-select:none;user-select:none}._hljsLineContent_hd94b_85{padding:var(--space-2) 0 0 var(--space-1);overflow:hidden}._inlineCitationGroup_hd94b_90{display:inline-flex;max-width:calc(var(--size-20) * 2.5);vertical-align:baseline}._inlineCitationGroup_hd94b_90 ._inline-citation-chip-button_hd94b_95{display:flex;gap:var(--space-2);align-items:center;min-width:0;max-width:100%;overflow:hidden}._inlineCitationGroup_hd94b_90 ._inline-citation-chip-button_hd94b_95 svg,._inlineCitationGroup_hd94b_90 ._inline-citation-chip-button_hd94b_95 ._inline-citation-file-icon_hd94b_104{flex-shrink:0;width:var(--size-5);height:var(--size-5)}._inlineCitationGroup_hd94b_90 ._inline-citation-chip-button_hd94b_95 ._bp-filter-chip-label_hd94b_109,._inlineCitationGroup_hd94b_90 ._inline-citation-chip-button_hd94b_95 ._inline-citation-filename-label_hd94b_110{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
2
|
+
Theme: a11y-dark
|
|
3
|
+
Author: @ericwbailey
|
|
4
|
+
Maintainer: @ericwbailey
|
|
5
|
+
|
|
6
|
+
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
|
|
7
|
+
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ANSWER_ERROR, CitationType, FeedbackFormData, FeedbackValue, ItemClickHandler, ItemType, PromptType, RecordActionType, StyleVariant } from '../../types';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface AnswerProps {
|
|
4
3
|
answer?: string;
|
|
5
4
|
/** Citations list */
|
|
@@ -52,5 +51,5 @@ export interface AnswerProps {
|
|
|
52
51
|
/** ID of a question that this answer answers to, used for providing feedback */
|
|
53
52
|
questionId?: string;
|
|
54
53
|
}
|
|
55
|
-
export declare const Answer:
|
|
54
|
+
export declare const Answer: import('react').NamedExoticComponent<AnswerProps>;
|
|
56
55
|
export default Answer;
|
|
@@ -55,15 +55,20 @@ export declare const testItemsWithBoxUrls: {
|
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
57
|
type: string;
|
|
58
|
-
url: string;
|
|
59
58
|
}[];
|
|
60
59
|
export declare const testItemsWithNonBoxUrls: {
|
|
61
60
|
id: string;
|
|
62
61
|
name: string;
|
|
63
62
|
type: string;
|
|
64
|
-
url: string;
|
|
65
63
|
}[];
|
|
66
|
-
export declare const
|
|
64
|
+
export declare const answerWithBoxUrls = "This answer contains Box files like document.pdf and presentation.pptx. These Box links should be clickable in legacy mode.";
|
|
65
|
+
export declare const answerWithNonBoxUrls = "This answer contains external files like document.pdf and presentation.pptx. These external links should show as plain text with URLs in parentheses in legacy mode.";
|
|
66
|
+
export declare const answerWithMixedUrls = "This answer contains both Box files like [document.pdf](https://app.box.com/file/123) and external links like [external doc](https://example.com/doc). The Box links should be clickable in legacy mode, while external links should show the URL in parentheses.";
|
|
67
|
+
export declare const answerWithBoxUrlsMarkdown = "This answer contains Box files like [document.pdf](https://app.box.com/file/123) and [presentation.pptx](https://app.box.com/file/456). These Box links should be clickable in legacy mode.";
|
|
68
|
+
export declare const answerWithNonBoxUrlsMarkdown = "This answer contains external files like [document.pdf](https://example.com/file/123) and [presentation.pptx](https://external-site.com/file/456). These external links should show as plain text with URLs in parentheses in legacy mode.";
|
|
69
|
+
export declare const answerWithMixedUrlsMarkdown = "This answer contains both Box files like [document.pdf](https://app.box.com/file/123) and external links like [external doc](https://example.com/doc). The Box links should be clickable in legacy mode, while external links should show the URL in parentheses.";
|
|
70
|
+
export declare const answerWithReactModeCitations = "This answer contains Box files like [document.pdf](https://app.box.com/file/123) and [presentation.pptx](https://app.box.com/file/456). These should render as FilterChip components in React mode.";
|
|
71
|
+
export declare const answerWithReactModeMixedUrls = "This answer contains both Box files like [document.pdf](https://app.box.com/file/123) and external files like [external-doc.pdf](https://external-site.com/file/999). Box files should be FilterChip components, external files should be plain text.";
|
|
67
72
|
export declare const expectedAnswerWithMixedUrls = "This answer contains both Box files like <a href=\"https://app.box.com/file/123\" target=\"_blank\">document.pdf</a> and external links like external doc (https://example.com/doc). The Box links should be clickable, while external links should show the URL in parentheses.";
|
|
68
73
|
export declare const DefaultAnswer: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
74
|
export declare const StoppedAnswer: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -84,3 +89,10 @@ export declare const AnswerWithInlineCitationsNullItems: (props: AnswerProps) =>
|
|
|
84
89
|
export declare const AnswerWithBoxUrls: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
90
|
export declare const AnswerWithNonBoxUrls: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
91
|
export declare const AnswerWithMixedUrlTypes: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
export declare const AnswerWithBoxUrlsReact: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
export declare const AnswerWithNonBoxUrlsReact: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare const AnswerWithBoxUrlsMarkdown: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare const AnswerWithNonBoxUrlsMarkdown: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
export declare const AnswerWithMixedUrlsMarkdown: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
export declare const AnswerWithReactModeCitations: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
export declare const AnswerWithReactModeMixedUrls: (props: AnswerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface InjectInlineCitationOptions {
|
|
2
|
+
items?: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}>;
|
|
6
|
+
isCompleted?: boolean;
|
|
7
|
+
isInlineCitationsEnabled?: boolean;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isBoxDomain: (url: string) => boolean;
|
|
11
|
+
export declare const isBoxCitation: (url: string) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Injects inline citations into markdown text by converting file references to markdown links.
|
|
14
|
+
* Supports multiple formats: (filename.pdf), "filename.pptx", filename.js, [filename.pdf], {filename.pdf}
|
|
15
|
+
*/
|
|
16
|
+
export declare const injectInlineCitation: (text: string, options?: InjectInlineCitationOptions) => string;
|
|
17
|
+
export default injectInlineCitation;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BOX_SUPPORTED_FILE_EXTENSIONS as o } from "./constants.js";
|
|
2
|
-
function s(t) {
|
|
3
|
-
const e = /(https?:\/\/([^\/\s\)]+\.)?box\.com[^\s\)]*)/gi, n = t.match(e) || [];
|
|
4
|
-
return [...new Set(n)];
|
|
5
|
-
}
|
|
6
|
-
function i(t) {
|
|
7
|
-
const e = new RegExp(`\\b[\\w\\-.]+\\.(${o.join("|")})\\b`, "gi"), n = t.match(e) || [];
|
|
8
|
-
return [...new Set(n)];
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
s as extractBoxLinks,
|
|
12
|
-
i as extractFileNames
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility functions for tracking files and links in AI responses
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Gets all box.com file links from text
|
|
6
|
-
* @param text - The text content to analyze
|
|
7
|
-
* @returns Array of box.com file links
|
|
8
|
-
*/
|
|
9
|
-
export declare function extractBoxLinks(text: string): string[];
|
|
10
|
-
/**
|
|
11
|
-
* Extracts file names with extensions from text content
|
|
12
|
-
* @param text - The text content to analyze
|
|
13
|
-
* @returns Array of detected file names
|
|
14
|
-
*/
|
|
15
|
-
export declare function extractFileNames(text: string): string[];
|