mediawiki-skins-Vector/resources
Nicholas Ray 17433b63fc Add hash fragment support to table of contents
Per T325086, the TOC should expand and activate the section that corresponds to
the window's hash fragment.

Additional changes:

* Moves logic  that runs on page load to determine the
intersection from section observer to main.js, since the hash fragment can
take precedence over the scroll position (e.g. when scrolled all the way to the
bottom).

* Make section observer's pause() cancel any pending intersection calculations
so that it doesn't interfere with other async logic.

* Moves onHeadingClick and onToggleClick logic to activate and expand a section
to tableOfContents.js to facilitate unit testing this behavior with clicks and
hash fragment changes.

Bug: T325086
Change-Id: I8a2cf0e6a96467fae97608450b321c181155e424
2023-03-09 00:33:37 -07:00
..
common Merge "Break words for long links" 2023-03-08 10:11:17 +00:00
mediawiki.less styles: Update opacity values to align with Codex design system 2023-03-07 13:42:46 -08:00
mediawiki.less.legacy
skins.vector.es6 Add hash fragment support to table of contents 2023-03-09 00:33:37 -07:00
skins.vector.js Register sticky header dropdown as icon capable 2023-03-03 17:09:41 +00:00
skins.vector.legacy.js
skins.vector.search search: Undo v-i18n-html workaround 2023-01-30 23:54:51 +00:00
skins.vector.styles Merge "styles: Update opacity values to align with Codex design system" 2023-03-08 00:26:32 +00:00
skins.vector.styles.legacy styles: Update opacity values to align with Codex design system 2023-03-07 13:42:46 -08:00
CheckboxHack.d.ts
CollapsibleTabsPlugin.d.ts
MediaWikiPageReady.d.ts
mw.d.ts
VectorResourceLoaderVirtualConfig.d.ts Remove $wgVectorSearchHost, replace with $wgVectorSearchApiUrl 2022-10-07 00:57:58 +00:00
vue.d.ts