@pie-element/passage 7.1.2-next.1 → 7.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, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as ee, X as D, Y as O, Z as k, _ as A, _t as te, at as ne, bt as j, c as re, ct as M, d as ie, dt as N, et as P, f as ae, ft as oe, g as se, gt as F, ht as ce, i as I, it as L, j as le, k as ue, l as de, lt as R, m as fe, mt as pe, n as me, nt as z, ot as he, p as ge, pt as _e, q as ve, r as ye, rt as B, st as be, t as xe, tt as Se, u as Ce, ut as we, v as Te, vt as Ee, w as De, wt as Oe, x as ke, xt as Ae, y as je, yt as Me, z as Ne } from "../dist-C_PfhNd9.js";
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as ee, X as D, Y as O, Z as k, _ as A, _t as te, at as ne, bt as j, c as re, ct as M, d as ie, dt as N, et as P, f as ae, ft as oe, g as se, gt as F, ht as ce, i as I, it as L, j as le, k as ue, l as de, lt as R, m as fe, mt as pe, n as me, nt as z, ot as he, p as ge, pt as _e, q as ve, r as ye, rt as B, st as be, t as xe, tt as Se, u as Ce, ut as we, v as Te, vt as Ee, w as De, wt as Oe, x as ke, xt as Ae, y as je, yt as Me, z as Ne } from "../dist-4njad0Sq.js";
2
2
  import { a as Pe, c as Fe, d as Ie, i as Le, l as Re, n as ze, o as Be, r as Ve, s as He, t as Ue, u as We } from "../dist-BC24ne2o.js";
3
3
  import * as V from "react";
4
4
  import H, { Component as Ge, createContext as Ke, createElement as qe, createRef as Je, forwardRef as Ye, memo as Xe, useCallback as Ze, useContext as Qe, useDebugValue as $e, useEffect as et, useLayoutEffect as tt, useMemo as nt, useRef as rt, useState as it, version as at } from "react";
@@ -19306,50 +19306,50 @@ var rT = P("span")(({ theme: e }) => ({
19306
19306
  border: `solid 0px ${e.palette.primary.main}`,
19307
19307
  "& mjx-frac": { fontSize: "120% !important" }
19308
19308
  }));
19309
- function iT({ n: e, children: n, isDragging: r, isOver: i, dragItem: a, value: o, selected: s }) {
19310
- let [c, l] = it(null), u = rt(null), d = (e) => {
19311
- u.current && (u.current.contains(e.target) ? u.current.classList.add("selected") : u.current.classList.remove("selected"));
19309
+ function iT({ n: e, children: n, isDragging: r, isOver: a, dragItem: o, value: s, selected: c }) {
19310
+ let [l, u] = it(null), d = rt(null), f = (e) => {
19311
+ d.current && (d.current.contains(e.target) ? d.current.classList.add("selected") : d.current.classList.remove("selected"));
19312
19312
  };
19313
- et(() => (document.addEventListener("click", d), () => {
19314
- document.removeEventListener("click", d);
19313
+ et(() => (document.addEventListener("click", f), () => {
19314
+ document.removeEventListener("click", f);
19315
19315
  }), []), et(() => {
19316
- u.current && typeof S == "function" && S(u.current);
19316
+ d.current && typeof i == "function" && i(d.current);
19317
19317
  }, [
19318
- o?.value,
19319
- i,
19320
- a?.value?.value
19318
+ s?.value,
19319
+ a,
19320
+ o?.value?.value
19321
19321
  ]), et(() => {
19322
- if (i && u.current && !c) {
19323
- let e = u.current;
19324
- l({
19322
+ if (a && d.current && !l) {
19323
+ let e = d.current;
19324
+ u({
19325
19325
  width: e.offsetWidth,
19326
19326
  height: e.offsetHeight
19327
19327
  });
19328
- } else !i && c && l(null);
19329
- }, [i, c]);
19330
- let f = a && i ? a.value.value : o.value || "\xA0", p = r ? "\xA0" : f, m = p !== "\xA0", h = a && i, g = s ? `2px solid ${t.primaryDark()}` : h ? `1px solid ${t.defaults.BORDER_DARK}` : `1px solid ${t.defaults.BORDER_LIGHT}`;
19328
+ } else !a && l && u(null);
19329
+ }, [a, l]);
19330
+ let p = o && a ? o.value.value : s.value || "\xA0", m = r ? "\xA0" : p, h = m !== "\xA0", g = o && a, _ = c ? `2px solid ${t.primaryDark()}` : g ? `1px solid ${t.defaults.BORDER_DARK}` : `1px solid ${t.defaults.BORDER_LIGHT}`;
19331
19331
  return /* @__PURE__ */ W("div", {
19332
- ref: u,
19333
- className: s ? "selected" : void 0,
19332
+ ref: d,
19333
+ className: c ? "selected" : void 0,
19334
19334
  style: {
19335
19335
  display: "inline-flex",
19336
19336
  minWidth: "178px",
19337
19337
  minHeight: "36px",
19338
- background: h ? `${t.defaults.BORDER_LIGHT}` : `${t.defaults.WHITE}`,
19339
- border: g,
19338
+ background: g ? `${t.defaults.BORDER_LIGHT}` : `${t.defaults.WHITE}`,
19339
+ border: _,
19340
19340
  boxSizing: "border-box",
19341
19341
  borderRadius: "3px",
19342
19342
  overflow: "hidden",
19343
19343
  position: "relative",
19344
19344
  padding: "8px 8px 8px 35px",
19345
- width: c ? c.width : void 0,
19346
- height: c ? c.height : void 0,
19345
+ width: l ? l.width : void 0,
19346
+ height: l ? l.height : void 0,
19347
19347
  touchAction: "none"
19348
19348
  },
19349
19349
  "data-key": e.index,
19350
19350
  contentEditable: !1,
19351
19351
  children: [
19352
- m && /* @__PURE__ */ U(LC, {
19352
+ h && /* @__PURE__ */ U(LC, {
19353
19353
  style: {
19354
19354
  position: "absolute",
19355
19355
  top: "6px",
@@ -19358,7 +19358,7 @@ function iT({ n: e, children: n, isDragging: r, isOver: i, dragItem: a, value: o
19358
19358
  },
19359
19359
  contentEditable: !1
19360
19360
  }),
19361
- /* @__PURE__ */ U("span", { dangerouslySetInnerHTML: { __html: p } }),
19361
+ /* @__PURE__ */ U("span", { dangerouslySetInnerHTML: { __html: m } }),
19362
19362
  n
19363
19363
  ]
19364
19364
  });
@@ -27310,7 +27310,7 @@ var pk = fk, { commonMqFontStyles: mk, longdivStyles: hk, supsubStyles: gk } = A
27310
27310
  "data-latex": "",
27311
27311
  "data-raw": e.latex
27312
27312
  },
27313
- i(e.latex, e.wrapper)
27313
+ S(e.latex, e.wrapper)
27314
27314
  ];
27315
27315
  },
27316
27316
  addNodeView() {