@pie-element/match 12.1.2-next.27 → 12.1.2-next.30
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-DZO80icZ.js → Typography-BX-ak3_U.js} +326 -330
- package/dist/browser/{Typography-DZO80icZ.js.map → Typography-BX-ak3_U.js.map} +1 -1
- package/dist/browser/author/index.js +65 -59
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +24 -24
- package/dist/browser/editor-runtime/{Typography-DneM6GGO.js → Typography-l-ZVRFDi.js} +326 -330
- package/dist/browser/editor-runtime/{Typography-DneM6GGO.js.map → Typography-l-ZVRFDi.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +3489 -3483
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +24 -24
- package/dist/index.iife.js +21 -21
- package/package.json +13 -13
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
})([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
|
|
19
19
|
import { a as e, i as t, n, t as r } from "../browser-kkT1XVKw.js";
|
|
20
|
-
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 ne, St as re, T as ie, Tt as D, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, et as ye, ft as O, g as be, gt as xe, h as Se, ht as k, i as Ce, it as we, j as Te, jt as Ee, k as De, kt as A, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, r as Le, rt as Re, s as ze, st as Be, t as Ve, tt as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, xt as Je, y as Ye, yt as Xe, z as j } from "../Typography-
|
|
20
|
+
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 ne, St as re, T as ie, Tt as D, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, et as ye, ft as O, g as be, gt as xe, h as Se, ht as k, i as Ce, it as we, j as Te, jt as Ee, k as De, kt as A, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, r as Le, rt as Re, s as ze, st as Be, t as Ve, tt as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, xt as Je, y as Ye, yt as Xe, z as j } from "../Typography-BX-ak3_U.js";
|
|
21
21
|
import { a as Ze, c as Qe, d as $e, f as et, i as tt, l as nt, n as rt, o as it, p as at, r as ot, s as st, t as ct, u as lt } from "../dist-C4gh2n2Z.js";
|
|
22
22
|
import * as M from "react";
|
|
23
23
|
import N, { Component as ut, createContext as dt, createElement as ft, createRef as pt, forwardRef as mt, memo as ht, useCallback as gt, useContext as _t, useDebugValue as vt, useEffect as P, useLayoutEffect as yt, useMemo as bt, useReducer as xt, useRef as St, useState as Ct, version as wt } from "react";
|
|
@@ -22136,50 +22136,50 @@ var xO = k("span")(({ theme: e }) => ({
|
|
|
22136
22136
|
"& mjx-mn:has(~ mjx-mfrac), mjx-mfrac ~ mjx-mn": { fontSize: "120% !important" },
|
|
22137
22137
|
"& mjx-frac": { fontSize: "120% !important" }
|
|
22138
22138
|
}));
|
|
22139
|
-
function SO({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value:
|
|
22140
|
-
let [
|
|
22141
|
-
|
|
22139
|
+
function SO({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a, selected: o }) {
|
|
22140
|
+
let [s, c] = Ct(null), l = St(null), u = (e) => {
|
|
22141
|
+
l.current && (l.current.contains(e.target) ? l.current.classList.add("selected") : l.current.classList.remove("selected"));
|
|
22142
22142
|
};
|
|
22143
|
-
P(() => (document.addEventListener("click",
|
|
22144
|
-
document.removeEventListener("click",
|
|
22143
|
+
P(() => (document.addEventListener("click", u), () => {
|
|
22144
|
+
document.removeEventListener("click", u);
|
|
22145
22145
|
}), []), P(() => {
|
|
22146
|
-
|
|
22146
|
+
l.current && typeof De == "function" && De(l.current);
|
|
22147
22147
|
}, [
|
|
22148
|
-
|
|
22148
|
+
a?.value,
|
|
22149
22149
|
r,
|
|
22150
22150
|
i?.value?.value
|
|
22151
22151
|
]), P(() => {
|
|
22152
|
-
if (r &&
|
|
22153
|
-
let e =
|
|
22154
|
-
|
|
22152
|
+
if (r && l.current && !s) {
|
|
22153
|
+
let e = l.current;
|
|
22154
|
+
c({
|
|
22155
22155
|
width: e.offsetWidth,
|
|
22156
22156
|
height: e.offsetHeight
|
|
22157
22157
|
});
|
|
22158
|
-
} else !r &&
|
|
22159
|
-
}, [r,
|
|
22160
|
-
let
|
|
22158
|
+
} else !r && s && c(null);
|
|
22159
|
+
}, [r, s]);
|
|
22160
|
+
let d = i && r ? i.value.value : a.value || "\xA0", f = n ? "\xA0" : d, p = f !== "\xA0", m = i && r, h = o ? `2px solid ${O.primaryDark()}` : m ? `1px solid ${O.defaults.BORDER_DARK}` : `1px solid ${O.defaults.BORDER_LIGHT}`;
|
|
22161
22161
|
return /* @__PURE__ */ I("div", {
|
|
22162
|
-
ref:
|
|
22163
|
-
className:
|
|
22162
|
+
ref: l,
|
|
22163
|
+
className: o ? "selected" : void 0,
|
|
22164
22164
|
style: {
|
|
22165
22165
|
display: "inline-flex",
|
|
22166
22166
|
minWidth: "178px",
|
|
22167
22167
|
minHeight: "36px",
|
|
22168
|
-
background:
|
|
22169
|
-
border:
|
|
22168
|
+
background: m ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
|
|
22169
|
+
border: h,
|
|
22170
22170
|
boxSizing: "border-box",
|
|
22171
22171
|
borderRadius: "3px",
|
|
22172
22172
|
overflow: "hidden",
|
|
22173
22173
|
position: "relative",
|
|
22174
22174
|
padding: "8px 8px 8px 35px",
|
|
22175
|
-
width:
|
|
22176
|
-
height:
|
|
22175
|
+
width: s ? s.width : void 0,
|
|
22176
|
+
height: s ? s.height : void 0,
|
|
22177
22177
|
touchAction: "none"
|
|
22178
22178
|
},
|
|
22179
22179
|
"data-key": e.index,
|
|
22180
22180
|
contentEditable: !1,
|
|
22181
22181
|
children: [
|
|
22182
|
-
|
|
22182
|
+
p && /* @__PURE__ */ F(FT, {
|
|
22183
22183
|
style: {
|
|
22184
22184
|
position: "absolute",
|
|
22185
22185
|
top: "6px",
|
|
@@ -22188,7 +22188,7 @@ function SO({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o
|
|
|
22188
22188
|
},
|
|
22189
22189
|
contentEditable: !1
|
|
22190
22190
|
}),
|
|
22191
|
-
/* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html:
|
|
22191
|
+
/* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html: f } }),
|
|
22192
22192
|
t
|
|
22193
22193
|
]
|
|
22194
22194
|
});
|
|
@@ -22330,56 +22330,56 @@ EO.propTypes = {
|
|
|
22330
22330
|
//#endregion
|
|
22331
22331
|
//#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
|
|
22332
22332
|
var DO = (e) => {
|
|
22333
|
-
let { editor: t, node: n, getPos: r, options: i, selected:
|
|
22333
|
+
let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div> </div>", u = r(), d = St(null), f = St(null), p = St(!1), m = St(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = Ct(!1), [v, y] = Ct({
|
|
22334
22334
|
top: 0,
|
|
22335
22335
|
left: 0
|
|
22336
|
-
}),
|
|
22337
|
-
|
|
22338
|
-
},
|
|
22339
|
-
let { tr: e } = t.state, n = e.doc.nodeAt(
|
|
22336
|
+
}), b = () => {
|
|
22337
|
+
h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
|
|
22338
|
+
}, x = i.respAreaToolbar([n, u], t, b), S = () => {
|
|
22339
|
+
let { tr: e } = t.state, n = e.doc.nodeAt(u);
|
|
22340
22340
|
if (!n) return;
|
|
22341
22341
|
let { selection: r } = e;
|
|
22342
|
-
r.from ===
|
|
22343
|
-
},
|
|
22344
|
-
|
|
22345
|
-
|
|
22342
|
+
r.from === u && r.to === u + n.nodeSize || (e.setSelection(H.create(e.doc, u)), t.view.dispatch(e));
|
|
22343
|
+
}, C = () => {
|
|
22344
|
+
p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
|
|
22345
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
|
|
22346
22346
|
}, () => {
|
|
22347
|
-
|
|
22348
|
-
})) :
|
|
22347
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
|
|
22348
|
+
})) : b());
|
|
22349
22349
|
};
|
|
22350
22350
|
P(() => {
|
|
22351
22351
|
let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
|
|
22352
|
-
|
|
22352
|
+
a ? r && _(!0) : g && C();
|
|
22353
22353
|
}, [
|
|
22354
22354
|
t,
|
|
22355
22355
|
n,
|
|
22356
|
-
|
|
22356
|
+
a
|
|
22357
22357
|
]);
|
|
22358
|
-
let
|
|
22358
|
+
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
22359
22359
|
return P(() => {
|
|
22360
|
-
|
|
22361
|
-
}, [
|
|
22360
|
+
m.current && typeof De == "function" && De(m.current);
|
|
22361
|
+
}, [s]), P(() => {
|
|
22362
22362
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
22363
|
-
|
|
22363
|
+
y({
|
|
22364
22364
|
top: r.top + Math.abs(e.top) + 40,
|
|
22365
22365
|
left: r.left
|
|
22366
22366
|
});
|
|
22367
22367
|
let i = (e) => {
|
|
22368
|
-
if (
|
|
22368
|
+
if (w(e)) return;
|
|
22369
22369
|
let n = e.target.closest("[data-toolbar-for]");
|
|
22370
|
-
!e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !==
|
|
22370
|
+
!e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== f.current?.instanceId) && !t._toolbarOpened && d.current && !d.current.contains(e.target) && !e.target.closest("[data-inline-node]") && C();
|
|
22371
22371
|
};
|
|
22372
|
-
return
|
|
22373
|
-
}, [
|
|
22372
|
+
return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
22373
|
+
}, [g, n]), /* @__PURE__ */ I(lT, {
|
|
22374
22374
|
className: "inline-dropdown",
|
|
22375
|
-
"data-selected":
|
|
22375
|
+
"data-selected": a,
|
|
22376
22376
|
style: {
|
|
22377
22377
|
display: "inline-flex",
|
|
22378
22378
|
height: "50px",
|
|
22379
22379
|
cursor: "pointer"
|
|
22380
22380
|
},
|
|
22381
22381
|
children: [/* @__PURE__ */ I("div", {
|
|
22382
|
-
ref:
|
|
22382
|
+
ref: m,
|
|
22383
22383
|
style: {
|
|
22384
22384
|
display: "inline-flex",
|
|
22385
22385
|
minWidth: "178px",
|
|
@@ -22392,7 +22392,7 @@ var DO = (e) => {
|
|
|
22392
22392
|
position: "relative",
|
|
22393
22393
|
alignItems: "center"
|
|
22394
22394
|
},
|
|
22395
|
-
onClick: () =>
|
|
22395
|
+
onClick: () => _(!0),
|
|
22396
22396
|
children: [/* @__PURE__ */ F("div", {
|
|
22397
22397
|
style: {
|
|
22398
22398
|
flex: 1,
|
|
@@ -22406,7 +22406,7 @@ var DO = (e) => {
|
|
|
22406
22406
|
display: "inline-block",
|
|
22407
22407
|
verticalAlign: "middle"
|
|
22408
22408
|
},
|
|
22409
|
-
dangerouslySetInnerHTML: { __html:
|
|
22409
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
22410
22410
|
})
|
|
22411
22411
|
}), /* @__PURE__ */ F(PT, {
|
|
22412
22412
|
direction: "down",
|
|
@@ -22416,10 +22416,10 @@ var DO = (e) => {
|
|
|
22416
22416
|
right: "5px"
|
|
22417
22417
|
}
|
|
22418
22418
|
})]
|
|
22419
|
-
}),
|
|
22420
|
-
ref:
|
|
22421
|
-
children: /* @__PURE__ */ F(
|
|
22422
|
-
|
|
22419
|
+
}), g && /* @__PURE__ */ I(N.Fragment, { children: [Dt.createPortal(/* @__PURE__ */ F("div", {
|
|
22420
|
+
ref: d,
|
|
22421
|
+
children: /* @__PURE__ */ F(x, { editorCallback: (e) => {
|
|
22422
|
+
f.current = e;
|
|
22423
22423
|
} })
|
|
22424
22424
|
}), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && Dt.createPortal(/* @__PURE__ */ F(UC, {
|
|
22425
22425
|
deletable: !0,
|
|
@@ -22432,7 +22432,7 @@ var DO = (e) => {
|
|
|
22432
22432
|
},
|
|
22433
22433
|
onDelete: () => {
|
|
22434
22434
|
let { tr: e } = t.state;
|
|
22435
|
-
e.delete(
|
|
22435
|
+
e.delete(u, u + n.nodeSize), WC(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
|
|
22436
22436
|
},
|
|
22437
22437
|
showDone: !1
|
|
22438
22438
|
}), t._tiptapContainerEl)] })]
|
|
@@ -27056,7 +27056,12 @@ var TN = {}, EN = (e) => String(e || "").replace(/-/g, "_"), DN = (e) => e && e.
|
|
|
27056
27056
|
};
|
|
27057
27057
|
}
|
|
27058
27058
|
componentDidMount() {
|
|
27059
|
-
this.input && this.props.autoFocus && setTimeout(() =>
|
|
27059
|
+
this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
|
|
27060
|
+
this.focusTimeout = void 0, this.input?.focus();
|
|
27061
|
+
}, 0));
|
|
27062
|
+
}
|
|
27063
|
+
componentWillUnmount() {
|
|
27064
|
+
this.focusTimeout && clearTimeout(this.focusTimeout);
|
|
27060
27065
|
}
|
|
27061
27066
|
onClick = (e) => {
|
|
27062
27067
|
let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = $N(e);
|
|
@@ -27592,7 +27597,7 @@ var rP = nP, { commonMqFontStyles: iP, longdivStyles: aP, supsubStyles: oP } = l
|
|
|
27592
27597
|
"data-latex": "",
|
|
27593
27598
|
"data-raw": e.latex
|
|
27594
27599
|
},
|
|
27595
|
-
|
|
27600
|
+
a(e.latex, e.wrapper)
|
|
27596
27601
|
];
|
|
27597
27602
|
},
|
|
27598
27603
|
addNodeView() {
|
|
@@ -27654,15 +27659,16 @@ var rP = nP, { commonMqFontStyles: iP, longdivStyles: aP, supsubStyles: oP } = l
|
|
|
27654
27659
|
t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
|
|
27655
27660
|
};
|
|
27656
27661
|
}, [r, s]), P(() => {
|
|
27657
|
-
let e = (
|
|
27658
|
-
|
|
27659
|
-
|
|
27662
|
+
let e = performance.now(), n = (n) => {
|
|
27663
|
+
if (n?.timeStamp < e) return;
|
|
27664
|
+
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}`);
|
|
27665
|
+
if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
|
|
27660
27666
|
c(!1);
|
|
27661
|
-
let e = !!r?.view?.dom?.contains(
|
|
27667
|
+
let e = !!r?.view?.dom?.contains(i);
|
|
27662
27668
|
S(t.attrs.latex, { moveCursorAfterNode: !e });
|
|
27663
27669
|
}
|
|
27664
27670
|
};
|
|
27665
|
-
return s ? document.addEventListener("click",
|
|
27671
|
+
return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
|
|
27666
27672
|
}, [
|
|
27667
27673
|
r,
|
|
27668
27674
|
s,
|