mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 19:09:29 +00:00
0ba7480901
This comes with a few significant changes: * A whole bunch of places in the code that focus and highlight an element in the old sidebar consider the new sidebar now. * Same when e.g. the toolbar at the bottom needs to know which part is selected. This is read from the new sidebar now. * To make this possible I had to merge the small helper class we introduced in I7bc73cc back into the dialog. It's helpful to understand how the event flow works: * You click a template name. This does nothing (does not select the element). It only triggers an event. * The event is catched by the outer container that manages all parts. From there all elements are unselected, and one selected. This call is internal and should not trigger another event. Bug: T285323 Bug: T288827 Bug: T289043 Change-Id: I4a2d2b83cf2691423d4b0e6f4487228fa3c7b56d
83 lines
1.2 KiB
JSON
83 lines
1.2 KiB
JSON
[
|
|
{
|
|
"name": "VisualEditor (MediaWiki extension)",
|
|
"groups": [
|
|
{
|
|
"name": "Initialization",
|
|
"classes": [
|
|
"mw.libs.ve*",
|
|
"ve.init.mw*"
|
|
]
|
|
},
|
|
{
|
|
"name": "Switching",
|
|
"classes": [
|
|
"mw.libs.ve.SwitchConfirmDialog",
|
|
"mw.libs.ve.MWEditMode*Tool"
|
|
]
|
|
},
|
|
{
|
|
"name": "User Interface",
|
|
"classes": [
|
|
"ve.ui.MW*Page",
|
|
"ve.ui.MW*Window"
|
|
]
|
|
},
|
|
{
|
|
"name": "Visual Diffing",
|
|
"classes": [
|
|
"ve.dm.VisualDiff",
|
|
"ve.DiffMatchPatch",
|
|
"ve.DiffTreeNode",
|
|
"ve.ui.DiffDialog",
|
|
"ve.ui.DiffElement"
|
|
]
|
|
},
|
|
{
|
|
"name": "Data Model",
|
|
"classes": [
|
|
"ve.dm.MW*Surface",
|
|
"ve.dm.MW*SurfaceFragment"
|
|
]
|
|
},
|
|
{
|
|
"name": "ContentEditable",
|
|
"classes": [
|
|
"ve.ce.MW*Surface"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "VisualEditor (core) unused parts",
|
|
"groups": [
|
|
{
|
|
"name": "Standalone",
|
|
"classes": [
|
|
"ve.init.sa*"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Upstream (MediaWiki)",
|
|
"groups": [
|
|
{
|
|
"name": "MediaWiki",
|
|
"classes": [
|
|
"mw.Api",
|
|
"mw.Message",
|
|
"mw.Title",
|
|
"mw.widgets.*Widget"
|
|
]
|
|
},
|
|
{
|
|
"name": "MobileFrontend",
|
|
"classes": [
|
|
"VisualEditorOverlay"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|