@pie-element/matrix 4.1.2-next.1 → 4.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.
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, At as n, B as r, C as i, Ct as a, D as o, Dt as s, E as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, N as v, O as y, Ot as b, P as x, Q as S, R as C, S as w, St as T, Tt as E, U as ee, V as D, W as O, X as te, Y as ne, Z as re, _ as ie, _t as k, a as A, at as ae, b as oe, bt as j, c as se, ct as ce, dt as M, et as le, f as N, ft as ue, g as P, gt as F, h as de, ht as I, i as L, it as fe, j as pe, k as me, kt as he, l as R, lt as ge, m as _e, mt as ve, n as ye, nt as be, o as z, ot as B, p as xe, pt as Se, q as Ce, r as we, rt as Te, s as Ee, st as De, t as Oe, tt as ke, u as Ae, ut as je, v as Me, vt as Ne, w as Pe, wt as Fe, x as Ie, xt as Le, yt as Re, z as ze } from "../Radio-DJhIYuTn.js";
1
+ import { $ as e, A as t, At as n, B as r, C as i, Ct as a, D as o, Dt as s, E as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, N as v, O as y, Ot as b, P as x, Q as S, R as C, S as w, St as T, Tt as E, U as ee, V as D, W as O, X as te, Y as ne, Z as re, _ as ie, _t as k, a as A, at as ae, b as oe, bt as j, c as se, ct as ce, dt as M, et as le, f as N, ft as ue, g as P, gt as F, h as de, ht as I, i as L, it as fe, j as pe, k as me, kt as he, l as R, lt as ge, m as _e, mt as ve, n as ye, nt as be, o as z, ot as B, p as xe, pt as Se, q as Ce, r as we, rt as Te, s as Ee, st as De, t as Oe, tt as ke, u as Ae, ut as je, v as Me, vt as Ne, w as Pe, wt as Fe, x as Ie, xt as Le, yt as Re, z as ze } from "../Radio-CKUPMCLi.js";
2
2
  import { a as Be, c as Ve, d as He, f as Ue, i as We, l as Ge, n as Ke, o as qe, r as Je, s as Ye, t as Xe, u as Ze } from "../dist-DHz-aOnW.js";
3
3
  import * as V from "react";
4
4
  import Qe, { Component as $e, createContext as et, createElement as tt, createRef as nt, forwardRef as rt, memo as it, useCallback as at, useContext as ot, useDebugValue as st, useEffect as ct, useLayoutEffect as lt, useMemo as ut, useRef as dt, useState as ft, version as pt } from "react";
@@ -14168,31 +14168,31 @@ var py = B("span")(({ theme: e }) => ({
14168
14168
  border: `solid 0px ${e.palette.primary.main}`,
14169
14169
  "& mjx-frac": { fontSize: "120% !important" }
14170
14170
  }));
14171
- function my({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o, selected: s }) {
14172
- let [c, u] = ft(null), d = dt(null), f = (e) => {
14171
+ function my({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o, selected: c }) {
14172
+ let [l, u] = ft(null), d = dt(null), f = (e) => {
14173
14173
  d.current && (d.current.contains(e.target) ? d.current.classList.add("selected") : d.current.classList.remove("selected"));
14174
14174
  };
14175
14175
  ct(() => (document.addEventListener("click", f), () => {
14176
14176
  document.removeEventListener("click", f);
14177
14177
  }), []), ct(() => {
14178
- d.current && typeof l == "function" && l(d.current);
14178
+ d.current && typeof s == "function" && s(d.current);
14179
14179
  }, [
14180
14180
  o?.value,
14181
14181
  r,
14182
14182
  i?.value?.value
14183
14183
  ]), ct(() => {
14184
- if (r && d.current && !c) {
14184
+ if (r && d.current && !l) {
14185
14185
  let e = d.current;
14186
14186
  u({
14187
14187
  width: e.offsetWidth,
14188
14188
  height: e.offsetHeight
14189
14189
  });
14190
- } else !r && c && u(null);
14191
- }, [r, c]);
14192
- let p = i && r ? i.value.value : o.value || "\xA0", m = n ? "\xA0" : p, h = m !== "\xA0", g = i && r, _ = s ? `2px solid ${a.primaryDark()}` : g ? `1px solid ${a.defaults.BORDER_DARK}` : `1px solid ${a.defaults.BORDER_LIGHT}`;
14190
+ } else !r && l && u(null);
14191
+ }, [r, l]);
14192
+ let p = i && r ? i.value.value : o.value || "\xA0", m = n ? "\xA0" : p, h = m !== "\xA0", g = i && r, _ = c ? `2px solid ${a.primaryDark()}` : g ? `1px solid ${a.defaults.BORDER_DARK}` : `1px solid ${a.defaults.BORDER_LIGHT}`;
14193
14193
  return /* @__PURE__ */ U("div", {
14194
14194
  ref: d,
14195
- className: s ? "selected" : void 0,
14195
+ className: c ? "selected" : void 0,
14196
14196
  style: {
14197
14197
  display: "inline-flex",
14198
14198
  minWidth: "178px",
@@ -14204,8 +14204,8 @@ function my({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o
14204
14204
  overflow: "hidden",
14205
14205
  position: "relative",
14206
14206
  padding: "8px 8px 8px 35px",
14207
- width: c ? c.width : void 0,
14208
- height: c ? c.height : void 0,
14207
+ width: l ? l.width : void 0,
14208
+ height: l ? l.height : void 0,
14209
14209
  touchAction: "none"
14210
14210
  },
14211
14211
  "data-key": e.index,
@@ -24070,7 +24070,7 @@ var tT = eT, { commonMqFontStyles: nT, longdivStyles: rT, supsubStyles: iT } = B
24070
24070
  "data-latex": "",
24071
24071
  "data-raw": e.latex
24072
24072
  },
24073
- s(e.latex, e.wrapper)
24073
+ l(e.latex, e.wrapper)
24074
24074
  ];
24075
24075
  },
24076
24076
  addNodeView() {