mediawiki-extensions-Visual.../.jsduck/categories.json
Roan Kattouw d371014e5d Load RL modules in one load.php request, rather than in two stages
This introduces TargetLoader, which manages plugins and RL modules
in a slightly more generic fashion so that Targets themselves don't
have to. This allows us to load all RL modules in one load.php
request, rather than first loading ViewPageTarget which then
loads the other modules.

TargetLoader loads in the bottom queue, so it will be loaded
as part of the main load.php request, but in VPT.init.js we
still have to wait for it with using() because it might not
have arrived yet. This also degrades gracefully on cached pages
where TargetLoader isn't in the bottom queue: it'll be loaded
as a separate request instead, which is suboptimal but no
worse that what we were doing before.

Right now TargetLoader is small enough that it could also be in
the top queue, but in the future we want to add things like
the action=visualeditor API request to it, and mw.Api is
relatively big.

Note: this also makes a breaking change to the plugin API:
plugin callbacks no longer receive the target instance
as a parameter, as they're now executed before the target
has been constructed rather than after. In the long term,
if we want to give plugins access to the target instance,
we could give them the target promise somehow. For now,
I've killed this feature because nothing used it and
the change from a direct object reference to a promise
would have been a breaking change anyway.

Also fixed incorrect documentation index for ve.init.mw.ViewPageTarget.init.

Bug: T53569
Change-Id: Ibfa6abbeaf872ae2aadc6ed9d5beba7473ea441a
2015-03-15 03:43:05 +01:00

272 lines
4.5 KiB
JSON

[
{
"name": "VisualEditor (MediaWiki extension)",
"groups": [
{
"name": "Initialization",
"classes": [
"mw.libs.ve*",
"ve.init.mw*",
"ve.version"
]
},
{
"name": "User Interface",
"classes": [
"ve.ui.MW*Page"
]
},
{
"name": "Data Model",
"classes": [
"ve.dm.MWMediaResource*"
]
}
]
},
{
"name": "Upstream (MediaWiki)",
"groups": [
{
"name": "MediaWiki",
"classes": [
"mw.Title"
]
}
]
},
{
"name": "VisualEditor (core)",
"groups": [
{
"name": "General",
"classes": [
"ve",
"ve.Range",
"ve.EventSequencer",
"ve.Filibuster",
"ve.TriggerListener",
"ve.Node",
"ve.BranchNode",
"ve.LeafNode",
"ve.Document"
]
},
{
"name": "Initialization",
"classes": [
"ve.init",
"ve.init.Platform",
"ve.init.Target",
"ve.init.sa*"
]
},
{
"name": "DataModel",
"classes": [
"ve.dm",
"ve.dm.Model",
"ve.dm.AnnotationFactory",
"ve.dm.MetaItemFactory",
"ve.dm.ModelRegistry",
"ve.dm.Converter",
"ve.dm.DataString",
"ve.dm.DocumentSynchronizer",
"ve.dm.IndexValueStore",
"ve.dm.Scalable",
"ve.dm.APIResultsProvider",
"ve.dm.APIResultsQueue",
"ve.dm.NodeFactory",
"ve.dm.Surface",
"ve.dm.SurfaceFragment",
"ve.dm.*Selection",
"ve.dm.Transaction",
"ve.dm.TransactionProcessor",
"ve.dm.TransactionProcessor.*",
"ve.dm.*Annotation",
"ve.dm.AnnotationSet",
"ve.dm.*MetaItem",
"ve.dm.MetaList",
"ve.dm.InternalList",
"ve.dm.Document*",
"ve.dm.*Node",
"ve.dm.*LinearData*",
"ve.dm.*Model",
"ve.dm.TableMatrix",
"ve.dm.TableMatrixCell",
"ve.dm.TableNodeCellIterator"
]
},
{
"name": "ContentEditable",
"classes": [
"ve.ce",
"ve.ce.View",
"ve.ce.AnnotationFactory",
"ve.ce.NodeFactory",
"ve.ce.Surface",
"ve.ce.SurfaceObserver",
"ve.ce.RangeState",
"ve.ce.*Annotation",
"ve.ce.Document",
"ve.ce.*Node"
]
},
{
"name": "User Interface",
"classes": [
"ve.ui",
"ve.ui.*Surface",
"ve.ui.*Context",
"ve.ui.Overlay",
"ve.ui.Toolbar",
"ve.ui.TargetToolbar",
"ve.ui.DebugBar",
"ve.ui.Trigger",
"ve.ui.*TransferHandler",
"ve.ui.DataTransferItem",
"ve.ui.*Action",
"ve.ui.*Command",
"ve.ui.*ContextItem",
"ve.ui.*Factory",
"ve.ui.*Page",
"ve.ui.*Registry",
"ve.ui.*Sequence",
"ve.ui.*Tool",
"ve.ui.*Widget",
"ve.ui.*WindowManager",
"ve.ui.*Dialog",
"ve.ui.*Inspector"
]
},
{
"name": "Tests",
"classes": [
"ve.QUnit",
"ve.QUnit.assert",
"ve.ce.TestOffset",
"ve.ce.TestRunner"
]
}
]
},
{
"name": "UnicodeJS",
"groups": [
{
"name": "UnicodeJS",
"classes": [
"unicodeJS",
"unicodeJS.TextString",
"unicodeJS.wordbreak",
"unicodeJS.graphemebreak",
"unicodeJS.characterclass"
]
}
]
},
{
"name": "OOJS UI",
"groups": [
{
"name": "General",
"classes": [
"OO.ui",
"OO.ui.ActionSet",
"OO.ui.Element",
"OO.ui.Layout",
"OO.ui.Widget",
"OO.ui.Window",
"OO.ui.Dialog",
"OO.ui.WindowManager",
"OO.ui.Error",
"OO.ui.Process",
"OO.ui.HtmlSnippet"
]
},
{
"name": "Elements",
"classes": [
"OO.ui.*Element"
]
},
{
"name": "Tools",
"classes": [
"OO.ui.*Tool",
"OO.ui.Tool*Factory"
]
},
{
"name": "Toolbar and tool groups",
"classes": [
"OO.ui.Toolbar",
"OO.ui.*ToolGroup"
]
},
{
"name": "Dialogs",
"classes": [
"OO.ui.*Dialog"
]
},
{
"name": "Layouts",
"classes": [
"OO.ui.*Layout"
]
},
{
"name": "Widgets",
"classes": [
"OO.ui.*Widget"
]
},
{
"name": "Themes",
"classes": [
"OO.ui.*Theme"
]
}
]
},
{
"name": "Upstream",
"groups": [
{
"name": "OOJS",
"classes": [
"OO",
"OO.EventEmitter",
"OO.Factory",
"OO.Registry"
]
},
{
"name": "jQuery",
"classes": [
"jQuery",
"jQuery.Event",
"jQuery.Promise",
"jQuery.Deferred",
"jQuery.jqXHR",
"QUnit"
]
},
{
"name": "JavaScript",
"classes": [
"Array",
"Boolean",
"Date",
"Function",
"Number",
"Object",
"RegExp",
"String"
]
}
]
}
]