@pie-element/match 12.1.2-next.1 → 12.1.2-next.2
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/{Typography-CbSskKxx.js → Typography-DSiRJjOv.js} +337 -330
- package/dist/browser/{Typography-CbSskKxx.js.map → Typography-DSiRJjOv.js.map} +1 -1
- package/dist/browser/author/index.js +23 -23
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +27 -27
- package/dist/index.iife.js +21 -21
- package/package.json +7 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, n, t as r } from "../browser-kkT1XVKw.js";
|
|
2
|
-
import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, Mt as S, N as C, Nt as w, Ot as ee, P as T, Q as te, R as E, S as D, St as ne, T as O, Tt as k, U as re, V as A, W as ie, X as ae, Y as oe, Z as j, _ as se, _t as ce, a as M, at as le, b as N, bt as ue, c as P, ct as F, et as de, ft as I, g as fe, gt as pe, h as me, ht as L, i as he, it as R, j as ge, jt as _e, k as ve, kt as z, l as ye, lt as B, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, ut as Ne, v as Pe, vt as Fe, w as Ie, wt as Le, xt as Re, y as ze, yt as Be, z as V } from "../Typography-
|
|
2
|
+
import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, Mt as S, N as C, Nt as w, Ot as ee, P as T, Q as te, R as E, S as D, St as ne, T as O, Tt as k, U as re, V as A, W as ie, X as ae, Y as oe, Z as j, _ as se, _t as ce, a as M, at as le, b as N, bt as ue, c as P, ct as F, et as de, ft as I, g as fe, gt as pe, h as me, ht as L, i as he, it as R, j as ge, jt as _e, k as ve, kt as z, l as ye, lt as B, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, ut as Ne, v as Pe, vt as Fe, w as Ie, wt as Le, xt as Re, y as ze, yt as Be, z as V } from "../Typography-DSiRJjOv.js";
|
|
3
3
|
import { a as Ve, c as He, d as Ue, f as We, i as Ge, l as Ke, n as qe, o as Je, p as Ye, r as Xe, s as Ze, t as Qe, u as $e } from "../dist-i687VHmY.js";
|
|
4
4
|
import * as H from "react";
|
|
5
5
|
import U, { Component as et, createContext as tt, createElement as nt, createRef as rt, forwardRef as it, memo as at, useCallback as ot, useContext as st, useDebugValue as ct, useEffect as lt, useLayoutEffect as ut, useMemo as dt, useReducer as ft, useRef as pt, useState as mt, version as ht } from "react";
|
|
@@ -21402,50 +21402,50 @@ var iD = L("span")(({ theme: e }) => ({
|
|
|
21402
21402
|
border: `solid 0px ${e.palette.primary.main}`,
|
|
21403
21403
|
"& mjx-frac": { fontSize: "120% !important" }
|
|
21404
21404
|
}));
|
|
21405
|
-
function aD({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value:
|
|
21406
|
-
let [
|
|
21407
|
-
|
|
21405
|
+
function aD({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o, selected: s }) {
|
|
21406
|
+
let [c, l] = mt(null), u = pt(null), d = (e) => {
|
|
21407
|
+
u.current && (u.current.contains(e.target) ? u.current.classList.add("selected") : u.current.classList.remove("selected"));
|
|
21408
21408
|
};
|
|
21409
|
-
lt(() => (document.addEventListener("click",
|
|
21410
|
-
document.removeEventListener("click",
|
|
21409
|
+
lt(() => (document.addEventListener("click", d), () => {
|
|
21410
|
+
document.removeEventListener("click", d);
|
|
21411
21411
|
}), []), lt(() => {
|
|
21412
|
-
|
|
21412
|
+
u.current && typeof a == "function" && a(u.current);
|
|
21413
21413
|
}, [
|
|
21414
|
-
|
|
21414
|
+
o?.value,
|
|
21415
21415
|
r,
|
|
21416
21416
|
i?.value?.value
|
|
21417
21417
|
]), lt(() => {
|
|
21418
|
-
if (r &&
|
|
21419
|
-
let e =
|
|
21420
|
-
|
|
21418
|
+
if (r && u.current && !c) {
|
|
21419
|
+
let e = u.current;
|
|
21420
|
+
l({
|
|
21421
21421
|
width: e.offsetWidth,
|
|
21422
21422
|
height: e.offsetHeight
|
|
21423
21423
|
});
|
|
21424
|
-
} else !r &&
|
|
21425
|
-
}, [r,
|
|
21426
|
-
let
|
|
21424
|
+
} else !r && c && l(null);
|
|
21425
|
+
}, [r, c]);
|
|
21426
|
+
let f = i && r ? i.value.value : o.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = s ? `2px solid ${I.primaryDark()}` : h ? `1px solid ${I.defaults.BORDER_DARK}` : `1px solid ${I.defaults.BORDER_LIGHT}`;
|
|
21427
21427
|
return /* @__PURE__ */ G("div", {
|
|
21428
|
-
ref:
|
|
21429
|
-
className:
|
|
21428
|
+
ref: u,
|
|
21429
|
+
className: s ? "selected" : void 0,
|
|
21430
21430
|
style: {
|
|
21431
21431
|
display: "inline-flex",
|
|
21432
21432
|
minWidth: "178px",
|
|
21433
21433
|
minHeight: "36px",
|
|
21434
|
-
background:
|
|
21435
|
-
border:
|
|
21434
|
+
background: h ? `${I.defaults.BORDER_LIGHT}` : `${I.defaults.WHITE}`,
|
|
21435
|
+
border: g,
|
|
21436
21436
|
boxSizing: "border-box",
|
|
21437
21437
|
borderRadius: "3px",
|
|
21438
21438
|
overflow: "hidden",
|
|
21439
21439
|
position: "relative",
|
|
21440
21440
|
padding: "8px 8px 8px 35px",
|
|
21441
|
-
width:
|
|
21442
|
-
height:
|
|
21441
|
+
width: c ? c.width : void 0,
|
|
21442
|
+
height: c ? c.height : void 0,
|
|
21443
21443
|
touchAction: "none"
|
|
21444
21444
|
},
|
|
21445
21445
|
"data-key": e.index,
|
|
21446
21446
|
contentEditable: !1,
|
|
21447
21447
|
children: [
|
|
21448
|
-
|
|
21448
|
+
m && /* @__PURE__ */ W(vw, {
|
|
21449
21449
|
style: {
|
|
21450
21450
|
position: "absolute",
|
|
21451
21451
|
top: "6px",
|
|
@@ -21454,7 +21454,7 @@ function aD({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
|
|
|
21454
21454
|
},
|
|
21455
21455
|
contentEditable: !1
|
|
21456
21456
|
}),
|
|
21457
|
-
/* @__PURE__ */ W("span", { dangerouslySetInnerHTML: { __html:
|
|
21457
|
+
/* @__PURE__ */ W("span", { dangerouslySetInnerHTML: { __html: p } }),
|
|
21458
21458
|
t
|
|
21459
21459
|
]
|
|
21460
21460
|
});
|
|
@@ -29406,7 +29406,7 @@ var mj = pj, { commonMqFontStyles: hj, longdivStyles: gj, supsubStyles: _j } = j
|
|
|
29406
29406
|
"data-latex": "",
|
|
29407
29407
|
"data-raw": e.latex
|
|
29408
29408
|
},
|
|
29409
|
-
|
|
29409
|
+
ve(e.latex, e.wrapper)
|
|
29410
29410
|
];
|
|
29411
29411
|
},
|
|
29412
29412
|
addNodeView() {
|