update codemirror 5.65.6
This commit is contained in:
parent
944a7f23ef
commit
685ee625ee
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -10,7 +10,7 @@
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eight04/draggable-list": "^0.3.0",
|
"@eight04/draggable-list": "^0.3.0",
|
||||||
"codemirror": "5.65.2",
|
"codemirror": "5.65.6",
|
||||||
"db-to-cloud": "^0.7.0",
|
"db-to-cloud": "^0.7.0",
|
||||||
"jsonlint": "^1.6.3",
|
"jsonlint": "^1.6.3",
|
||||||
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
||||||
|
@ -1578,9 +1578,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/codemirror": {
|
"node_modules/codemirror": {
|
||||||
"version": "5.65.2",
|
"version": "5.65.6",
|
||||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.2.tgz",
|
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.6.tgz",
|
||||||
"integrity": "sha512-SZM4Zq7XEC8Fhroqe3LxbEEX1zUPWH1wMr5zxiBuiUF64iYOUH/JI88v4tBag8MiBS8B8gRv8O1pPXGYXQ4ErA=="
|
"integrity": "sha512-zNihMSMoDxK9Gqv9oEyDT8oM51rcRrQ+IEo2zyS48gJByBq5Fj8XuNEguMra+MuIOuh6lkpnLUJeL70DoTt6yw=="
|
||||||
},
|
},
|
||||||
"node_modules/color-convert": {
|
"node_modules/color-convert": {
|
||||||
"version": "1.9.3",
|
"version": "1.9.3",
|
||||||
|
@ -8602,9 +8602,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"codemirror": {
|
"codemirror": {
|
||||||
"version": "5.65.2",
|
"version": "5.65.6",
|
||||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.2.tgz",
|
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.6.tgz",
|
||||||
"integrity": "sha512-SZM4Zq7XEC8Fhroqe3LxbEEX1zUPWH1wMr5zxiBuiUF64iYOUH/JI88v4tBag8MiBS8B8gRv8O1pPXGYXQ4ErA=="
|
"integrity": "sha512-zNihMSMoDxK9Gqv9oEyDT8oM51rcRrQ+IEo2zyS48gJByBq5Fj8XuNEguMra+MuIOuh6lkpnLUJeL70DoTt6yw=="
|
||||||
},
|
},
|
||||||
"color-convert": {
|
"color-convert": {
|
||||||
"version": "1.9.3",
|
"version": "1.9.3",
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eight04/draggable-list": "^0.3.0",
|
"@eight04/draggable-list": "^0.3.0",
|
||||||
"codemirror": "5.65.2",
|
"codemirror": "5.65.6",
|
||||||
"db-to-cloud": "^0.7.0",
|
"db-to-cloud": "^0.7.0",
|
||||||
"jsonlint": "^1.6.3",
|
"jsonlint": "^1.6.3",
|
||||||
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
"less-bundle": "github:openstyles/less-bundle#v0.1.0",
|
||||||
|
|
2
vendor/codemirror/README.md
vendored
2
vendor/codemirror/README.md
vendored
|
@ -1,4 +1,4 @@
|
||||||
## codemirror v5.65.2
|
## codemirror v5.65.6
|
||||||
|
|
||||||
Files copied from NPM (node_modules):
|
Files copied from NPM (node_modules):
|
||||||
* addon/comment/comment.js
|
* addon/comment/comment.js
|
||||||
|
|
4
vendor/codemirror/addon/comment/comment.js
vendored
4
vendor/codemirror/addon/comment/comment.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
var baseString = null;
|
var baseString = null;
|
||||||
for (var i = from.line; i < end; ++i) {
|
for (var i = from.line; i < end; ++i) {
|
||||||
var line = self.getLine(i);
|
var line = self.getLine(i);
|
||||||
var whitespace = line.slice(0, firstNonWS(line));
|
var whitespace = line.search(nonWS) === -1 ? line : line.slice(0, firstNonWS(line));
|
||||||
if (baseString == null || baseString.length > whitespace.length) {
|
if (baseString == null || baseString.length > whitespace.length) {
|
||||||
baseString = whitespace;
|
baseString = whitespace;
|
||||||
}
|
}
|
||||||
|
|
2
vendor/codemirror/addon/dialog/dialog.js
vendored
2
vendor/codemirror/addon/dialog/dialog.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// Open simple dialogs on top of an editor. Relies on dialog.css.
|
// Open simple dialogs on top of an editor. Relies on dialog.css.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/fold/brace-fold.js
vendored
2
vendor/codemirror/addon/fold/brace-fold.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/fold/comment-fold.js
vendored
2
vendor/codemirror/addon/fold/comment-fold.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/fold/foldcode.js
vendored
2
vendor/codemirror/addon/fold/foldcode.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/fold/foldgutter.js
vendored
2
vendor/codemirror/addon/fold/foldgutter.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/fold/indent-fold.js
vendored
2
vendor/codemirror/addon/fold/indent-fold.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/addon/hint/css-hint.js
vendored
2
vendor/codemirror/addon/hint/css-hint.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
4
vendor/codemirror/addon/hint/show-hint.js
vendored
4
vendor/codemirror/addon/hint/show-hint.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// declare global: DOMRect
|
// declare global: DOMRect
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@
|
||||||
hints.style.width = (winW - 5) + "px";
|
hints.style.width = (winW - 5) + "px";
|
||||||
overlapX -= (box.right - box.left) - winW;
|
overlapX -= (box.right - box.left) - winW;
|
||||||
}
|
}
|
||||||
hints.style.left = (left = pos.left - overlapX - offsetLeft) + "px";
|
hints.style.left = (left = Math.max(pos.left - overlapX - offsetLeft, 0)) + "px";
|
||||||
}
|
}
|
||||||
if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling)
|
if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling)
|
||||||
node.style.paddingRight = cm.display.nativeBarWidth + "px"
|
node.style.paddingRight = cm.display.nativeBarWidth + "px"
|
||||||
|
|
2
vendor/codemirror/addon/lint/css-lint.js
vendored
2
vendor/codemirror/addon/lint/css-lint.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// Depends on csslint.js from https://github.com/stubbornella/csslint
|
// Depends on csslint.js from https://github.com/stubbornella/csslint
|
||||||
|
|
||||||
|
|
2
vendor/codemirror/addon/lint/json-lint.js
vendored
2
vendor/codemirror/addon/lint/json-lint.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// Depends on jsonlint.js from https://github.com/zaach/jsonlint
|
// Depends on jsonlint.js from https://github.com/zaach/jsonlint
|
||||||
|
|
||||||
|
|
2
vendor/codemirror/addon/lint/lint.js
vendored
2
vendor/codemirror/addon/lint/lint.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/keymap/emacs.js
vendored
2
vendor/codemirror/keymap/emacs.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
2
vendor/codemirror/keymap/sublime.js
vendored
2
vendor/codemirror/keymap/sublime.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// A rough approximation of Sublime Text's keybindings
|
// A rough approximation of Sublime Text's keybindings
|
||||||
// Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js
|
// Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js
|
||||||
|
|
2
vendor/codemirror/keymap/vim.js
vendored
2
vendor/codemirror/keymap/vim.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supported keybindings:
|
* Supported keybindings:
|
||||||
|
|
32
vendor/codemirror/lib/codemirror.js
vendored
32
vendor/codemirror/lib/codemirror.js
vendored
|
@ -1,7 +1,7 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
// This is CodeMirror (https://codemirror.net), a code editor
|
// This is CodeMirror (https://codemirror.net/5), a code editor
|
||||||
// implemented in JavaScript on top of the browser's DOM.
|
// implemented in JavaScript on top of the browser's DOM.
|
||||||
//
|
//
|
||||||
// You can find some technical background for some of the code below
|
// You can find some technical background for some of the code below
|
||||||
|
@ -26,7 +26,8 @@
|
||||||
var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);
|
var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);
|
||||||
var webkit = !edge && /WebKit\//.test(userAgent);
|
var webkit = !edge && /WebKit\//.test(userAgent);
|
||||||
var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
|
var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
|
||||||
var chrome = !edge && /Chrome\//.test(userAgent);
|
var chrome = !edge && /Chrome\/(\d+)/.exec(userAgent);
|
||||||
|
var chrome_version = chrome && +chrome[1];
|
||||||
var presto = /Opera\//.test(userAgent);
|
var presto = /Opera\//.test(userAgent);
|
||||||
var safari = /Apple Computer/.test(navigator.vendor);
|
var safari = /Apple Computer/.test(navigator.vendor);
|
||||||
var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
|
var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
|
||||||
|
@ -1324,7 +1325,7 @@
|
||||||
// Add a span to a line.
|
// Add a span to a line.
|
||||||
function addMarkedSpan(line, span, op) {
|
function addMarkedSpan(line, span, op) {
|
||||||
var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));
|
var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));
|
||||||
if (inThisOp && inThisOp.has(line.markedSpans)) {
|
if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
|
||||||
line.markedSpans.push(span);
|
line.markedSpans.push(span);
|
||||||
} else {
|
} else {
|
||||||
line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
|
line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
|
||||||
|
@ -3696,13 +3697,13 @@
|
||||||
NativeScrollbars.prototype.zeroWidthHack = function () {
|
NativeScrollbars.prototype.zeroWidthHack = function () {
|
||||||
var w = mac && !mac_geMountainLion ? "12px" : "18px";
|
var w = mac && !mac_geMountainLion ? "12px" : "18px";
|
||||||
this.horiz.style.height = this.vert.style.width = w;
|
this.horiz.style.height = this.vert.style.width = w;
|
||||||
this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
|
this.horiz.style.visibility = this.vert.style.visibility = "hidden";
|
||||||
this.disableHoriz = new Delayed;
|
this.disableHoriz = new Delayed;
|
||||||
this.disableVert = new Delayed;
|
this.disableVert = new Delayed;
|
||||||
};
|
};
|
||||||
|
|
||||||
NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
|
NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {
|
||||||
bar.style.pointerEvents = "auto";
|
bar.style.visibility = "";
|
||||||
function maybeDisable() {
|
function maybeDisable() {
|
||||||
// To find out whether the scrollbar is still visible, we
|
// To find out whether the scrollbar is still visible, we
|
||||||
// check whether the element under the pixel in the bottom
|
// check whether the element under the pixel in the bottom
|
||||||
|
@ -3713,7 +3714,7 @@
|
||||||
var box = bar.getBoundingClientRect();
|
var box = bar.getBoundingClientRect();
|
||||||
var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)
|
var elt = type == "vert" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)
|
||||||
: document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
|
: document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);
|
||||||
if (elt != bar) { bar.style.pointerEvents = "none"; }
|
if (elt != bar) { bar.style.visibility = "hidden"; }
|
||||||
else { delay.set(1000, maybeDisable); }
|
else { delay.set(1000, maybeDisable); }
|
||||||
}
|
}
|
||||||
delay.set(1000, maybeDisable);
|
delay.set(1000, maybeDisable);
|
||||||
|
@ -4509,6 +4510,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onScrollWheel(cm, e) {
|
function onScrollWheel(cm, e) {
|
||||||
|
// On Chrome 102, viewport updates somehow stop wheel-based
|
||||||
|
// scrolling. Turning off pointer events during the scroll seems
|
||||||
|
// to avoid the issue.
|
||||||
|
if (chrome && chrome_version >= 102) {
|
||||||
|
if (cm.display.chromeScrollHack == null) { cm.display.sizer.style.pointerEvents = "none"; }
|
||||||
|
else { clearTimeout(cm.display.chromeScrollHack); }
|
||||||
|
cm.display.chromeScrollHack = setTimeout(function () {
|
||||||
|
cm.display.chromeScrollHack = null;
|
||||||
|
cm.display.sizer.style.pointerEvents = "";
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;
|
var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;
|
||||||
var pixelsPerUnit = wheelPixelsPerUnit;
|
var pixelsPerUnit = wheelPixelsPerUnit;
|
||||||
if (e.deltaMode === 0) {
|
if (e.deltaMode === 0) {
|
||||||
|
@ -5192,7 +5204,7 @@
|
||||||
var range = sel.ranges[i];
|
var range = sel.ranges[i];
|
||||||
var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
|
var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
|
||||||
var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
|
var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
|
||||||
var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
var newHead = range.head == range.anchor ? newAnchor : skipAtomic(doc, range.head, old && old.head, bias, mayClear);
|
||||||
if (out || newAnchor != range.anchor || newHead != range.head) {
|
if (out || newAnchor != range.anchor || newHead != range.head) {
|
||||||
if (!out) { out = sel.ranges.slice(0, i); }
|
if (!out) { out = sel.ranges.slice(0, i); }
|
||||||
out[i] = new Range(newAnchor, newHead);
|
out[i] = new Range(newAnchor, newHead);
|
||||||
|
@ -8197,7 +8209,7 @@
|
||||||
var pasted = e.clipboardData && e.clipboardData.getData("Text");
|
var pasted = e.clipboardData && e.clipboardData.getData("Text");
|
||||||
if (pasted) {
|
if (pasted) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!cm.isReadOnly() && !cm.options.disableInput)
|
if (!cm.isReadOnly() && !cm.options.disableInput && cm.hasFocus())
|
||||||
{ runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, "paste"); }); }
|
{ runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, "paste"); }); }
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -9842,7 +9854,7 @@
|
||||||
|
|
||||||
addLegacyProps(CodeMirror);
|
addLegacyProps(CodeMirror);
|
||||||
|
|
||||||
CodeMirror.version = "5.65.2";
|
CodeMirror.version = "5.65.6";
|
||||||
|
|
||||||
return CodeMirror;
|
return CodeMirror;
|
||||||
|
|
||||||
|
|
16
vendor/codemirror/mode/css/css.js
vendored
16
vendor/codemirror/mode/css/css.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
@ -631,7 +631,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
||||||
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
||||||
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
||||||
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
||||||
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel",
|
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button",
|
||||||
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
||||||
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
||||||
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
||||||
|
@ -669,14 +669,10 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
|
||||||
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
||||||
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
||||||
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
||||||
"media-controls-background", "media-current-time-display",
|
"media-play-button", "media-slider", "media-sliderthumb",
|
||||||
"media-fullscreen-button", "media-mute-button", "media-play-button",
|
"media-volume-slider", "media-volume-sliderthumb", "medium",
|
||||||
"media-return-to-realtime-button", "media-rewind-button",
|
"menu", "menulist", "menulist-button",
|
||||||
"media-seek-back-button", "media-seek-forward-button", "media-slider",
|
"menutext", "message-box", "middle", "min-intrinsic",
|
||||||
"media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
|
|
||||||
"media-volume-slider-container", "media-volume-sliderthumb", "medium",
|
|
||||||
"menu", "menulist", "menulist-button", "menulist-text",
|
|
||||||
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
|
|
||||||
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
||||||
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
||||||
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
||||||
|
|
||||||
(function(mod) {
|
(function(mod) {
|
||||||
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
|
4
vendor/codemirror/mode/stylus/stylus.js
vendored
4
vendor/codemirror/mode/stylus/stylus.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user