As a Wikibase Client JS developer I want quickly make jquery.wikibase.linkitem independent from modules outside of Wikibase client, in order to be able to change it freely without loading non-client modules.
Following on the finding of T255115, as an intermediate step "jquery.wikibase.linkitem" is to be made independent from Resource Loader modules defined outside of Wikibase client by copying over its dependencies to client directory, and making the said modules depend on those copies.
Dependencies:
Direct ResourceLoader Modules
//... 'dependencies' => [ 'jquery.spinner', // Not in Wikibase 'jquery.ui', // Not in wikibase 'jquery.ui.suggester', // WikibaseLib 'jquery.wikibase.siteselector', // WikibaseLib 'jquery.wikibase.wbtooltip', // WikibaseLib 'mediawiki.api', // Not in wikibase 'mediawiki.util', // Not in wikibase 'mediawiki.jqueryMsg', // Not in wikibase 'jquery.event.special.eachchange', // WikibaseLib 'wikibase.sites', // WikibaseLib 'wikibase.api.RepoApi', // WikibaseLib ] //...
jQuery Widgets
Direct usage:
- wikibase.siteselector
- wikibase.wbtooltip
- ui.suggester
Transitive Usage:
- ui.ooMenu
Global Variables
- wikibase.sites <-- Defined in WikibaseLib
- wikibase.api <-- Defined in WikibaseLib
Copies are to not be prevented from possibly diverging from their source files.
Acceptance criteria:
- jquery.wikibase.linkitem only depends on modules defined and containing files from the wikbase client part