MDL-84170 tiny_html: Regenerate for latest updates
The versions of the following dependencies have been updated as of integration: - codemirror/search: 6.5.9 => 6.5.10 - codemirror/view: 6.36.2 => 6.36.4
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -4379,14 +4379,14 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
||||
let moveX = 0, moveY = 0;
|
||||
if (y == "nearest") {
|
||||
if (rect.top < bounding.top) {
|
||||
moveY = -(bounding.top - rect.top + yMargin);
|
||||
moveY = rect.top - (bounding.top + yMargin);
|
||||
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
||||
moveY = rect.bottom - bounding.bottom + moveY + yMargin;
|
||||
moveY = rect.bottom - bounding.bottom + yMargin;
|
||||
}
|
||||
else if (rect.bottom > bounding.bottom) {
|
||||
moveY = rect.bottom - bounding.bottom + yMargin;
|
||||
if (side < 0 && (rect.top - moveY) < bounding.top)
|
||||
moveY = -(bounding.top + moveY - rect.top + yMargin);
|
||||
moveY = rect.top - (bounding.top + yMargin);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -4398,14 +4398,14 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
||||
}
|
||||
if (x == "nearest") {
|
||||
if (rect.left < bounding.left) {
|
||||
moveX = -(bounding.left - rect.left + xMargin);
|
||||
moveX = rect.left - (bounding.left + xMargin);
|
||||
if (side > 0 && rect.right > bounding.right + moveX)
|
||||
moveX = rect.right - bounding.right + moveX + xMargin;
|
||||
moveX = rect.right - bounding.right + xMargin;
|
||||
}
|
||||
else if (rect.right > bounding.right) {
|
||||
moveX = rect.right - bounding.right + xMargin;
|
||||
if (side < 0 && rect.left < bounding.left + moveX)
|
||||
moveX = -(bounding.left + moveX - rect.left + xMargin);
|
||||
moveX = rect.left - (bounding.left + xMargin);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -4440,6 +4440,10 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
||||
}
|
||||
if (top)
|
||||
break;
|
||||
if (rect.top < bounding.top || rect.bottom > bounding.bottom ||
|
||||
rect.left < bounding.left || rect.right > bounding.right)
|
||||
rect = { left: Math.max(rect.left, bounding.left), right: Math.min(rect.right, bounding.right),
|
||||
top: Math.max(rect.top, bounding.top), bottom: Math.min(rect.bottom, bounding.bottom) };
|
||||
cur = cur.assignedSlot || cur.parentNode;
|
||||
}
|
||||
else if (cur.nodeType == 11) { // A shadow root
|
||||
@@ -8453,7 +8457,10 @@ class InputState {
|
||||
return;
|
||||
if (event.type == "keydown" && this.keydown(event))
|
||||
return;
|
||||
this.runHandlers(event.type, event);
|
||||
if (this.view.updateState != 0 /* UpdateState.Idle */)
|
||||
Promise.resolve().then(() => this.runHandlers(event.type, event));
|
||||
else
|
||||
this.runHandlers(event.type, event);
|
||||
}
|
||||
runHandlers(type, event) {
|
||||
let handlers = this.handlers[type];
|
||||
@@ -11556,8 +11563,11 @@ class EditContextManager {
|
||||
return !abort;
|
||||
}
|
||||
update(update) {
|
||||
let reverted = this.pendingContextChange;
|
||||
if (this.composing && (this.composing.drifted || update.transactions.some(tr => !tr.isUserEvent("input.type") && tr.changes.touchesRange(this.from, this.to)))) {
|
||||
let reverted = this.pendingContextChange, startSel = update.startState.selection.main;
|
||||
if (this.composing &&
|
||||
(this.composing.drifted ||
|
||||
(!update.changes.touchesRange(startSel.from, startSel.to) &&
|
||||
update.transactions.some(tr => !tr.isUserEvent("input.type") && tr.changes.touchesRange(this.from, this.to))))) {
|
||||
this.composing.drifted = true;
|
||||
this.composing.editorBase = update.changes.mapPos(this.composing.editorBase);
|
||||
}
|
||||
@@ -13954,8 +13964,8 @@ class TooltipViewManager {
|
||||
}
|
||||
}
|
||||
function windowSpace(view) {
|
||||
let { win } = view;
|
||||
return { top: 0, left: 0, bottom: win.innerHeight, right: win.innerWidth };
|
||||
let docElt = view.dom.ownerDocument.documentElement;
|
||||
return { top: 0, left: 0, bottom: docElt.clientHeight, right: docElt.clientWidth };
|
||||
}
|
||||
const tooltipConfig = /*@__PURE__*/Facet.define({
|
||||
combine: values => {
|
||||
@@ -21878,7 +21888,15 @@ function createLineDialog(view) {
|
||||
event.preventDefault();
|
||||
go();
|
||||
}
|
||||
}, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", { class: "cm-button", type: "submit" }, view.state.phrase("go")));
|
||||
}, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", { class: "cm-button", type: "submit" }, view.state.phrase("go")), crelt("button", {
|
||||
name: "close",
|
||||
onclick: () => {
|
||||
view.dispatch({ effects: dialogEffect.of(false) });
|
||||
view.focus();
|
||||
},
|
||||
"aria-label": view.state.phrase("close"),
|
||||
type: "button"
|
||||
}, ["×"]));
|
||||
function go() {
|
||||
let match = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(input.value);
|
||||
if (!match)
|
||||
@@ -21942,7 +21960,17 @@ const gotoLine = view => {
|
||||
const baseTheme$1$1 = /*@__PURE__*/EditorView.baseTheme({
|
||||
".cm-panel.cm-gotoLine": {
|
||||
padding: "2px 6px 4px",
|
||||
"& label": { fontSize: "80%" }
|
||||
position: "relative",
|
||||
"& label": { fontSize: "80%" },
|
||||
"& [name=close]": {
|
||||
position: "absolute",
|
||||
top: "0", bottom: "0",
|
||||
right: "4px",
|
||||
backgroundColor: "inherit",
|
||||
border: "none",
|
||||
font: "inherit",
|
||||
padding: "0"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<location>amd/src/codemirror-lazy.js</location>
|
||||
<name>codemirror/search</name>
|
||||
<description>Search functionality for the CodeMirror code editor.</description>
|
||||
<version>6.5.9</version>
|
||||
<version>6.5.10</version>
|
||||
<license>MIT</license>
|
||||
<repository>https://github.com/codemirror/search</repository>
|
||||
</library>
|
||||
@@ -92,7 +92,7 @@
|
||||
<location>amd/src/codemirror-lazy.js</location>
|
||||
<name>codemirror/view</name>
|
||||
<description>DOM view component for the CodeMirror code editor.</description>
|
||||
<version>6.36.2</version>
|
||||
<version>6.36.4</version>
|
||||
<license>MIT</license>
|
||||
<repository>https://github.com/codemirror/view</repository>
|
||||
</library>
|
||||
|
||||
Reference in New Issue
Block a user