@smarter.sh/ui-chat 0.1.2 → 0.1.4
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/smarter-chat-library.es.js +4 -2
- package/dist/smarter-chat-library.es.js.map +1 -1
- package/dist/smarter-chat-library.umd.js +40 -40
- package/dist/smarter-chat-library.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SmarterChat/api.js +1 -0
- package/src/components/index.js +1 -0
- package/src/version.js +3 -0
|
@@ -28552,7 +28552,7 @@ async function yN(r, i, u) {
|
|
|
28552
28552
|
async function M8(r, i, u) {
|
|
28553
28553
|
console.log("fetchPrompt(): config", r);
|
|
28554
28554
|
const s = r.chatbot.url_chatbot, d = zb(u.sessionCookie, ""), v = mN(s, null, d), m = vN(u), S = D8(i, r), w = hN(m, S), T = await yN(v, w, u);
|
|
28555
|
-
return T && T.body ? await JSON.parse(T.body) : null;
|
|
28555
|
+
return T && T.body ? (console.log("fetchPrompt(): parsing responseJson.body "), await JSON.parse(T.body)) : null;
|
|
28556
28556
|
}
|
|
28557
28557
|
async function P8(r, i) {
|
|
28558
28558
|
const u = zb(i.sessionCookie, ""), s = vN(i), d = JSON.stringify({ session_key: u }), v = hN(s, d), m = mN(r, "config/", u), S = await yN(m, v, i);
|
|
@@ -28843,10 +28843,12 @@ function G8({
|
|
|
28843
28843
|
)
|
|
28844
28844
|
] }) }) }) }) }) });
|
|
28845
28845
|
}
|
|
28846
|
+
const Q8 = "0.1.4";
|
|
28846
28847
|
export {
|
|
28847
28848
|
so as MessageDirectionEnum,
|
|
28848
28849
|
Ha as SenderRoleEnum,
|
|
28849
28850
|
G8 as SmarterChat,
|
|
28850
|
-
N8 as ValidMessageRolesEnum
|
|
28851
|
+
N8 as ValidMessageRolesEnum,
|
|
28852
|
+
Q8 as version
|
|
28851
28853
|
};
|
|
28852
28854
|
//# sourceMappingURL=smarter-chat-library.es.js.map
|