@pie-element/drag-in-the-blank 10.2.0-next.18 → 10.2.0-next.20
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 +52 -52
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +111 -111
- package/dist/browser/{drag-provider-oO_3Bb5T.js → drag-provider-ONpIXn6r.js} +2465 -2432
- package/dist/browser/drag-provider-ONpIXn6r.js.map +1 -0
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +18577 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +176 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +3673 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/browser/editor-runtime/dist-CqufoV2m.js +125 -0
- package/dist/browser/editor-runtime/dist-CqufoV2m.js.map +1 -0
- package/dist/browser/editor-runtime/drag-provider-UfwrFy4Z.js +10935 -0
- package/dist/browser/editor-runtime/drag-provider-UfwrFy4Z.js.map +1 -0
- package/dist/browser/editor-runtime/rolldown-runtime-CHQKHQ89.js +32 -0
- package/dist/index.iife.js +35 -35
- package/package.json +23 -11
- package/dist/browser/drag-provider-oO_3Bb5T.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, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as E, P as ne, Pt as re, Q as ie, R as D, Rt as O, S as k, St as ae, Tt as A, U as oe, V as j, Vt as se, W as ce, X as le, Y as M, Z as ue, _t as de, at as fe, b as pe, bt as me, c as he, ct as ge, d as _e, dt as ve, et as ye, f as be, ft as xe, gt as Se, ht as N, it as Ce, j as we, jt as Te, k as P, kt as Ee, l as De, lt as Oe, mt as ke, n as Ae, nt as je, o as Me, ot as Ne, q as Pe, rt as Fe, s as Ie, st as Le, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as Ye, z as Xe, zt as Ze } from "../drag-provider-
|
|
20
|
+
import { $ as r, A as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as E, P as ne, Pt as re, Q as ie, R as D, Rt as O, S as k, St as ae, Tt as A, U as oe, V as j, Vt as se, W as ce, X as le, Y as M, Z as ue, _t as de, at as fe, b as pe, bt as me, c as he, ct as ge, d as _e, dt as ve, et as ye, f as be, ft as xe, gt as Se, ht as N, it as Ce, j as we, jt as Te, k as P, kt as Ee, l as De, lt as Oe, mt as ke, n as Ae, nt as je, o as Me, ot as Ne, q as Pe, rt as Fe, s as Ie, st as Le, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as Ye, z as Xe, zt as Ze } from "../drag-provider-ONpIXn6r.js";
|
|
21
21
|
import { a as Qe, c as $e, d as et, f as tt, g as nt, h as rt, i as it, n as at, o as ot, p as st, s as ct, t as lt, u as ut } from "../dist-CqufoV2m.js";
|
|
22
22
|
import * as F from "react";
|
|
23
23
|
import dt, { Component as ft, createContext as pt, createElement as mt, createRef as ht, forwardRef as gt, memo as _t, useCallback as vt, useContext as yt, useDebugValue as bt, useEffect as xt, useLayoutEffect as St, useMemo as Ct, useRef as wt, useState as Tt, version as Et } from "react";
|
|
@@ -14173,49 +14173,49 @@ var yy = N("span")(({ theme: e }) => ({
|
|
|
14173
14173
|
"& mjx-frac": { fontSize: "120% !important" }
|
|
14174
14174
|
}));
|
|
14175
14175
|
function by({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a, selected: o }) {
|
|
14176
|
-
let [
|
|
14177
|
-
|
|
14176
|
+
let [s, c] = Tt(null), l = wt(null), u = (e) => {
|
|
14177
|
+
l.current && (l.current.contains(e.target) ? l.current.classList.add("selected") : l.current.classList.remove("selected"));
|
|
14178
14178
|
};
|
|
14179
|
-
xt(() => (document.addEventListener("click",
|
|
14180
|
-
document.removeEventListener("click",
|
|
14179
|
+
xt(() => (document.addEventListener("click", u), () => {
|
|
14180
|
+
document.removeEventListener("click", u);
|
|
14181
14181
|
}), []), xt(() => {
|
|
14182
|
-
|
|
14182
|
+
l.current && typeof se == "function" && se(l.current);
|
|
14183
14183
|
}, [
|
|
14184
14184
|
a?.value,
|
|
14185
14185
|
r,
|
|
14186
14186
|
i?.value?.value
|
|
14187
14187
|
]), xt(() => {
|
|
14188
|
-
if (r &&
|
|
14189
|
-
let e =
|
|
14190
|
-
|
|
14188
|
+
if (r && l.current && !s) {
|
|
14189
|
+
let e = l.current;
|
|
14190
|
+
c({
|
|
14191
14191
|
width: e.offsetWidth,
|
|
14192
14192
|
height: e.offsetHeight
|
|
14193
14193
|
});
|
|
14194
|
-
} else !r &&
|
|
14195
|
-
}, [r,
|
|
14196
|
-
let
|
|
14194
|
+
} else !r && s && c(null);
|
|
14195
|
+
}, [r, s]);
|
|
14196
|
+
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}`;
|
|
14197
14197
|
return /* @__PURE__ */ L("div", {
|
|
14198
|
-
ref:
|
|
14198
|
+
ref: l,
|
|
14199
14199
|
className: o ? "selected" : void 0,
|
|
14200
14200
|
style: {
|
|
14201
14201
|
display: "inline-flex",
|
|
14202
14202
|
minWidth: "178px",
|
|
14203
14203
|
minHeight: "36px",
|
|
14204
|
-
background:
|
|
14205
|
-
border:
|
|
14204
|
+
background: m ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
|
|
14205
|
+
border: h,
|
|
14206
14206
|
boxSizing: "border-box",
|
|
14207
14207
|
borderRadius: "3px",
|
|
14208
14208
|
overflow: "hidden",
|
|
14209
14209
|
position: "relative",
|
|
14210
14210
|
padding: "8px 8px 8px 35px",
|
|
14211
|
-
width:
|
|
14212
|
-
height:
|
|
14211
|
+
width: s ? s.width : void 0,
|
|
14212
|
+
height: s ? s.height : void 0,
|
|
14213
14213
|
touchAction: "none"
|
|
14214
14214
|
},
|
|
14215
14215
|
"data-key": e.index,
|
|
14216
14216
|
contentEditable: !1,
|
|
14217
14217
|
children: [
|
|
14218
|
-
|
|
14218
|
+
p && /* @__PURE__ */ I(vy, {
|
|
14219
14219
|
style: {
|
|
14220
14220
|
position: "absolute",
|
|
14221
14221
|
top: "6px",
|
|
@@ -14224,7 +14224,7 @@ function by({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
|
|
|
14224
14224
|
},
|
|
14225
14225
|
contentEditable: !1
|
|
14226
14226
|
}),
|
|
14227
|
-
/* @__PURE__ */ I("span", { dangerouslySetInnerHTML: { __html:
|
|
14227
|
+
/* @__PURE__ */ I("span", { dangerouslySetInnerHTML: { __html: f } }),
|
|
14228
14228
|
t
|
|
14229
14229
|
]
|
|
14230
14230
|
});
|
|
@@ -14366,47 +14366,47 @@ wy.propTypes = {
|
|
|
14366
14366
|
//#endregion
|
|
14367
14367
|
//#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
|
|
14368
14368
|
var Ty = (e) => {
|
|
14369
|
-
let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value:
|
|
14369
|
+
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 = wt(null), f = wt(null), p = wt(!1), m = wt(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = Tt(!1), [v, y] = Tt({
|
|
14370
14370
|
top: 0,
|
|
14371
14371
|
left: 0
|
|
14372
|
-
}),
|
|
14373
|
-
|
|
14374
|
-
},
|
|
14375
|
-
let { tr: e } = t.state, n = e.doc.nodeAt(
|
|
14372
|
+
}), b = () => {
|
|
14373
|
+
h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
|
|
14374
|
+
}, x = i.respAreaToolbar([n, u], t, b), S = () => {
|
|
14375
|
+
let { tr: e } = t.state, n = e.doc.nodeAt(u);
|
|
14376
14376
|
if (!n) return;
|
|
14377
14377
|
let { selection: r } = e;
|
|
14378
|
-
r.from ===
|
|
14379
|
-
},
|
|
14380
|
-
|
|
14381
|
-
|
|
14378
|
+
r.from === u && r.to === u + n.nodeSize || (e.setSelection(H.create(e.doc, u)), t.view.dispatch(e));
|
|
14379
|
+
}, C = () => {
|
|
14380
|
+
p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
|
|
14381
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
|
|
14382
14382
|
}, () => {
|
|
14383
|
-
|
|
14384
|
-
})) :
|
|
14383
|
+
p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
|
|
14384
|
+
})) : b());
|
|
14385
14385
|
};
|
|
14386
14386
|
xt(() => {
|
|
14387
14387
|
let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
|
|
14388
|
-
a ? r &&
|
|
14388
|
+
a ? r && _(!0) : g && C();
|
|
14389
14389
|
}, [
|
|
14390
14390
|
t,
|
|
14391
14391
|
n,
|
|
14392
14392
|
a
|
|
14393
14393
|
]);
|
|
14394
|
-
let
|
|
14394
|
+
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
14395
14395
|
return xt(() => {
|
|
14396
|
-
|
|
14397
|
-
}, [
|
|
14396
|
+
m.current && typeof se == "function" && se(m.current);
|
|
14397
|
+
}, [s]), xt(() => {
|
|
14398
14398
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
14399
|
-
|
|
14399
|
+
y({
|
|
14400
14400
|
top: r.top + Math.abs(e.top) + 40,
|
|
14401
14401
|
left: r.left
|
|
14402
14402
|
});
|
|
14403
14403
|
let i = (e) => {
|
|
14404
|
-
if (
|
|
14404
|
+
if (w(e)) return;
|
|
14405
14405
|
let n = e.target.closest("[data-toolbar-for]");
|
|
14406
|
-
!e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !==
|
|
14406
|
+
!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();
|
|
14407
14407
|
};
|
|
14408
|
-
return
|
|
14409
|
-
}, [
|
|
14408
|
+
return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
14409
|
+
}, [g, n]), /* @__PURE__ */ L(Kv, {
|
|
14410
14410
|
className: "inline-dropdown",
|
|
14411
14411
|
"data-selected": a,
|
|
14412
14412
|
style: {
|
|
@@ -14415,7 +14415,7 @@ var Ty = (e) => {
|
|
|
14415
14415
|
cursor: "pointer"
|
|
14416
14416
|
},
|
|
14417
14417
|
children: [/* @__PURE__ */ L("div", {
|
|
14418
|
-
ref:
|
|
14418
|
+
ref: m,
|
|
14419
14419
|
style: {
|
|
14420
14420
|
display: "inline-flex",
|
|
14421
14421
|
minWidth: "178px",
|
|
@@ -14428,7 +14428,7 @@ var Ty = (e) => {
|
|
|
14428
14428
|
position: "relative",
|
|
14429
14429
|
alignItems: "center"
|
|
14430
14430
|
},
|
|
14431
|
-
onClick: () =>
|
|
14431
|
+
onClick: () => _(!0),
|
|
14432
14432
|
children: [/* @__PURE__ */ I("div", {
|
|
14433
14433
|
style: {
|
|
14434
14434
|
flex: 1,
|
|
@@ -14442,7 +14442,7 @@ var Ty = (e) => {
|
|
|
14442
14442
|
display: "inline-block",
|
|
14443
14443
|
verticalAlign: "middle"
|
|
14444
14444
|
},
|
|
14445
|
-
dangerouslySetInnerHTML: { __html:
|
|
14445
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
14446
14446
|
})
|
|
14447
14447
|
}), /* @__PURE__ */ I(_y, {
|
|
14448
14448
|
direction: "down",
|
|
@@ -14452,10 +14452,10 @@ var Ty = (e) => {
|
|
|
14452
14452
|
right: "5px"
|
|
14453
14453
|
}
|
|
14454
14454
|
})]
|
|
14455
|
-
}),
|
|
14456
|
-
ref:
|
|
14457
|
-
children: /* @__PURE__ */ I(
|
|
14458
|
-
|
|
14455
|
+
}), g && /* @__PURE__ */ L(dt.Fragment, { children: [kt.createPortal(/* @__PURE__ */ I("div", {
|
|
14456
|
+
ref: d,
|
|
14457
|
+
children: /* @__PURE__ */ I(x, { editorCallback: (e) => {
|
|
14458
|
+
f.current = e;
|
|
14459
14459
|
} })
|
|
14460
14460
|
}), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && kt.createPortal(/* @__PURE__ */ I(E_, {
|
|
14461
14461
|
deletable: !0,
|
|
@@ -14468,7 +14468,7 @@ var Ty = (e) => {
|
|
|
14468
14468
|
},
|
|
14469
14469
|
onDelete: () => {
|
|
14470
14470
|
let { tr: e } = t.state;
|
|
14471
|
-
e.delete(
|
|
14471
|
+
e.delete(u, u + n.nodeSize), D_(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
|
|
14472
14472
|
},
|
|
14473
14473
|
showDone: !1
|
|
14474
14474
|
}), t._tiptapContainerEl)] })]
|
|
@@ -21526,7 +21526,7 @@ var NE = ME, { commonMqFontStyles: PE, longdivStyles: FE, supsubStyles: IE } = s
|
|
|
21526
21526
|
"data-latex": "",
|
|
21527
21527
|
"data-raw": e.latex
|
|
21528
21528
|
},
|
|
21529
|
-
|
|
21529
|
+
s(e.latex, e.wrapper)
|
|
21530
21530
|
];
|
|
21531
21531
|
},
|
|
21532
21532
|
addNodeView() {
|
|
@@ -34342,7 +34342,7 @@ var lH = N("div")(({ theme: e }) => ({
|
|
|
34342
34342
|
preventDone = !1;
|
|
34343
34343
|
wrapperRef = dt.createRef(null);
|
|
34344
34344
|
componentDidUpdate() {
|
|
34345
|
-
this.focusedNodeRef && this.focusedNodeRef.focus("end"),
|
|
34345
|
+
this.focusedNodeRef && this.focusedNodeRef.focus("end"), se(this.wrapperRef.current);
|
|
34346
34346
|
}
|
|
34347
34347
|
onChoiceChanged = (e, t, n) => {
|
|
34348
34348
|
let { onChange: r, model: i } = this.props, { choices: a, correctResponse: o, alternateResponses: s } = i;
|
|
@@ -34486,12 +34486,12 @@ var _H = gH(He, "InputContainer") || gH(bH.InputContainer, "InputContainer"), vH
|
|
|
34486
34486
|
containerRef = dt.createRef();
|
|
34487
34487
|
componentDidMount() {
|
|
34488
34488
|
setTimeout(() => {
|
|
34489
|
-
this.containerRef.current &&
|
|
34489
|
+
this.containerRef.current && se(this.containerRef.current);
|
|
34490
34490
|
}, 0);
|
|
34491
34491
|
}
|
|
34492
34492
|
componentDidUpdate() {
|
|
34493
34493
|
setTimeout(() => {
|
|
34494
|
-
this.containerRef.current &&
|
|
34494
|
+
this.containerRef.current && se(this.containerRef.current);
|
|
34495
34495
|
}, 0);
|
|
34496
34496
|
}
|
|
34497
34497
|
render() {
|
|
@@ -34947,7 +34947,7 @@ var _H = gH(He, "InputContainer") || gH(bH.InputContainer, "InputContainer"), vH
|
|
|
34947
34947
|
}
|
|
34948
34948
|
});
|
|
34949
34949
|
this._root ||= Dt(this), this._root.render(e), setTimeout(() => {
|
|
34950
|
-
|
|
34950
|
+
se(this);
|
|
34951
34951
|
}, 0);
|
|
34952
34952
|
}
|
|
34953
34953
|
connectedCallback() {
|