These methods do not belong on the jQuery object. And to resolve T185948, we need to also add codePointLength and trimCodePointLength, and this new module seems like a good place to put them. There is no `mw.String` global, this module has to be used via `require()`. Deprecations: * Function `$.byteLength` (from module 'jquery.byteLength') is deprecated, use `require( 'mediawiki.String' ).byteLength` instead. * Function `$.trimByteLength` (from module 'jquery.byteLimit') is deprecated, use `require( 'mediawiki.String' ).trimByteLength` instead. * Module 'jquery.byteLength' is deprecated, use 'mediawiki.String' instead. Note that `$.fn.byteLimit` and the 'jquery.byteLimit' module are not deprecated. Change-Id: I2501a79efee644e5f4a9f5c977fe49c8c05c6eb3
136 lines
2.2 KiB
JSON
136 lines
2.2 KiB
JSON
[
|
|
{
|
|
"name": "MediaWiki",
|
|
"groups": [
|
|
{
|
|
"name": "Base",
|
|
"classes": [
|
|
"mw",
|
|
"mw.Message",
|
|
"mw.loader",
|
|
"mw.loader.store",
|
|
"mw.html",
|
|
"mw.html.Cdata",
|
|
"mw.html.Raw",
|
|
"mw.hook",
|
|
"mw.template",
|
|
"mw.errorLogger"
|
|
]
|
|
},
|
|
{
|
|
"name": "General",
|
|
"classes": [
|
|
"mw.Title",
|
|
"mw.Uri",
|
|
"mw.RegExp",
|
|
"mw.String",
|
|
"mw.messagePoster.*",
|
|
"mw.notification",
|
|
"mw.Notification_",
|
|
"mw.storage",
|
|
"mw.storage.session",
|
|
"mw.user",
|
|
"mw.util",
|
|
"mw.plugin.*",
|
|
"mw.cookie",
|
|
"mw.experiments",
|
|
"mw.viewport",
|
|
"mw.htmlform.*",
|
|
"mw.visibleTimeout"
|
|
]
|
|
},
|
|
{
|
|
"name": "Actions",
|
|
"classes": ["mw.toolbar"]
|
|
},
|
|
{
|
|
"name": "API",
|
|
"classes": ["mw.Api*", "mw.ForeignApi*"]
|
|
},
|
|
{
|
|
"name": "Language",
|
|
"classes": [
|
|
"mw.language*",
|
|
"mw.cldr",
|
|
"mw.jqueryMsg"
|
|
]
|
|
},
|
|
{
|
|
"name": "Interfaces",
|
|
"classes": [
|
|
"mw.Feedback*",
|
|
"mw.Upload*",
|
|
"mw.ForeignUpload",
|
|
"mw.ForeignStructuredUpload*",
|
|
"mw.GallerySlideshow",
|
|
"mw.rcfilters*"
|
|
]
|
|
},
|
|
{
|
|
"name": "Widgets",
|
|
"classes": [
|
|
"mw.widgets*"
|
|
]
|
|
},
|
|
{
|
|
"name": "Special",
|
|
"classes": [
|
|
"mw.special*"
|
|
]
|
|
},
|
|
{
|
|
"name": "Development",
|
|
"classes": [
|
|
"mw.log",
|
|
"mw.inspect",
|
|
"mw.inspect.reports",
|
|
"mw.Debug"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "jQuery",
|
|
"groups": [
|
|
{
|
|
"name": "Plugins",
|
|
"classes": [
|
|
"jQuery.client",
|
|
"jQuery.colorUtil",
|
|
"jQuery.plugin.*"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Upstream",
|
|
"groups": [
|
|
{
|
|
"name": "OOjs",
|
|
"classes": [
|
|
"OO",
|
|
"OO.EmitterList",
|
|
"OO.EventEmitter",
|
|
"OO.Factory",
|
|
"OO.Registry",
|
|
"OO.SortedEmitterList"
|
|
]
|
|
},
|
|
{
|
|
"name": "OOUI",
|
|
"classes": [
|
|
"OO.ui",
|
|
"OO.ui.*"
|
|
]
|
|
},
|
|
{
|
|
"name": "jQuery",
|
|
"classes": ["jQuery", "jQuery.Event", "jQuery.Callbacks", "jQuery.Promise", "jQuery.Deferred", "jQuery.jqXHR", "QUnit"]
|
|
},
|
|
{
|
|
"name": "JavaScript",
|
|
"classes": ["Array", "Boolean", "Date", "Function", "Number", "Object", "RegExp", "String"]
|
|
}
|
|
]
|
|
}
|
|
]
|