@wallavi/widget 1.6.3 → 1.6.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 CHANGED
@@ -1336,6 +1336,10 @@ function ChatWidget({
1336
1336
  const isDark = theme === "dark";
1337
1337
  const cssVars = {
1338
1338
  colorScheme: theme,
1339
+ // Inline style has higher specificity than any host-site stylesheet,
1340
+ // so background-color set here cannot be overridden by host CSS.
1341
+ backgroundColor: isDark ? "hsl(240 10% 3.9%)" : "hsl(0 0% 100%)",
1342
+ color: isDark ? "hsl(0 0% 98%)" : "hsl(240 10% 3.9%)",
1339
1343
  ["--background"]: isDark ? "240 10% 3.9%" : "0 0% 100%",
1340
1344
  ["--foreground"]: isDark ? "0 0% 98%" : "240 10% 3.9%",
1341
1345
  ["--muted"]: isDark ? "240 3.7% 15.9%" : "240 4.8% 95.9%",
package/dist/index.mjs CHANGED
@@ -1310,6 +1310,10 @@ function ChatWidget({
1310
1310
  const isDark = theme === "dark";
1311
1311
  const cssVars = {
1312
1312
  colorScheme: theme,
1313
+ // Inline style has higher specificity than any host-site stylesheet,
1314
+ // so background-color set here cannot be overridden by host CSS.
1315
+ backgroundColor: isDark ? "hsl(240 10% 3.9%)" : "hsl(0 0% 100%)",
1316
+ color: isDark ? "hsl(0 0% 98%)" : "hsl(240 10% 3.9%)",
1313
1317
  ["--background"]: isDark ? "240 10% 3.9%" : "0 0% 100%",
1314
1318
  ["--foreground"]: isDark ? "0 0% 98%" : "240 10% 3.9%",
1315
1319
  ["--muted"]: isDark ? "240 3.7% 15.9%" : "240 4.8% 95.9%",
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "private": false,
35
35
  "types": "./dist/index.d.ts",
36
- "version": "1.6.3",
36
+ "version": "1.6.4",
37
37
  "scripts": {
38
38
  "build": "tsup",
39
39
  "typecheck": "tsc --noEmit"