bi-components-library 1.2.67 → 1.2.68

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.es.js CHANGED
@@ -5025,6 +5025,21 @@ const Yd = ({
5025
5025
  return;
5026
5026
  }
5027
5027
  document.execCommand("insertText", !1, L), r(), setTimeout(() => {
5028
+ const P = window.getSelection();
5029
+ if (!P || P.rangeCount === 0) return;
5030
+ const O = n.current?.parentElement;
5031
+ if (!O) return;
5032
+ let w = P.getRangeAt(0).getBoundingClientRect();
5033
+ if (!w || !w.height && !w.top && !w.bottom) {
5034
+ const M = document.createElement("span");
5035
+ M.appendChild(document.createTextNode("​"));
5036
+ const q = P.getRangeAt(0).cloneRange();
5037
+ q.collapse(!1), q.insertNode(M), w = M.getBoundingClientRect(), M.remove();
5038
+ }
5039
+ if (!w) return;
5040
+ const T = O.getBoundingClientRect();
5041
+ w.bottom > T.bottom ? O.scrollTop += w.bottom - T.bottom + 8 : w.top < T.top && (O.scrollTop -= T.top - w.top + 8);
5042
+ }, 0), setTimeout(() => {
5028
5043
  /20\d{2}-\d{2}-\d{2}/.test(L) && o.current.tableData?.status === "success" && (d((O) => ({
5029
5044
  ...O,
5030
5045
  tableData: { status: "loading", modules: [], lastParsedText: L, error: void 0 }
@@ -30895,7 +30910,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30895
30910
  ...h ? { background: h } : {},
30896
30911
  ...y ? { maxHeight: typeof y == "number" ? `${y}px` : y } : {},
30897
30912
  ...E && !b ? { minHeight: typeof E == "number" ? `${E}px` : E } : {},
30898
- ...nt.length > 0 ? { height: "220px" } : {},
30913
+ ...nt.length > 0 ? { minHeight: "220px" } : {},
30899
30914
  ...y ? {
30900
30915
  "--rte-richtext-fullscreen-height": typeof y == "number" ? `${y}px` : y
30901
30916
  } : {},