Following T353844, stop using @wikimedia/codex-search and codex-search-styles, instead use the new skins.vector.search.codex.styles module.
This will increase CSS bytes by a modest 1.2kb
TODO
- Create a new module skins.vector.search.codex.scripts that can replace @wikimedia/codex-search
- Replace codex-search-styles with the existing skins.vector.search.codex.styles
- Disable the interface-message-box feature in the skins.vector.styles definition - these styles are now provided by Codex.
Checklist
- Make sure skins.vector.search.codex.scripts only requires CdxTypeaheadSearch component and codexScriptOnly is set to true:
"skins.vector.search.codex.scripts": { "class": "MediaWiki\\ResourceLoader\\CodexModule", "codexScriptOnly": true, "codexComponents": [ "CdxTypeaheadSearch" ] }
- Make sure skins.vector.search.codex.scripts module is loaded and available to use. mw.loader.load/mw.loader.using or skin.json required module
- Update skins.vector.search/App.vue { CdxTypeaheadSearch } = require( '@wikimedia/codex-search' ) should be updated to use skins.vector.search.codex.scripts
{ CdxTypeaheadSearch } = require( 'skins.vector.search.codex.scripts' )