mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
a49cdb37cc
The schema introduces a new field called `hovercardsSuppressedByGadget`, which is `true` when the Navigation Popups gadget, rather than the Popups extensions, is being used to fetch and display article summary. Note that it may take some time before the Navigation Popups gadget is loaded onto the page, thus actions taking place before this happens will record the value of `hovercardsSuppressedByGadget` as `false`. This is mostly the case with the `pageLoaded` action which almost always happens before the gadget code is loaded. Bug: T137203 Change-Id: Ie31deea7ae2323d6a346c67ed84fdf587ad55bd1
137 lines
3.4 KiB
JSON
137 lines
3.4 KiB
JSON
{
|
|
"name": "Popups",
|
|
"author": [
|
|
"Prateek Saxena",
|
|
"Yair Rand"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Popups",
|
|
"descriptionmsg": "popups-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "betafeatures",
|
|
"AutoloadClasses": {
|
|
"PopupsHooks": "Popups.hooks.php"
|
|
},
|
|
"ConfigRegistry": {
|
|
"popups": "GlobalVarConfig::newInstance"
|
|
},
|
|
"Hooks": {
|
|
"GetBetaFeaturePreferences": [
|
|
"PopupsHooks::getPreferences"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"PopupsHooks::onBeforePageDisplay"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"PopupsHooks::onResourceLoaderTestModules"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"PopupsHooks::onResourceLoaderRegisterModules"
|
|
],
|
|
"ResourceLoaderGetConfigVars": [
|
|
"PopupsHooks::onResourceLoaderGetConfigVars"
|
|
],
|
|
"BeforePageDisplayMobile": [
|
|
"PopupsHooks::onBeforePageDisplayMobile"
|
|
],
|
|
"MakeGlobalVariablesScript": [
|
|
"PopupsHooks::onMakeGlobalVariablesScript"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"Popups": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"EventLoggingSchemas": {
|
|
"Popups": 15777589
|
|
},
|
|
"config": {
|
|
"@PopupsBetaFeature": "@var bool: Whether the extension should be enabled as an opt-in beta feature. If true, the BetaFeatures extension must be installed. False by default.",
|
|
"PopupsBetaFeature": false,
|
|
"@PopupsSurveyLink": "@var bool|string: When defined a link will be rendered at the bottom of the popup for the user to provide feedback. The URL must start with https or http. If not, then an error is thrown client-side. The link is annotated with `rel=\"noreferrer\"` so no referrer information or `window.opener` is leaked to the survey hosting site (see https://html.spec.whatwg.org/multipage/semantics.html#link-type-noreferrer for more information).",
|
|
"PopupsSurveyLink": false,
|
|
"EnablePopupsMobile": false,
|
|
"@SchemaPopupsSamplingRate": "@var number: Sample rate for logging events to Schema:Popups.",
|
|
"SchemaPopupsSamplingRate": 0.1,
|
|
"PopupsExperiment": false
|
|
},
|
|
"DefaultUserOptions": {
|
|
"popupsmobile": "1"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.popups.core": {
|
|
"scripts": [
|
|
"resources/ext.popups.core.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.api",
|
|
"mediawiki.Title",
|
|
"mediawiki.Uri",
|
|
"mediawiki.RegExp"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"styles": [
|
|
"resources/ext.popups.core.less"
|
|
]
|
|
},
|
|
"ext.popups.targets.desktopTarget": {
|
|
"scripts": [
|
|
"resources/ext.popups.targets/desktopTarget.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.storage",
|
|
"jquery.client",
|
|
"ext.popups.core",
|
|
"ext.popups.renderer.desktopRenderer",
|
|
"ext.popups.experiment"
|
|
],
|
|
"targets": [ "desktop" ]
|
|
},
|
|
"ext.popups.renderer.desktopRenderer": {
|
|
"scripts": [
|
|
"resources/ext.popups.renderer/desktopRenderer.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.popups.core"
|
|
]
|
|
},
|
|
"ext.popups.experiment": {
|
|
"scripts": [
|
|
"resources/ext.popups.experiment.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.popups.core",
|
|
"mediawiki.user",
|
|
"mediawiki.storage",
|
|
"mediawiki.experiments"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.popups.schemaPopups.utils": {
|
|
"scripts": [
|
|
"resources/ext.popups.schemaPopups.utils.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.experiments",
|
|
"mediawiki.Title",
|
|
"mediawiki.user",
|
|
"ext.popups.core",
|
|
"ext.popups.renderer.desktopRenderer"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "Popups"
|
|
},
|
|
"manifest_version": 1
|
|
}
|