@sawport/react-sdk 0.1.0-alpha.83.1 → 0.1.0-beta.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/index.js +7 -7
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -88992,7 +88992,7 @@ const initMessage = (params, config = {}) => {
|
|
|
88992
88992
|
const getMessages = (params) => chatApi("messages", params);
|
|
88993
88993
|
const createRecording = (data2) => chatApi("recordings", "post", data2);
|
|
88994
88994
|
const readConversation = (conversationId, userId, params, config) => chatApi(`messages/${conversationId}/${userId}/read`, params, "put", config);
|
|
88995
|
-
const source_url = window.location.
|
|
88995
|
+
const source_url = window.location.origin + window.location.pathname;
|
|
88996
88996
|
function WidgetInitForm({
|
|
88997
88997
|
companyUser,
|
|
88998
88998
|
company_id,
|
|
@@ -92900,13 +92900,13 @@ const ChatMessage = memo(function({
|
|
|
92900
92900
|
ext: attachment == null ? void 0 : attachment.split(".").pop()
|
|
92901
92901
|
}, [attachment]);
|
|
92902
92902
|
return msg.isSender ? /* @__PURE__ */ jsx("div", {
|
|
92903
|
-
className: "chat-send-container my-2",
|
|
92903
|
+
className: "chat-send-container flex flex-col my-2",
|
|
92904
92904
|
children: ((_a = msg.message) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsxs(Fragment, {
|
|
92905
92905
|
children: [/* @__PURE__ */ jsx("p", {
|
|
92906
92906
|
className: "widget-chat-send",
|
|
92907
92907
|
children: msg.message
|
|
92908
|
-
}), /* @__PURE__ */ jsxs("
|
|
92909
|
-
className: "flex",
|
|
92908
|
+
}), /* @__PURE__ */ jsxs("p", {
|
|
92909
|
+
className: "flex items-center ml-auto",
|
|
92910
92910
|
children: [/* @__PURE__ */ jsx("small", {
|
|
92911
92911
|
style: {
|
|
92912
92912
|
marginRight: "12px",
|
|
@@ -92971,7 +92971,7 @@ const ChatMessage = memo(function({
|
|
|
92971
92971
|
})
|
|
92972
92972
|
})
|
|
92973
92973
|
}) : "", /* @__PURE__ */ jsxs("div", {
|
|
92974
|
-
className: "flex",
|
|
92974
|
+
className: "flex items-center ml-auto",
|
|
92975
92975
|
children: [/* @__PURE__ */ jsx("small", {
|
|
92976
92976
|
style: {
|
|
92977
92977
|
marginRight: "12px",
|
|
@@ -93287,7 +93287,7 @@ function ChatWidgetScreen({
|
|
|
93287
93287
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
93288
93288
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
93289
93289
|
id: "widget-chat-send",
|
|
93290
|
-
className: "flex-grow widget-chat-display-container",
|
|
93290
|
+
className: "flex-grow min-h-[419px] widget-chat-display-container",
|
|
93291
93291
|
children: [/* @__PURE__ */ jsx("div", {
|
|
93292
93292
|
className: "chat-receive-container mb-2 flex items-center",
|
|
93293
93293
|
children: /* @__PURE__ */ jsx("p", {
|
|
@@ -95934,7 +95934,7 @@ const WidgetFormDisplay = memo(({
|
|
|
95934
95934
|
isScheduling: isScheduling2
|
|
95935
95935
|
}), []);
|
|
95936
95936
|
return /* @__PURE__ */ jsxs("div", {
|
|
95937
|
-
className: `widget flex flex-col scale-100 md:scale-90 h-screen md:h-[708px] w-screen md:w-[410px] ${isWidgetLaunched ? "launchWidget" : ""} ${chatInit ? "chat-init" : ""} ${videoToggle ? "video-call-on" : ""}`,
|
|
95937
|
+
className: `widget flex flex-col scale-100 md:scale-90 h-screen md:h-auto md:max-h-[708px] w-screen md:w-[410px] ${isWidgetLaunched ? "launchWidget" : ""} ${chatInit ? "chat-init" : ""} ${videoToggle ? "video-call-on" : ""}`,
|
|
95938
95938
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
95939
95939
|
className: "flex-none",
|
|
95940
95940
|
children: [/* @__PURE__ */ jsx(Header, {
|