parlant-chat-react 1.0.11 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- import { a as ee, c as Un, p as te, r as bn, s as de, b as ue, d as pn, e as fr, m as M, f as V, g as mr, h as dr, i as hn, j as v, k as ne, n as Ce, l as Qe, o as Ct, q as Re, t as gr, u as yr, v as It, w as xr } from "./index-DhSjRAJ_.js";
1
+ import { a as ee, c as Un, p as te, r as bn, s as de, b as ue, d as pn, e as fr, m as M, f as V, g as mr, h as dr, i as hn, j as v, k as ne, n as Ce, l as Qe, o as Ct, q as Re, t as gr, u as yr, v as It, w as xr } from "./index-CPGE5iqX.js";
2
2
  import { jsxs as kr, jsx as br, Fragment as wr } from "react/jsx-runtime";
3
3
  import { useState as Vn, useEffect as Sr } from "react";
4
4
  const qn = document.createElement("i");
@@ -4487,15 +4487,15 @@ function uo(e, n) {
4487
4487
  }
4488
4488
  function so(e, n) {
4489
4489
  const t = n.value ? n.value + `
4490
- ` : "", r = {};
4491
- n.lang && (r.className = ["language-" + n.lang]);
4492
- let i = {
4490
+ ` : "", r = {}, i = n.lang ? n.lang.split(/\s+/) : [];
4491
+ i.length > 0 && (r.className = ["language-" + i[0]]);
4492
+ let l = {
4493
4493
  type: "element",
4494
4494
  tagName: "code",
4495
4495
  properties: r,
4496
4496
  children: [{ type: "text", value: t }]
4497
4497
  };
4498
- return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
4498
+ return n.meta && (l.data = { meta: n.meta }), e.patch(n, l), l = e.applyData(n, l), l = { type: "element", tagName: "pre", properties: {}, children: [l] }, e.patch(n, l), l;
4499
4499
  }
4500
4500
  function co(e, n) {
4501
4501
  const t = {
@@ -6505,4 +6505,4 @@ export {
6505
6505
  Sa as default,
6506
6506
  xa as defaultUrlTransform
6507
6507
  };
6508
- //# sourceMappingURL=index-DMWGOv2W.js.map
6508
+ //# sourceMappingURL=index-pxz_UL3k.js.map