chatbotlite 0.6.2 → 0.6.3
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/embed.global.js +25 -22
- package/dist/embed.global.js.map +1 -1
- package/dist/react/index.cjs +18 -15
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +18 -15
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1060,7 +1060,6 @@ var CHAT_BG = "var(--cbl-bg-chat)";
|
|
|
1060
1060
|
var BUBBLE_BOT = "var(--cbl-bg-elevated)";
|
|
1061
1061
|
var INPUT_BG = "var(--cbl-bg-sunken)";
|
|
1062
1062
|
var BORDER = "var(--cbl-border)";
|
|
1063
|
-
var BORDER_LIGHT = "var(--cbl-border-light)";
|
|
1064
1063
|
var TEXT_BODY = "var(--cbl-text)";
|
|
1065
1064
|
var TEXT_MUTED = "var(--cbl-text-muted)";
|
|
1066
1065
|
var TEXT_FAINT = "var(--cbl-text-faint)";
|
|
@@ -1080,6 +1079,9 @@ var TOKENS = `
|
|
|
1080
1079
|
--cbl-text-faint: #94A3B8;
|
|
1081
1080
|
--cbl-success: #10B981;
|
|
1082
1081
|
--cbl-danger: #EF4444;
|
|
1082
|
+
/* Soft tint of primary brand color \u2014 used for header background, avatar bg fallback.
|
|
1083
|
+
12% mix keeps chrome neutral but lets the panel feel branded on colored vertical pages. */
|
|
1084
|
+
--cbl-primary-soft: color-mix(in oklab, var(--cbl-primary, #0F172A) 10%, white);
|
|
1083
1085
|
--cbl-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
|
|
1084
1086
|
--cbl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1085
1087
|
--cbl-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1507,26 +1509,25 @@ function ChatWidget(props) {
|
|
|
1507
1509
|
children: [
|
|
1508
1510
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { style: {
|
|
1509
1511
|
padding: "14px 16px",
|
|
1510
|
-
background:
|
|
1511
|
-
color:
|
|
1512
|
+
background: primary,
|
|
1513
|
+
color: onPrimary,
|
|
1512
1514
|
display: "flex",
|
|
1513
1515
|
justifyContent: "space-between",
|
|
1514
1516
|
alignItems: "center",
|
|
1515
|
-
gap: 12
|
|
1516
|
-
borderBottom: `1px solid ${BORDER_LIGHT}`
|
|
1517
|
+
gap: 12
|
|
1517
1518
|
}, children: [
|
|
1518
1519
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: props.avatar ? 10 : 0, minWidth: 0 }, children: [
|
|
1519
1520
|
props.avatar === true && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
1520
1521
|
width: 32,
|
|
1521
1522
|
height: 32,
|
|
1522
1523
|
borderRadius: "50%",
|
|
1523
|
-
background:
|
|
1524
|
-
color:
|
|
1524
|
+
background: onPrimary,
|
|
1525
|
+
color: primary,
|
|
1525
1526
|
display: "flex",
|
|
1526
1527
|
alignItems: "center",
|
|
1527
1528
|
justifyContent: "center",
|
|
1528
1529
|
fontSize: 14,
|
|
1529
|
-
fontWeight:
|
|
1530
|
+
fontWeight: 700,
|
|
1530
1531
|
flexShrink: 0,
|
|
1531
1532
|
letterSpacing: "-0.02em"
|
|
1532
1533
|
}, children: resolvedTitle.charAt(0).toUpperCase() }),
|
|
@@ -1541,13 +1542,13 @@ function ChatWidget(props) {
|
|
|
1541
1542
|
borderRadius: "50%",
|
|
1542
1543
|
objectFit: "cover",
|
|
1543
1544
|
flexShrink: 0,
|
|
1544
|
-
border: `1px solid
|
|
1545
|
+
border: `1px solid rgba(255,255,255,0.25)`
|
|
1545
1546
|
}
|
|
1546
1547
|
}
|
|
1547
1548
|
),
|
|
1548
1549
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", lineHeight: 1.2, minWidth: 0 }, children: [
|
|
1549
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: 15, letterSpacing: "-0.01em", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", color:
|
|
1550
|
-
(subtitle || sending) && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: 12, color:
|
|
1550
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: 15, letterSpacing: "-0.01em", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", color: onPrimary }, children: resolvedTitle }),
|
|
1551
|
+
(subtitle || sending) && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: 12, color: onPrimary, opacity: 0.75, marginTop: 2, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: subtitle ?? (sending ? "typing\u2026" : "") })
|
|
1551
1552
|
] })
|
|
1552
1553
|
] }),
|
|
1553
1554
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 2, flexShrink: 0 }, children: [
|
|
@@ -1561,7 +1562,8 @@ function ChatWidget(props) {
|
|
|
1561
1562
|
style: {
|
|
1562
1563
|
background: "transparent",
|
|
1563
1564
|
border: "none",
|
|
1564
|
-
color:
|
|
1565
|
+
color: onPrimary,
|
|
1566
|
+
opacity: 0.85,
|
|
1565
1567
|
width: 32,
|
|
1566
1568
|
height: 32,
|
|
1567
1569
|
borderRadius: 10,
|
|
@@ -1592,7 +1594,8 @@ function ChatWidget(props) {
|
|
|
1592
1594
|
style: {
|
|
1593
1595
|
background: "transparent",
|
|
1594
1596
|
border: "none",
|
|
1595
|
-
color:
|
|
1597
|
+
color: onPrimary,
|
|
1598
|
+
opacity: 0.85,
|
|
1596
1599
|
width: 32,
|
|
1597
1600
|
height: 32,
|
|
1598
1601
|
borderRadius: 10,
|
|
@@ -1975,7 +1978,7 @@ function ChatWidget(props) {
|
|
|
1975
1978
|
"a",
|
|
1976
1979
|
{
|
|
1977
1980
|
className: "chatbotlite-brand",
|
|
1978
|
-
href: "https://
|
|
1981
|
+
href: "https://chatbotlite-demos.vercel.app",
|
|
1979
1982
|
target: "_blank",
|
|
1980
1983
|
rel: "noreferrer",
|
|
1981
1984
|
style: {
|
|
@@ -1992,7 +1995,7 @@ function ChatWidget(props) {
|
|
|
1992
1995
|
},
|
|
1993
1996
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 5 }, children: [
|
|
1994
1997
|
/* @__PURE__ */ jsxRuntime.jsx(IconBolt, { size: 11 }),
|
|
1995
|
-
"Powered by
|
|
1998
|
+
"Powered by ChatbotLite"
|
|
1996
1999
|
] })
|
|
1997
2000
|
}
|
|
1998
2001
|
)
|