dependencies: Upgrade simplebar to 4.0.0-alpha.6.

Fixes #12038.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-04-23 23:33:34 -07:00 committed by Tim Abbott
parent b4a54483ed
commit d4b060a520
4 changed files with 16 additions and 19 deletions

View File

@ -35,7 +35,7 @@
"plotly.js": "1.37.1",
"sass-loader": "7.0.1",
"script-loader": "0.7.2",
"simplebar": "^3.1.3",
"simplebar": "^4.0.0-alpha.6",
"sortablejs": "^1.7.0",
"sorttable": "1.0.2",
"source-map-loader": "0.2.3",

View File

@ -115,7 +115,6 @@ function scrollToHash(simplebar) {
if (html_map[path]) {
$(".markdown .content").html(html_map[path]);
render_code_sections();
markdownSB.recalculate();
scrollToHash(markdownSB);
} else {
loading.name = path;
@ -123,7 +122,6 @@ function scrollToHash(simplebar) {
html_map[path] = res;
$(".markdown .content").html(html_map[path]);
loading.name = null;
markdownSB.recalculate();
scrollToHash(markdownSB);
});
}
@ -138,9 +136,7 @@ function scrollToHash(simplebar) {
// Close other article's headings first
$('.sidebar ul').not($next).hide();
// Toggle the heading
$next.slideToggle("fast", "swing", function () {
markdownSB.recalculate();
});
$next.slideToggle("fast", "swing");
}
});
@ -196,10 +192,6 @@ function scrollToHash(simplebar) {
// to the right place.
scrollToHash(markdownSB);
window.onresize = function () {
markdownSB.recalculate();
};
window.addEventListener("popstate", function () {
var path = window.location.pathname;
update_page(html_map, path);

View File

@ -11,4 +11,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/03/01/zulip-2-0-relea
# Typically, adding a dependency only requires a minor version bump, and
# removing a dependency requires a major version bump.
PROVISION_VERSION = '30.3'
PROVISION_VERSION = '30.4'

View File

@ -2770,11 +2770,16 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
core-js@^2.0.0, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.6.2:
core-js@^2.0.0, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0:
version "2.6.5"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895"
integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==
core-js@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.0.1.tgz#1343182634298f7f38622f95e73f54e48ddf4738"
integrity sha512-sco40rF+2KlE0ROMvydjkrVMMG1vYilP2ALoRXcYR4obqbYIuV3Bg+51GEDW+HF8n7NRA+iaA4qD0nD9lo9mew==
core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@ -10139,7 +10144,7 @@ requires-port@^1.0.0:
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
resize-observer-polyfill@^1.5.0:
resize-observer-polyfill@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464"
integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==
@ -10687,17 +10692,17 @@ signum@^1.0.0:
resolved "https://registry.yarnpkg.com/signum/-/signum-1.0.0.tgz#74a7d2bf2a20b40eba16a92b152124f1d559fa77"
integrity sha1-dKfSvyogtA66FqkrFSEk8dVZ+nc=
simplebar@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/simplebar/-/simplebar-3.1.3.tgz#fa6c669d080d1a7514b277b2e27807bba1a6e118"
integrity sha512-IjRPRhAgBgKi9fo/lzvdf4q7rRkrgyyQ0lJ/LtqfZhByQPXsgRHCHWtYpTKA5VKEe9NxA5CTUNT7m4piwCucqA==
simplebar@^4.0.0-alpha.6:
version "4.0.0-alpha.6"
resolved "https://registry.yarnpkg.com/simplebar/-/simplebar-4.0.0-alpha.6.tgz#69b2822486b8950f2d7121773d0c52361b3a3b30"
integrity sha512-OWU0lrx1hI/o7WddOz1TNlvQQiNMTv6I6p06HQwC1NjYORxutNOWM56Z/au9tVAz551x+IZn6UAuQGjkCgDnNQ==
dependencies:
can-use-dom "^0.1.0"
core-js "^2.6.2"
core-js "^3.0.1"
lodash.debounce "^4.0.8"
lodash.memoize "^4.1.2"
lodash.throttle "^4.1.1"
resize-observer-polyfill "^1.5.0"
resize-observer-polyfill "^1.5.1"
scrollbarwidth "^0.1.3"
simplicial-complex-boundary@^1.0.0: