@pie-element/math-inline 12.1.1-next.38 → 12.1.1-next.41
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/browser/author/index.js +358 -357
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{dist-DT_Fgcn-.js → dist-gqdwfIdp.js} +1598 -1597
- package/dist/browser/dist-gqdwfIdp.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +10 -9
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{dist-DCgA-xxJ.js → dist-Dpdlv54W.js} +1598 -1597
- package/dist/browser/editor-runtime/dist-Dpdlv54W.js.map +1 -0
- package/dist/browser/editor-runtime/{main-1uulPtIY.js → main-BUVI2Mb9.js} +110 -110
- package/dist/browser/editor-runtime/{main-1uulPtIY.js.map → main-BUVI2Mb9.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +6 -4
- package/dist/browser/editor-runtime/print/index.js.map +1 -1
- package/dist/browser/{main-BFvc60UA.js → main-BO4lvRCJ.js} +110 -110
- package/dist/browser/{main-BFvc60UA.js.map → main-BO4lvRCJ.js.map} +1 -1
- package/dist/browser/print/index.js +6 -4
- package/dist/browser/print/index.js.map +1 -1
- package/dist/index.iife.js +30 -30
- package/dist/print/index.js +4 -2
- package/module/print.js +1932 -1929
- package/module/print.js.map +1 -1
- package/package.json +14 -14
- package/dist/browser/dist-DT_Fgcn-.js.map +0 -1
- package/dist/browser/editor-runtime/dist-DCgA-xxJ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e, a as t, b as n, d as r, g as i, i as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p, v as m } from "../dist-CiHbVK7d.js";
|
|
2
|
-
import { $ as h, A as g, B as _, Ct as v, D as y, Dt as b, E as x, Et as S, F as C, G as w, H as T, I as E, J as D, K as O, N as k, O as A, Ot as j, P as M, Q as N, R as P, St as F, Tt as ee, U as I, V as L, W as te, X as ne, Y as re, Z as ie, _t as ae, a as oe, at as se, b as ce, bt as le, c as ue, ct as de, d as fe, dt as R, et as z, g as pe, gt as me, h as he, ht as ge, i as B, it as _e, j as ve, k as ye, l as be, lt as xe, m as Se, mt as V, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as Oe, q as H, r as ke, rt as Ae, s as je, st as U, t as Me, tt as Ne, u as Pe, v as Fe, vt as Ie, wt as W, x as Le, xt as Re, y as ze, yt as G, z as Be } from "../dist-
|
|
2
|
+
import { $ as h, A as g, B as _, Ct as v, D as y, Dt as b, E as x, Et as S, F as C, G as w, H as T, I as E, J as D, K as O, N as k, O as A, Ot as j, P as M, Q as N, R as P, St as F, Tt as ee, U as I, V as L, W as te, X as ne, Y as re, Z as ie, _t as ae, a as oe, at as se, b as ce, bt as le, c as ue, ct as de, d as fe, dt as R, et as z, g as pe, gt as me, h as he, ht as ge, i as B, it as _e, j as ve, k as ye, l as be, lt as xe, m as Se, mt as V, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as Oe, q as H, r as ke, rt as Ae, s as je, st as U, t as Me, tt as Ne, u as Pe, v as Fe, vt as Ie, wt as W, x as Le, xt as Re, y as ze, yt as G, z as Be } from "../dist-Dpdlv54W.js";
|
|
3
3
|
import * as K from "react";
|
|
4
4
|
import q, { Component as Ve, createContext as He, createElement as Ue, createRef as We, forwardRef as Ge, memo as Ke, useCallback as qe, useContext as Je, useDebugValue as Ye, useEffect as J, useLayoutEffect as Xe, useMemo as Ze, useRef as Y, useState as Qe, version as $e } from "react";
|
|
5
5
|
import { createRoot as et } from "react-dom/client";
|
|
@@ -5740,7 +5740,7 @@ function ml({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
|
|
|
5740
5740
|
J(() => (document.addEventListener("click", u), () => {
|
|
5741
5741
|
document.removeEventListener("click", u);
|
|
5742
5742
|
}), []), J(() => {
|
|
5743
|
-
l.current && typeof
|
|
5743
|
+
l.current && typeof P == "function" && P(l.current);
|
|
5744
5744
|
}, [
|
|
5745
5745
|
a?.value,
|
|
5746
5746
|
r,
|
|
@@ -5954,7 +5954,7 @@ var yl = (e) => {
|
|
|
5954
5954
|
]);
|
|
5955
5955
|
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
5956
5956
|
return J(() => {
|
|
5957
|
-
m.current && typeof
|
|
5957
|
+
m.current && typeof P == "function" && P(m.current);
|
|
5958
5958
|
}, [s]), J(() => {
|
|
5959
5959
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
5960
5960
|
y({
|
|
@@ -6461,7 +6461,7 @@ var wl = {}, Tl = (e) => String(e || "").replace(/-/g, "_"), El = (e) => e && e.
|
|
|
6461
6461
|
"data-latex": "",
|
|
6462
6462
|
"data-raw": e.latex
|
|
6463
6463
|
},
|
|
6464
|
-
|
|
6464
|
+
Be(e.latex, e.wrapper)
|
|
6465
6465
|
];
|
|
6466
6466
|
},
|
|
6467
6467
|
addNodeView() {
|
|
@@ -6523,15 +6523,16 @@ var wl = {}, Tl = (e) => String(e || "").replace(/-/g, "_"), El = (e) => e && e.
|
|
|
6523
6523
|
t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
|
|
6524
6524
|
};
|
|
6525
6525
|
}, [r, s]), J(() => {
|
|
6526
|
-
let e = (
|
|
6527
|
-
|
|
6528
|
-
|
|
6526
|
+
let e = performance.now(), n = (n) => {
|
|
6527
|
+
if (n?.timeStamp < e) return;
|
|
6528
|
+
let i = n?.target, a = (document.querySelectorAll?.("[id^=\"equation-editor-select\"][id*=\"listbox\"], [aria-labelledby=\"equation-editor-label\"][role=\"listbox\"]") || []).length > 0, o = !!(i?.id && i.id.includes("equation-editor-select")) || !!i?.closest?.("[id*=\"equation-editor-select\"]"), s = !!i?.closest?.(`.math-node-${d.current}`);
|
|
6529
|
+
if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
|
|
6529
6530
|
c(!1);
|
|
6530
|
-
let e = !!r?.view?.dom?.contains(
|
|
6531
|
+
let e = !!r?.view?.dom?.contains(i);
|
|
6531
6532
|
S(t.attrs.latex, { moveCursorAfterNode: !e });
|
|
6532
6533
|
}
|
|
6533
6534
|
};
|
|
6534
|
-
return s ? document.addEventListener("click",
|
|
6535
|
+
return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
|
|
6535
6536
|
}, [
|
|
6536
6537
|
r,
|
|
6537
6538
|
s,
|