@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.
- package/dist/cjs/BHzdI_Qt.cjs +1 -0
- package/dist/cjs/BJrc6-lv.cjs +1 -0
- package/dist/cjs/Bb0Nr21w.cjs +1 -0
- package/dist/cjs/{CuE-R-Ab.cjs → C5K5hHy4.cjs} +1 -1
- package/dist/cjs/C6S9YvOe.cjs +1 -0
- package/dist/cjs/CzB3EwDs.cjs +1 -0
- package/dist/cjs/{udFozCQd.cjs → D1cSvUyI.cjs} +1 -1
- package/dist/cjs/D6zoiaPq.cjs +1 -0
- package/dist/cjs/{D0K6vsP-.cjs → DCYbEbRy.cjs} +1 -1
- package/dist/cjs/{D7p9IHLh.cjs → DdDHgZcy.cjs} +1 -1
- package/dist/cjs/Df_7d5l_.cjs +1 -0
- package/dist/cjs/KtTuzALW.cjs +1 -0
- package/dist/cjs/QbzBXqp7.cjs +1 -0
- package/dist/cjs/erHZgq1d.cjs +309 -0
- package/dist/cjs/{Qn-Vab7D.cjs → kjUExkVf.cjs} +1 -1
- package/dist/es/{DYR8UT_l.js → B-Bit2rH.js} +21 -5
- package/dist/es/{BKSUGIyL.js → B7zUx3wi.js} +21 -5
- package/dist/es/{D0QwWNMF.js → BDu5g5oT.js} +21 -5
- package/dist/es/BFu7kfm0.js +4787 -0
- package/dist/es/{jtdZ66dz.js → BMpxfxq9.js} +1 -1
- package/dist/es/{B1s75De5.js → BOQBJafG.js} +21 -5
- package/dist/es/{CA1gVgSD.js → BgVN3jH0.js} +21 -5
- package/dist/es/{EylKxx4d.js → CGGa6Wi6.js} +21 -5
- package/dist/es/{D5uRw0Em.js → DAj-QM_C.js} +1 -1
- package/dist/es/{DcqbdvlW.js → DGEcXOnE.js} +21 -5
- package/dist/es/{kE3eGJ-O.js → DU-buYVt.js} +1 -1
- package/dist/es/{DhUBPQ6o.js → DxAEO4J0.js} +1 -1
- package/dist/es/{CVCUjr3Q.js → dnxo1nL1.js} +1 -1
- package/dist/es/{Dxrtj2R8.js → fgcpgo5V.js} +21 -5
- package/dist/es/{BAebVbLs.js → qC-GIbc4.js} +20 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +173 -9
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/cjs/6xTfJrmg.cjs +0 -1
- package/dist/cjs/B4mujFdj.cjs +0 -1
- package/dist/cjs/BIDOBNC3.cjs +0 -1
- package/dist/cjs/BlshmoPb.cjs +0 -207
- package/dist/cjs/BzMiZszH.cjs +0 -1
- package/dist/cjs/D5dT1ruo.cjs +0 -1
- package/dist/cjs/DdQV23MS.cjs +0 -1
- package/dist/cjs/VJMogId3.cjs +0 -1
- package/dist/cjs/eFpF2Osy.cjs +0 -1
- package/dist/cjs/kTWMrzTz.cjs +0 -1
- package/dist/es/DcGmTG3A.js +0 -4104
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fr as
|
|
2
|
-
const
|
|
1
|
+
import { fr as e } from "date-fns/locale/fr";
|
|
2
|
+
const T = e, E = {
|
|
3
3
|
// Channel - Common
|
|
4
4
|
CHANNEL_FROZEN: "Canal gelé",
|
|
5
5
|
PLACE_HOLDER__WRONG: "Une erreur est survenue",
|
|
@@ -15,8 +15,12 @@ const e = _, T = {
|
|
|
15
15
|
BUTTON__CANCEL: "Annuler",
|
|
16
16
|
BUTTON__SAVE: "Enregistrer",
|
|
17
17
|
BUTTON__OK: "OK",
|
|
18
|
+
BUTTON__SUBMIT: "Soumettre",
|
|
18
19
|
NO_NAME: "(Sans nom)",
|
|
19
20
|
RETRY: "Réessayer",
|
|
21
|
+
OPTIONAL: "optionnel",
|
|
22
|
+
SUBMITTED: "Soumis",
|
|
23
|
+
TRY_AGAIN: "Veuillez réessayer.",
|
|
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 e = _, T = {
|
|
|
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: "Source"
|
|
55
|
-
|
|
58
|
+
CITATION_SOURCE_TITLE: "Source",
|
|
59
|
+
// Form
|
|
60
|
+
FORM_PLACEHOLDER: "Veuillez remplir le formulaire pour continuer.",
|
|
61
|
+
FORM_UNAVAILABLE: "Le formulaire n'est plus disponible.",
|
|
62
|
+
FORM_NOT_SUPPORTED: "Ce formulaire n'est pas pris en charge dans la version actuelle.",
|
|
63
|
+
FORM_VALIDATION_REQUIRED: "Cette question est obligatoire",
|
|
64
|
+
FORM_VALIDATION_MIN_LENGTH: (_) => `Minimum ${_} caractères requis`,
|
|
65
|
+
FORM_VALIDATION_MAX_LENGTH: (_) => `Maximum ${_} caractères autorisés`,
|
|
66
|
+
FORM_VALIDATION_MIN: (_) => `La valeur minimale est ${_}`,
|
|
67
|
+
FORM_VALIDATION_MAX: (_) => `La valeur maximale est ${_}`,
|
|
68
|
+
FORM_VALIDATION_MIN_SELECT: (_) => `Sélectionnez au moins ${_} options`,
|
|
69
|
+
FORM_VALIDATION_MAX_SELECT: (_) => `Sélectionnez au maximum ${_} options`,
|
|
70
|
+
FORM_VALIDATION_REGEX_FAILED: "Format invalide"
|
|
71
|
+
}, O = { language: "fr", dateLocale: T, stringSet: E };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
O as default
|
|
58
74
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { it as
|
|
2
|
-
const
|
|
1
|
+
import { it as T } from "date-fns/locale/it";
|
|
2
|
+
const o = T, E = {
|
|
3
3
|
// Channel - Common
|
|
4
4
|
CHANNEL_FROZEN: "Canale bloccato",
|
|
5
5
|
PLACE_HOLDER__WRONG: "Qualcosa è andato storto",
|
|
@@ -15,8 +15,12 @@ const T = _, E = {
|
|
|
15
15
|
BUTTON__CANCEL: "Annulla",
|
|
16
16
|
BUTTON__SAVE: "Salva",
|
|
17
17
|
BUTTON__OK: "OK",
|
|
18
|
+
BUTTON__SUBMIT: "Invia",
|
|
18
19
|
NO_NAME: "(Senza nome)",
|
|
19
20
|
RETRY: "Riprova",
|
|
21
|
+
OPTIONAL: "opzionale",
|
|
22
|
+
SUBMITTED: "Inviato",
|
|
23
|
+
TRY_AGAIN: "Per favore, riprova.",
|
|
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: "Fonte"
|
|
55
|
-
|
|
58
|
+
CITATION_SOURCE_TITLE: "Fonte",
|
|
59
|
+
// Form
|
|
60
|
+
FORM_PLACEHOLDER: "Compila il modulo per procedere.",
|
|
61
|
+
FORM_UNAVAILABLE: "Il modulo non è più disponibile.",
|
|
62
|
+
FORM_NOT_SUPPORTED: "Questo modulo non è supportato nella versione attuale.",
|
|
63
|
+
FORM_VALIDATION_REQUIRED: "Questa domanda è obbligatoria",
|
|
64
|
+
FORM_VALIDATION_MIN_LENGTH: (_) => `Minimo ${_} caratteri richiesti`,
|
|
65
|
+
FORM_VALIDATION_MAX_LENGTH: (_) => `Massimo ${_} caratteri consentiti`,
|
|
66
|
+
FORM_VALIDATION_MIN: (_) => `Il valore minimo è ${_}`,
|
|
67
|
+
FORM_VALIDATION_MAX: (_) => `Il valore massimo è ${_}`,
|
|
68
|
+
FORM_VALIDATION_MIN_SELECT: (_) => `Seleziona almeno ${_} opzioni`,
|
|
69
|
+
FORM_VALIDATION_MAX_SELECT: (_) => `Seleziona al massimo ${_} opzioni`,
|
|
70
|
+
FORM_VALIDATION_REGEX_FAILED: "Formato non valido"
|
|
71
|
+
}, A = { language: "it", dateLocale: o, stringSet: E };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
A as default
|
|
58
74
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pt as
|
|
2
|
-
const
|
|
1
|
+
import { pt as T } from "date-fns/locale/pt";
|
|
2
|
+
const E = T, e = {
|
|
3
3
|
// Channel - Common
|
|
4
4
|
CHANNEL_FROZEN: "Canal congelado",
|
|
5
5
|
PLACE_HOLDER__WRONG: "Algo deu errado",
|
|
@@ -15,8 +15,12 @@ const T = _, E = {
|
|
|
15
15
|
BUTTON__CANCEL: "Cancelar",
|
|
16
16
|
BUTTON__SAVE: "Salvar",
|
|
17
17
|
BUTTON__OK: "OK",
|
|
18
|
+
BUTTON__SUBMIT: "Enviar",
|
|
18
19
|
NO_NAME: "(Sem nome)",
|
|
19
20
|
RETRY: "Tentar novamente",
|
|
21
|
+
OPTIONAL: "opcional",
|
|
22
|
+
SUBMITTED: "Enviado",
|
|
23
|
+
TRY_AGAIN: "Tente novamente.",
|
|
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: "Fonte"
|
|
55
|
-
|
|
58
|
+
CITATION_SOURCE_TITLE: "Fonte",
|
|
59
|
+
// Form
|
|
60
|
+
FORM_PLACEHOLDER: "Por favor, preencha o formulário para prosseguir.",
|
|
61
|
+
FORM_UNAVAILABLE: "O formulário não está mais disponível.",
|
|
62
|
+
FORM_NOT_SUPPORTED: "Este formulário não é suportado na versão atual.",
|
|
63
|
+
FORM_VALIDATION_REQUIRED: "Esta pergunta é obrigatória",
|
|
64
|
+
FORM_VALIDATION_MIN_LENGTH: (_) => `Mínimo de ${_} caracteres necessários`,
|
|
65
|
+
FORM_VALIDATION_MAX_LENGTH: (_) => `Máximo de ${_} caracteres permitidos`,
|
|
66
|
+
FORM_VALIDATION_MIN: (_) => `Valor mínimo é ${_}`,
|
|
67
|
+
FORM_VALIDATION_MAX: (_) => `Valor máximo é ${_}`,
|
|
68
|
+
FORM_VALIDATION_MIN_SELECT: (_) => `Selecione pelo menos ${_} opções`,
|
|
69
|
+
FORM_VALIDATION_MAX_SELECT: (_) => `Selecione no máximo ${_} opções`,
|
|
70
|
+
FORM_VALIDATION_REGEX_FAILED: "Formato inválido"
|
|
71
|
+
}, A = { language: "pt", dateLocale: E, stringSet: e };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
A as default
|
|
58
74
|
};
|
|
@@ -3,7 +3,7 @@ import { useCallback as p } from "react";
|
|
|
3
3
|
import s from "dompurify";
|
|
4
4
|
import h, { RuleType as x } from "markdown-to-jsx";
|
|
5
5
|
import g from "styled-components";
|
|
6
|
-
import { A as b, c as i } from "./
|
|
6
|
+
import { A as b, c as i } from "./BFu7kfm0.js";
|
|
7
7
|
const m = (d, o, n, t) => o.type === x.textStrikethroughed ? /* @__PURE__ */ r.createElement("span", { key: t.key }, `~~${n(o.children, t)}~~`) : d(), z = ({ className: d, children: o, style: n, onClickImage: t }) => {
|
|
8
8
|
const a = p(
|
|
9
9
|
(e) => /* @__PURE__ */ r.createElement("img", { ...e, onClick: () => e.src && (t == null ? void 0 : t(e.src)) }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ja as
|
|
2
|
-
const
|
|
1
|
+
import { ja as T } from "date-fns/locale/ja";
|
|
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: "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: "yyyy年 M月 d日",
|
|
22
26
|
DATE_FORMAT__MESSAGE_TIMESTAMP: "p",
|
|
@@ -51,8 +55,20 @@ const T = _, E = {
|
|
|
51
55
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "yyyy/MM/dd",
|
|
52
56
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
|
|
53
57
|
// Citation
|
|
54
|
-
CITATION_SOURCE_TITLE: "出典"
|
|
55
|
-
|
|
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: "ja", dateLocale: E, stringSet: A };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
I as default
|
|
58
74
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import n from "styled-components";
|
|
3
|
-
import { P as a, I as l, a as c, c as s } from "./
|
|
3
|
+
import { P as a, I as l, a as c, c as s } from "./BFu7kfm0.js";
|
|
4
4
|
const d = ({ label: r = "Something went wrong", action: e, ...o }) => /* @__PURE__ */ t.createElement(a, { icon: "error", label: r, ...o }, e && /* @__PURE__ */ t.createElement(i, { onClick: e.onClick, label: e.label ?? "Retry" })), i = ({ label: r, onClick: e }) => /* @__PURE__ */ t.createElement(m, { tabIndex: 0, onClick: e }, /* @__PURE__ */ t.createElement(l, { type: "refresh", size: 20 }), /* @__PURE__ */ t.createElement(c, { variant: "button", color: s.color.primary.main }, r)), m = n.button`all:unset;display:flex;cursor:pointer;gap:4px;align-items:center;justify-content:center;`;
|
|
5
5
|
export {
|
|
6
6
|
d as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ko as
|
|
2
|
-
const
|
|
1
|
+
import { ko as T } from "date-fns/locale/ko";
|
|
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: "yyyy년 M월 d일",
|
|
22
26
|
DATE_FORMAT__MESSAGE_TIMESTAMP: "p",
|
|
@@ -51,8 +55,20 @@ const T = _, E = {
|
|
|
51
55
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "yyyy/MM/dd",
|
|
52
56
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "a h:mm",
|
|
53
57
|
// Citation
|
|
54
|
-
CITATION_SOURCE_TITLE: "출처"
|
|
55
|
-
|
|
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: "ko", dateLocale: E, stringSet: A };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
I as default
|
|
58
74
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { de as _ } from "date-fns/locale/de";
|
|
2
|
-
const
|
|
2
|
+
const T = _, E = {
|
|
3
3
|
// Channel - Common
|
|
4
4
|
CHANNEL_FROZEN: "Kanal eingefroren",
|
|
5
5
|
PLACE_HOLDER__WRONG: "Etwas ist schiefgelaufen",
|
|
@@ -15,8 +15,12 @@ const e = _, T = {
|
|
|
15
15
|
BUTTON__CANCEL: "Abbrechen",
|
|
16
16
|
BUTTON__SAVE: "Speichern",
|
|
17
17
|
BUTTON__OK: "OK",
|
|
18
|
+
BUTTON__SUBMIT: "Absenden",
|
|
18
19
|
NO_NAME: "(Kein Name)",
|
|
19
20
|
RETRY: "Erneut versuchen",
|
|
21
|
+
OPTIONAL: "optional",
|
|
22
|
+
SUBMITTED: "Gesendet",
|
|
23
|
+
TRY_AGAIN: "Bitte versuche es erneut.",
|
|
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 e = _, T = {
|
|
|
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: "Quelle"
|
|
55
|
-
|
|
58
|
+
CITATION_SOURCE_TITLE: "Quelle",
|
|
59
|
+
// Form
|
|
60
|
+
FORM_PLACEHOLDER: "Bitte fülle das Formular aus, um fortzufahren.",
|
|
61
|
+
FORM_UNAVAILABLE: "Das Formular ist nicht mehr verfügbar.",
|
|
62
|
+
FORM_NOT_SUPPORTED: "Dieses Formular wird in der aktuellen Version nicht unterstützt.",
|
|
63
|
+
FORM_VALIDATION_REQUIRED: "Diese Frage ist erforderlich",
|
|
64
|
+
FORM_VALIDATION_MIN_LENGTH: (e) => `Mindestens ${e} Zeichen erforderlich`,
|
|
65
|
+
FORM_VALIDATION_MAX_LENGTH: (e) => `Maximal ${e} Zeichen erlaubt`,
|
|
66
|
+
FORM_VALIDATION_MIN: (e) => `Mindestwert ist ${e}`,
|
|
67
|
+
FORM_VALIDATION_MAX: (e) => `Maximalwert ist ${e}`,
|
|
68
|
+
FORM_VALIDATION_MIN_SELECT: (e) => `Wähle mindestens ${e} Optionen`,
|
|
69
|
+
FORM_VALIDATION_MAX_SELECT: (e) => `Wähle höchstens ${e} Optionen`,
|
|
70
|
+
FORM_VALIDATION_REGEX_FAILED: "Ungültiges Format"
|
|
71
|
+
}, O = { language: "de", dateLocale: T, stringSet: E };
|
|
56
72
|
export {
|
|
57
|
-
|
|
73
|
+
O as default
|
|
58
74
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/erHZgq1d.cjs");require("react");exports.AgentProviderContainer=e.AgentProviderContainer;exports.AgentUIProviderContainer=e.AgentUIProviderContainer;exports.AnonymousSessionInfo=e.AnonymousSessionInfo;exports.CSATType=e.CSATType;exports.Commands=e.Commands;exports.Conversation=e.Conversation;exports.ConversationContext=e.ConversationContext;exports.ConversationContextProvider=e.ConversationContextProvider;exports.ConversationLayout=e.ConversationLayout;exports.ConversationList=e.ConversationList;exports.ConversationListContext=e.ConversationListContext;exports.ConversationListContextProvider=e.ConversationListContextProvider;exports.ConversationListItemLayout=e.ConversationListItemLayout;exports.ConversationListLayout=e.ConversationListLayout;exports.DefaultMessenger=e.DefaultMessenger;exports.FixedMessenger=e.FixedMessenger;exports.IncomingMessageLayout=e.IncomingMessageLayout;exports.LauncherBase=e.LauncherBase;exports.LogLevel=e.LogLevel;exports.ManualSessionInfo=e.ManualSessionInfo;exports.MessageLogs=e.MessageLogs;exports.OutgoingMessageLayout=e.OutgoingMessageLayout;exports.SystemMessageLayout=e.SystemMessageLayout;exports.messengerDispatcher=e.messengerDispatcher;exports.useConversationContext=e.useConversationContext;exports.useConversationListContext=e.useConversationListContext;exports.useLocalizationContext=e.useLocalizationContext;exports.useMessengerContext=e.useMessengerContext;exports.useMessengerSessionContext=e.useMessengerSessionContext;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,9 +95,21 @@ export declare interface AgentPreviewConfigs {
|
|
|
95
95
|
export declare const AgentProviderContainer: ForwardRefExoticComponent< {
|
|
96
96
|
appId: string;
|
|
97
97
|
aiAgentId: string;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* @description Custom API host for the chat SDK.
|
|
101
|
+
* */
|
|
98
102
|
customApiHost?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* @description Custom WebSocket host for the chat SDK.
|
|
106
|
+
* */
|
|
99
107
|
customWebSocketHost?: string;
|
|
100
|
-
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* @description Inject a custom Chat SDK. GroupChannelModule and AIAgentModule must be included in the initialization.
|
|
111
|
+
* */
|
|
112
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
101
113
|
/**
|
|
102
114
|
* @public
|
|
103
115
|
* @description Custom state management for the ai agent client.
|
|
@@ -117,6 +129,11 @@ setExpanded?: (value: boolean) => void;
|
|
|
117
129
|
entryStyle?: CSSProperties;
|
|
118
130
|
/**
|
|
119
131
|
* @public
|
|
132
|
+
* @description The root HTML element to which the AIAgent Messenger will be appended. (default: document.body)
|
|
133
|
+
* */
|
|
134
|
+
rootElement?: HTMLElement;
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
120
137
|
* @description AIAgent Messenger theme
|
|
121
138
|
* */
|
|
122
139
|
theme?: {
|
|
@@ -333,9 +350,21 @@ declare interface AIAgentMessengerSessionRef {
|
|
|
333
350
|
export declare type AIAgentProps = PropsWithChildren<{
|
|
334
351
|
appId: string;
|
|
335
352
|
aiAgentId: string;
|
|
353
|
+
/**
|
|
354
|
+
* @public
|
|
355
|
+
* @description Custom API host for the chat SDK.
|
|
356
|
+
* */
|
|
336
357
|
customApiHost?: string;
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
* @description Custom WebSocket host for the chat SDK.
|
|
361
|
+
* */
|
|
337
362
|
customWebSocketHost?: string;
|
|
338
|
-
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
* @description Inject a custom Chat SDK. GroupChannelModule and AIAgentModule must be included in the initialization.
|
|
366
|
+
* */
|
|
367
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
339
368
|
/**
|
|
340
369
|
* @public
|
|
341
370
|
* @description Custom state management for the ai agent client.
|
|
@@ -353,6 +382,11 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
353
382
|
* particularly useful for iframe integrations where precise sizing is needed.
|
|
354
383
|
* */
|
|
355
384
|
entryStyle?: CSSProperties;
|
|
385
|
+
/**
|
|
386
|
+
* @public
|
|
387
|
+
* @description The root HTML element to which the AIAgent Messenger will be appended. (default: document.body)
|
|
388
|
+
* */
|
|
389
|
+
rootElement?: HTMLElement;
|
|
356
390
|
/**
|
|
357
391
|
* @public
|
|
358
392
|
* @description AIAgent Messenger theme
|
|
@@ -495,7 +529,7 @@ declare type BaseMessageProps<T> = T & {
|
|
|
495
529
|
children?: ReactNode;
|
|
496
530
|
};
|
|
497
531
|
|
|
498
|
-
declare interface
|
|
532
|
+
export declare interface CitationInfo {
|
|
499
533
|
embedding_id: number;
|
|
500
534
|
source_type: string;
|
|
501
535
|
title: string;
|
|
@@ -693,7 +727,11 @@ declare type CustomEvent_2 = {
|
|
|
693
727
|
data: {
|
|
694
728
|
message: BaseMessage;
|
|
695
729
|
};
|
|
730
|
+
} | {
|
|
731
|
+
type: 'user-action-requested';
|
|
732
|
+
data: UserActionRequestedData;
|
|
696
733
|
};
|
|
734
|
+
export { CustomEvent_2 as CustomEvent }
|
|
697
735
|
|
|
698
736
|
declare const _default: {
|
|
699
737
|
language: string;
|
|
@@ -710,8 +748,12 @@ declare const _default: {
|
|
|
710
748
|
BUTTON__CANCEL: string;
|
|
711
749
|
BUTTON__SAVE: string;
|
|
712
750
|
BUTTON__OK: string;
|
|
751
|
+
BUTTON__SUBMIT: string;
|
|
713
752
|
NO_NAME: string;
|
|
714
753
|
RETRY: string;
|
|
754
|
+
OPTIONAL: string;
|
|
755
|
+
SUBMITTED: string;
|
|
756
|
+
TRY_AGAIN: string;
|
|
715
757
|
DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: string;
|
|
716
758
|
DATE_FORMAT__MESSAGE_TIMESTAMP: string;
|
|
717
759
|
FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT: string;
|
|
@@ -741,6 +783,17 @@ declare const _default: {
|
|
|
741
783
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: string;
|
|
742
784
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: string;
|
|
743
785
|
CITATION_SOURCE_TITLE: string;
|
|
786
|
+
FORM_PLACEHOLDER: string;
|
|
787
|
+
FORM_UNAVAILABLE: string;
|
|
788
|
+
FORM_NOT_SUPPORTED: string;
|
|
789
|
+
FORM_VALIDATION_REQUIRED: string;
|
|
790
|
+
FORM_VALIDATION_MIN_LENGTH: (minLength: number) => string;
|
|
791
|
+
FORM_VALIDATION_MAX_LENGTH: (maxLength: number) => string;
|
|
792
|
+
FORM_VALIDATION_MIN: (minValue: number) => string;
|
|
793
|
+
FORM_VALIDATION_MAX: (maxValue: number) => string;
|
|
794
|
+
FORM_VALIDATION_MIN_SELECT: (minSelect: number) => string;
|
|
795
|
+
FORM_VALIDATION_MAX_SELECT: (maxSelect: number) => string;
|
|
796
|
+
FORM_VALIDATION_REGEX_FAILED: string;
|
|
744
797
|
};
|
|
745
798
|
};
|
|
746
799
|
|
|
@@ -749,7 +802,7 @@ appId: string;
|
|
|
749
802
|
aiAgentId: string;
|
|
750
803
|
customApiHost?: string;
|
|
751
804
|
customWebSocketHost?: string;
|
|
752
|
-
|
|
805
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
753
806
|
state?: {
|
|
754
807
|
opened?: boolean;
|
|
755
808
|
setOpened?: (value: boolean) => void;
|
|
@@ -757,6 +810,7 @@ expanded?: boolean;
|
|
|
757
810
|
setExpanded?: (value: boolean) => void;
|
|
758
811
|
};
|
|
759
812
|
entryStyle?: CSSProperties;
|
|
813
|
+
rootElement?: HTMLElement;
|
|
760
814
|
theme?: {
|
|
761
815
|
palette?: Partial<PaletteShape>;
|
|
762
816
|
typography?: Partial<{ [K in keyof TypographyShape]: Partial<TypographyShape[K]>; }>;
|
|
@@ -820,7 +874,9 @@ export declare interface ExtendedMessagePayload {
|
|
|
820
874
|
visibility: boolean;
|
|
821
875
|
};
|
|
822
876
|
bot_message_type: 'generated' | 'canned' | 'thinking' | 'welcome' | 'resolution_feedback' | 'maintenance' | 'safeguard' | 'error';
|
|
823
|
-
citations?:
|
|
877
|
+
citations?: CitationInfo[];
|
|
878
|
+
feedback?: FeedbackInfo;
|
|
879
|
+
form?: Form;
|
|
824
880
|
groundedness: GroundednessInfo[];
|
|
825
881
|
manual: ActionbookInfo;
|
|
826
882
|
function_calls: FunctionCallsInfo[];
|
|
@@ -831,12 +887,17 @@ declare function ExtendedMessageTemplate(props: Props_3): JSX.Element;
|
|
|
831
887
|
|
|
832
888
|
declare function ExtendedSuggestedReplies({ extendedMessagePayload, onClickSuggestedReply, suggestedRepliesDirection, }: IncomingMessageProps): JSX.Element | null;
|
|
833
889
|
|
|
890
|
+
export declare interface FeedbackInfo {
|
|
891
|
+
rating: 'good' | 'bad';
|
|
892
|
+
comment?: string;
|
|
893
|
+
}
|
|
894
|
+
|
|
834
895
|
export declare const FixedMessenger: ForwardRefExoticComponent< {
|
|
835
896
|
appId: string;
|
|
836
897
|
aiAgentId: string;
|
|
837
898
|
customApiHost?: string;
|
|
838
899
|
customWebSocketHost?: string;
|
|
839
|
-
|
|
900
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
840
901
|
state?: {
|
|
841
902
|
opened?: boolean;
|
|
842
903
|
setOpened?: (value: boolean) => void;
|
|
@@ -844,6 +905,7 @@ expanded?: boolean;
|
|
|
844
905
|
setExpanded?: (value: boolean) => void;
|
|
845
906
|
};
|
|
846
907
|
entryStyle?: CSSProperties;
|
|
908
|
+
rootElement?: HTMLElement;
|
|
847
909
|
theme?: {
|
|
848
910
|
palette?: Partial<PaletteShape>;
|
|
849
911
|
typography?: Partial<{ [K in keyof TypographyShape]: Partial<TypographyShape[K]>; }>;
|
|
@@ -902,6 +964,19 @@ declare interface FixedMessengerStyleProps {
|
|
|
902
964
|
launcherSize?: number;
|
|
903
965
|
}
|
|
904
966
|
|
|
967
|
+
declare interface Form {
|
|
968
|
+
key: string;
|
|
969
|
+
version: number;
|
|
970
|
+
title: string;
|
|
971
|
+
submitted_at?: number;
|
|
972
|
+
canceled_at?: number;
|
|
973
|
+
fields: FormField[];
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
declare type FormField = TextField | NumberField | SingleSelectField | MultiSelectField;
|
|
977
|
+
|
|
978
|
+
declare type FormFieldValue = string | number | string[] | null;
|
|
979
|
+
|
|
905
980
|
export declare interface FunctionCallsInfo {
|
|
906
981
|
key: string;
|
|
907
982
|
name: string;
|
|
@@ -934,6 +1009,8 @@ declare type IncomingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
|
934
1009
|
isBotMessage?: boolean;
|
|
935
1010
|
isTyping?: boolean;
|
|
936
1011
|
isStreaming?: boolean;
|
|
1012
|
+
isHandedOff?: boolean;
|
|
1013
|
+
isConversationClosed?: boolean;
|
|
937
1014
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
938
1015
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
939
1016
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -943,7 +1020,18 @@ declare type IncomingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
|
943
1020
|
onClickCTA?: (params: {
|
|
944
1021
|
url: string;
|
|
945
1022
|
}) => void;
|
|
946
|
-
onClickCitation?: (citation:
|
|
1023
|
+
onClickCitation?: (citation: CitationInfo) => void;
|
|
1024
|
+
onFeedbackUpdate?: (params: {
|
|
1025
|
+
rating: 'good' | 'bad';
|
|
1026
|
+
comment?: string;
|
|
1027
|
+
} | null) => void;
|
|
1028
|
+
onSubmitForm?: (params: {
|
|
1029
|
+
key: string;
|
|
1030
|
+
data: Record<string, FormFieldValue>;
|
|
1031
|
+
}) => Promise<void>;
|
|
1032
|
+
onCancelForm?: (params: {
|
|
1033
|
+
key: string;
|
|
1034
|
+
}) => Promise<void>;
|
|
947
1035
|
messageTemplateErrorFallback?: ReactNode;
|
|
948
1036
|
messageTemplateLoadingFallback?: ReactNode;
|
|
949
1037
|
}>;
|
|
@@ -971,6 +1059,7 @@ export declare const IncomingMessageLayout: {
|
|
|
971
1059
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
972
1060
|
CTAButton: typeof ExtendedCTAButton;
|
|
973
1061
|
Citation: typeof ExtendedCitation;
|
|
1062
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
974
1063
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
975
1064
|
};
|
|
976
1065
|
};
|
|
@@ -988,6 +1077,7 @@ export declare const IncomingMessageLayout: {
|
|
|
988
1077
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
989
1078
|
CTAButton: typeof ExtendedCTAButton;
|
|
990
1079
|
Citation: typeof ExtendedCitation;
|
|
1080
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
991
1081
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
992
1082
|
}, IncomingMessageProps>>;
|
|
993
1083
|
useContext: () => LayoutContextValue< {
|
|
@@ -1000,6 +1090,7 @@ export declare const IncomingMessageLayout: {
|
|
|
1000
1090
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
1001
1091
|
CTAButton: typeof ExtendedCTAButton;
|
|
1002
1092
|
Citation: typeof ExtendedCitation;
|
|
1093
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
1003
1094
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
1004
1095
|
}, IncomingMessageProps>;
|
|
1005
1096
|
} & {
|
|
@@ -1030,6 +1121,9 @@ export declare const IncomingMessageLayout: {
|
|
|
1030
1121
|
Citation: (props: {
|
|
1031
1122
|
component: typeof ExtendedCitation;
|
|
1032
1123
|
}) => null;
|
|
1124
|
+
Form: (props: {
|
|
1125
|
+
component: (props: IncomingMessageProps) => JSX.Element | null;
|
|
1126
|
+
}) => null;
|
|
1033
1127
|
MessageLogs: (props: {
|
|
1034
1128
|
component: typeof ExtendedMessageLogs;
|
|
1035
1129
|
}) => null;
|
|
@@ -1294,6 +1388,36 @@ declare interface MessengerSettingsResponse {
|
|
|
1294
1388
|
};
|
|
1295
1389
|
}
|
|
1296
1390
|
|
|
1391
|
+
declare type MultiSelectField = {
|
|
1392
|
+
key: string;
|
|
1393
|
+
type: 'multi-select';
|
|
1394
|
+
label: string;
|
|
1395
|
+
required: boolean;
|
|
1396
|
+
values: null | string[];
|
|
1397
|
+
default_values?: string[];
|
|
1398
|
+
options: string[];
|
|
1399
|
+
layout: 'default';
|
|
1400
|
+
rules?: {
|
|
1401
|
+
min_select?: number;
|
|
1402
|
+
max_select?: number;
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
declare type NumberField = {
|
|
1407
|
+
key: string;
|
|
1408
|
+
type: 'number';
|
|
1409
|
+
label: string;
|
|
1410
|
+
required: boolean;
|
|
1411
|
+
value: null | number;
|
|
1412
|
+
default_value?: number;
|
|
1413
|
+
placeholder?: string;
|
|
1414
|
+
layout: 'default';
|
|
1415
|
+
rules?: {
|
|
1416
|
+
min?: number;
|
|
1417
|
+
max?: number;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1297
1421
|
declare type OutgoingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
1298
1422
|
sender: {
|
|
1299
1423
|
nickname: string;
|
|
@@ -1500,9 +1624,18 @@ declare type ScrollTopicUnion = {
|
|
|
1500
1624
|
};
|
|
1501
1625
|
};
|
|
1502
1626
|
|
|
1503
|
-
declare type
|
|
1627
|
+
declare type SingleSelectField = {
|
|
1628
|
+
key: string;
|
|
1629
|
+
type: 'single-select';
|
|
1630
|
+
label: string;
|
|
1631
|
+
required: boolean;
|
|
1632
|
+
value: null | string;
|
|
1633
|
+
default_value?: string;
|
|
1634
|
+
options: string[];
|
|
1635
|
+
layout: 'default';
|
|
1636
|
+
};
|
|
1504
1637
|
|
|
1505
|
-
declare type
|
|
1638
|
+
declare type StringSet = typeof _default.stringSet;
|
|
1506
1639
|
|
|
1507
1640
|
declare function SystemAdminMessage(props: SystemMessageProps): JSX.Element | null;
|
|
1508
1641
|
|
|
@@ -1552,6 +1685,22 @@ declare type SystemMessageUnion = SystemBaseMessageProps<{
|
|
|
1552
1685
|
onSubmitCSAT: (params: CSATSubmitParams) => void;
|
|
1553
1686
|
}>;
|
|
1554
1687
|
|
|
1688
|
+
declare type TextField = {
|
|
1689
|
+
key: string;
|
|
1690
|
+
type: 'text';
|
|
1691
|
+
label: string;
|
|
1692
|
+
required: boolean;
|
|
1693
|
+
value: null | string;
|
|
1694
|
+
default_value?: string;
|
|
1695
|
+
placeholder?: string;
|
|
1696
|
+
layout: 'singleline' | 'multiline';
|
|
1697
|
+
rules?: {
|
|
1698
|
+
regex?: string;
|
|
1699
|
+
min_length?: number;
|
|
1700
|
+
max_length?: number;
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1555
1704
|
declare type TypingIndicatorProps = IncomingMessageProps & {
|
|
1556
1705
|
customStyle?: {
|
|
1557
1706
|
bubbleContentColor?: string;
|
|
@@ -1615,6 +1764,21 @@ export declare const useMessengerSessionContext: {
|
|
|
1615
1764
|
displayName: string;
|
|
1616
1765
|
};
|
|
1617
1766
|
|
|
1767
|
+
export declare interface UserActionRequestedData {
|
|
1768
|
+
actionType: string;
|
|
1769
|
+
formName: string;
|
|
1770
|
+
payload: Record<string, unknown>;
|
|
1771
|
+
caseId: string;
|
|
1772
|
+
participantId: string;
|
|
1773
|
+
histories: {
|
|
1774
|
+
status: UserActionStatus;
|
|
1775
|
+
timestamp: number;
|
|
1776
|
+
detail?: string;
|
|
1777
|
+
}[];
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
export declare type UserActionStatus = 'action_requested' | 'action_started' | 'action_submitted' | 'action_processing' | 'action_succeeded' | 'action_failed' | 'action_canceled' | (string & {});
|
|
1781
|
+
|
|
1618
1782
|
declare type UserSession = {
|
|
1619
1783
|
userId: string;
|
|
1620
1784
|
authToken: string;
|