inline-chat-kit 0.55.0 → 0.55.1

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/CHANGELOG.md CHANGED
@@ -8,6 +8,23 @@ The versions before 1.0 follow the pre-release convention: **a breaking change
8
8
  or new public API bumps the minor**, and the patch is for fixes. Anything that would break an
9
9
  existing install is called out under **Breaking**, with what to do about it.
10
10
 
11
+ ## 0.55.1 — 2026-09-13
12
+
13
+ ### Fixed
14
+
15
+ - **The demo's landing page ignored the theme the host had chosen.**
16
+ `data-theme` was written by an effect inside `ChatExperience`, which is the
17
+ chat — and the landing page stands in front of it. A site that had decided
18
+ this page is read in light got a dark landing page and a light conversation,
19
+ changing colour under the reader at the press of a button.
20
+
21
+ The effect is `useThemeAttribute` now and both callers use it. `undefined`
22
+ and `null` stop meaning the same thing, which is what keeps two callers from
23
+ fighting over one attribute: `null` is "nobody has chosen", so the attribute
24
+ comes off and the kit follows `prefers-color-scheme`; `undefined` is "not
25
+ mine to say", which is how a caller opts out of a hook that cannot be called
26
+ conditionally.
27
+
11
28
  ## 0.55.0 — 2026-09-13
12
29
 
13
30
  ### Added
@@ -5536,6 +5536,13 @@ function bi() {
5536
5536
  })
5537
5537
  }) : null;
5538
5538
  }
5539
+ //#endregion
5540
+ //#region src/theme/useThemeAttribute.ts
5541
+ function xi(e) {
5542
+ o(() => {
5543
+ e !== void 0 && (e ? document.documentElement.setAttribute("data-theme", e) : document.documentElement.removeAttribute("data-theme"));
5544
+ }, [e]);
5545
+ }
5539
5546
  var $ = {
5540
5547
  page: "ick-page-NK01",
5541
5548
  feed: "ick-feed-XqZl",
@@ -5558,16 +5565,14 @@ var $ = {
5558
5565
  };
5559
5566
  //#endregion
5560
5567
  //#region src/ChatExperience/ChatExperience.tsx
5561
- function xi({ onSend: e, onTranscribe: t, onThreadReply: n, title: r = "Chat", backHref: i, backLabel: s, actions: c, placeholder: l, empty: p, contextTotal: v, contextBase: y = 0, artifact: b, theme: S, onThemeChange: C, cursor: w = !1, selectionToggle: T = !1, anchorOffset: E = 100, endOffset: O = 120, animationConfig: k, foldMotion: A, feedDelay: j = 0, onAnswerQuestion: M, onEditQuestion: N, onDecideApproval: P, className: ee }) {
5568
+ function Si({ onSend: e, onTranscribe: t, onThreadReply: n, title: r = "Chat", backHref: i, backLabel: s, actions: c, placeholder: l, empty: p, contextTotal: v, contextBase: y = 0, artifact: b, theme: S, onThemeChange: C, cursor: w = !1, selectionToggle: T = !1, anchorOffset: E = 100, endOffset: O = 120, animationConfig: k, foldMotion: A, feedDelay: j = 0, onAnswerQuestion: M, onEditQuestion: N, onDecideApproval: P, className: ee }) {
5562
5569
  let [F, I] = f([]), [L, ne] = f(!1), [R, re] = f(null), [ie, ae] = f("marker"), se = d(null), ce = S !== void 0, [le, ue] = f(null), de = ce ? S : le, [fe, z] = f(() => typeof window < "u" && !!window.matchMedia?.("(prefers-color-scheme: dark)").matches);
5563
5570
  o(() => {
5564
5571
  let e = window.matchMedia("(prefers-color-scheme: dark)"), t = () => z(e.matches);
5565
5572
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
5566
5573
  }, []);
5567
5574
  let B = de ?? (fe ? "dark" : "light");
5568
- o(() => {
5569
- de ? document.documentElement.setAttribute("data-theme", de) : document.documentElement.removeAttribute("data-theme");
5570
- }, [de]);
5575
+ xi(de);
5571
5576
  let me = a((e) => {
5572
5577
  ce || ue(e), C?.(e);
5573
5578
  }, [ce, C]), { turns: V, setDraft: _e, submit: ve, showVersion: ye, stop: be, beginEdit: H, cancelEdit: xe, updatePart: Se } = ct({ onSend: e }), [U, Ce] = f(null), we = a((e, t, n) => {
@@ -5834,6 +5839,6 @@ function xi({ onSend: e, onTranscribe: t, onThreadReply: n, title: r = "Chat", b
5834
5839
  ] });
5835
5840
  }
5836
5841
  //#endregion
5837
- export { an as A, ct as B, wn as C, hn as D, vn as E, Dt as F, K as G, $e as H, Tt as I, je as J, Pe as K, St as L, Ut as M, Jt as N, fn as O, Lt as P, gt as R, Sn as S, bn as T, Xe as U, J as V, Ke as W, Te as X, ke as Y, U as Z, Ln as _, ci as a, xn as b, Ur as c, Mr as d, Sr as f, zn as g, In as h, ui as i, Zt as j, ln as k, Vr as l, Vn as m, bi as n, ei as o, Gn as p, Me as q, yi as r, $r as s, xi as t, Fr as u, Pn as v, Tn as w, Cn as x, Mn as y, ut as z };
5842
+ export { ln as A, ut as B, Sn as C, vn as D, bn as E, Lt as F, Ke as G, J as H, Dt as I, Me as J, K, Tt as L, Zt as M, Ut as N, hn as O, Jt as P, U as Q, St as R, Cn as S, Tn as T, $e as U, ct as V, Xe as W, ke as X, je as Y, Te as Z, zn as _, ui as a, Mn as b, $r as c, Fr as d, Mr as f, In as g, Vn as h, yi as i, an as j, fn as k, Ur as l, Gn as m, xi as n, ci as o, Sr as p, Pe as q, bi as r, ei as s, Si as t, Vr as u, Ln as v, wn as w, xn as x, Pn as y, gt as z };
5838
5843
 
5839
- //# sourceMappingURL=ChatExperience-CRtVStGQ.js.map
5844
+ //# sourceMappingURL=ChatExperience-C2UXwrrI.js.map