@pie-element/math-templated 7.1.1-next.40 → 7.1.1-next.43
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 +4165 -4159
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/author/index.js +16 -10
- 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/{horizontal-keypad-P16uks4M.js → horizontal-keypad-B7HTUZrd.js} +168 -172
- package/dist/browser/editor-runtime/{horizontal-keypad-P16uks4M.js.map → horizontal-keypad-B7HTUZrd.js.map} +1 -1
- package/dist/browser/editor-runtime/{main-D0iJs7gC.js → main-DNc4tDWH.js} +45 -45
- package/dist/browser/editor-runtime/{main-D0iJs7gC.js.map → main-DNc4tDWH.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/{horizontal-keypad-CckHDTF9.js → horizontal-keypad-CdjdVnsZ.js} +168 -172
- package/dist/browser/{horizontal-keypad-CckHDTF9.js.map → horizontal-keypad-CdjdVnsZ.js.map} +1 -1
- package/dist/browser/{main-BylAsGNC.js → main-DI8JSt5y.js} +45 -45
- package/dist/browser/{main-BylAsGNC.js.map → main-DI8JSt5y.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 +7 -7
- package/dist/print/index.js +4 -2
- package/module/print.js +480 -482
- package/module/print.js.map +1 -1
- package/package.json +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as e, a as t, b as n, c as r, d as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, r as f, s as p, t as m, u as h, v as g, w as _, x as v } from "../browser-CCIOWBDT.js";
|
|
2
|
-
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as ee, Dt as T, E, Et as D, F as O, H as k, I as te, J as A, L as j, M, Mt as ne, N as re, Nt as ie, O as N, Ot as ae, P as oe, Q as se, R as ce, S as le, St as P, T as ue, Tt as de, U as fe, V as pe, W as me, X as he, Y as F, Z as ge, _t as I, a as L, at as R, b as _e, bt as ve, ct as ye, d as be, dt as z, et as xe, f as Se, ft as Ce, g as we, gt as Te, h as Ee, ht as De, i as Oe, j as ke, jt as Ae, k as B, kt as je, lt as Me, m as Ne, mt as Pe, n as Fe, nt as Ie, ot as V, p as Le, pt as Re, q as ze, r as Be, rt as Ve, st as H, t as He, tt as Ue, u as We, ut as U, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as W, yt as Xe, z as Ze } from "../horizontal-keypad-
|
|
2
|
+
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as ee, Dt as T, E, Et as D, F as O, H as k, I as te, J as A, L as j, M, Mt as ne, N as re, Nt as ie, O as N, Ot as ae, P as oe, Q as se, R as ce, S as le, St as P, T as ue, Tt as de, U as fe, V as pe, W as me, X as he, Y as F, Z as ge, _t as I, a as L, at as R, b as _e, bt as ve, ct as ye, d as be, dt as z, et as xe, f as Se, ft as Ce, g as we, gt as Te, h as Ee, ht as De, i as Oe, j as ke, jt as Ae, k as B, kt as je, lt as Me, m as Ne, mt as Pe, n as Fe, nt as Ie, ot as V, p as Le, pt as Re, q as ze, r as Be, rt as Ve, st as H, t as He, tt as Ue, u as We, ut as U, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as W, yt as Xe, z as Ze } from "../horizontal-keypad-B7HTUZrd.js";
|
|
3
3
|
import * as G from "react";
|
|
4
4
|
import K, { Component as Qe, createContext as $e, createElement as et, createRef as tt, forwardRef as nt, memo as rt, useCallback as it, useContext as at, useDebugValue as ot, useEffect as q, useLayoutEffect as st, useMemo as ct, useRef as J, useState as lt, version as ut } from "react";
|
|
5
5
|
import { createRoot as dt } from "react-dom/client";
|
|
@@ -2230,7 +2230,7 @@ function $a({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
|
|
|
2230
2230
|
q(() => (document.addEventListener("click", u), () => {
|
|
2231
2231
|
document.removeEventListener("click", u);
|
|
2232
2232
|
}), []), q(() => {
|
|
2233
|
-
l.current && typeof
|
|
2233
|
+
l.current && typeof _e == "function" && _e(l.current);
|
|
2234
2234
|
}, [
|
|
2235
2235
|
a?.value,
|
|
2236
2236
|
r,
|
|
@@ -2444,7 +2444,7 @@ var io = (e) => {
|
|
|
2444
2444
|
]);
|
|
2445
2445
|
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
2446
2446
|
return q(() => {
|
|
2447
|
-
m.current && typeof
|
|
2447
|
+
m.current && typeof _e == "function" && _e(m.current);
|
|
2448
2448
|
}, [s]), q(() => {
|
|
2449
2449
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
2450
2450
|
y({
|
|
@@ -4937,7 +4937,12 @@ var Zs = (e, t) => {
|
|
|
4937
4937
|
};
|
|
4938
4938
|
}
|
|
4939
4939
|
componentDidMount() {
|
|
4940
|
-
this.input && this.props.autoFocus && setTimeout(() =>
|
|
4940
|
+
this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
|
|
4941
|
+
this.focusTimeout = void 0, this.input?.focus();
|
|
4942
|
+
}, 0));
|
|
4943
|
+
}
|
|
4944
|
+
componentWillUnmount() {
|
|
4945
|
+
this.focusTimeout && clearTimeout(this.focusTimeout);
|
|
4941
4946
|
}
|
|
4942
4947
|
onClick = (e) => {
|
|
4943
4948
|
let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = hc(e);
|
|
@@ -5473,7 +5478,7 @@ var yc = vc, { commonMqFontStyles: bc, longdivStyles: xc, supsubStyles: Sc } = m
|
|
|
5473
5478
|
"data-latex": "",
|
|
5474
5479
|
"data-raw": e.latex
|
|
5475
5480
|
},
|
|
5476
|
-
|
|
5481
|
+
Ye(e.latex, e.wrapper)
|
|
5477
5482
|
];
|
|
5478
5483
|
},
|
|
5479
5484
|
addNodeView() {
|
|
@@ -5535,15 +5540,16 @@ var yc = vc, { commonMqFontStyles: bc, longdivStyles: xc, supsubStyles: Sc } = m
|
|
|
5535
5540
|
t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
|
|
5536
5541
|
};
|
|
5537
5542
|
}, [r, s]), q(() => {
|
|
5538
|
-
let e = (
|
|
5539
|
-
|
|
5540
|
-
|
|
5543
|
+
let e = performance.now(), n = (n) => {
|
|
5544
|
+
if (n?.timeStamp < e) return;
|
|
5545
|
+
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}`);
|
|
5546
|
+
if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
|
|
5541
5547
|
c(!1);
|
|
5542
|
-
let e = !!r?.view?.dom?.contains(
|
|
5548
|
+
let e = !!r?.view?.dom?.contains(i);
|
|
5543
5549
|
S(t.attrs.latex, { moveCursorAfterNode: !e });
|
|
5544
5550
|
}
|
|
5545
5551
|
};
|
|
5546
|
-
return s ? document.addEventListener("click",
|
|
5552
|
+
return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
|
|
5547
5553
|
}, [
|
|
5548
5554
|
r,
|
|
5549
5555
|
s,
|