2015-08-11 07:12:51 +00:00
{
"name" : "CodeMirror" ,
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"version" : "6.0.0" ,
2015-08-11 07:12:51 +00:00
"author" : [
"[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]" ,
2020-02-24 20:08:02 +00:00
"[https://www.mediawiki.org/wiki/User:Florianschmidtwelzow Florian Schmidt]" ,
"Marijn Haverbeke" ,
2023-09-19 17:59:29 +00:00
"MusikAnimal" ,
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"Bhsd" ,
2020-02-24 20:08:02 +00:00
"[https://raw.githubusercontent.com/codemirror/CodeMirror/master/AUTHORS CodeMirror contributors]"
2015-08-11 07:12:51 +00:00
] ,
"url" : "https://www.mediawiki.org/wiki/Extension:CodeMirror" ,
"descriptionmsg" : "codemirror-desc" ,
2018-04-26 07:33:09 +00:00
"type" : "editor" ,
2018-01-04 10:55:40 +00:00
"license-name" : "GPL-2.0-or-later" ,
2017-07-07 22:57:54 +00:00
"requires" : {
2024-08-22 20:48:01 +00:00
"MediaWiki" : ">= 1.43"
2017-07-18 18:13:46 +00:00
} ,
2020-12-11 11:30:44 +00:00
"config" : {
2023-09-19 17:59:29 +00:00
"CodeMirrorV6" : {
"value" : false ,
"description" : "Temporary feature flag for the CodeMirror 6 upgrade."
2023-10-10 19:23:03 +00:00
} ,
"CodeMirrorConflictingGadgets" : {
"value" : [
2023-11-27 22:17:45 +00:00
"wikEd"
2023-10-10 19:23:03 +00:00
] ,
"description" : "An array of gadget names that, if enabled, will prevent CodeMirror from loading on action=edit and action=submit." ,
"public" : true
2024-03-11 18:10:08 +00:00
} ,
"CodeMirrorTemplateFoldingNamespaces" : {
"value" : null ,
"description" : "List of namespace IDs where template folding should be enabled, or `null` to enable for all namespaces. Set to [] to disable everywhere." ,
"public" : true
} ,
"CodeMirrorLineNumberingNamespaces" : {
"value" : null ,
"description" : "List of namespace IDs where line numbering should be enabled, or `null` to enable for all namespaces. Set to [] to disable everywhere." ,
"public" : true
2020-12-11 11:30:44 +00:00
}
} ,
2015-08-11 07:12:51 +00:00
"MessagesDirs" : {
"CodeMirror" : [
"i18n"
]
} ,
2022-02-06 15:13:05 +00:00
"AutoloadNamespaces" : {
"MediaWiki\\Extension\\CodeMirror\\" : "includes/"
2015-08-11 07:12:51 +00:00
} ,
"ResourceModules" : {
2017-04-28 13:42:30 +00:00
"ext.CodeMirror" : {
2015-08-11 07:12:51 +00:00
"dependencies" : [
2017-04-18 07:51:32 +00:00
"mediawiki.api" ,
2017-08-24 09:11:03 +00:00
"mediawiki.user" ,
2023-08-17 04:58:59 +00:00
"user.options"
] ,
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/ext.CodeMirror.js" ,
2023-08-17 04:58:59 +00:00
{
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"name" : "legacy/ext.CodeMirror.data.js" ,
2023-08-17 04:58:59 +00:00
"callback" : "MediaWiki\\Extension\\CodeMirror\\DataScript::makeScript"
}
]
} ,
"ext.CodeMirror.WikiEditor" : {
"dependencies" : [
"ext.CodeMirror" ,
"jquery.textSelection" ,
"mediawiki.user" ,
2017-06-26 23:37:48 +00:00
"user.options" ,
2018-03-22 14:52:27 +00:00
"oojs-ui.styles.icons-editing-styling"
2015-08-11 07:12:51 +00:00
] ,
2023-08-17 04:58:59 +00:00
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/ext.CodeMirror.WikiEditor.js"
2015-08-11 07:12:51 +00:00
] ,
2017-03-22 12:42:45 +00:00
"styles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/ext.CodeMirror.less"
2017-03-22 12:42:45 +00:00
] ,
2015-08-11 07:12:51 +00:00
"messages" : [
2018-04-12 22:14:15 +00:00
"codemirror-toggle-label"
2015-08-11 07:12:51 +00:00
]
} ,
"ext.CodeMirror.lib" : {
"scripts" : [
2017-04-28 13:42:30 +00:00
"lib/codemirror/lib/codemirror.js"
2015-08-11 07:12:51 +00:00
] ,
"styles" : [
2020-02-18 13:53:10 +00:00
"lib/codemirror/lib/codemirror.css" ,
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/codemirror-fixes.less"
2017-04-28 13:42:30 +00:00
]
} ,
2020-12-11 11:30:44 +00:00
"ext.CodeMirror.addons" : {
"scripts" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/addon/matchbrackets-wmde.js"
2020-12-11 11:30:44 +00:00
] ,
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
2017-04-28 13:42:30 +00:00
"ext.CodeMirror.mode.mediawiki" : {
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"packageFiles" : "legacy/mode/mediawiki/mediawiki.js" ,
2021-03-04 14:42:50 +00:00
"styles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.mediawiki.less" ,
"codemirror.mediawiki.colorblind.less"
2021-03-04 14:42:50 +00:00
] ,
2017-04-28 13:42:30 +00:00
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.css" : {
"scripts" : "lib/codemirror/mode/css/css.js" ,
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.javascript" : {
"scripts" : "lib/codemirror/mode/javascript/javascript.js" ,
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.xml" : {
"scripts" : "lib/codemirror/mode/xml/xml.js" ,
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.htmlmixed" : {
"scripts" : "lib/codemirror/mode/htmlmixed/htmlmixed.js" ,
"dependencies" : [
"ext.CodeMirror.lib.mode.xml" ,
"ext.CodeMirror.lib.mode.javascript" ,
"ext.CodeMirror.lib.mode.css" ,
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.clike" : {
"scripts" : "lib/codemirror/mode/clike/clike.js" ,
"dependencies" : [
"ext.CodeMirror.lib"
]
} ,
"ext.CodeMirror.lib.mode.php" : {
"scripts" : "lib/codemirror/mode/php/php.js" ,
"dependencies" : [
"ext.CodeMirror.lib.mode.htmlmixed" ,
"ext.CodeMirror.lib.mode.clike" ,
"ext.CodeMirror.lib"
2015-08-11 07:12:51 +00:00
]
2017-03-21 14:42:04 +00:00
} ,
"ext.CodeMirror.visualEditor" : {
"dependencies" : [
"ext.visualEditor.mwcore" ,
2023-06-21 16:09:44 +00:00
"ext.visualEditor.mwmeta" ,
2017-03-21 14:42:04 +00:00
"mediawiki.api" ,
2023-08-17 04:58:59 +00:00
"user.options" ,
"ext.CodeMirror"
2017-03-21 14:42:04 +00:00
] ,
"scripts" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"legacy/modules/ve-cm/ve.ui.CodeMirrorAction.js" ,
"legacy/modules/ve-cm/ve.ui.CodeMirrorTool.js"
2023-06-21 16:09:44 +00:00
] ,
"styles" : [
2024-08-01 21:39:43 +00:00
"legacy/modules/ve-cm/ve.ui.CodeMirror.less" ,
"legacy/ext.CodeMirror.less"
2023-06-21 16:09:44 +00:00
] ,
"messages" : [
"codemirror-toggle-label"
2017-03-21 14:42:04 +00:00
]
2023-09-19 17:59:29 +00:00
} ,
2024-03-13 04:24:53 +00:00
"ext.CodeMirror.v6" : {
2024-08-01 21:39:43 +00:00
"class" : "MediaWiki\\ResourceLoader\\CodexModule" ,
2023-09-19 17:59:29 +00:00
"dependencies" : [
"mediawiki.api" ,
"mediawiki.user" ,
2024-01-13 03:21:12 +00:00
"user.options" ,
2024-03-13 04:24:53 +00:00
"ext.CodeMirror.v6.lib"
2023-09-19 17:59:29 +00:00
] ,
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.js" ,
"codemirror.textSelection.js" ,
2024-08-01 21:39:43 +00:00
"codemirror.search.js" ,
"codemirror.gotoLine.js" ,
"codemirror.panel.js" ,
2024-02-14 01:01:08 +00:00
{
"name" : "ext.CodeMirror.data.js" ,
"callback" : "MediaWiki\\Extension\\CodeMirror\\DataScript::makeScript"
}
2023-09-19 17:59:29 +00:00
] ,
"styles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.less"
2023-09-19 17:59:29 +00:00
] ,
2024-08-01 21:39:43 +00:00
"codexStyleOnly" : true ,
"codexComponents" : [
"CdxButton" ,
"CdxCheckbox" ,
"CdxLabel" ,
"CdxTextInput" ,
"CdxToggleButton" ,
"CdxToggleButtonGroup"
] ,
2024-01-13 03:21:12 +00:00
"messages" : [
2024-08-01 21:39:43 +00:00
"codemirror-all" ,
"codemirror-all-tooltip" ,
"codemirror-by-word" ,
"codemirror-control-character" ,
"codemirror-done" ,
2024-01-13 03:21:12 +00:00
"codemirror-find" ,
2024-08-01 21:39:43 +00:00
"codemirror-fold-template" ,
"codemirror-folded-code" ,
"codemirror-goto-line" ,
"codemirror-goto-line-go" ,
"codemirror-match-case" ,
2024-01-13 03:21:12 +00:00
"codemirror-next" ,
"codemirror-previous" ,
"codemirror-regexp" ,
"codemirror-replace" ,
2024-01-19 00:33:58 +00:00
"codemirror-replace-all" ,
2024-08-01 21:39:43 +00:00
"codemirror-replace-placeholder" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-backspace" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-bell" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-carriage-return" ,
"codemirror-special-char-escape" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-left-to-right-isolate" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-left-to-right-mark" ,
"codemirror-special-char-left-to-right-override" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-line-separator" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-narrow-nbsp" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-nbsp" ,
"codemirror-special-char-newline" ,
"codemirror-special-char-null" ,
"codemirror-special-char-object-replacement" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-paragraph-separator" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-pop-directional-isolate" ,
"codemirror-special-char-right-to-left-isolate" ,
"codemirror-special-char-right-to-left-mark" ,
"codemirror-special-char-right-to-left-override" ,
"codemirror-special-char-vertical-tab" ,
"codemirror-special-char-zero-width-joiner" ,
2024-01-19 00:33:58 +00:00
"codemirror-special-char-zero-width-no-break-space" ,
2024-08-01 21:39:43 +00:00
"codemirror-special-char-zero-width-non-joiner" ,
"codemirror-special-char-zero-width-space" ,
"codemirror-unfold"
2024-01-13 03:21:12 +00:00
]
2024-03-13 04:24:53 +00:00
} ,
CM6: Add syntax highlighting preference for users without WikiEditor
This adds the `ext.CodeMirror.v6.init` ResourceLoader module which
allows use of CodeMirror on `#wpTextbox1` without the use of WikiEditor
(the 'usebetatoolbar' preference). In order for users to opt-in to using
CodeMirror, we make the existing 'usecodemirror' option into a visible
preference. In addition, with two preferences related to CodeMirror, we
group them under a new heading 'Syntax highlighting'. More preferences
may be added later to this section following T359498.
When WikiEditor is not enabled, the layout of the action=edit page has
the textarea as a sibling to other visible content, like `.editOptions`.
Because of this, we can't simply append the CodeMirror DOM to the parent
like we were before, as that would put the visible editor beneath the
edit summary, Publish button, etc. Instead we rework the CodeMirror to
first add a wrapper around the textarea and use that as the parent. This
way, `.cm-editor` is always in the same place in the DOM as the native
textarea.
Line wrapping and focus/blur events are also moved to CodeMirror, as
these are needed when not using WikiEditor.
Bug: T190108
Change-Id: I4bc069e0d398aa7088e4f50bbd0ddda458b289c3
2024-03-26 20:40:13 +00:00
"ext.CodeMirror.v6.init" : {
"dependencies" : [
"ext.CodeMirror.v6" ,
"ext.CodeMirror.v6.mode.mediawiki"
] ,
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.mediawiki.init.js"
CM6: Add syntax highlighting preference for users without WikiEditor
This adds the `ext.CodeMirror.v6.init` ResourceLoader module which
allows use of CodeMirror on `#wpTextbox1` without the use of WikiEditor
(the 'usebetatoolbar' preference). In order for users to opt-in to using
CodeMirror, we make the existing 'usecodemirror' option into a visible
preference. In addition, with two preferences related to CodeMirror, we
group them under a new heading 'Syntax highlighting'. More preferences
may be added later to this section following T359498.
When WikiEditor is not enabled, the layout of the action=edit page has
the textarea as a sibling to other visible content, like `.editOptions`.
Because of this, we can't simply append the CodeMirror DOM to the parent
like we were before, as that would put the visible editor beneath the
edit summary, Publish button, etc. Instead we rework the CodeMirror to
first add a wrapper around the textarea and use that as the parent. This
way, `.cm-editor` is always in the same place in the DOM as the native
textarea.
Line wrapping and focus/blur events are also moved to CodeMirror, as
these are needed when not using WikiEditor.
Bug: T190108
Change-Id: I4bc069e0d398aa7088e4f50bbd0ddda458b289c3
2024-03-26 20:40:13 +00:00
]
} ,
2024-03-13 04:24:53 +00:00
"ext.CodeMirror.v6.lib" : {
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"lib/codemirror6.bundle.dist.js"
2024-03-13 04:24:53 +00:00
]
} ,
"ext.CodeMirror.v6.mode.mediawiki" : {
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"packageFiles" : [
"codemirror.mediawiki.js" ,
"codemirror.mediawiki.config.js" ,
"codemirror.mediawiki.bidiIsolation.js" ,
"codemirror.mediawiki.templateFolding.js"
] ,
2024-03-13 04:24:53 +00:00
"styles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.mediawiki.less" ,
"codemirror.mediawiki.colorblind.less"
2024-03-13 04:24:53 +00:00
] ,
"dependencies" : [
"ext.CodeMirror.v6" ,
"ext.CodeMirror.v6.lib"
]
} ,
"ext.CodeMirror.v6.WikiEditor" : {
"dependencies" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"ext.wikiEditor"
2024-03-13 04:24:53 +00:00
] ,
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.wikieditor.js"
2024-03-13 04:24:53 +00:00
] ,
2024-08-01 21:39:43 +00:00
"styles" : [
"codemirror.wikieditor.less"
] ,
2024-03-13 04:24:53 +00:00
"messages" : [
2024-08-09 06:04:19 +00:00
"codemirror-toggle-label" ,
"codemirror-toggle-label-short"
2024-03-13 04:24:53 +00:00
]
2024-04-15 05:05:07 +00:00
} ,
"ext.CodeMirror.v6.WikiEditor.init" : {
"dependencies" : [
"ext.CodeMirror.v6.WikiEditor" ,
"ext.CodeMirror.v6.mode.mediawiki"
] ,
"packageFiles" : [
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"codemirror.wikieditor.mediawiki.init.js"
2024-04-15 05:05:07 +00:00
]
2024-06-08 03:10:11 +00:00
} ,
"ext.CodeMirror.v6.visualEditor" : {
"dependencies" : [
"ext.visualEditor.mwcore" ,
"ext.visualEditor.mwmeta" ,
"mediawiki.api" ,
"user.options" ,
"ext.CodeMirror.v6"
] ,
"scripts" : [
"ve-cm/ve.ui.CodeMirrorAction.v6.js" ,
"ve-cm/ve.ui.CodeMirrorTool.v6.js"
] ,
"styles" : [
"ve-cm/ve.ui.CodeMirror.v6.less"
] ,
"messages" : [
"codemirror-toggle-label"
]
} ,
"ext.CodeMirror.visualEditor.init" : {
"packageFiles" : [
"ve-cm/ve.ui.CodeMirror.init.js" ,
{
"name" : "ext.CodeMirror.data.js" ,
"callback" : "MediaWiki\\Extension\\CodeMirror\\DataScript::makeScript"
}
]
2015-08-11 07:12:51 +00:00
}
} ,
"ResourceFileModulePaths" : {
"localBasePath" : "resources" ,
"remoteExtPath" : "CodeMirror/resources"
} ,
2023-09-20 22:03:01 +00:00
"ForeignResourcesDir" : "resources/lib" ,
2021-07-08 00:57:49 +00:00
"DefaultUserOptions" : {
"usecodemirror" : 0
} ,
2020-05-11 20:18:02 +00:00
"QUnitTestModule" : {
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"localBasePath" : "resources/legacy/mode/mediawiki/tests" ,
"remoteExtPath" : "CodeMirror/resources/legacy/mode/mediawiki/tests" ,
2023-08-17 04:58:59 +00:00
"packageFiles" : [
"qunit/CodeMirror.mediawiki.test.js"
2020-05-11 20:18:02 +00:00
] ,
"dependencies" : [
2023-08-17 04:58:59 +00:00
"ext.CodeMirror" ,
2020-05-11 20:18:02 +00:00
"ext.CodeMirror.lib" ,
"ext.CodeMirror.mode.mediawiki"
]
} ,
2015-08-11 07:12:51 +00:00
"Hooks" : {
2024-03-01 00:36:39 +00:00
"EditPage::showEditForm:initial" : "main" ,
2024-01-10 00:02:44 +00:00
"EditPage::showReadOnlyForm:initial" : "main" ,
2024-03-28 02:36:25 +00:00
"GetPreferences" : "main" ,
"ResourceLoaderGetConfigVars" : "main"
2022-09-19 19:01:32 +00:00
} ,
"HookHandlers" : {
"main" : {
"class" : "MediaWiki\\Extension\\CodeMirror\\Hooks" ,
"services" : [
2023-09-19 17:59:29 +00:00
"UserOptionsLookup" ,
"MainConfig"
2024-06-29 21:36:41 +00:00
] ,
"optional_services" : [
"GadgetsRepo"
2022-09-19 19:01:32 +00:00
]
}
2015-08-11 07:12:51 +00:00
} ,
2020-05-12 15:31:02 +00:00
"attributes" : {
"CodeMirror" : {
2024-03-01 00:36:39 +00:00
"ContentModels" : [
"wikitext"
] ,
2020-05-12 18:25:26 +00:00
"PluginModules" : [
2020-12-11 11:30:44 +00:00
"ext.CodeMirror.addons"
2020-05-12 18:25:26 +00:00
] ,
2020-05-12 15:31:02 +00:00
"TagModes" : {
"pre" : "mw-tag-pre" ,
"nowiki" : "mw-tag-nowiki"
}
} ,
"VisualEditor" : {
"PluginModules" : [
2024-06-08 03:10:11 +00:00
"ext.CodeMirror.visualEditor.init"
2020-05-12 15:31:02 +00:00
]
2020-11-19 16:20:25 +00:00
} ,
"EventLogging" : {
"Schemas" : {
2021-02-24 15:38:09 +00:00
"CodeMirrorUsage" : "/analytics/legacy/codemirrorusage/1.0.0"
2020-11-19 16:20:25 +00:00
}
2020-05-12 15:31:02 +00:00
}
} ,
"manifest_version" : 2
2015-08-11 07:12:51 +00:00
}