@sendbird/ai-agent-messenger-react 1.3.2 → 1.4.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.
Files changed (45) hide show
  1. package/dist/cjs/BHzdI_Qt.cjs +1 -0
  2. package/dist/cjs/BJrc6-lv.cjs +1 -0
  3. package/dist/cjs/Bb0Nr21w.cjs +1 -0
  4. package/dist/cjs/{CuE-R-Ab.cjs → C5K5hHy4.cjs} +1 -1
  5. package/dist/cjs/C6S9YvOe.cjs +1 -0
  6. package/dist/cjs/CzB3EwDs.cjs +1 -0
  7. package/dist/cjs/{udFozCQd.cjs → D1cSvUyI.cjs} +1 -1
  8. package/dist/cjs/D6zoiaPq.cjs +1 -0
  9. package/dist/cjs/{D0K6vsP-.cjs → DCYbEbRy.cjs} +1 -1
  10. package/dist/cjs/{D7p9IHLh.cjs → DdDHgZcy.cjs} +1 -1
  11. package/dist/cjs/Df_7d5l_.cjs +1 -0
  12. package/dist/cjs/KtTuzALW.cjs +1 -0
  13. package/dist/cjs/QbzBXqp7.cjs +1 -0
  14. package/dist/cjs/erHZgq1d.cjs +309 -0
  15. package/dist/cjs/{Qn-Vab7D.cjs → kjUExkVf.cjs} +1 -1
  16. package/dist/es/{DYR8UT_l.js → B-Bit2rH.js} +21 -5
  17. package/dist/es/{BKSUGIyL.js → B7zUx3wi.js} +21 -5
  18. package/dist/es/{D0QwWNMF.js → BDu5g5oT.js} +21 -5
  19. package/dist/es/BFu7kfm0.js +4787 -0
  20. package/dist/es/{jtdZ66dz.js → BMpxfxq9.js} +1 -1
  21. package/dist/es/{B1s75De5.js → BOQBJafG.js} +21 -5
  22. package/dist/es/{CA1gVgSD.js → BgVN3jH0.js} +21 -5
  23. package/dist/es/{EylKxx4d.js → CGGa6Wi6.js} +21 -5
  24. package/dist/es/{D5uRw0Em.js → DAj-QM_C.js} +1 -1
  25. package/dist/es/{DcqbdvlW.js → DGEcXOnE.js} +21 -5
  26. package/dist/es/{kE3eGJ-O.js → DU-buYVt.js} +1 -1
  27. package/dist/es/{DhUBPQ6o.js → DxAEO4J0.js} +1 -1
  28. package/dist/es/{CVCUjr3Q.js → dnxo1nL1.js} +1 -1
  29. package/dist/es/{Dxrtj2R8.js → fgcpgo5V.js} +21 -5
  30. package/dist/es/{BAebVbLs.js → qC-GIbc4.js} +20 -4
  31. package/dist/index.cjs +1 -1
  32. package/dist/index.d.ts +173 -9
  33. package/dist/index.js +1 -1
  34. package/package.json +7 -7
  35. package/dist/cjs/6xTfJrmg.cjs +0 -1
  36. package/dist/cjs/B4mujFdj.cjs +0 -1
  37. package/dist/cjs/BIDOBNC3.cjs +0 -1
  38. package/dist/cjs/BlshmoPb.cjs +0 -207
  39. package/dist/cjs/BzMiZszH.cjs +0 -1
  40. package/dist/cjs/D5dT1ruo.cjs +0 -1
  41. package/dist/cjs/DdQV23MS.cjs +0 -1
  42. package/dist/cjs/VJMogId3.cjs +0 -1
  43. package/dist/cjs/eFpF2Osy.cjs +0 -1
  44. package/dist/cjs/kTWMrzTz.cjs +0 -1
  45. package/dist/es/DcGmTG3A.js +0 -4104
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("dompurify"),s=require("markdown-to-jsx"),x=require("styled-components"),n=require("./BlshmoPb.cjs"),a=t=>t&&t.__esModule?t:{default:t};function b(t){if(t&&t.__esModule)return t;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return i.default=t,Object.freeze(i)}const o=b(l),g=a(c),u=a(s),m=a(x),f=(t,i,r,e)=>i.type===s.RuleType.textStrikethroughed?o.createElement("span",{key:e.key},`~~${r(i.children,e)}~~`):t(),w=({className:t,children:i,style:r,onClickImage:e})=>{const p=l.useCallback(d=>o.createElement("img",{...d,onClick:()=>d.src&&(e==null?void 0:e(d.src))}),[]);return o.createElement(y,{className:t,style:r},o.createElement(u.default,{options:{renderRule:f,overrides:{a:{component:({children:d,...h})=>o.createElement("a",{...h,target:"_blank",rel:n.ANCHOR_REL},d)},img:{component:p}}}},g.default.sanitize(i)))},y=m.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=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("dompurify"),s=require("markdown-to-jsx"),x=require("styled-components"),n=require("./erHZgq1d.cjs"),a=t=>t&&t.__esModule?t:{default:t};function b(t){if(t&&t.__esModule)return t;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return i.default=t,Object.freeze(i)}const o=b(l),g=a(c),u=a(s),m=a(x),f=(t,i,r,e)=>i.type===s.RuleType.textStrikethroughed?o.createElement("span",{key:e.key},`~~${r(i.children,e)}~~`):t(),w=({className:t,children:i,style:r,onClickImage:e})=>{const p=l.useCallback(d=>o.createElement("img",{...d,onClick:()=>d.src&&(e==null?void 0:e(d.src))}),[]);return o.createElement(y,{className:t,style:r},o.createElement(u.default,{options:{renderRule:f,overrides:{a:{component:({children:d,...h})=>o.createElement("a",{...h,target:"_blank",rel:n.ANCHOR_REL},d)},img:{component:p}}}},g.default.sanitize(i)))},y=m.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=w;
@@ -1,5 +1,5 @@
1
- import { tr as _ } from "date-fns/locale/tr";
2
- const T = _, E = {
1
+ import { tr as T } from "date-fns/locale/tr";
2
+ const E = T, e = {
3
3
  // Channel - Common
4
4
  CHANNEL_FROZEN: "Kanal dondu",
5
5
  PLACE_HOLDER__WRONG: "Bir şeyler ters gitti",
@@ -15,8 +15,12 @@ const T = _, E = {
15
15
  BUTTON__CANCEL: "İptal et",
16
16
  BUTTON__SAVE: "Kaydet",
17
17
  BUTTON__OK: "Tamam",
18
+ BUTTON__SUBMIT: "Gönder",
18
19
  NO_NAME: "(İsimsiz)",
19
20
  RETRY: "Tekrar dene",
21
+ OPTIONAL: "İsteğe bağlı",
22
+ SUBMITTED: "Gönderildi",
23
+ TRY_AGAIN: "Lütfen tekrar deneyin.",
20
24
  // Date format
21
25
  DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: "d MMMM yyyy",
22
26
  DATE_FORMAT__MESSAGE_TIMESTAMP: "p",
@@ -51,8 +55,20 @@ const T = _, E = {
51
55
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "dd/MM/yyyy",
52
56
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
53
57
  // Citation
54
- CITATION_SOURCE_TITLE: "Kaynak"
55
- }, S = { language: "tr", dateLocale: T, stringSet: E };
58
+ CITATION_SOURCE_TITLE: "Kaynak",
59
+ // Form
60
+ FORM_PLACEHOLDER: "İlerlemek için lütfen formu doldurun.",
61
+ FORM_UNAVAILABLE: "Form artık kullanılamıyor.",
62
+ FORM_NOT_SUPPORTED: "Bu form mevcut sürümde desteklenmiyor.",
63
+ FORM_VALIDATION_REQUIRED: "Bu soru gereklidir",
64
+ FORM_VALIDATION_MIN_LENGTH: (_) => `Minimum ${_} karakter gereklidir`,
65
+ FORM_VALIDATION_MAX_LENGTH: (_) => `Maksimum ${_} karakter izin verilir`,
66
+ FORM_VALIDATION_MIN: (_) => `Minimum değer ${_}`,
67
+ FORM_VALIDATION_MAX: (_) => `Maksimum değer ${_}`,
68
+ FORM_VALIDATION_MIN_SELECT: (_) => `En az ${_} seçenek seçin`,
69
+ FORM_VALIDATION_MAX_SELECT: (_) => `En fazla ${_} seçenek seçin`,
70
+ FORM_VALIDATION_REGEX_FAILED: "Geçersiz format"
71
+ }, O = { language: "tr", dateLocale: E, stringSet: e };
56
72
  export {
57
- S as default
73
+ O as default
58
74
  };
@@ -1,5 +1,5 @@
1
- import { es as _ } from "date-fns/locale/es";
2
- const T = _, E = {
1
+ import { es as T } from "date-fns/locale/es";
2
+ const E = T, e = {
3
3
  // Channel - Common
4
4
  CHANNEL_FROZEN: "Canal congelado",
5
5
  PLACE_HOLDER__WRONG: "Algo salió mal",
@@ -15,8 +15,12 @@ const T = _, E = {
15
15
  BUTTON__CANCEL: "Cancelar",
16
16
  BUTTON__SAVE: "Guardar",
17
17
  BUTTON__OK: "Aceptar",
18
+ BUTTON__SUBMIT: "Enviar",
18
19
  NO_NAME: "(Sin nombre)",
19
20
  RETRY: "Reintentar",
21
+ OPTIONAL: "opcional",
22
+ SUBMITTED: "Enviado",
23
+ TRY_AGAIN: "Por favor, inténtalo de nuevo.",
20
24
  // Date format
21
25
  DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: "d 'de' MMMM 'de' yyyy",
22
26
  DATE_FORMAT__MESSAGE_TIMESTAMP: "p",
@@ -51,8 +55,20 @@ const T = _, E = {
51
55
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "dd/MM/yyyy",
52
56
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
53
57
  // Citation
54
- CITATION_SOURCE_TITLE: "Fuente"
55
- }, A = { language: "es", dateLocale: T, stringSet: E };
58
+ CITATION_SOURCE_TITLE: "Fuente",
59
+ // Form
60
+ FORM_PLACEHOLDER: "Por favor, completa el formulario para continuar.",
61
+ FORM_UNAVAILABLE: "El formulario ya no está disponible.",
62
+ FORM_NOT_SUPPORTED: "Este formulario no es compatible con la versión actual.",
63
+ FORM_VALIDATION_REQUIRED: "Esta pregunta es obligatoria",
64
+ FORM_VALIDATION_MIN_LENGTH: (_) => `Mínimo ${_} caracteres requeridos`,
65
+ FORM_VALIDATION_MAX_LENGTH: (_) => `Máximo ${_} caracteres permitidos`,
66
+ FORM_VALIDATION_MIN: (_) => `El valor mínimo es ${_}`,
67
+ FORM_VALIDATION_MAX: (_) => `El valor máximo es ${_}`,
68
+ FORM_VALIDATION_MIN_SELECT: (_) => `Selecciona al menos ${_} opciones`,
69
+ FORM_VALIDATION_MAX_SELECT: (_) => `Selecciona como máximo ${_} opciones`,
70
+ FORM_VALIDATION_REGEX_FAILED: "Formato inválido"
71
+ }, o = { language: "es", dateLocale: E, stringSet: e };
56
72
  export {
57
- A as default
73
+ o as default
58
74
  };
@@ -1,5 +1,5 @@
1
- import { hi as _ } from "date-fns/locale/hi";
2
- const T = _, E = {
1
+ import { hi as T } from "date-fns/locale/hi";
2
+ const E = T, A = {
3
3
  // Channel - Common
4
4
  CHANNEL_FROZEN: "चैनल फ्रीज हो गया",
5
5
  PLACE_HOLDER__WRONG: "कुछ गलत हो गया",
@@ -15,8 +15,12 @@ const T = _, E = {
15
15
  BUTTON__CANCEL: "रद्द करें",
16
16
  BUTTON__SAVE: "सहेजें",
17
17
  BUTTON__OK: "ठीक है",
18
+ BUTTON__SUBMIT: "सबमिट करें",
18
19
  NO_NAME: "(कोई नाम नहीं)",
19
20
  RETRY: "पुनः प्रयास करें",
21
+ OPTIONAL: "वैकल्पिक",
22
+ SUBMITTED: "सबमिट किया गया",
23
+ TRY_AGAIN: "कृपया पुनः प्रयास करें।",
20
24
  // Date format
21
25
  DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: "d MMMM yyyy",
22
26
  DATE_FORMAT__MESSAGE_TIMESTAMP: "p",
@@ -51,8 +55,20 @@ const T = _, E = {
51
55
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "dd/MM/yyyy",
52
56
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
53
57
  // Citation
54
- CITATION_SOURCE_TITLE: "स्रोत"
55
- }, S = { language: "hi", dateLocale: T, stringSet: E };
58
+ CITATION_SOURCE_TITLE: "स्रोत",
59
+ // Form
60
+ FORM_PLACEHOLDER: "आगे बढ़ने के लिए कृपया फॉर्म भरें।",
61
+ FORM_UNAVAILABLE: "फॉर्म अब उपलब्ध नहीं है।",
62
+ FORM_NOT_SUPPORTED: "यह फॉर्म वर्तमान संस्करण में समर्थित नहीं है।",
63
+ FORM_VALIDATION_REQUIRED: "यह प्रश्न आवश्यक है",
64
+ FORM_VALIDATION_MIN_LENGTH: (_) => `न्यूनतम ${_} अक्षर आवश्यक हैं`,
65
+ FORM_VALIDATION_MAX_LENGTH: (_) => `अधिकतम ${_} अक्षर अनुमतित हैं`,
66
+ FORM_VALIDATION_MIN: (_) => `न्यूनतम मान ${_} है`,
67
+ FORM_VALIDATION_MAX: (_) => `अधिकतम मान ${_} है`,
68
+ FORM_VALIDATION_MIN_SELECT: (_) => `कम से कम ${_} विकल्प चुनें`,
69
+ FORM_VALIDATION_MAX_SELECT: (_) => `अधिकतम ${_} विकल्प चुनें`,
70
+ FORM_VALIDATION_REGEX_FAILED: "गलत प्रारूप"
71
+ }, I = { language: "hi", dateLocale: E, stringSet: A };
56
72
  export {
57
- S as default
73
+ I as default
58
74
  };