mediawiki-skins-Vector/resources/skins.vector.es6
Jon Robson 450a395f95 SectionObserver should be updated at certain points in MediaWiki lifecycle
* When wikipage.tableOfContents is executed, the table of contents has been
replaced so we should update the sections associated with the section
observer as the old sections no longer exist in theDOM.
* If VisualEditor repaints the page, we should update the elements associated
with the table of contents as the body-content element no longer exists in the page.
* When VisuaLEditor is active we should disable the intersection observer as
there is no table of contents to update.

Minor changes:
* Light refactor of large function in main.js
* reloadTableOfContents returns a promise and now fires a new hook
wikipage.tableOfContents.vector to signal when it is finished which
has also been requested by community members. This allows the code in main.js
to update elements at relevant point in time
* Add FIXME note (doing this would have been considerable work)
* I've added a call to mw.log.warn which would have saved me considerable
debugging time for this issue to diagnose the issue.

Bug: T316037
Bug: T316025
Change-Id: Ib42d532d4e900c01061e1c5e39c03b17f0619c46
2023-02-23 01:39:46 +00:00
..
images Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
.eslintrc.json Limit WVUI search to ES6 browsers 2022-02-09 22:10:11 +00:00
AB.js Sticky header AB test bucketing for 2 treatment buckets 2022-08-08 21:14:02 +00:00
config.json Make beginning bold on scroll 2022-03-25 01:13:42 +00:00
deferUntilFrame.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
features.js Additional FIXME cleanup relating to moving feature classes from body 2023-02-08 10:49:13 -06:00
limitedWidthToggle.js Fire a simluated window resize event when toggling limited width 2023-01-31 10:08:10 -06:00
limitedWidthToggle.less Moves feature classes from BODY element to HTML element 2023-01-24 18:22:13 -06:00
main.js SectionObserver should be updated at certain points in MediaWiki lifecycle 2023-02-23 01:39:46 +00:00
pinnableElement.js Add setFocusToToggleButton function to pinnableElement.js 2023-02-01 14:31:53 -06:00
scrollObserver.js Cleanup: Remove unused TOC scroll hooks code 2023-02-22 16:00:33 +00:00
searchToggle.js Search: Use Codex and Vue 3 instead of WVUI and Vue 2. 2022-07-18 12:54:47 -07:00
sectionObserver.js SectionObserver should be updated at certain points in MediaWiki lifecycle 2023-02-23 01:39:46 +00:00
stickyHeader.js Update user links dropdown id 2023-02-16 11:21:56 -06:00
stickyHeaderAB.js Sticky header edit button A/B test bucketing (updated) 2022-05-31 15:58:35 -07:00
tableOfContents.js SectionObserver should be updated at certain points in MediaWiki lifecycle 2023-02-23 01:39:46 +00:00
tableOfContentsConfig.json [ToC] Show new/modified sections after publishing an edit (new floating ToC) 2022-08-15 20:02:49 +00:00