@getwidgets/live-chat-widget 1.1.1 → 1.1.2

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.
@@ -20359,7 +20359,8 @@
20359
20359
  textAlign: "left",
20360
20360
  minWidth: isMobile ? "90vw" : "280px",
20361
20361
  maxWidth: isMobile ? "90vw" : "400px",
20362
- margin: isMobile ? "0 auto" : "0"
20362
+ margin: isMobile ? "0 auto" : "0",
20363
+ fontFamily: headerConfig.font_family || "'Inter', sans-serif"
20363
20364
  }
20364
20365
  },
20365
20366
  unreadCount > 0 && /* @__PURE__ */ React.createElement(
@@ -20414,7 +20415,7 @@
20414
20415
  },
20415
20416
  /* @__PURE__ */ React.createElement("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z" })
20416
20417
  )
20417
- ), /* @__PURE__ */ React.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React.createElement("h3", { className: "font-semibold text-sm" }, headerConfig.title || "Live Chat"), /* @__PURE__ */ React.createElement("p", { className: "text-xs opacity-70" }, "Just now"))), /* @__PURE__ */ React.createElement(
20418
+ ), /* @__PURE__ */ React.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React.createElement("h3", { className: "font-semibold text-sm", style: headerConfig.font_color ? { color: headerConfig.font_color } : { color: "black" } }, headerConfig.title || "Live Chat"), /* @__PURE__ */ React.createElement("p", { className: "text-xs opacity-70", style: headerConfig.font_color ? { color: headerConfig.font_color } : { color: "black" } }, "Just now"))), /* @__PURE__ */ React.createElement(
20418
20419
  "button",
20419
20420
  {
20420
20421
  onClick: handleCloseNotification,
@@ -20423,7 +20424,7 @@
20423
20424
  },
20424
20425
  "×"
20425
20426
  )),
20426
- /* @__PURE__ */ React.createElement("p", { className: "text-sm leading-relaxed text-gray-200", style: { fontSize: isMobile ? "13px" : "14px" } }, (latestMessage == null ? void 0 : latestMessage.content) || (inputAreaConfig == null ? void 0 : inputAreaConfig.first_ai_message) || headerConfig.subtitle || "Connect with visitors")
20427
+ /* @__PURE__ */ React.createElement("p", { className: "text-sm leading-relaxed text-gray-200", style: { fontSize: isMobile ? "13px" : "14px", color: headerConfig.font_color ? headerConfig.font_color : "#000000" } }, (latestMessage == null ? void 0 : latestMessage.content) || (inputAreaConfig == null ? void 0 : inputAreaConfig.welcome_message) || (inputAreaConfig == null ? void 0 : inputAreaConfig.first_ai_message) || headerConfig.subtitle || "Connect with visitors")
20427
20428
  ), !isOpen && !showNotificationPreview && /* @__PURE__ */ React.createElement(
20428
20429
  "button",
20429
20430
  {
@@ -20445,8 +20446,8 @@
20445
20446
  src: headerConfig.logo_url,
20446
20447
  alt: "logo",
20447
20448
  style: {
20448
- width: isMobile ? 24 : 28,
20449
- height: isMobile ? 24 : 28
20449
+ width: "auto",
20450
+ height: `${headerConfig.logo_size || 32}px`
20450
20451
  }
20451
20452
  }
20452
20453
  ) : /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", style: { width: isMobile ? 18 : 20, height: isMobile ? 18 : 20 } }, /* @__PURE__ */ React.createElement("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z" })),
@@ -20476,6 +20477,7 @@
20476
20477
  maxHeight: responsiveDimensions.maxHeight,
20477
20478
  backgroundColor: appearanceConfig.background_color || "#F9FAFB",
20478
20479
  borderRadius: isMobile ? responsiveDimensions.borderRadius : appearanceConfig.border_radius || "16px",
20480
+ fontFamily: headerConfig.font_family || "'Inter', sans-serif",
20479
20481
  ...isMobile ? { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 } : {}
20480
20482
  }
20481
20483
  },
@@ -20516,7 +20518,8 @@
20516
20518
  {
20517
20519
  src: headerConfig.logo_url,
20518
20520
  alt: "logo",
20519
- className: "w-auto h-8 mx-auto mb-2"
20521
+ className: "w-auto mx-auto mb-2",
20522
+ style: { height: `${headerConfig.logo_size || 32}px` }
20520
20523
  }
20521
20524
  ), !headerConfig.hide_title && /* @__PURE__ */ React.createElement("h2", { className: "font-semibold leading-tight", style: { fontSize: isMobile ? "14px" : "16px", margin: "0" } }, headerConfig.title || "Live Chat"), /* @__PURE__ */ React.createElement("p", { className: "opacity-80 leading-tight", style: { fontSize: isMobile ? "11px" : "13px", margin: "2px 0 0 0" } }, headerConfig.subtitle || "Connect with visitors"))
20522
20525
  ),
@@ -20554,7 +20557,7 @@
20554
20557
  wordBreak: "break-word"
20555
20558
  }
20556
20559
  },
20557
- inputAreaConfig.first_ai_message || "Hello! How can I assist you today?"
20560
+ inputAreaConfig.welcome_message || inputAreaConfig.first_ai_message || "Hello! How can I assist you today?"
20558
20561
  )) : combinedMessages.map((message) => {
20559
20562
  const timeText = getMessageTime(message);
20560
20563
  return /* @__PURE__ */ React.createElement("div", { key: message.id, className: `flex flex-col ${message.role === "user" ? "items-end" : "items-start"}` }, /* @__PURE__ */ React.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getwidgets/live-chat-widget",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/live-chat-widget.umd.js",
5
5
  "unpkg": "dist/live-chat-widget.umd.js",
6
6
  "type": "module",