@eshal-bot/chat-widget 0.1.89 → 0.1.91
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/{chat-widget-MarkdownRenderer-Dl0f-qY0.esm.js → chat-widget-MarkdownRenderer-BesqIBjh.esm.js} +1 -1
- package/dist/{chat-widget-index-AtAXlMq0.esm.js → chat-widget-index-CUW4QWbL.esm.js} +1 -1
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +8 -9
- package/dist/chat-widget.min.js +1 -1
- package/dist/chat-widget.umd.js +1 -1
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-CUW4QWbL.esm.js";import"react";import"react-dom/client";import"react-dom";import"react/jsx-runtime";
|
package/dist/chat-widget.js
CHANGED
|
@@ -18627,15 +18627,14 @@
|
|
|
18627
18627
|
if (!value) return true;
|
|
18628
18628
|
return normalizeHex(value) === defaultHex;
|
|
18629
18629
|
};
|
|
18630
|
-
const formatTime = date =>
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
});
|
|
18630
|
+
const formatTime = date => {
|
|
18631
|
+
const d = date instanceof Date ? date : new Date(date);
|
|
18632
|
+
return d.toLocaleTimeString("en-US", {
|
|
18633
|
+
hour: "2-digit",
|
|
18634
|
+
minute: "2-digit",
|
|
18635
|
+
hour12: true
|
|
18636
|
+
}).replace(/am|pm/i, match => match.toUpperCase());
|
|
18637
|
+
};
|
|
18639
18638
|
const normalizeCsatFormat = format => {
|
|
18640
18639
|
const raw = (format || "EMOJI").toString().trim().toUpperCase();
|
|
18641
18640
|
if (raw === "THUMBS" || raw === "THUMB") return "THUMBS";
|