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