@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 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 = [], l = /^\d+\./.test(t[f].trim());
23731
- let c = f;
23732
- for (; c < t.length; ) {
23733
- const m = t[c];
23734
- if (/^(\d+\.\s+|\-\s+)/.test(m)) {
23735
- const p = m.replace(/^(\d+\.\s+|\-\s+)/, "");
23736
- d.push(/* @__PURE__ */ u("li", { children: A(p) }, `li-${e++}`));
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 (m.trim() === "")
23738
+ if (x.trim() === "")
23739
23739
  break;
23740
23740
  break;
23741
23741
  }
23742
- c++;
23742
+ p++;
23743
23743
  }
23744
- const h = l ? "ol" : "ul";
23744
+ const b = h ? "ol" : "ul";
23745
23745
  return {
23746
23746
  list: Be.createElement(
23747
- h,
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: c - 1
23755
+ newIndex: p - 1
23755
23756
  };
23756
23757
  };
23757
23758
  for (let f = 0; f < t.length; f++) {