@pie-element/passage 7.1.2-next.26 → 7.1.2-next.28
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 +53 -47
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{dist-CmWnfRdx.js → dist-Drjz4obN.js} +1808 -1812
- package/dist/browser/dist-Drjz4obN.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +43 -37
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{dist-Cy6d7nWk.js → dist-B7y7izDt.js} +1808 -1812
- package/dist/browser/editor-runtime/dist-B7y7izDt.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +6 -4
- package/dist/browser/editor-runtime/print/index.js.map +1 -1
- package/dist/browser/editor-runtime/{stimulus-tabs-DjqaIcf5.js → stimulus-tabs-BHRmPAtK.js} +2 -2
- package/dist/browser/editor-runtime/{stimulus-tabs-DjqaIcf5.js.map → stimulus-tabs-BHRmPAtK.js.map} +1 -1
- package/dist/browser/print/index.js +6 -4
- package/dist/browser/print/index.js.map +1 -1
- package/dist/browser/{stimulus-tabs-9odYG4bg.js → stimulus-tabs-6S6b-RxY.js} +2 -2
- package/dist/browser/{stimulus-tabs-9odYG4bg.js.map → stimulus-tabs-6S6b-RxY.js.map} +1 -1
- package/dist/index.iife.js +31 -31
- package/dist/print/index.js +4 -2
- package/module/print.js +255 -257
- package/module/print.js.map +1 -1
- package/package.json +9 -9
- package/dist/browser/dist-CmWnfRdx.js.map +0 -1
- package/dist/browser/editor-runtime/dist-Cy6d7nWk.js.map +0 -1
|
@@ -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 { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
|
|
20
|
-
import { $ as r, A as i, B as a, C as o, Ct as s, D as c, E as l, Et as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, St as T, T as E, Tt as ee, U as te, V as ne, W as re, X as D, Y as ie, Z as O, _ as ae, _t as oe, at as se, bt as ce, c as le, ct as k, d as ue, dt as de, et as fe, f as pe, ft as me, g as he, gt as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, st as Pe, t as Fe, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, wt as He, x as Ue, xt as We, y as Ge, yt as Ke, z as qe } from "../dist-
|
|
20
|
+
import { $ as r, A as i, B as a, C as o, Ct as s, D as c, E as l, Et as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, St as T, T as E, Tt as ee, U as te, V as ne, W as re, X as D, Y as ie, Z as O, _ as ae, _t as oe, at as se, bt as ce, c as le, ct as k, d as ue, dt as de, et as fe, f as pe, ft as me, g as he, gt as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, st as Pe, t as Fe, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, wt as He, x as Ue, xt as We, y as Ge, yt as Ke, z as qe } from "../dist-Drjz4obN.js";
|
|
21
21
|
import { a as Je, c as Ye, d as Xe, i as Ze, l as Qe, n as $e, o as et, r as tt, s as nt, t as rt, u as it } from "../dist-CiWlBjsz.js";
|
|
22
22
|
import * as A from "react";
|
|
23
23
|
import at, { Component as ot, createContext as st, createElement as ct, createRef as lt, forwardRef as ut, memo as dt, useCallback as ft, useContext as pt, useDebugValue as mt, useEffect as ht, useLayoutEffect as gt, useMemo as _t, useRef as vt, useState as yt, version as bt } from "react";
|
|
@@ -20083,36 +20083,36 @@ var ME = S("span")(({ theme: e }) => ({
|
|
|
20083
20083
|
"& mjx-frac": { fontSize: "120% !important" }
|
|
20084
20084
|
}));
|
|
20085
20085
|
function NE({ n: e, children: t, isDragging: n, isOver: r, dragItem: a, value: o, selected: s }) {
|
|
20086
|
-
let [c, l] = yt(null),
|
|
20087
|
-
|
|
20086
|
+
let [c, l] = yt(null), u = vt(null), d = (e) => {
|
|
20087
|
+
u.current && (u.current.contains(e.target) ? u.current.classList.add("selected") : u.current.classList.remove("selected"));
|
|
20088
20088
|
};
|
|
20089
|
-
ht(() => (document.addEventListener("click",
|
|
20090
|
-
document.removeEventListener("click",
|
|
20089
|
+
ht(() => (document.addEventListener("click", d), () => {
|
|
20090
|
+
document.removeEventListener("click", d);
|
|
20091
20091
|
}), []), ht(() => {
|
|
20092
|
-
|
|
20092
|
+
u.current && typeof ee == "function" && ee(u.current);
|
|
20093
20093
|
}, [
|
|
20094
20094
|
o?.value,
|
|
20095
20095
|
r,
|
|
20096
20096
|
a?.value?.value
|
|
20097
20097
|
]), ht(() => {
|
|
20098
|
-
if (r &&
|
|
20099
|
-
let e =
|
|
20098
|
+
if (r && u.current && !c) {
|
|
20099
|
+
let e = u.current;
|
|
20100
20100
|
l({
|
|
20101
20101
|
width: e.offsetWidth,
|
|
20102
20102
|
height: e.offsetHeight
|
|
20103
20103
|
});
|
|
20104
20104
|
} else !r && c && l(null);
|
|
20105
20105
|
}, [r, c]);
|
|
20106
|
-
let
|
|
20106
|
+
let f = a && r ? a.value.value : o.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = a && r, g = s ? `2px solid ${i.primaryDark()}` : h ? `1px solid ${i.defaults.BORDER_DARK}` : `1px solid ${i.defaults.BORDER_LIGHT}`;
|
|
20107
20107
|
return /* @__PURE__ */ M("div", {
|
|
20108
|
-
ref:
|
|
20108
|
+
ref: u,
|
|
20109
20109
|
className: s ? "selected" : void 0,
|
|
20110
20110
|
style: {
|
|
20111
20111
|
display: "inline-flex",
|
|
20112
20112
|
minWidth: "178px",
|
|
20113
20113
|
minHeight: "36px",
|
|
20114
|
-
background:
|
|
20115
|
-
border:
|
|
20114
|
+
background: h ? `${i.defaults.BORDER_LIGHT}` : `${i.defaults.WHITE}`,
|
|
20115
|
+
border: g,
|
|
20116
20116
|
boxSizing: "border-box",
|
|
20117
20117
|
borderRadius: "3px",
|
|
20118
20118
|
overflow: "hidden",
|
|
@@ -20125,7 +20125,7 @@ function NE({ n: e, children: t, isDragging: n, isOver: r, dragItem: a, value: o
|
|
|
20125
20125
|
"data-key": e.index,
|
|
20126
20126
|
contentEditable: !1,
|
|
20127
20127
|
children: [
|
|
20128
|
-
|
|
20128
|
+
m && /* @__PURE__ */ j(fT, {
|
|
20129
20129
|
style: {
|
|
20130
20130
|
position: "absolute",
|
|
20131
20131
|
top: "6px",
|
|
@@ -20134,7 +20134,7 @@ function NE({ n: e, children: t, isDragging: n, isOver: r, dragItem: a, value: o
|
|
|
20134
20134
|
},
|
|
20135
20135
|
contentEditable: !1
|
|
20136
20136
|
}),
|
|
20137
|
-
/* @__PURE__ */ j("span", { dangerouslySetInnerHTML: { __html:
|
|
20137
|
+
/* @__PURE__ */ j("span", { dangerouslySetInnerHTML: { __html: p } }),
|
|
20138
20138
|
t
|
|
20139
20139
|
]
|
|
20140
20140
|
});
|
|
@@ -20276,47 +20276,47 @@ LE.propTypes = {
|
|
|
20276
20276
|
//#endregion
|
|
20277
20277
|
//#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
|
|
20278
20278
|
var RE = (e) => {
|
|
20279
|
-
let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div> </div>",
|
|
20279
|
+
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 = vt(null), f = vt(null), p = vt(!1), m = vt(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = yt(!1), [v, y] = yt({
|
|
20280
20280
|
top: 0,
|
|
20281
20281
|
left: 0
|
|
20282
|
-
}),
|
|
20283
|
-
|
|
20284
|
-
},
|
|
20285
|
-
let { tr: e } = t.state, n = e.doc.nodeAt(
|
|
20282
|
+
}), b = () => {
|
|
20283
|
+
h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
|
|
20284
|
+
}, x = i.respAreaToolbar([n, u], t, b), S = () => {
|
|
20285
|
+
let { tr: e } = t.state, n = e.doc.nodeAt(u);
|
|
20286
20286
|
if (!n) return;
|
|
20287
20287
|
let { selection: r } = e;
|
|
20288
|
-
r.from ===
|
|
20289
|
-
},
|
|
20290
|
-
|
|
20291
|
-
|
|
20288
|
+
r.from === u && r.to === u + n.nodeSize || (e.setSelection(R.create(e.doc, u)), t.view.dispatch(e));
|
|
20289
|
+
}, C = () => {
|
|
20290
|
+
p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
|
|
20291
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
|
|
20292
20292
|
}, () => {
|
|
20293
|
-
|
|
20294
|
-
})) :
|
|
20293
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
|
|
20294
|
+
})) : b());
|
|
20295
20295
|
};
|
|
20296
20296
|
ht(() => {
|
|
20297
20297
|
let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
|
|
20298
|
-
a ? r &&
|
|
20298
|
+
a ? r && _(!0) : g && C();
|
|
20299
20299
|
}, [
|
|
20300
20300
|
t,
|
|
20301
20301
|
n,
|
|
20302
20302
|
a
|
|
20303
20303
|
]);
|
|
20304
|
-
let
|
|
20304
|
+
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
20305
20305
|
return ht(() => {
|
|
20306
|
-
|
|
20306
|
+
m.current && typeof ee == "function" && ee(m.current);
|
|
20307
20307
|
}, [s]), ht(() => {
|
|
20308
20308
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
20309
|
-
|
|
20309
|
+
y({
|
|
20310
20310
|
top: r.top + Math.abs(e.top) + 40,
|
|
20311
20311
|
left: r.left
|
|
20312
20312
|
});
|
|
20313
20313
|
let i = (e) => {
|
|
20314
|
-
if (
|
|
20314
|
+
if (w(e)) return;
|
|
20315
20315
|
let n = e.target.closest("[data-toolbar-for]");
|
|
20316
|
-
!e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !==
|
|
20316
|
+
!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();
|
|
20317
20317
|
};
|
|
20318
|
-
return
|
|
20319
|
-
}, [
|
|
20318
|
+
return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
20319
|
+
}, [g, n]), /* @__PURE__ */ M(Bw, {
|
|
20320
20320
|
className: "inline-dropdown",
|
|
20321
20321
|
"data-selected": a,
|
|
20322
20322
|
style: {
|
|
@@ -20325,7 +20325,7 @@ var RE = (e) => {
|
|
|
20325
20325
|
cursor: "pointer"
|
|
20326
20326
|
},
|
|
20327
20327
|
children: [/* @__PURE__ */ M("div", {
|
|
20328
|
-
ref:
|
|
20328
|
+
ref: m,
|
|
20329
20329
|
style: {
|
|
20330
20330
|
display: "inline-flex",
|
|
20331
20331
|
minWidth: "178px",
|
|
@@ -20338,7 +20338,7 @@ var RE = (e) => {
|
|
|
20338
20338
|
position: "relative",
|
|
20339
20339
|
alignItems: "center"
|
|
20340
20340
|
},
|
|
20341
|
-
onClick: () =>
|
|
20341
|
+
onClick: () => _(!0),
|
|
20342
20342
|
children: [/* @__PURE__ */ j("div", {
|
|
20343
20343
|
style: {
|
|
20344
20344
|
flex: 1,
|
|
@@ -20362,10 +20362,10 @@ var RE = (e) => {
|
|
|
20362
20362
|
right: "5px"
|
|
20363
20363
|
}
|
|
20364
20364
|
})]
|
|
20365
|
-
}),
|
|
20366
|
-
ref:
|
|
20367
|
-
children: /* @__PURE__ */ j(
|
|
20368
|
-
|
|
20365
|
+
}), g && /* @__PURE__ */ M(at.Fragment, { children: [Ct.createPortal(/* @__PURE__ */ j("div", {
|
|
20366
|
+
ref: d,
|
|
20367
|
+
children: /* @__PURE__ */ j(x, { editorCallback: (e) => {
|
|
20368
|
+
f.current = e;
|
|
20369
20369
|
} })
|
|
20370
20370
|
}), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && Ct.createPortal(/* @__PURE__ */ j(bC, {
|
|
20371
20371
|
deletable: !0,
|
|
@@ -20378,7 +20378,7 @@ var RE = (e) => {
|
|
|
20378
20378
|
},
|
|
20379
20379
|
onDelete: () => {
|
|
20380
20380
|
let { tr: e } = t.state;
|
|
20381
|
-
e.delete(
|
|
20381
|
+
e.delete(u, u + n.nodeSize), xC(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
|
|
20382
20382
|
},
|
|
20383
20383
|
showDone: !1
|
|
20384
20384
|
}), t._tiptapContainerEl)] })]
|
|
@@ -25002,7 +25002,12 @@ var Mj = {}, Nj = (e) => String(e || "").replace(/-/g, "_"), Pj = (e) => e && e.
|
|
|
25002
25002
|
};
|
|
25003
25003
|
}
|
|
25004
25004
|
componentDidMount() {
|
|
25005
|
-
this.input && this.props.autoFocus && setTimeout(() =>
|
|
25005
|
+
this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
|
|
25006
|
+
this.focusTimeout = void 0, this.input?.focus();
|
|
25007
|
+
}, 0));
|
|
25008
|
+
}
|
|
25009
|
+
componentWillUnmount() {
|
|
25010
|
+
this.focusTimeout && clearTimeout(this.focusTimeout);
|
|
25006
25011
|
}
|
|
25007
25012
|
onClick = (e) => {
|
|
25008
25013
|
let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = oM(e);
|
|
@@ -25538,7 +25543,7 @@ var uM = lM, { commonMqFontStyles: dM, longdivStyles: fM, supsubStyles: pM } = g
|
|
|
25538
25543
|
"data-latex": "",
|
|
25539
25544
|
"data-raw": e.latex
|
|
25540
25545
|
},
|
|
25541
|
-
|
|
25546
|
+
u(e.latex, e.wrapper)
|
|
25542
25547
|
];
|
|
25543
25548
|
},
|
|
25544
25549
|
addNodeView() {
|
|
@@ -25600,15 +25605,16 @@ var uM = lM, { commonMqFontStyles: dM, longdivStyles: fM, supsubStyles: pM } = g
|
|
|
25600
25605
|
t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
|
|
25601
25606
|
};
|
|
25602
25607
|
}, [r, s]), ht(() => {
|
|
25603
|
-
let e = (
|
|
25604
|
-
|
|
25605
|
-
|
|
25608
|
+
let e = performance.now(), n = (n) => {
|
|
25609
|
+
if (n?.timeStamp < e) return;
|
|
25610
|
+
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}`);
|
|
25611
|
+
if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
|
|
25606
25612
|
c(!1);
|
|
25607
|
-
let e = !!r?.view?.dom?.contains(
|
|
25613
|
+
let e = !!r?.view?.dom?.contains(i);
|
|
25608
25614
|
S(t.attrs.latex, { moveCursorAfterNode: !e });
|
|
25609
25615
|
}
|
|
25610
25616
|
};
|
|
25611
|
-
return s ? document.addEventListener("click",
|
|
25617
|
+
return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
|
|
25612
25618
|
}, [
|
|
25613
25619
|
r,
|
|
25614
25620
|
s,
|