mediawiki-extensions-ImageMap/extension.json
Subramanya Sastry d9a7fea019 Move Parsoid implementation of ImageMap from Parsoid repo
* There have been no changes to the code except for:
  - class is now called ParsoidImageMap with a matching file name
  - the namespace is changed to MediaWiki\Extension\ImageMap.
  - adding phan directives to deal with Parsoid's DOM proxies
    which phan doesn't seem to be see here.

* Parsoid's SiteConfig extension registration code simply overwrites
  the extConfig array for a tag name. So, keeping the config and
  implementation identical ensures that no matter which version of
  code is registered (based on load order), we get the same behavior.

* Once this rolls out on the next train, we can remove the code
  from Parsoid.

* Future patches might refactor the two implementations to extract
  common functionality or merge code into a single file.

Change-Id: I6cffa4420d2daa70174fa926d5c7a4d983792969
2023-09-19 16:21:40 -05:00

52 lines
982 B
JSON

{
"name": "ImageMap",
"author": [
"Tim Starling",
"Arlo Breault"
],
"url": "https://www.mediawiki.org/wiki/Extension:ImageMap",
"descriptionmsg": "imagemap_desc",
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.41"
},
"MessagesDirs": {
"ImageMap": [
"i18n"
]
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\Extension\\ImageMap\\ImageMap"
}
},
"Hooks": {
"ParserFirstCallInit": "main"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\ImageMap\\": "includes/"
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteExtPath": "ImageMap"
},
"ResourceModules": {
"ext.imagemap": {
"packageFiles": [
"resources/ext.imagemap.js"
],
"dependencies": [
"ext.imagemap.styles"
]
},
"ext.imagemap.styles": {
"styles": "resources/ext.imagemap.styles.less"
}
},
"ParsoidModules": [
"MediaWiki\\Extension\\ImageMap\\ParsoidImageMap"
],
"manifest_version": 2
}