@ethora/chat-component 25.5.29 → 25.5.30
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/main.js +14 -13
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -23727,31 +23727,32 @@ const ru = T.div`
|
|
|
23727
23727
|
}
|
|
23728
23728
|
return c < f.length && d.push(f.slice(c)), d;
|
|
23729
23729
|
}, o = (f) => {
|
|
23730
|
-
const d = [],
|
|
23731
|
-
let
|
|
23732
|
-
for (;
|
|
23733
|
-
const
|
|
23734
|
-
if (/^(\d+\.\s+|\-\s+)/.test(
|
|
23735
|
-
const
|
|
23736
|
-
d.push(/* @__PURE__ */ u("li", { children: A(
|
|
23730
|
+
const d = [], c = t[f].trim().match(/^(\d+)\./), h = !!c, m = c ? parseInt(c[1], 10) : 1;
|
|
23731
|
+
let p = f;
|
|
23732
|
+
for (; p < t.length; ) {
|
|
23733
|
+
const x = t[p];
|
|
23734
|
+
if (/^(\d+\.\s+|\-\s+)/.test(x)) {
|
|
23735
|
+
const C = x.replace(/^(\d+\.\s+|\-\s+)/, "");
|
|
23736
|
+
d.push(/* @__PURE__ */ u("li", { children: A(C) }, `li-${e++}`));
|
|
23737
23737
|
} else {
|
|
23738
|
-
if (
|
|
23738
|
+
if (x.trim() === "")
|
|
23739
23739
|
break;
|
|
23740
23740
|
break;
|
|
23741
23741
|
}
|
|
23742
|
-
|
|
23742
|
+
p++;
|
|
23743
23743
|
}
|
|
23744
|
-
const
|
|
23744
|
+
const b = h ? "ol" : "ul";
|
|
23745
23745
|
return {
|
|
23746
23746
|
list: Be.createElement(
|
|
23747
|
-
|
|
23747
|
+
b,
|
|
23748
23748
|
{
|
|
23749
23749
|
key: `list-${e++}`,
|
|
23750
|
-
style: { margin: "4px 0", paddingLeft: "20px" }
|
|
23750
|
+
style: { margin: "4px 0", paddingLeft: "20px" },
|
|
23751
|
+
...h ? { start: m } : {}
|
|
23751
23752
|
},
|
|
23752
23753
|
d
|
|
23753
23754
|
),
|
|
23754
|
-
newIndex:
|
|
23755
|
+
newIndex: p - 1
|
|
23755
23756
|
};
|
|
23756
23757
|
};
|
|
23757
23758
|
for (let f = 0; f < t.length; f++) {
|