@sendbird/ai-agent-messenger-react 1.10.1 → 1.10.3

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.
Files changed (37) hide show
  1. package/dist/cjs/BBDXgVHP.cjs +1 -0
  2. package/dist/cjs/BKGUMAll.cjs +1 -0
  3. package/dist/cjs/BMWSkFPd.cjs +1 -0
  4. package/dist/cjs/CshEwefQ.cjs +1 -0
  5. package/dist/cjs/D2b9Fh2D.cjs +1 -0
  6. package/dist/cjs/DDZcs_TL.cjs +1 -0
  7. package/dist/cjs/DTOB4bD8.cjs +306 -0
  8. package/dist/cjs/HGTRpnXG.cjs +1 -0
  9. package/dist/cjs/Lt9QbwOc.cjs +1 -0
  10. package/dist/cjs/VMkpPP3I.cjs +1 -0
  11. package/dist/cjs/h90fKnkA.cjs +1 -0
  12. package/dist/es/{DBhp3fXl.js → BJEfprOj.js} +13 -9
  13. package/dist/es/{BoN56E9Z.js → BK3NLWD7.js} +18 -14
  14. package/dist/es/{DHkIHpWw.js → BQ0E1drV.js} +8 -4
  15. package/dist/es/{CLrwPiXs.js → BUjZwbLs.js} +17 -13
  16. package/dist/es/{COct2xck.js → BjgNa6vj.js} +32 -18
  17. package/dist/es/{DLKKcW2Z.js → DV3Z-BEQ.js} +2101 -1959
  18. package/dist/es/{Brug4qqu.js → DbjtlqMh.js} +13 -9
  19. package/dist/es/{-31n4Imz.js → Drf_-1iy.js} +11 -7
  20. package/dist/es/{DSU-pnsD.js → QLoGj0Il.js} +8 -4
  21. package/dist/es/{smGeKrd1.js → bp8ut7x_.js} +14 -10
  22. package/dist/es/{EVDICC4l.js → fnTAJEKK.js} +18 -14
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.d.ts +17 -1
  25. package/dist/index.js +1 -1
  26. package/package.json +10 -8
  27. package/dist/cjs/BqHB7ZHq.cjs +0 -1
  28. package/dist/cjs/ByqeB5kl.cjs +0 -1
  29. package/dist/cjs/CSOw9BQ8.cjs +0 -306
  30. package/dist/cjs/CXF_Sn1b.cjs +0 -1
  31. package/dist/cjs/CiA0xvSy.cjs +0 -1
  32. package/dist/cjs/D9VpsSP6.cjs +0 -1
  33. package/dist/cjs/Dwk1m7x2.cjs +0 -1
  34. package/dist/cjs/EYyX7hTp.cjs +0 -1
  35. package/dist/cjs/E_PCvXNA.cjs +0 -1
  36. package/dist/cjs/TqrS-FNH.cjs +0 -1
  37. package/dist/cjs/Y3Pm68nf.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./DTOB4bD8.cjs"),n=require("date-fns/locale/it"),_={conversation:{input_placeholder:"Fai una domanda",input_placeholder_disabled:"La chat non è disponibile in questo canale",input_placeholder_wait_ai_agent_response:"In attesa della risposta dell'agente...",input_placeholder_active_form:"Compila il modulo per procedere.",input_placeholder_reconnecting:"Riconnessione. Aggiorna se persiste.",unknown_message_type:"(Tipo di messaggio sconosciuto)",powered_by:"Powered by",citation_title:"Fonte",start_new_conversation_label:"Inizia una conversazione",failed_message_resend:"Riprova",failed_message_remove:"Rimuovi",file_upload_no_supported_files:"Nessun tipo di file supportato disponibile.",a11y_message_list:"Messaggi della chat",a11y_scroll_to_bottom:"Scorri in basso"},conversation_list:{header_title:"Conversazioni",ended:"Terminata",footer_title:"Inizia una conversazione"},date_format:{just_now:"Proprio ora",minutes_ago:e=>`${e} minuti fa`,hours_ago:e=>`${e} ore fa`,date_short:"dd/MM/yyyy",date_separator:"d MMMM yyyy",message_timestamp:"p"},csat:{title:"Il tuo feedback è importante per noi",submitted_label:"Inviato con successo!",cre_question:"Il tuo problema è stato risolto?",cre_positive_label:"Sì, grazie! 👍",cre_negative_label:"No, non è servito.",reason_placeholder:"Condividi il tuo feedback",question:"Come valuteresti la tua esperienza?",submit_label:"Invia",submission_expired:"Ci dispiace, il periodo per partecipare al sondaggio è terminato."},form:{optional_label:"opzionale",validation_required:"Questa domanda è obbligatoria"},common:{placeholder_something_went_wrong:"Qualcosa è andato storto",placeholder_no_messages:"Nessun messaggio",placeholder_no_conversations:"Nessuna conversazione ancora",placeholder_something_went_wrong_retry_label:"Riprova"},feedback:{title:"Invia feedback",good:"Buono",bad:"Cattivo",comment_label:"Commento (opzionale)",comment_placeholder:"Lascia un commento",cancel:"Annulla",submit:"Invia",save:"Salva",edit:"Modifica feedback",remove:"Rimuovi feedback"}},o={language:"it",strings:_,dateLocale:n.it},a=i.mapCommonStringsToReactFormat(o.strings),t={...a,HEADER_BUTTON__AGENT_HANDOFF:"Connettersi con un agente",MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES:"Seleziona un'opzione per continuare",BUTTON__CANCEL:"Annulla",BUTTON__SUBMIT:"Invia",SUBMITTED:"Inviato",TRY_AGAIN:"Per favore, riprova.",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"Non puoi caricare più di un'immagine.",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"La dimensione massima per file è di %d MB.",FILE_VIEWER__UNSUPPORT:"Messaggio non supportato",CSAT5_RATING_SCORE_1:"Terribile",CSAT5_RATING_SCORE_2:"Brutto",CSAT5_RATING_SCORE_3:"Ok",CSAT5_RATING_SCORE_4:"Buono",CSAT5_RATING_SCORE_5:"Ottimo",FORM_UNAVAILABLE:"Il modulo non è più disponibile.",FORM_NOT_SUPPORTED:"Questo modulo non è supportato nella versione attuale.",FORM_VALIDATION_MIN_LENGTH:e=>`Minimo ${e} caratteri richiesti`,FORM_VALIDATION_MAX_LENGTH:e=>`Massimo ${e} caratteri consentiti`,FORM_VALIDATION_MIN:e=>`Il valore minimo è ${e}`,FORM_VALIDATION_MAX:e=>`Il valore massimo è ${e}`,FORM_VALIDATION_MIN_SELECT:e=>`Seleziona almeno ${e} opzioni`,FORM_VALIDATION_MAX_SELECT:e=>`Seleziona al massimo ${e} opzioni`,FORM_VALIDATION_REGEX_FAILED:"Formato non valido",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:a.DATE_FORMAT__DATE_SHORT,DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm",CONVERSATION_LIST__TOPICS_FALLBACK:"Nessuna categoria",CONVERSATION_CLOSED_FOOTER_LABEL:"La tua conversazione è terminata",START_NEW_CONVERSATION:"💬 Inizia una nuova conversazione",RETURN_TO_CONVERSATION:"💬 Torna alla conversazione",BUTTON__SAVE:"Salva",BUTTON__OK:"OK",NO_NAME:"(Senza nome)",CHANNEL_FROZEN:"Canale bloccato"},s={language:o.language,dateLocale:o.dateLocale,stringSet:t};exports.default=s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),g=require("dompurify"),c=require("markdown-to-jsx"),b=require("styled-components"),n=require("./DTOB4bD8.cjs"),l=t=>t&&t.__esModule?t:{default:t};function x(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const o=x(p),u=l(g),m=l(c),f=l(b),w=(t,e,i,r)=>e.type===c.RuleType.textStrikethroughed?o.createElement("span",{key:r.key},`~~${i(e.children,r)}~~`):t(),y=({className:t,children:e,style:i,onClickImage:r})=>{const h=p.useCallback(d=>{const a=o.createElement("img",{...d,alt:d.alt||""}),s=d.src;return r&&s?o.createElement("button",{type:"button",onClick:()=>r(s),style:{border:"none",padding:0,background:"none",cursor:"pointer",display:"inline-block"}},a):a},[]);return o.createElement(k,{className:t,style:i},o.createElement(m.default,{options:{renderRule:w,overrides:{a:{component:({children:d,...a})=>o.createElement("a",{...a,target:"_blank",rel:n.ANCHOR_REL},d)},img:{component:h}}}},u.default.sanitize(n.escapeMarkdownSyntax(e))))},k=f.default.div`*{&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}hr{border-top:1px solid ${n.cssVars.themedColor.textDisabled};margin:21px 0;}h1{margin-top:0;margin-bottom:12.4px;padding:0;font-size:22.4px;line-height:27.6px;font-weight:700;letter-spacing:-0.6px;}h2{font-weight:600;margin:24px 0 12px;font-size:18.2px;line-height:22.3px;}& :where(h3 + *){margin-top:0;}h3,h4,h5,h6{font-weight:600;margin:16px 0 8px;font-size:15.4px;line-height:22.4px;}p{font-size:14px;line-height:20px;margin-bottom:8px;margin-top:0;&:not(:first-child){margin-top:8px;}}a{color:inherit;font-weight:700;text-decoration:underline;}code{white-space:pre-wrap;border-radius:0.25rem;font-size:0.875em;font-weight:500;padding:2.4px 4.8px;background-color:${n.cssVars.themedColor.textDisabled};}menu{list-style:none;}ul{list-style-type:disc;}ol{list-style-type:decimal;}ul,ol{padding-inline-start:16px;margin:8px 0;& > li{padding-inline-start:0;margin:8px 0;& > ul,& > ol{margin-top:8px;& > li{margin:4px 0;}}}}p + ul,p + ol{margin-top:0;}blockquote{line-height:20px;margin:0;padding:4.8px 0;margin-inline-start:8px;padding-inline-start:16px;box-sizing:border-box;position:relative;font-style:normal;font-weight:500;border-inline-start-width:4px;&::before{border-radius:100px;content:'';position:absolute;top:0;left:0;height:100%;width:4px;background-color:${n.cssVars.themedColor.textDisabled};}}input[type='checkbox']{vertical-align:middle;margin:0;}table{unicode-bidi:isolate;overflow-wrap:break-word;white-space:normal;display:block;overflow-x:scroll;max-width:100%;text-indent:0;border-collapse:separate;border-spacing:0;margin:4px 0;text-align:start;font-size:12.3px;table-layout:auto;width:100%;*,&:after,&:before{border:0 solid;box-sizing:border-box;}}th:first-child{border-start-start-radius:6px;padding-inline-start:10.5px;}th:last-child{border-inline-end-width:1px;border-start-end-radius:6px;padding-inline-end:10.5px;}th{border-inline-start-width:1px;background-color:rgba(0,0,0,0.1);border-bottom-width:1px;border-color:${n.cssVars.themedColor.textDisabled};border-top-width:1px;padding:4px 10.5px;text-align:start;}& :where(thead th:first-child){padding-inline-start:0;}& :where(thead th:last-child){padding-inline-end:0;}& :where(thead th){padding-bottom:8px;padding-inline:8px;vertical-align:bottom;}& :where(tbody tr){border-bottom-width:1px;}& :where(tbody tr:last-child){border-bottom-width:0;}td:first-child{padding-inline-start:10.5px;}td:last-child{border-inline-end-width:1px;padding-inline-end:10.5px;}& :where(tbody td:first-child,tfoot td:first-child){padding-inline-start:0;}& :where(tbody td:last-child,tfoot td:last-child){padding-inline-end:0;}td{border-inline-start-width:1px;border-bottom-width:1px;border-color:${n.cssVars.themedColor.textDisabled};padding:4px 10.5px;text-align:start;}& :where(tbody td,tfoot td){padding:8px;}& :where(tbody td){vertical-align:baseline;}tbody tr:last-child td:first-child{border-end-start-radius:6px;}tbody tr:last-child td:last-child{border-end-end-radius:6px;}img{max-width:100%;height:auto;}`;exports.MarkdownText=y;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./DTOB4bD8.cjs"),T=require("date-fns/locale/hi"),a={conversation:{input_placeholder:"एक प्रश्न पूछें",input_placeholder_disabled:"इस चैनल में चैट उपलब्ध नहीं है",input_placeholder_wait_ai_agent_response:"एजेंट के उत्तर की प्रतीक्षा कर रहे हैं...",input_placeholder_active_form:"आगे बढ़ने के लिए कृपया फॉर्म भरें।",input_placeholder_reconnecting:"पुनः कनेक्ट हो रहा है। जारी रहे तो रिफ्रेश करें।",unknown_message_type:"(अज्ञात संदेश प्रकार)",powered_by:"द्वारा संचालित",citation_title:"स्रोत",start_new_conversation_label:"एक बातचीत शुरू करें",failed_message_resend:"पुनः प्रयास करें",failed_message_remove:"हटाएं",file_upload_no_supported_files:"कोई समर्थित फ़ाइल प्रकार उपलब्ध नहीं हैं।",a11y_message_list:"चैट संदेश",a11y_scroll_to_bottom:"नीचे स्क्रॉल करें"},conversation_list:{header_title:"बातचीत",ended:"समाप्त",footer_title:"एक बातचीत शुरू करें"},date_format:{just_now:"अभी",minutes_ago:_=>`${_} मिनट पहले`,hours_ago:_=>`${_} घंटे पहले`,date_short:"dd/MM/yyyy",date_separator:"d MMMM yyyy",message_timestamp:"p"},csat:{title:"आपकी प्रतिक्रिया हमारे लिए मायने रखती है",submitted_label:"सफलतापूर्वक सबमिट किया गया!",cre_question:"क्या आपकी समस्या का समाधान हुआ?",cre_positive_label:"हाँ, धन्यवाद! 👍",cre_negative_label:"नहीं, इससे मदद नहीं मिली।",reason_placeholder:"अपनी प्रतिक्रिया साझा करें",question:"आप अपने अनुभव का मूल्यांकन कैसे करेंगे?",submit_label:"सबमिट करें",submission_expired:"क्षमा करें, सर्वेक्षण अवधि समाप्त हो गई है।"},form:{optional_label:"वैकल्पिक",validation_required:"यह प्रश्न आवश्यक है"},common:{placeholder_something_went_wrong:"कुछ गलत हो गया",placeholder_no_messages:"कोई संदेश नहीं",placeholder_no_conversations:"अभी तक कोई बातचीत नहीं",placeholder_something_went_wrong_retry_label:"पुनः प्रयास करें"},feedback:{title:"प्रतिक्रिया भेजें",good:"अच्छा",bad:"बुरा",comment_label:"टिप्पणी (वैकल्पिक)",comment_placeholder:"एक टिप्पणी छोड़ें",cancel:"रद्द करें",submit:"भेजें",save:"सहेजें",edit:"प्रतिक्रिया संपादित करें",remove:"प्रतिक्रिया हटाएं"}},e={language:"hi",strings:a,dateLocale:T.hi},t=o.mapCommonStringsToReactFormat(e.strings),n={...t,HEADER_BUTTON__AGENT_HANDOFF:"एजेंट से कनेक्ट करें",MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES:"जारी रखने के लिए एक विकल्प चुनें",BUTTON__CANCEL:"रद्द करें",BUTTON__SUBMIT:"सबमिट करें",SUBMITTED:"सबमिट किया गया",TRY_AGAIN:"कृपया पुनः प्रयास करें।",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"आप एक से अधिक छवि अपलोड नहीं कर सकते।",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"प्रति फ़ाइल अधिकतम आकार %d MB है।",FILE_VIEWER__UNSUPPORT:"असमर्थित संदेश",CSAT5_RATING_SCORE_1:"भयानक",CSAT5_RATING_SCORE_2:"खराब",CSAT5_RATING_SCORE_3:"ठीक",CSAT5_RATING_SCORE_4:"अच्छा",CSAT5_RATING_SCORE_5:"बढ़िया",FORM_UNAVAILABLE:"फॉर्म अब उपलब्ध नहीं है।",FORM_NOT_SUPPORTED:"यह फॉर्म वर्तमान संस्करण में समर्थित नहीं है।",FORM_VALIDATION_MIN_LENGTH:_=>`न्यूनतम ${_} अक्षर आवश्यक हैं`,FORM_VALIDATION_MAX_LENGTH:_=>`अधिकतम ${_} अक्षर अनुमतित हैं`,FORM_VALIDATION_MIN:_=>`न्यूनतम मान ${_} है`,FORM_VALIDATION_MAX:_=>`अधिकतम मान ${_} है`,FORM_VALIDATION_MIN_SELECT:_=>`कम से कम ${_} विकल्प चुनें`,FORM_VALIDATION_MAX_SELECT:_=>`अधिकतम ${_} विकल्प चुनें`,FORM_VALIDATION_REGEX_FAILED:"गलत प्रारूप",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:t.DATE_FORMAT__DATE_SHORT,DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm",CONVERSATION_LIST__TOPICS_FALLBACK:"कोई श्रेणी नहीं",CONVERSATION_CLOSED_FOOTER_LABEL:"आपकी बातचीत समाप्त हो गई है",START_NEW_CONVERSATION:"💬 नई बातचीत शुरू करें",RETURN_TO_CONVERSATION:"💬 बातचीत पर वापस जाएं",BUTTON__SAVE:"सहेजें",BUTTON__OK:"ठीक है",NO_NAME:"(कोई नाम नहीं)",CHANNEL_FROZEN:"चैनल फ्रीज हो गया"},l={language:e.language,dateLocale:e.dateLocale,stringSet:n};exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./DTOB4bD8.cjs"),r=require("date-fns/locale/tr"),n={conversation:{input_placeholder:"Bir soru sor",input_placeholder_disabled:"Bu kanalda sohbet mevcut değil",input_placeholder_wait_ai_agent_response:"Temsilcinin yanıtını bekliyor...",input_placeholder_active_form:"İlerlemek için lütfen formu doldurun.",input_placeholder_reconnecting:"Yeniden bağlanıyor. Devam ederse yenile.",unknown_message_type:"(Bilinmeyen mesaj türü)",powered_by:"Tarafından desteklenmektedir",citation_title:"Kaynak",start_new_conversation_label:"Bir sohbet başlat",failed_message_resend:"Tekrar dene",failed_message_remove:"Kaldır",file_upload_no_supported_files:"Desteklenen dosya türü mevcut değil.",a11y_message_list:"Sohbet mesajları",a11y_scroll_to_bottom:"Aşağı kaydır"},conversation_list:{header_title:"Görüşmeler",ended:"Sona erdi",footer_title:"Bir sohbet başlat"},date_format:{just_now:"Az önce",minutes_ago:e=>`${e} dakika önce`,hours_ago:e=>`${e} saat önce`,date_short:"dd/MM/yyyy",date_separator:"d MMMM yyyy",message_timestamp:"p"},csat:{title:"Görüşleriniz bizim için önemli",submitted_label:"Başarıyla gönderildi!",cre_question:"Sorununuz çözüldü mü?",cre_positive_label:"Evet, teşekkürler! 👍",cre_negative_label:"Hayır, bu yardımcı olmadı.",reason_placeholder:"Geri bildiriminizi paylaşın",question:"Deneyiminizi nasıl değerlendirirsiniz?",submit_label:"Gönder",submission_expired:"Üzgünüz, anket süresi sona erdi."},form:{optional_label:"İsteğe bağlı",validation_required:"Bu soru gereklidir"},common:{placeholder_something_went_wrong:"Bir şeyler ters gitti",placeholder_no_messages:"Mesaj yok",placeholder_no_conversations:"Henüz görüşme yok",placeholder_something_went_wrong_retry_label:"Tekrar dene"},feedback:{title:"Geri bildirim gönder",good:"İyi",bad:"Kötü",comment_label:"Yorum (isteğe bağlı)",comment_placeholder:"Bir yorum bırakın",cancel:"İptal",submit:"Gönder",save:"Kaydet",edit:"Geri bildirimi düzenle",remove:"Geri bildirimi kaldır"}},_={language:"tr",strings:n,dateLocale:r.tr},a=i.mapCommonStringsToReactFormat(_.strings),t={...a,HEADER_BUTTON__AGENT_HANDOFF:"Bir temsilciyle bağlan",MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES:"Devam etmek için bir seçenek seçin",BUTTON__CANCEL:"İptal et",BUTTON__SUBMIT:"Gönder",SUBMITTED:"Gönderildi",TRY_AGAIN:"Lütfen tekrar deneyin.",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"Birden fazla resim yükleyemezsiniz.",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"Maksimum dosya boyutu %d MB'dir.",FILE_VIEWER__UNSUPPORT:"Desteklenmeyen mesaj",CSAT5_RATING_SCORE_1:"Berbat",CSAT5_RATING_SCORE_2:"Kötü",CSAT5_RATING_SCORE_3:"İdare eder",CSAT5_RATING_SCORE_4:"İyi",CSAT5_RATING_SCORE_5:"Harika",FORM_UNAVAILABLE:"Form artık kullanılamıyor.",FORM_NOT_SUPPORTED:"Bu form mevcut sürümde desteklenmiyor.",FORM_VALIDATION_MIN_LENGTH:e=>`Minimum ${e} karakter gereklidir`,FORM_VALIDATION_MAX_LENGTH:e=>`Maksimum ${e} karakter izin verilir`,FORM_VALIDATION_MIN:e=>`Minimum değer ${e}`,FORM_VALIDATION_MAX:e=>`Maksimum değer ${e}`,FORM_VALIDATION_MIN_SELECT:e=>`En az ${e} seçenek seçin`,FORM_VALIDATION_MAX_SELECT:e=>`En fazla ${e} seçenek seçin`,FORM_VALIDATION_REGEX_FAILED:"Geçersiz format",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:a.DATE_FORMAT__DATE_SHORT,DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm",CONVERSATION_LIST__TOPICS_FALLBACK:"Kategori yok",CONVERSATION_CLOSED_FOOTER_LABEL:"Görüşmeniz sona erdi",START_NEW_CONVERSATION:"💬 Yeni bir görüşme başlat",RETURN_TO_CONVERSATION:"💬 Görüşmeye dön",BUTTON__SAVE:"Kaydet",BUTTON__OK:"Tamam",NO_NAME:"(İsimsiz)",CHANNEL_FROZEN:"Kanal dondu"},l={language:_.language,dateLocale:_.dateLocale,stringSet:t};exports.default=l;
@@ -1,6 +1,6 @@
1
- import { m as T } from "./DLKKcW2Z.js";
1
+ import { m as t } from "./DV3Z-BEQ.js";
2
2
  import { ja as o } from "date-fns/locale/ja";
3
- const t = {
3
+ const T = {
4
4
  conversation: {
5
5
  input_placeholder: "質問する",
6
6
  input_placeholder_disabled: "このチャンネルではチャットを利用できません",
@@ -10,14 +10,18 @@ const t = {
10
10
  unknown_message_type: "(不明なメッセージタイプ)",
11
11
  powered_by: "Powered by",
12
12
  citation_title: "出典",
13
- start_new_conversation_label: "エージェントと話す",
13
+ start_new_conversation_label: "会話を始める",
14
14
  failed_message_resend: "再試行",
15
15
  failed_message_remove: "削除",
16
- file_upload_no_supported_files: "サポートされているファイルタイプがありません。"
16
+ file_upload_no_supported_files: "サポートされているファイルタイプがありません。",
17
+ // Accessibility
18
+ a11y_message_list: "チャットメッセージ",
19
+ a11y_scroll_to_bottom: "一番下にスクロール"
17
20
  },
18
21
  conversation_list: {
19
22
  header_title: "会話",
20
- ended: "終了"
23
+ ended: "終了",
24
+ footer_title: "会話を始める"
21
25
  },
22
26
  date_format: {
23
27
  just_now: "たった今",
@@ -62,9 +66,9 @@ const t = {
62
66
  }
63
67
  }, e = {
64
68
  language: "ja",
65
- strings: t,
69
+ strings: T,
66
70
  dateLocale: o
67
- }, a = T(e.strings), A = {
71
+ }, a = t(e.strings), A = {
68
72
  ...a,
69
73
  // Channel Header
70
74
  HEADER_BUTTON__AGENT_HANDOFF: "エージェントに接続",
@@ -116,11 +120,11 @@ const t = {
116
120
  NO_NAME: "(名前なし)",
117
121
  /** @deprecated Unused string **/
118
122
  CHANNEL_FROZEN: "チャンネルが凍結されました"
119
- }, I = {
123
+ }, n = {
120
124
  language: e.language,
121
125
  dateLocale: e.dateLocale,
122
126
  stringSet: A
123
127
  };
124
128
  export {
125
- I as default
129
+ n as default
126
130
  };
@@ -1,6 +1,6 @@
1
- import { m as _ } from "./DLKKcW2Z.js";
2
- import { fr as o } from "date-fns/locale/fr";
3
- const r = {
1
+ import { m as o } from "./DV3Z-BEQ.js";
2
+ import { fr as r } from "date-fns/locale/fr";
3
+ const _ = {
4
4
  conversation: {
5
5
  input_placeholder: "Poser une question",
6
6
  input_placeholder_disabled: "Le chat n'est pas disponible dans ce canal",
@@ -10,14 +10,18 @@ const r = {
10
10
  unknown_message_type: "(Type de message inconnu)",
11
11
  powered_by: "Propulsé par",
12
12
  citation_title: "Source",
13
- start_new_conversation_label: "Parler à un agent",
13
+ start_new_conversation_label: "Démarrer une conversation",
14
14
  failed_message_resend: "Réessayer",
15
15
  failed_message_remove: "Supprimer",
16
- file_upload_no_supported_files: "Aucun type de fichier pris en charge disponible."
16
+ file_upload_no_supported_files: "Aucun type de fichier pris en charge disponible.",
17
+ // Accessibility
18
+ a11y_message_list: "Messages du chat",
19
+ a11y_scroll_to_bottom: "Faire défiler vers le bas"
17
20
  },
18
21
  conversation_list: {
19
22
  header_title: "Conversations",
20
- ended: "Terminée"
23
+ ended: "Terminée",
24
+ footer_title: "Démarrer une conversation"
21
25
  },
22
26
  date_format: {
23
27
  just_now: "À l'instant",
@@ -60,12 +64,12 @@ const r = {
60
64
  edit: "Modifier les commentaires",
61
65
  remove: "Supprimer les commentaires"
62
66
  }
63
- }, n = {
67
+ }, a = {
64
68
  language: "fr",
65
- strings: r,
66
- dateLocale: o
67
- }, a = _(n.strings), t = {
68
- ...a,
69
+ strings: _,
70
+ dateLocale: r
71
+ }, n = o(a.strings), t = {
72
+ ...n,
69
73
  // Channel Header
70
74
  HEADER_BUTTON__AGENT_HANDOFF: "Se connecter avec un agent",
71
75
  // Message Input
@@ -97,7 +101,7 @@ const r = {
97
101
  FORM_VALIDATION_MAX_SELECT: (e) => `Sélectionnez au maximum ${e} options`,
98
102
  FORM_VALIDATION_REGEX_FAILED: "Format invalide",
99
103
  /** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
100
- DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: a.DATE_FORMAT__DATE_SHORT,
104
+ DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: n.DATE_FORMAT__DATE_SHORT,
101
105
  /** @deprecated Unused string **/
102
106
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
103
107
  /** @deprecated Unused string **/
@@ -117,8 +121,8 @@ const r = {
117
121
  /** @deprecated Unused string **/
118
122
  CHANNEL_FROZEN: "Canal gelé"
119
123
  }, l = {
120
- language: n.language,
121
- dateLocale: n.dateLocale,
124
+ language: a.language,
125
+ dateLocale: a.dateLocale,
122
126
  stringSet: t
123
127
  };
124
128
  export {
@@ -1,4 +1,4 @@
1
- import { m as i } from "./DLKKcW2Z.js";
1
+ import { m as i } from "./DV3Z-BEQ.js";
2
2
  import { it as n } from "date-fns/locale/it";
3
3
  const _ = {
4
4
  conversation: {
@@ -10,14 +10,18 @@ const _ = {
10
10
  unknown_message_type: "(Tipo di messaggio sconosciuto)",
11
11
  powered_by: "Powered by",
12
12
  citation_title: "Fonte",
13
- start_new_conversation_label: "Parla con un agente",
13
+ start_new_conversation_label: "Inizia una conversazione",
14
14
  failed_message_resend: "Riprova",
15
15
  failed_message_remove: "Rimuovi",
16
- file_upload_no_supported_files: "Nessun tipo di file supportato disponibile."
16
+ file_upload_no_supported_files: "Nessun tipo di file supportato disponibile.",
17
+ // Accessibility
18
+ a11y_message_list: "Messaggi della chat",
19
+ a11y_scroll_to_bottom: "Scorri in basso"
17
20
  },
18
21
  conversation_list: {
19
22
  header_title: "Conversazioni",
20
- ended: "Terminata"
23
+ ended: "Terminata",
24
+ footer_title: "Inizia una conversazione"
21
25
  },
22
26
  date_format: {
23
27
  just_now: "Proprio ora",
@@ -1,6 +1,6 @@
1
- import { m as a } from "./DLKKcW2Z.js";
2
- import { hi as t } from "date-fns/locale/hi";
3
- const o = {
1
+ import { m as o } from "./DV3Z-BEQ.js";
2
+ import { hi as a } from "date-fns/locale/hi";
3
+ const T = {
4
4
  conversation: {
5
5
  input_placeholder: "एक प्रश्न पूछें",
6
6
  input_placeholder_disabled: "इस चैनल में चैट उपलब्ध नहीं है",
@@ -10,14 +10,18 @@ const o = {
10
10
  unknown_message_type: "(अज्ञात संदेश प्रकार)",
11
11
  powered_by: "द्वारा संचालित",
12
12
  citation_title: "स्रोत",
13
- start_new_conversation_label: "एजेंट से बात करें",
13
+ start_new_conversation_label: "एक बातचीत शुरू करें",
14
14
  failed_message_resend: "पुनः प्रयास करें",
15
15
  failed_message_remove: "हटाएं",
16
- file_upload_no_supported_files: "कोई समर्थित फ़ाइल प्रकार उपलब्ध नहीं हैं।"
16
+ file_upload_no_supported_files: "कोई समर्थित फ़ाइल प्रकार उपलब्ध नहीं हैं।",
17
+ // Accessibility
18
+ a11y_message_list: "चैट संदेश",
19
+ a11y_scroll_to_bottom: "नीचे स्क्रॉल करें"
17
20
  },
18
21
  conversation_list: {
19
22
  header_title: "बातचीत",
20
- ended: "समाप्त"
23
+ ended: "समाप्त",
24
+ footer_title: "एक बातचीत शुरू करें"
21
25
  },
22
26
  date_format: {
23
27
  just_now: "अभी",
@@ -62,10 +66,10 @@ const o = {
62
66
  }
63
67
  }, e = {
64
68
  language: "hi",
65
- strings: o,
66
- dateLocale: t
67
- }, T = a(e.strings), A = {
68
- ...T,
69
+ strings: T,
70
+ dateLocale: a
71
+ }, t = o(e.strings), A = {
72
+ ...t,
69
73
  // Channel Header
70
74
  HEADER_BUTTON__AGENT_HANDOFF: "एजेंट से कनेक्ट करें",
71
75
  // Message Input
@@ -97,7 +101,7 @@ const o = {
97
101
  FORM_VALIDATION_MAX_SELECT: (_) => `अधिकतम ${_} विकल्प चुनें`,
98
102
  FORM_VALIDATION_REGEX_FAILED: "गलत प्रारूप",
99
103
  /** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
100
- DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: T.DATE_FORMAT__DATE_SHORT,
104
+ DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: t.DATE_FORMAT__DATE_SHORT,
101
105
  /** @deprecated Unused string **/
102
106
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
103
107
  /** @deprecated Unused string **/
@@ -116,11 +120,11 @@ const o = {
116
120
  NO_NAME: "(कोई नाम नहीं)",
117
121
  /** @deprecated Unused string **/
118
122
  CHANNEL_FROZEN: "चैनल फ्रीज हो गया"
119
- }, I = {
123
+ }, s = {
120
124
  language: e.language,
121
125
  dateLocale: e.dateLocale,
122
126
  stringSet: A
123
127
  };
124
128
  export {
125
- I as default
129
+ s as default
126
130
  };
@@ -1,32 +1,46 @@
1
- import * as r from "react";
2
- import { useCallback as p } from "react";
3
- import s from "dompurify";
4
- import h, { RuleType as x } from "markdown-to-jsx";
5
- import g from "styled-components";
6
- import { A as b, e as c, c as i } from "./DLKKcW2Z.js";
7
- const m = (d, o, n, t) => o.type === x.textStrikethroughed ? /* @__PURE__ */ r.createElement("span", { key: t.key }, `~~${n(o.children, t)}~~`) : d(), v = ({ className: d, children: o, style: n, onClickImage: t }) => {
8
- const a = p(
9
- (e) => /* @__PURE__ */ r.createElement("img", { ...e, onClick: () => e.src && (t == null ? void 0 : t(e.src)) }),
10
- []
11
- );
12
- return /* @__PURE__ */ r.createElement(w, { className: d, style: n }, /* @__PURE__ */ r.createElement(
13
- h,
1
+ import * as t from "react";
2
+ import { useCallback as s } from "react";
3
+ import h from "dompurify";
4
+ import x, { RuleType as g } from "markdown-to-jsx";
5
+ import b from "styled-components";
6
+ import { A as c, e as m, c as r } from "./DV3Z-BEQ.js";
7
+ const w = (d, o, a, e) => o.type === g.textStrikethroughed ? /* @__PURE__ */ t.createElement("span", { key: e.key }, `~~${a(o.children, e)}~~`) : d(), v = ({ className: d, children: o, style: a, onClickImage: e }) => {
8
+ const p = s((i) => {
9
+ const n = /* @__PURE__ */ t.createElement("img", { ...i, alt: i.alt || "" }), l = i.src;
10
+ return e && l ? /* @__PURE__ */ t.createElement(
11
+ "button",
12
+ {
13
+ type: "button",
14
+ onClick: () => e(l),
15
+ style: {
16
+ border: "none",
17
+ padding: 0,
18
+ background: "none",
19
+ cursor: "pointer",
20
+ display: "inline-block"
21
+ }
22
+ },
23
+ n
24
+ ) : n;
25
+ }, []);
26
+ return /* @__PURE__ */ t.createElement(f, { className: d, style: a }, /* @__PURE__ */ t.createElement(
27
+ x,
14
28
  {
15
29
  options: {
16
- renderRule: m,
30
+ renderRule: w,
17
31
  overrides: {
18
32
  a: {
19
- component: ({ children: e, ...l }) => /* @__PURE__ */ r.createElement("a", { ...l, target: "_blank", rel: b }, e)
33
+ component: ({ children: i, ...n }) => /* @__PURE__ */ t.createElement("a", { ...n, target: "_blank", rel: c }, i)
20
34
  },
21
35
  img: {
22
- component: a
36
+ component: p
23
37
  }
24
38
  }
25
39
  }
26
40
  },
27
- s.sanitize(c(o))
41
+ h.sanitize(m(o))
28
42
  ));
29
- }, w = g.div`*{&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}hr{border-top:1px solid ${i.themedColor.textDisabled};margin:21px 0;}h1{margin-top:0;margin-bottom:12.4px;padding:0;font-size:22.4px;line-height:27.6px;font-weight:700;letter-spacing:-0.6px;}h2{font-weight:600;margin:24px 0 12px;font-size:18.2px;line-height:22.3px;}& :where(h3 + *){margin-top:0;}h3,h4,h5,h6{font-weight:600;margin:16px 0 8px;font-size:15.4px;line-height:22.4px;}p{font-size:14px;line-height:20px;margin-bottom:8px;margin-top:0;&:not(:first-child){margin-top:8px;}}a{color:inherit;font-weight:700;text-decoration:underline;}code{white-space:pre-wrap;border-radius:0.25rem;font-size:0.875em;font-weight:500;padding:2.4px 4.8px;background-color:${i.themedColor.textDisabled};}menu{list-style:none;}ul{list-style-type:disc;}ol{list-style-type:decimal;}ul,ol{padding-inline-start:16px;margin:8px 0;& > li{padding-inline-start:0;margin:8px 0;& > ul,& > ol{margin-top:8px;& > li{margin:4px 0;}}}}p + ul,p + ol{margin-top:0;}blockquote{line-height:20px;margin:0;padding:4.8px 0;margin-inline-start:8px;padding-inline-start:16px;box-sizing:border-box;position:relative;font-style:normal;font-weight:500;border-inline-start-width:4px;&::before{border-radius:100px;content:'';position:absolute;top:0;left:0;height:100%;width:4px;background-color:${i.themedColor.textDisabled};}}input[type='checkbox']{vertical-align:middle;margin:0;}table{unicode-bidi:isolate;overflow-wrap:break-word;white-space:normal;display:block;overflow-x:scroll;max-width:100%;text-indent:0;border-collapse:separate;border-spacing:0;margin:4px 0;text-align:start;font-size:12.3px;table-layout:auto;width:100%;*,&:after,&:before{border:0 solid;box-sizing:border-box;}}th:first-child{border-start-start-radius:6px;padding-inline-start:10.5px;}th:last-child{border-inline-end-width:1px;border-start-end-radius:6px;padding-inline-end:10.5px;}th{border-inline-start-width:1px;background-color:rgba(0,0,0,0.1);border-bottom-width:1px;border-color:${i.themedColor.textDisabled};border-top-width:1px;padding:4px 10.5px;text-align:start;}& :where(thead th:first-child){padding-inline-start:0;}& :where(thead th:last-child){padding-inline-end:0;}& :where(thead th){padding-bottom:8px;padding-inline:8px;vertical-align:bottom;}& :where(tbody tr){border-bottom-width:1px;}& :where(tbody tr:last-child){border-bottom-width:0;}td:first-child{padding-inline-start:10.5px;}td:last-child{border-inline-end-width:1px;padding-inline-end:10.5px;}& :where(tbody td:first-child,tfoot td:first-child){padding-inline-start:0;}& :where(tbody td:last-child,tfoot td:last-child){padding-inline-end:0;}td{border-inline-start-width:1px;border-bottom-width:1px;border-color:${i.themedColor.textDisabled};padding:4px 10.5px;text-align:start;}& :where(tbody td,tfoot td){padding:8px;}& :where(tbody td){vertical-align:baseline;}tbody tr:last-child td:first-child{border-end-start-radius:6px;}tbody tr:last-child td:last-child{border-end-end-radius:6px;}img{max-width:100%;height:auto;}`;
43
+ }, f = b.div`*{&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}hr{border-top:1px solid ${r.themedColor.textDisabled};margin:21px 0;}h1{margin-top:0;margin-bottom:12.4px;padding:0;font-size:22.4px;line-height:27.6px;font-weight:700;letter-spacing:-0.6px;}h2{font-weight:600;margin:24px 0 12px;font-size:18.2px;line-height:22.3px;}& :where(h3 + *){margin-top:0;}h3,h4,h5,h6{font-weight:600;margin:16px 0 8px;font-size:15.4px;line-height:22.4px;}p{font-size:14px;line-height:20px;margin-bottom:8px;margin-top:0;&:not(:first-child){margin-top:8px;}}a{color:inherit;font-weight:700;text-decoration:underline;}code{white-space:pre-wrap;border-radius:0.25rem;font-size:0.875em;font-weight:500;padding:2.4px 4.8px;background-color:${r.themedColor.textDisabled};}menu{list-style:none;}ul{list-style-type:disc;}ol{list-style-type:decimal;}ul,ol{padding-inline-start:16px;margin:8px 0;& > li{padding-inline-start:0;margin:8px 0;& > ul,& > ol{margin-top:8px;& > li{margin:4px 0;}}}}p + ul,p + ol{margin-top:0;}blockquote{line-height:20px;margin:0;padding:4.8px 0;margin-inline-start:8px;padding-inline-start:16px;box-sizing:border-box;position:relative;font-style:normal;font-weight:500;border-inline-start-width:4px;&::before{border-radius:100px;content:'';position:absolute;top:0;left:0;height:100%;width:4px;background-color:${r.themedColor.textDisabled};}}input[type='checkbox']{vertical-align:middle;margin:0;}table{unicode-bidi:isolate;overflow-wrap:break-word;white-space:normal;display:block;overflow-x:scroll;max-width:100%;text-indent:0;border-collapse:separate;border-spacing:0;margin:4px 0;text-align:start;font-size:12.3px;table-layout:auto;width:100%;*,&:after,&:before{border:0 solid;box-sizing:border-box;}}th:first-child{border-start-start-radius:6px;padding-inline-start:10.5px;}th:last-child{border-inline-end-width:1px;border-start-end-radius:6px;padding-inline-end:10.5px;}th{border-inline-start-width:1px;background-color:rgba(0,0,0,0.1);border-bottom-width:1px;border-color:${r.themedColor.textDisabled};border-top-width:1px;padding:4px 10.5px;text-align:start;}& :where(thead th:first-child){padding-inline-start:0;}& :where(thead th:last-child){padding-inline-end:0;}& :where(thead th){padding-bottom:8px;padding-inline:8px;vertical-align:bottom;}& :where(tbody tr){border-bottom-width:1px;}& :where(tbody tr:last-child){border-bottom-width:0;}td:first-child{padding-inline-start:10.5px;}td:last-child{border-inline-end-width:1px;padding-inline-end:10.5px;}& :where(tbody td:first-child,tfoot td:first-child){padding-inline-start:0;}& :where(tbody td:last-child,tfoot td:last-child){padding-inline-end:0;}td{border-inline-start-width:1px;border-bottom-width:1px;border-color:${r.themedColor.textDisabled};padding:4px 10.5px;text-align:start;}& :where(tbody td,tfoot td){padding:8px;}& :where(tbody td){vertical-align:baseline;}tbody tr:last-child td:first-child{border-end-start-radius:6px;}tbody tr:last-child td:last-child{border-end-end-radius:6px;}img{max-width:100%;height:auto;}`;
30
44
  export {
31
45
  v as MarkdownText
32
46
  };