@deepagents/react-genai 7.43.2 → 7.43.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 +10 -10
- package/dist/index.js.map +1 -1
- package/dist/lib/chat/markdown-paragraph.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1941,25 +1941,25 @@ function ai(e, t) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
//#endregion
|
|
1943
1943
|
//#region src/lib/chat/markdown-paragraph.tsx
|
|
1944
|
-
|
|
1944
|
+
var oi = /* @__PURE__ */ new Set(/* @__PURE__ */ "a.abbr.b.bdi.bdo.br.cite.code.data.del.dfn.em.i.ins.kbd.mark.q.s.samp.small.span.strong.sub.sup.time.u.var.wbr".split("."));
|
|
1945
|
+
function si(e) {
|
|
1946
|
+
if (!n.isValidElement(e)) return !1;
|
|
1947
|
+
let t = typeof e.type == "string" ? e.type : e.props.node?.tagName;
|
|
1948
|
+
return t === void 0 || !oi.has(t);
|
|
1949
|
+
}
|
|
1950
|
+
function ci(e) {
|
|
1945
1951
|
let t = O(4), { children: r } = e, i = n.Children.toArray(r);
|
|
1946
|
-
if (!i.some(
|
|
1952
|
+
if (!i.some(si)) {
|
|
1947
1953
|
let e;
|
|
1948
1954
|
return t[0] === r ? e = t[1] : (e = /* @__PURE__ */ M("p", { children: r }), t[0] = r, t[1] = e), e;
|
|
1949
1955
|
}
|
|
1950
|
-
if (i.
|
|
1956
|
+
if (i.every(si)) return r;
|
|
1951
1957
|
let a;
|
|
1952
1958
|
return t[2] === r ? a = t[3] : (a = /* @__PURE__ */ M("div", { children: r }), t[2] = r, t[3] = a), a;
|
|
1953
1959
|
}
|
|
1954
|
-
function si(e) {
|
|
1955
|
-
return n.isValidElement(e) && typeof e.type != "string";
|
|
1956
|
-
}
|
|
1957
|
-
function ci(e) {
|
|
1958
|
-
return n.isValidElement(e) && typeof e.type != "string";
|
|
1959
|
-
}
|
|
1960
1960
|
//#endregion
|
|
1961
1961
|
//#region src/lib/components/InteractiveResponse.tsx
|
|
1962
|
-
var li = { p: ({ children: e }) => /* @__PURE__ */ M(
|
|
1962
|
+
var li = { p: ({ children: e }) => /* @__PURE__ */ M(ci, { children: e }) };
|
|
1963
1963
|
function ui(e) {
|
|
1964
1964
|
let t = { ...li }, n = {};
|
|
1965
1965
|
for (let r of e) ae(r), t[r.name] = r.component, n[r.name] = r.allowedAttributes;
|