@sawport/react-sdk 0.1.0-alpha.82.2 → 0.1.0-alpha.82.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/index.js +9 -5
- package/dist/index.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +8 -4
package/dist/index.js
CHANGED
|
@@ -26474,6 +26474,7 @@ const SvgCloseLine = (props) => /* @__PURE__ */ reactExports.createElement("svg"
|
|
|
26474
26474
|
const SvgMinimize = (props) => /* @__PURE__ */ reactExports.createElement("svg", { fill: "#fff", height: "15px", width: "15px", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 512 512", xmlSpace: "preserve", ...props }, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("path", { d: "M213.333,42.667C201.551,42.667,192,52.218,192,64v97.83L36.418,6.248c-8.331-8.331-21.839-8.331-30.17,0 c-8.331,8.331-8.331,21.839,0,30.17L161.83,192H64c-11.782,0-21.333,9.551-21.333,21.333c0,11.782,9.551,21.333,21.333,21.333 h149.333c0.007,0,0.014-0.001,0.021-0.001c0.696-0.001,1.391-0.037,2.084-0.105c0.318-0.031,0.627-0.091,0.94-0.136 c0.375-0.054,0.75-0.098,1.122-0.171c0.359-0.071,0.708-0.17,1.061-0.259c0.322-0.081,0.645-0.151,0.964-0.248 c0.346-0.105,0.68-0.234,1.018-0.356c0.318-0.114,0.639-0.219,0.953-0.349c0.316-0.131,0.618-0.284,0.926-0.43 c0.323-0.152,0.649-0.296,0.966-0.465c0.295-0.158,0.575-0.338,0.861-0.509c0.311-0.186,0.626-0.361,0.929-0.564 c0.316-0.211,0.613-0.447,0.917-0.674c0.253-0.19,0.513-0.365,0.759-0.568c1.087-0.892,2.085-1.889,2.977-2.977 c0.202-0.246,0.378-0.506,0.568-0.759c0.228-0.304,0.463-0.601,0.674-0.917c0.203-0.303,0.379-0.618,0.564-0.929 c0.171-0.286,0.351-0.566,0.509-0.861c0.169-0.317,0.313-0.643,0.465-0.966c0.145-0.308,0.299-0.611,0.43-0.926 c0.13-0.314,0.235-0.635,0.349-0.953c0.122-0.338,0.251-0.672,0.356-1.018c0.096-0.318,0.167-0.642,0.248-0.964 c0.089-0.353,0.188-0.701,0.259-1.061c0.074-0.372,0.118-0.748,0.171-1.122c0.045-0.314,0.104-0.622,0.136-0.94 c0.069-0.7,0.106-1.402,0.106-2.105V64C234.667,52.218,225.115,42.667,213.333,42.667z" }), /* @__PURE__ */ reactExports.createElement("path", { d: "M505.752,475.582L350.17,320H448c11.782,0,21.333-9.551,21.333-21.333c0-11.782-9.551-21.333-21.333-21.333H298.667 c-0.703,0-1.405,0.037-2.105,0.106c-0.318,0.031-0.627,0.091-0.94,0.136c-0.375,0.054-0.75,0.098-1.122,0.171 c-0.359,0.071-0.708,0.17-1.061,0.259c-0.322,0.081-0.645,0.151-0.964,0.248c-0.346,0.105-0.68,0.234-1.018,0.356 c-0.318,0.114-0.639,0.219-0.953,0.349c-0.316,0.131-0.618,0.284-0.926,0.43c-0.323,0.152-0.649,0.296-0.966,0.465 c-0.295,0.158-0.575,0.338-0.861,0.509c-0.311,0.186-0.626,0.361-0.929,0.564c-0.316,0.211-0.613,0.447-0.917,0.674 c-0.253,0.19-0.513,0.365-0.759,0.568c-1.087,0.892-2.085,1.889-2.977,2.977c-0.202,0.246-0.378,0.506-0.568,0.759 c-0.228,0.304-0.463,0.601-0.674,0.917c-0.203,0.303-0.379,0.618-0.564,0.929c-0.171,0.286-0.351,0.566-0.509,0.861 c-0.169,0.317-0.313,0.643-0.465,0.966c-0.145,0.308-0.299,0.611-0.43,0.926c-0.13,0.314-0.235,0.635-0.349,0.953 c-0.122,0.338-0.251,0.672-0.356,1.018c-0.096,0.318-0.167,0.642-0.248,0.964c-0.089,0.353-0.188,0.701-0.259,1.061 c-0.074,0.372-0.118,0.748-0.171,1.122c-0.045,0.314-0.104,0.622-0.136,0.94c-0.068,0.693-0.105,1.388-0.105,2.084 c0,0.007-0.001,0.014-0.001,0.021V448c0,11.782,9.551,21.333,21.333,21.333c11.782,0,21.333-9.551,21.333-21.333v-97.83 l155.582,155.582c8.331,8.331,21.839,8.331,30.17,0C514.083,497.42,514.083,483.913,505.752,475.582z" })))));
|
|
26475
26475
|
const SvgDoubleTick = (props) => /* @__PURE__ */ reactExports.createElement("svg", { id: "Layer_1", "data-name": "Layer 1", width: "10px", height: "10px", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 122.88 74.46", ...props }, /* @__PURE__ */ reactExports.createElement("defs", null), /* @__PURE__ */ reactExports.createElement("title", null, "double-tick"), /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("path", { d: "M1.87,47.2a6.33,6.33,0,1,1,8.92-9c8.88,8.85,17.53,17.66,26.53,26.45l-3.76,4.45-.35.37a6.33,6.33,0,0,1-8.95,0L1.87,47.2ZM30,43.55a6.33,6.33,0,1,1,8.82-9.07l25,24.38L111.64,2.29c5.37-6.35,15,1.84,9.66,8.18L69.07,72.22l-.3.33a6.33,6.33,0,0,1-8.95.12L30,43.55Zm28.76-4.21-.31.33-9.07-8.85L71.67,4.42c5.37-6.35,15,1.83,9.67,8.18L58.74,39.34Z" })));
|
|
26476
26476
|
const SvgTick = (props) => /* @__PURE__ */ reactExports.createElement("svg", { id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", width: "10px", height: "10px", viewBox: "0 0 122.881 89.842", enableBackground: "new 0 0 122.881 89.842", xmlSpace: "preserve", ...props }, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("path", { d: "M1.232,55.541c-1.533-1.388-1.652-3.756-0.265-5.289c1.388-1.534,3.756-1.652,5.29-0.265l34.053,30.878l76.099-79.699 c1.429-1.501,3.804-1.561,5.305-0.132c1.502,1.428,1.561,3.803,0.133,5.305L43.223,88.683l-0.005-0.005 c-1.396,1.468-3.716,1.563-5.227,0.196L1.232,55.541L1.232,55.541z" })));
|
|
26477
|
+
const SvgStopScreen = (props) => /* @__PURE__ */ reactExports.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 20", width: 24, height: 24, fill: "currentColor", ...props }, /* @__PURE__ */ reactExports.createElement("rect", { x: 1, y: 1, width: 22, height: 16, rx: 2, ry: 2, stroke: "white", fill: "none", strokeWidth: 2 }), /* @__PURE__ */ reactExports.createElement("rect", { x: 7, y: 5, width: 10, height: 6, fill: "white" }));
|
|
26477
26478
|
const calendars = (params) => api("/calendars", params);
|
|
26478
26479
|
const viewCalendar = (id2, params) => api("/calendars/" + id2, params);
|
|
26479
26480
|
const updateCalendar = (id2, params) => api("/calendars/" + id2, params, "put");
|
|
@@ -75464,7 +75465,7 @@ const ChatMessage = reactExports.memo(function({
|
|
|
75464
75465
|
ext: attachment == null ? void 0 : attachment.split(".").pop()
|
|
75465
75466
|
}, [attachment]);
|
|
75466
75467
|
return msg.isSender ? /* @__PURE__ */ jsx("div", {
|
|
75467
|
-
className: "chat-send-container
|
|
75468
|
+
className: "chat-send-container ",
|
|
75468
75469
|
children: ((_a = msg.message) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsxs(Fragment, {
|
|
75469
75470
|
children: [/* @__PURE__ */ jsx("p", {
|
|
75470
75471
|
className: "widget-chat-send",
|
|
@@ -75508,7 +75509,7 @@ const ChatMessage = reactExports.memo(function({
|
|
|
75508
75509
|
children: /* @__PURE__ */ jsx("div", {
|
|
75509
75510
|
className: "row justify-content-end",
|
|
75510
75511
|
children: /* @__PURE__ */ jsx("div", {
|
|
75511
|
-
className: "col-auto mr-3",
|
|
75512
|
+
className: "col-auto mr-3 mt-3",
|
|
75512
75513
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
75513
75514
|
style: {
|
|
75514
75515
|
cursor: "pointer"
|
|
@@ -76050,9 +76051,9 @@ const ChatInput = reactExports.memo(function({
|
|
|
76050
76051
|
children: waitlistTransferredStatus ? `You have been transferred to ${transferredAgent == null ? void 0 : transferredAgent.first_name} from ${transferredAgent == null ? void 0 : transferredAgent.team}
|
|
76051
76052
|
Team` : agentConnected ? `You are now connected to ${transferredAgent == null ? void 0 : transferredAgent.first_name} ${transferredAgent == null ? void 0 : transferredAgent.last_name}` : ""
|
|
76052
76053
|
}), /* @__PURE__ */ jsxs("div", {
|
|
76053
|
-
className: "d-flex w-100",
|
|
76054
|
+
className: "d-flex w-100 pt-4",
|
|
76054
76055
|
children: [/* @__PURE__ */ jsx("small", {
|
|
76055
|
-
className: "file-name",
|
|
76056
|
+
className: "file-name pr-5 mr-3",
|
|
76056
76057
|
children: chatFiles == null ? void 0 : chatFiles.name
|
|
76057
76058
|
}), /* @__PURE__ */ jsxs("div", {
|
|
76058
76059
|
className: "widget-file-upload-container d-flex justify-content-between align-items-center",
|
|
@@ -77569,7 +77570,10 @@ const Controls = ({
|
|
|
77569
77570
|
})
|
|
77570
77571
|
}), !!(startScreenSharing || stopScreenSharing) && /* @__PURE__ */ jsx(ActionBtn, {
|
|
77571
77572
|
onClick: screenShared ? stopScreenSharing : startScreenSharing,
|
|
77572
|
-
children: /* @__PURE__ */ jsx(
|
|
77573
|
+
children: screenShared ? /* @__PURE__ */ jsx(SvgStopScreen, {
|
|
77574
|
+
width: 20,
|
|
77575
|
+
height: 20
|
|
77576
|
+
}) : /* @__PURE__ */ jsx(SvgDesktop, {
|
|
77573
77577
|
width: 20,
|
|
77574
77578
|
height: 20
|
|
77575
77579
|
})
|