@sendbird/ai-agent-messenger-react 1.3.2 → 1.4.1
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/{Qn-Vab7D.cjs → BJI8cfvF.cjs} +1 -1
- package/dist/cjs/BJrc6-lv.cjs +1 -0
- package/dist/cjs/Bb0Nr21w.cjs +1 -0
- package/dist/cjs/{D0K6vsP-.cjs → C29jU3T2.cjs} +1 -1
- package/dist/cjs/C6S9YvOe.cjs +1 -0
- package/dist/cjs/{udFozCQd.cjs → CEraeJ-K.cjs} +1 -1
- package/dist/cjs/COgkkyBM.cjs +1 -0
- package/dist/cjs/CzB3EwDs.cjs +1 -0
- package/dist/cjs/D6zoiaPq.cjs +1 -0
- package/dist/cjs/DM-WWpci.cjs +1 -0
- package/dist/cjs/{CuE-R-Ab.cjs → DPkjGd1h.cjs} +1 -1
- package/dist/cjs/Df_7d5l_.cjs +1 -0
- package/dist/cjs/KtTuzALW.cjs +1 -0
- package/dist/cjs/P_ra76fq.cjs +1 -0
- package/dist/cjs/QbzBXqp7.cjs +1 -0
- package/dist/cjs/{D7p9IHLh.cjs → Rny4qIUJ.cjs} +1 -1
- package/dist/cjs/nZrhe9jg.cjs +297 -0
- package/dist/es/{DYR8UT_l.js → B-Bit2rH.js} +21 -5
- package/dist/es/{BKSUGIyL.js → B7zUx3wi.js} +21 -5
- package/dist/es/{kE3eGJ-O.js → B9RZQBFg.js} +1 -1
- package/dist/es/{D0QwWNMF.js → BDu5g5oT.js} +21 -5
- package/dist/es/{B1s75De5.js → BOQBJafG.js} +21 -5
- package/dist/es/{CA1gVgSD.js → BgVN3jH0.js} +21 -5
- package/dist/es/BkNaytIU.js +4809 -0
- package/dist/es/CBd3y0FA.js +5 -0
- package/dist/es/{EylKxx4d.js → CGGa6Wi6.js} +21 -5
- package/dist/es/{DhUBPQ6o.js → C_zdaLEd.js} +1 -1
- package/dist/es/{DcqbdvlW.js → DGEcXOnE.js} +21 -5
- package/dist/es/{jtdZ66dz.js → DJ2cswO9.js} +1 -1
- package/dist/es/{D5uRw0Em.js → DK3lW85j.js} +1 -1
- package/dist/es/{CVCUjr3Q.js → L8ixNvKX.js} +1 -1
- package/dist/es/Y-x39_PW.js +5 -0
- package/dist/es/{Dxrtj2R8.js → fgcpgo5V.js} +21 -5
- package/dist/es/oD5rM94o.js +5 -0
- package/dist/es/{BAebVbLs.js → qC-GIbc4.js} +20 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +200 -13
- 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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const t = (l) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 64 64", fill: "#000", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { className: "fill", fillRule: "evenodd", clipRule: "evenodd", d: "M44.2293 48L57.5627 61.3335L61.334 57.5623L6.44897 2.67725L2.67773 6.44848L5.79294 9.56369C5.49652 10.3183 5.33374 11.1402 5.33374 12V58.6667L16.0004 48H44.2293ZM38.8959 42.6667L10.6671 14.4378L10.6671 45.7909L13.7913 42.6667H38.8959Z", fill: "#000" }), /* @__PURE__ */ e.createElement("path", { className: "fill", d: "M58.6671 41.3333C58.6671 43.0205 58.0403 44.5613 57.007 45.7356L53.1959 41.9244C53.2841 41.7463 53.3337 41.5456 53.3337 41.3333L53.3337 12C53.3337 11.2636 52.7368 10.6667 52.0004 10.6667H21.9381L16.6048 5.33333H52.0004C55.6823 5.33333 58.6671 8.3181 58.6671 12L58.6671 41.3333Z" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -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 "./BkNaytIU.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,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 "./BkNaytIU.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
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
const e = (l) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", ...l }, /* @__PURE__ */ a.createElement("path", { className: "fill", d: "M53.333 21.333a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8h-24a8 8 0 0 1-8-8v-24a8 8 0 0 1 8-8zm0 5.334h-24a2.667 2.667 0 0 0-2.666 2.666v24A2.667 2.667 0 0 0 29.333 56h24A2.667 2.667 0 0 0 56 53.333v-24a2.667 2.667 0 0 0-2.667-2.666zm-18.666-24a8 8 0 0 1 7.986 7.53l.014.47v2.666a2.667 2.667 0 0 1-5.316.311l-.018-.31v-2.667a2.67 2.67 0 0 0-2.355-2.65L34.667 8h-24a2.67 2.67 0 0 0-2.65 2.356l-.017.31v24a2.67 2.67 0 0 0 2.356 2.65l.31.017h2.667a2.667 2.667 0 0 1 .311 5.316l-.31.018h-2.667a8.001 8.001 0 0 1-7.987-7.53l-.013-.47v-24c0-4.26 3.33-7.743 7.53-7.987l.47-.013h24z", fill: "#000", fillRule: "evenodd" }));
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const l = (e) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { className: "fill", d: "M9.49988 12C9.49988 10.6193 10.6192 9.5 11.9999 9.5C13.3806 9.5 14.4999 10.6193 14.4999 12C14.4999 13.3807 13.3806 14.5 11.9999 14.5C10.6192 14.5 9.49988 13.3807 9.49988 12Z", fill: "#000" }), /* @__PURE__ */ C.createElement("path", { className: "fill", fillRule: "evenodd", clipRule: "evenodd", d: "M22.8338 11.4396C22.8017 11.3811 22.7552 11.2983 22.6946 11.1947C22.5735 10.9875 22.3957 10.6963 22.1627 10.3491C21.6979 9.65639 21.0073 8.73102 20.1026 7.80226C18.3089 5.96073 15.5665 4 11.9999 4C8.4334 4 5.69091 5.96073 3.89721 7.80226C2.99258 8.73102 2.30194 9.65639 1.83715 10.3491C1.60416 10.6963 1.42631 10.9875 1.30523 11.1947C1.24466 11.2983 1.19819 11.3811 1.16602 11.4396C1.14994 11.4689 1.13742 11.4921 1.1285 11.5088L0.873047 12L1.1285 12.4912C1.13742 12.5079 1.14994 12.5311 1.16602 12.5604C1.19819 12.6189 1.24466 12.7017 1.30523 12.8053C1.42631 13.0125 1.60416 13.3037 1.83715 13.6509C2.30194 14.3436 2.99258 15.269 3.89721 16.1977C5.69091 18.0393 8.4334 20 11.9999 20C15.5665 20 18.3089 18.0393 20.1026 16.1977C21.0073 15.269 21.6979 14.3436 22.1627 13.6509C22.3957 13.3037 22.5735 13.0125 22.6946 12.8053C22.7552 12.7017 22.8017 12.6189 22.8338 12.5604C22.9353 12.3757 23.0297 12.187 23.1268 12C23.0296 11.8131 22.9354 11.6243 22.8338 11.4396ZM11.9999 7.5C9.5146 7.5 7.49988 9.51472 7.49988 12C7.49988 14.4853 9.5146 16.5 11.9999 16.5C14.4852 16.5 16.4999 14.4853 16.4999 12C16.4999 9.51472 14.4852 7.5 11.9999 7.5Z", fill: "#000" }));
|
|
3
|
+
export {
|
|
4
|
+
l as default
|
|
5
|
+
};
|
|
@@ -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/nZrhe9jg.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
|
@@ -23,6 +23,7 @@ import { PropsWithChildren } from 'react';
|
|
|
23
23
|
import { ReactNode } from 'react';
|
|
24
24
|
import { RefAttributes } from 'react';
|
|
25
25
|
import { RefObject } from 'react';
|
|
26
|
+
import { SendbirdChatParams } from '@sendbird/chat';
|
|
26
27
|
import { SendbirdChatWith } from '@sendbird/chat';
|
|
27
28
|
import { SendbirdError } from '@sendbird/chat';
|
|
28
29
|
import { SessionHandler } from '@sendbird/chat';
|
|
@@ -95,9 +96,26 @@ export declare interface AgentPreviewConfigs {
|
|
|
95
96
|
export declare const AgentProviderContainer: ForwardRefExoticComponent< {
|
|
96
97
|
appId: string;
|
|
97
98
|
aiAgentId: string;
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
* @description Custom API host for the chat SDK.
|
|
102
|
+
* */
|
|
98
103
|
customApiHost?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @description Custom WebSocket host for the chat SDK.
|
|
107
|
+
* */
|
|
99
108
|
customWebSocketHost?: string;
|
|
100
|
-
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* @description Inject a custom Chat SDK. GroupChannelModule and AIAgentModule must be included in the initialization.
|
|
112
|
+
* */
|
|
113
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
* @description Custom parameters for initializing the chat SDK.
|
|
117
|
+
* */
|
|
118
|
+
chatParams?: SendbirdChatParams<[GroupChannelModule, AIAgentModule]>;
|
|
101
119
|
/**
|
|
102
120
|
* @public
|
|
103
121
|
* @description Custom state management for the ai agent client.
|
|
@@ -117,6 +135,11 @@ setExpanded?: (value: boolean) => void;
|
|
|
117
135
|
entryStyle?: CSSProperties;
|
|
118
136
|
/**
|
|
119
137
|
* @public
|
|
138
|
+
* @description The root HTML element to which the AIAgent Messenger will be appended. (default: document.body)
|
|
139
|
+
* */
|
|
140
|
+
rootElement?: HTMLElement;
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
120
143
|
* @description AIAgent Messenger theme
|
|
121
144
|
* */
|
|
122
145
|
theme?: {
|
|
@@ -288,6 +311,16 @@ declare interface AIAgentGroupChannelFilter {
|
|
|
288
311
|
* These channels are prioritized in the query results.
|
|
289
312
|
*/
|
|
290
313
|
pinnedChannelUrls?: string[];
|
|
314
|
+
/**
|
|
315
|
+
* The filter applied to copilot conversation only channels.
|
|
316
|
+
* It determines whether to include only copilot conversation channels.
|
|
317
|
+
*/
|
|
318
|
+
copilotConversationOnly?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* The copilot support channel URL.
|
|
321
|
+
* This channel is used for copilot support conversations.
|
|
322
|
+
*/
|
|
323
|
+
copilotSupportChannelUrl?: string;
|
|
291
324
|
}
|
|
292
325
|
|
|
293
326
|
declare interface AIAgentInfo {
|
|
@@ -333,9 +366,26 @@ declare interface AIAgentMessengerSessionRef {
|
|
|
333
366
|
export declare type AIAgentProps = PropsWithChildren<{
|
|
334
367
|
appId: string;
|
|
335
368
|
aiAgentId: string;
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
* @description Custom API host for the chat SDK.
|
|
372
|
+
* */
|
|
336
373
|
customApiHost?: string;
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
* @description Custom WebSocket host for the chat SDK.
|
|
377
|
+
* */
|
|
337
378
|
customWebSocketHost?: string;
|
|
338
|
-
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* @description Inject a custom Chat SDK. GroupChannelModule and AIAgentModule must be included in the initialization.
|
|
382
|
+
* */
|
|
383
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
* @description Custom parameters for initializing the chat SDK.
|
|
387
|
+
* */
|
|
388
|
+
chatParams?: SendbirdChatParams<[GroupChannelModule, AIAgentModule]>;
|
|
339
389
|
/**
|
|
340
390
|
* @public
|
|
341
391
|
* @description Custom state management for the ai agent client.
|
|
@@ -353,6 +403,11 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
353
403
|
* particularly useful for iframe integrations where precise sizing is needed.
|
|
354
404
|
* */
|
|
355
405
|
entryStyle?: CSSProperties;
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
* @description The root HTML element to which the AIAgent Messenger will be appended. (default: document.body)
|
|
409
|
+
* */
|
|
410
|
+
rootElement?: HTMLElement;
|
|
356
411
|
/**
|
|
357
412
|
* @public
|
|
358
413
|
* @description AIAgent Messenger theme
|
|
@@ -495,7 +550,7 @@ declare type BaseMessageProps<T> = T & {
|
|
|
495
550
|
children?: ReactNode;
|
|
496
551
|
};
|
|
497
552
|
|
|
498
|
-
declare interface
|
|
553
|
+
export declare interface CitationInfo {
|
|
499
554
|
embedding_id: number;
|
|
500
555
|
source_type: string;
|
|
501
556
|
title: string;
|
|
@@ -557,7 +612,7 @@ export declare const ConversationLayout: {
|
|
|
557
612
|
components: {
|
|
558
613
|
Header: () => JSX.Element | null;
|
|
559
614
|
Body: () => JSX.Element;
|
|
560
|
-
Footer: () => JSX.Element;
|
|
615
|
+
Footer: () => JSX.Element | null;
|
|
561
616
|
};
|
|
562
617
|
};
|
|
563
618
|
Template: ({ template, children }: {
|
|
@@ -567,12 +622,12 @@ export declare const ConversationLayout: {
|
|
|
567
622
|
Context: Context<LayoutContextValue< {
|
|
568
623
|
Header: () => JSX.Element | null;
|
|
569
624
|
Body: () => JSX.Element;
|
|
570
|
-
Footer: () => JSX.Element;
|
|
625
|
+
Footer: () => JSX.Element | null;
|
|
571
626
|
}, unknown>>;
|
|
572
627
|
useContext: () => LayoutContextValue< {
|
|
573
628
|
Header: () => JSX.Element | null;
|
|
574
629
|
Body: () => JSX.Element;
|
|
575
|
-
Footer: () => JSX.Element;
|
|
630
|
+
Footer: () => JSX.Element | null;
|
|
576
631
|
}, unknown>;
|
|
577
632
|
} & {
|
|
578
633
|
Header: (props: {
|
|
@@ -582,7 +637,7 @@ export declare const ConversationLayout: {
|
|
|
582
637
|
component: () => JSX.Element;
|
|
583
638
|
}) => null;
|
|
584
639
|
Footer: (props: {
|
|
585
|
-
component: () => JSX.Element;
|
|
640
|
+
component: () => JSX.Element | null;
|
|
586
641
|
}) => null;
|
|
587
642
|
};
|
|
588
643
|
|
|
@@ -693,7 +748,11 @@ declare type CustomEvent_2 = {
|
|
|
693
748
|
data: {
|
|
694
749
|
message: BaseMessage;
|
|
695
750
|
};
|
|
751
|
+
} | {
|
|
752
|
+
type: 'user-action-requested';
|
|
753
|
+
data: UserActionRequestedData;
|
|
696
754
|
};
|
|
755
|
+
export { CustomEvent_2 as CustomEvent }
|
|
697
756
|
|
|
698
757
|
declare const _default: {
|
|
699
758
|
language: string;
|
|
@@ -710,8 +769,12 @@ declare const _default: {
|
|
|
710
769
|
BUTTON__CANCEL: string;
|
|
711
770
|
BUTTON__SAVE: string;
|
|
712
771
|
BUTTON__OK: string;
|
|
772
|
+
BUTTON__SUBMIT: string;
|
|
713
773
|
NO_NAME: string;
|
|
714
774
|
RETRY: string;
|
|
775
|
+
OPTIONAL: string;
|
|
776
|
+
SUBMITTED: string;
|
|
777
|
+
TRY_AGAIN: string;
|
|
715
778
|
DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: string;
|
|
716
779
|
DATE_FORMAT__MESSAGE_TIMESTAMP: string;
|
|
717
780
|
FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT: string;
|
|
@@ -741,6 +804,17 @@ declare const _default: {
|
|
|
741
804
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: string;
|
|
742
805
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: string;
|
|
743
806
|
CITATION_SOURCE_TITLE: string;
|
|
807
|
+
FORM_PLACEHOLDER: string;
|
|
808
|
+
FORM_UNAVAILABLE: string;
|
|
809
|
+
FORM_NOT_SUPPORTED: string;
|
|
810
|
+
FORM_VALIDATION_REQUIRED: string;
|
|
811
|
+
FORM_VALIDATION_MIN_LENGTH: (minLength: number) => string;
|
|
812
|
+
FORM_VALIDATION_MAX_LENGTH: (maxLength: number) => string;
|
|
813
|
+
FORM_VALIDATION_MIN: (minValue: number) => string;
|
|
814
|
+
FORM_VALIDATION_MAX: (maxValue: number) => string;
|
|
815
|
+
FORM_VALIDATION_MIN_SELECT: (minSelect: number) => string;
|
|
816
|
+
FORM_VALIDATION_MAX_SELECT: (maxSelect: number) => string;
|
|
817
|
+
FORM_VALIDATION_REGEX_FAILED: string;
|
|
744
818
|
};
|
|
745
819
|
};
|
|
746
820
|
|
|
@@ -749,7 +823,8 @@ appId: string;
|
|
|
749
823
|
aiAgentId: string;
|
|
750
824
|
customApiHost?: string;
|
|
751
825
|
customWebSocketHost?: string;
|
|
752
|
-
|
|
826
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
827
|
+
chatParams?: SendbirdChatParams<[GroupChannelModule, AIAgentModule]>;
|
|
753
828
|
state?: {
|
|
754
829
|
opened?: boolean;
|
|
755
830
|
setOpened?: (value: boolean) => void;
|
|
@@ -757,6 +832,7 @@ expanded?: boolean;
|
|
|
757
832
|
setExpanded?: (value: boolean) => void;
|
|
758
833
|
};
|
|
759
834
|
entryStyle?: CSSProperties;
|
|
835
|
+
rootElement?: HTMLElement;
|
|
760
836
|
theme?: {
|
|
761
837
|
palette?: Partial<PaletteShape>;
|
|
762
838
|
typography?: Partial<{ [K in keyof TypographyShape]: Partial<TypographyShape[K]>; }>;
|
|
@@ -820,7 +896,9 @@ export declare interface ExtendedMessagePayload {
|
|
|
820
896
|
visibility: boolean;
|
|
821
897
|
};
|
|
822
898
|
bot_message_type: 'generated' | 'canned' | 'thinking' | 'welcome' | 'resolution_feedback' | 'maintenance' | 'safeguard' | 'error';
|
|
823
|
-
citations?:
|
|
899
|
+
citations?: CitationInfo[];
|
|
900
|
+
feedback?: FeedbackInfo;
|
|
901
|
+
form?: Form;
|
|
824
902
|
groundedness: GroundednessInfo[];
|
|
825
903
|
manual: ActionbookInfo;
|
|
826
904
|
function_calls: FunctionCallsInfo[];
|
|
@@ -831,12 +909,18 @@ declare function ExtendedMessageTemplate(props: Props_3): JSX.Element;
|
|
|
831
909
|
|
|
832
910
|
declare function ExtendedSuggestedReplies({ extendedMessagePayload, onClickSuggestedReply, suggestedRepliesDirection, }: IncomingMessageProps): JSX.Element | null;
|
|
833
911
|
|
|
912
|
+
export declare interface FeedbackInfo {
|
|
913
|
+
rating: 'good' | 'bad';
|
|
914
|
+
comment?: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
834
917
|
export declare const FixedMessenger: ForwardRefExoticComponent< {
|
|
835
918
|
appId: string;
|
|
836
919
|
aiAgentId: string;
|
|
837
920
|
customApiHost?: string;
|
|
838
921
|
customWebSocketHost?: string;
|
|
839
|
-
|
|
922
|
+
customChatSDK?: SendbirdChatWith<[GroupChannelModule, AIAgentModule]>;
|
|
923
|
+
chatParams?: SendbirdChatParams<[GroupChannelModule, AIAgentModule]>;
|
|
840
924
|
state?: {
|
|
841
925
|
opened?: boolean;
|
|
842
926
|
setOpened?: (value: boolean) => void;
|
|
@@ -844,6 +928,7 @@ expanded?: boolean;
|
|
|
844
928
|
setExpanded?: (value: boolean) => void;
|
|
845
929
|
};
|
|
846
930
|
entryStyle?: CSSProperties;
|
|
931
|
+
rootElement?: HTMLElement;
|
|
847
932
|
theme?: {
|
|
848
933
|
palette?: Partial<PaletteShape>;
|
|
849
934
|
typography?: Partial<{ [K in keyof TypographyShape]: Partial<TypographyShape[K]>; }>;
|
|
@@ -902,6 +987,19 @@ declare interface FixedMessengerStyleProps {
|
|
|
902
987
|
launcherSize?: number;
|
|
903
988
|
}
|
|
904
989
|
|
|
990
|
+
declare interface Form {
|
|
991
|
+
key: string;
|
|
992
|
+
version: number;
|
|
993
|
+
title: string;
|
|
994
|
+
submitted_at?: number;
|
|
995
|
+
canceled_at?: number;
|
|
996
|
+
fields: FormField[];
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
declare type FormField = TextField | NumberField | SingleSelectField | MultiSelectField;
|
|
1000
|
+
|
|
1001
|
+
declare type FormFieldValue = string | number | string[] | null;
|
|
1002
|
+
|
|
905
1003
|
export declare interface FunctionCallsInfo {
|
|
906
1004
|
key: string;
|
|
907
1005
|
name: string;
|
|
@@ -934,6 +1032,8 @@ declare type IncomingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
|
934
1032
|
isBotMessage?: boolean;
|
|
935
1033
|
isTyping?: boolean;
|
|
936
1034
|
isStreaming?: boolean;
|
|
1035
|
+
isHandedOff?: boolean;
|
|
1036
|
+
isConversationClosed?: boolean;
|
|
937
1037
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
938
1038
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
939
1039
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -943,7 +1043,18 @@ declare type IncomingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
|
943
1043
|
onClickCTA?: (params: {
|
|
944
1044
|
url: string;
|
|
945
1045
|
}) => void;
|
|
946
|
-
onClickCitation?: (citation:
|
|
1046
|
+
onClickCitation?: (citation: CitationInfo) => void;
|
|
1047
|
+
onFeedbackUpdate?: (params: {
|
|
1048
|
+
rating: 'good' | 'bad';
|
|
1049
|
+
comment?: string;
|
|
1050
|
+
} | null) => void;
|
|
1051
|
+
onSubmitForm?: (params: {
|
|
1052
|
+
key: string;
|
|
1053
|
+
data: Record<string, FormFieldValue>;
|
|
1054
|
+
}) => Promise<void>;
|
|
1055
|
+
onCancelForm?: (params: {
|
|
1056
|
+
key: string;
|
|
1057
|
+
}) => Promise<void>;
|
|
947
1058
|
messageTemplateErrorFallback?: ReactNode;
|
|
948
1059
|
messageTemplateLoadingFallback?: ReactNode;
|
|
949
1060
|
}>;
|
|
@@ -971,6 +1082,7 @@ export declare const IncomingMessageLayout: {
|
|
|
971
1082
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
972
1083
|
CTAButton: typeof ExtendedCTAButton;
|
|
973
1084
|
Citation: typeof ExtendedCitation;
|
|
1085
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
974
1086
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
975
1087
|
};
|
|
976
1088
|
};
|
|
@@ -988,6 +1100,7 @@ export declare const IncomingMessageLayout: {
|
|
|
988
1100
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
989
1101
|
CTAButton: typeof ExtendedCTAButton;
|
|
990
1102
|
Citation: typeof ExtendedCitation;
|
|
1103
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
991
1104
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
992
1105
|
}, IncomingMessageProps>>;
|
|
993
1106
|
useContext: () => LayoutContextValue< {
|
|
@@ -1000,6 +1113,7 @@ export declare const IncomingMessageLayout: {
|
|
|
1000
1113
|
MessageTemplate: typeof ExtendedMessageTemplate;
|
|
1001
1114
|
CTAButton: typeof ExtendedCTAButton;
|
|
1002
1115
|
Citation: typeof ExtendedCitation;
|
|
1116
|
+
Form: (props: IncomingMessageProps) => JSX.Element | null;
|
|
1003
1117
|
MessageLogs: typeof ExtendedMessageLogs;
|
|
1004
1118
|
}, IncomingMessageProps>;
|
|
1005
1119
|
} & {
|
|
@@ -1030,6 +1144,9 @@ export declare const IncomingMessageLayout: {
|
|
|
1030
1144
|
Citation: (props: {
|
|
1031
1145
|
component: typeof ExtendedCitation;
|
|
1032
1146
|
}) => null;
|
|
1147
|
+
Form: (props: {
|
|
1148
|
+
component: (props: IncomingMessageProps) => JSX.Element | null;
|
|
1149
|
+
}) => null;
|
|
1033
1150
|
MessageLogs: (props: {
|
|
1034
1151
|
component: typeof ExtendedMessageLogs;
|
|
1035
1152
|
}) => null;
|
|
@@ -1294,6 +1411,36 @@ declare interface MessengerSettingsResponse {
|
|
|
1294
1411
|
};
|
|
1295
1412
|
}
|
|
1296
1413
|
|
|
1414
|
+
declare type MultiSelectField = {
|
|
1415
|
+
key: string;
|
|
1416
|
+
type: 'multi-select';
|
|
1417
|
+
label: string;
|
|
1418
|
+
required: boolean;
|
|
1419
|
+
values: null | string[];
|
|
1420
|
+
default_values?: string[];
|
|
1421
|
+
options: string[];
|
|
1422
|
+
layout: 'default';
|
|
1423
|
+
rules?: {
|
|
1424
|
+
min_select?: number;
|
|
1425
|
+
max_select?: number;
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
declare type NumberField = {
|
|
1430
|
+
key: string;
|
|
1431
|
+
type: 'number';
|
|
1432
|
+
label: string;
|
|
1433
|
+
required: boolean;
|
|
1434
|
+
value: null | number;
|
|
1435
|
+
default_value?: number;
|
|
1436
|
+
placeholder?: string;
|
|
1437
|
+
layout: 'default';
|
|
1438
|
+
rules?: {
|
|
1439
|
+
min?: number;
|
|
1440
|
+
max?: number;
|
|
1441
|
+
};
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1297
1444
|
declare type OutgoingBaseMessageProps<T> = T & BaseMessageProps<{
|
|
1298
1445
|
sender: {
|
|
1299
1446
|
nickname: string;
|
|
@@ -1500,9 +1647,18 @@ declare type ScrollTopicUnion = {
|
|
|
1500
1647
|
};
|
|
1501
1648
|
};
|
|
1502
1649
|
|
|
1503
|
-
declare type
|
|
1650
|
+
declare type SingleSelectField = {
|
|
1651
|
+
key: string;
|
|
1652
|
+
type: 'single-select';
|
|
1653
|
+
label: string;
|
|
1654
|
+
required: boolean;
|
|
1655
|
+
value: null | string;
|
|
1656
|
+
default_value?: string;
|
|
1657
|
+
options: string[];
|
|
1658
|
+
layout: 'default';
|
|
1659
|
+
};
|
|
1504
1660
|
|
|
1505
|
-
declare type
|
|
1661
|
+
declare type StringSet = typeof _default.stringSet;
|
|
1506
1662
|
|
|
1507
1663
|
declare function SystemAdminMessage(props: SystemMessageProps): JSX.Element | null;
|
|
1508
1664
|
|
|
@@ -1552,6 +1708,22 @@ declare type SystemMessageUnion = SystemBaseMessageProps<{
|
|
|
1552
1708
|
onSubmitCSAT: (params: CSATSubmitParams) => void;
|
|
1553
1709
|
}>;
|
|
1554
1710
|
|
|
1711
|
+
declare type TextField = {
|
|
1712
|
+
key: string;
|
|
1713
|
+
type: 'text';
|
|
1714
|
+
label: string;
|
|
1715
|
+
required: boolean;
|
|
1716
|
+
value: null | string;
|
|
1717
|
+
default_value?: string;
|
|
1718
|
+
placeholder?: string;
|
|
1719
|
+
layout: 'singleline' | 'multiline';
|
|
1720
|
+
rules?: {
|
|
1721
|
+
regex?: string;
|
|
1722
|
+
min_length?: number;
|
|
1723
|
+
max_length?: number;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
|
|
1555
1727
|
declare type TypingIndicatorProps = IncomingMessageProps & {
|
|
1556
1728
|
customStyle?: {
|
|
1557
1729
|
bubbleContentColor?: string;
|
|
@@ -1615,6 +1787,21 @@ export declare const useMessengerSessionContext: {
|
|
|
1615
1787
|
displayName: string;
|
|
1616
1788
|
};
|
|
1617
1789
|
|
|
1790
|
+
export declare interface UserActionRequestedData {
|
|
1791
|
+
action_type: string;
|
|
1792
|
+
form_name: string;
|
|
1793
|
+
case_id: string;
|
|
1794
|
+
participant_id: string;
|
|
1795
|
+
payload: Record<string, unknown>;
|
|
1796
|
+
history: {
|
|
1797
|
+
status: UserActionStatus;
|
|
1798
|
+
timestamp: number;
|
|
1799
|
+
detail?: string;
|
|
1800
|
+
}[];
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
export declare type UserActionStatus = 'action_requested' | 'action_started' | 'action_submitted' | 'action_processing' | 'action_succeeded' | 'action_failed' | 'action_canceled' | (string & {});
|
|
1804
|
+
|
|
1618
1805
|
declare type UserSession = {
|
|
1619
1806
|
userId: string;
|
|
1620
1807
|
authToken: string;
|