@sendbird/ai-agent-messenger-react 1.39.1 → 1.40.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/{Cr2LxvlJ.cjs → BoXkkKL_.cjs} +1 -1
- package/dist/cjs/{C116E0pr.cjs → D-lytti9.cjs} +1 -1
- package/dist/cjs/{C3VEshQr.cjs → D3Aoub0b.cjs} +1 -1
- package/dist/cjs/{C2Oi-KA4.cjs → De9EY1XB.cjs} +1 -1
- package/dist/cjs/{LFX2h7v2.cjs → DoR1M7Tp.cjs} +1 -1
- package/dist/cjs/{BQ8EaWkc.cjs → DsrX4pE_.cjs} +1 -1
- package/dist/cjs/TEfZbcKQ.cjs +1 -0
- package/dist/cjs/{B9JzuCyz.cjs → fdHbDI5i.cjs} +1 -1
- package/dist/cjs/{CIjjIGUs.cjs → qr4Ghr48.cjs} +1 -1
- package/dist/cjs/{CKr98WbE.cjs → s8NcCXAz.cjs} +1 -1
- package/dist/es/{DQJT1L-o.js → B6fq85PL.js} +5 -0
- package/dist/es/{yYj8P0Nc.js → BCT2_b4u.js} +5 -0
- package/dist/es/{DYWGE-YD.js → BTcqRd3n.js} +5 -0
- package/dist/es/{CPxk5f9K.js → Ba8iwsKH.js} +5 -0
- package/dist/es/{CrgvxcG1.js → CVbHhqBy.js} +5 -0
- package/dist/es/{Bz42IMvh.js → CooR-8ca.js} +7 -2
- package/dist/es/{0pQ1gLAM.js → Cwr5uDNr.js} +7 -2
- package/dist/es/{2cuzbJp5.js → D0_7HpM9.js} +11 -6
- package/dist/es/{C6lvBtlQ.js → DdfNQl2B.js} +5 -0
- package/dist/es/{DeJTwD_w.js → SygobY-d.js} +1 -1
- package/dist/es/{BQuWAZUg.js → aAk2M2E3.js} +5 -7
- package/dist/index.cjs +107 -106
- package/dist/index.d.ts +148 -8
- package/dist/index.js +3533 -3408
- package/package.json +4 -4
- package/dist/cjs/6HoSeQJQ.cjs +0 -1
|
@@ -161,6 +161,11 @@ const l = {
|
|
|
161
161
|
connection_delay: {
|
|
162
162
|
title: "問題が発生しました。まもなく再接続されます。",
|
|
163
163
|
description: (_) => `推定待ち時間:${_}`
|
|
164
|
+
},
|
|
165
|
+
desk: {
|
|
166
|
+
ticket_closure_confirm: "はい、解決しました",
|
|
167
|
+
ticket_closure_decline: "いいえ、まだサポートが必要です",
|
|
168
|
+
ticket_closure_error_message: "解決ステータスを更新できませんでした。もう一度お試しください。"
|
|
164
169
|
}
|
|
165
170
|
}, a = {
|
|
166
171
|
language: "ja",
|
|
@@ -218,11 +223,11 @@ const l = {
|
|
|
218
223
|
NO_NAME: "(名前なし)",
|
|
219
224
|
/** @deprecated Unused string **/
|
|
220
225
|
CHANNEL_FROZEN: "チャンネルが凍結されました"
|
|
221
|
-
},
|
|
226
|
+
}, m = {
|
|
222
227
|
language: a.language,
|
|
223
228
|
dateLocale: a.dateLocale,
|
|
224
229
|
stringSet: r
|
|
225
230
|
};
|
|
226
231
|
export {
|
|
227
|
-
|
|
232
|
+
m as default
|
|
228
233
|
};
|
|
@@ -161,6 +161,11 @@ const l = {
|
|
|
161
161
|
connection_delay: {
|
|
162
162
|
title: "문제가 발생했습니다. 곧 다시 연결됩니다.",
|
|
163
163
|
description: (_) => `예상 대기 시간: ${_}`
|
|
164
|
+
},
|
|
165
|
+
desk: {
|
|
166
|
+
ticket_closure_confirm: "네, 해결됐어요",
|
|
167
|
+
ticket_closure_decline: "아니요, 도움이 더 필요해요",
|
|
168
|
+
ticket_closure_error_message: "해결 상태를 업데이트하지 못했습니다. 다시 시도해 주세요."
|
|
164
169
|
}
|
|
165
170
|
}, a = {
|
|
166
171
|
language: "ko",
|
|
@@ -218,11 +223,11 @@ const l = {
|
|
|
218
223
|
NO_NAME: "(이름 없음)",
|
|
219
224
|
/** @deprecated Unused string **/
|
|
220
225
|
CHANNEL_FROZEN: "채널이 동결되었습니다."
|
|
221
|
-
},
|
|
226
|
+
}, m = {
|
|
222
227
|
language: a.language,
|
|
223
228
|
dateLocale: a.dateLocale,
|
|
224
229
|
stringSet: r
|
|
225
230
|
};
|
|
226
231
|
export {
|
|
227
|
-
|
|
232
|
+
m as default
|
|
228
233
|
};
|
|
@@ -161,13 +161,18 @@ const t = {
|
|
|
161
161
|
connection_delay: {
|
|
162
162
|
title: "Algo deu errado. Você será reconectado em breve.",
|
|
163
163
|
description: (e) => `Tempo estimado de espera: ${e}`
|
|
164
|
+
},
|
|
165
|
+
desk: {
|
|
166
|
+
ticket_closure_confirm: "Sim, foi resolvido",
|
|
167
|
+
ticket_closure_decline: "Não, ainda preciso de ajuda",
|
|
168
|
+
ticket_closure_error_message: "Não foi possível atualizar o status de resolução. Tente novamente."
|
|
164
169
|
}
|
|
165
|
-
},
|
|
170
|
+
}, s = {
|
|
166
171
|
language: "pt",
|
|
167
172
|
strings: t,
|
|
168
173
|
dateLocale: r
|
|
169
|
-
},
|
|
170
|
-
...
|
|
174
|
+
}, n = i(s.strings), m = {
|
|
175
|
+
...n,
|
|
171
176
|
// Channel Header
|
|
172
177
|
HEADER_BUTTON__AGENT_HANDOFF: "Conectar-se com um agente",
|
|
173
178
|
// Message Input
|
|
@@ -201,7 +206,7 @@ const t = {
|
|
|
201
206
|
FORM_VALIDATION_MAX_SELECT: (e) => `Selecione no máximo ${e} opções`,
|
|
202
207
|
FORM_VALIDATION_REGEX_FAILED: "Formato inválido",
|
|
203
208
|
/** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
|
|
204
|
-
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:
|
|
209
|
+
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: n.DATE_FORMAT__DATE_SHORT,
|
|
205
210
|
/** @deprecated Unused string **/
|
|
206
211
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
|
|
207
212
|
/** @deprecated Unused string **/
|
|
@@ -219,8 +224,8 @@ const t = {
|
|
|
219
224
|
/** @deprecated Unused string **/
|
|
220
225
|
CHANNEL_FROZEN: "Canal congelado"
|
|
221
226
|
}, l = {
|
|
222
|
-
language:
|
|
223
|
-
dateLocale:
|
|
227
|
+
language: s.language,
|
|
228
|
+
dateLocale: s.dateLocale,
|
|
224
229
|
stringSet: m
|
|
225
230
|
};
|
|
226
231
|
export {
|
|
@@ -161,6 +161,11 @@ const o = {
|
|
|
161
161
|
connection_delay: {
|
|
162
162
|
title: "Etwas ist schiefgelaufen. Sie werden in Kürze wieder verbunden.",
|
|
163
163
|
description: (e) => `Geschätzte Wartezeit: ${e}`
|
|
164
|
+
},
|
|
165
|
+
desk: {
|
|
166
|
+
ticket_closure_confirm: "Ja, es ist gelöst",
|
|
167
|
+
ticket_closure_decline: "Nein, ich brauche noch Hilfe",
|
|
168
|
+
ticket_closure_error_message: "Der Lösungsstatus konnte nicht aktualisiert werden. Bitte versuchen Sie es erneut."
|
|
164
169
|
}
|
|
165
170
|
}, i = {
|
|
166
171
|
language: "de",
|
|
@@ -3,7 +3,7 @@ import { useState as A } from "react";
|
|
|
3
3
|
import _ from "styled-components";
|
|
4
4
|
import { MessageProvider as I, renderer as R, parser as C } from "@sendbird/react-uikit-message-template-view";
|
|
5
5
|
import { createMessageTemplate as O } from "@sendbird/uikit-message-template";
|
|
6
|
-
import { r as M, f as K,
|
|
6
|
+
import { r as M, f as K, d as S, p as N, e as v, g as y, u as h, h as B, I as G, n as J } from "../index.js";
|
|
7
7
|
const w = {
|
|
8
8
|
VARIABLE: (e) => new RegExp(`\\{${e}\\}`, "g"),
|
|
9
9
|
VIEW_VARIABLE: (e) => new RegExp(`"{@${e}}"`, "g")
|
|
@@ -2,10 +2,8 @@ import * as e from "react";
|
|
|
2
2
|
import { useCallback as b, Fragment as c } from "react";
|
|
3
3
|
import g, { RuleType as m } from "markdown-to-jsx";
|
|
4
4
|
import w from "styled-components";
|
|
5
|
-
import { A as u, c as n, M as s,
|
|
6
|
-
const k = y({ convertSoftBreaks: !0 }),
|
|
7
|
-
(t, p) => t.startsWith(s) ? /* @__PURE__ */ e.createElement("span", { key: p, id: f, "aria-label": "masked-text" }, t) : t
|
|
8
|
-
)) : l(), A = ({ className: l, children: r, style: h, onClickImage: d, onClickLink: t }) => {
|
|
5
|
+
import { A as u, c as n, M as s, a as f, b as y } from "../index.js";
|
|
6
|
+
const k = y({ convertSoftBreaks: !0 }), v = new RegExp(`(${s}+)`), R = (l, r, h, d) => r.type === m.text && r.text.includes(s) ? /* @__PURE__ */ e.createElement(c, { key: d.key }, r.text.split(v).map((t, p) => t.startsWith(s) ? /* @__PURE__ */ e.createElement(f, { key: p }, t) : t)) : l(), $ = ({ className: l, children: r, style: h, onClickImage: d, onClickLink: t }) => {
|
|
9
7
|
const p = b((o) => {
|
|
10
8
|
const i = /* @__PURE__ */ e.createElement("img", { ...o, alt: o.alt || "" }), a = o.src;
|
|
11
9
|
return d && a ? /* @__PURE__ */ e.createElement(
|
|
@@ -25,7 +23,7 @@ const k = y({ convertSoftBreaks: !0 }), E = new RegExp(`(${s}+)`), R = (l, r, h,
|
|
|
25
23
|
i
|
|
26
24
|
) : i;
|
|
27
25
|
}, []);
|
|
28
|
-
return /* @__PURE__ */ e.createElement(
|
|
26
|
+
return /* @__PURE__ */ e.createElement(E, { className: l, style: h }, /* @__PURE__ */ e.createElement(
|
|
29
27
|
g,
|
|
30
28
|
{
|
|
31
29
|
options: {
|
|
@@ -56,7 +54,7 @@ const k = y({ convertSoftBreaks: !0 }), E = new RegExp(`(${s}+)`), R = (l, r, h,
|
|
|
56
54
|
},
|
|
57
55
|
k(r)
|
|
58
56
|
));
|
|
59
|
-
},
|
|
57
|
+
}, E = w.div`*{&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}hr{border-top:1px solid ${n.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.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.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.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.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{display:block;width:100%;height:auto;}`;
|
|
60
58
|
export {
|
|
61
|
-
|
|
59
|
+
$ as MarkdownText
|
|
62
60
|
};
|