@bhsd/codemirror-mediawiki 2.14.3 → 2.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bidi.d.ts +14 -0
- package/dist/main.min.js +24 -14
- package/dist/matchTag.d.ts +6 -0
- package/dist/mediawiki.d.ts +1 -1
- package/dist/mw.min.js +28 -18
- package/dist/token.d.ts +1 -7
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/mediawiki.css +8 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
This repository contains a modified version of the frontend scripts and styles from [MediaWiki extension CodeMirror](https://www.mediawiki.org/wiki/Extension:CodeMirror). The goal is to support a standalone integration between [CodeMirror](https://codemimrror.net) and [Wikitext](https://www.mediawiki.org/wiki/Wikitext), without the need for a [MediaWiki environment](https://doc.wikimedia.org/mediawiki-core/master/js/).
|
|
50
50
|
|
|
51
|
-
Here is a [demo](https://bhsd-harry.github.io/codemirror-mediawiki).
|
|
51
|
+
Here is a [demo](https://bhsd-harry.github.io/codemirror-mediawiki). To experiment with the RTL (right-to-left) support, you can append `?rtl=1` to the URL.
|
|
52
52
|
|
|
53
53
|
Nonetheless, this repository also provides a customized version with additional functionality for use in a MediaWiki site. Browser editing tools such as [Wikiplus-highlight](https://github.com/bhsd-harry/Wikiplus-highlight) and an [InPageEdit plugin](https://github.com/inpageedit/Plugins) are built upon it. Please refer to a separate [README](./mw/README.md) file for the information.
|
|
54
54
|
|
package/dist/bidi.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author MusikAnimal
|
|
3
|
+
* @license GPL-2.0-or-later
|
|
4
|
+
* @see https://gerrit.wikimedia.org/g/mediawiki/extensions/CodeMirror
|
|
5
|
+
*/
|
|
6
|
+
import { Direction, ViewPlugin } from '@codemirror/view';
|
|
7
|
+
import type { ViewUpdate, DecorationSet } from '@codemirror/view';
|
|
8
|
+
declare const _default: ViewPlugin<{
|
|
9
|
+
isolates: DecorationSet;
|
|
10
|
+
tree: import("@lezer/common").Tree;
|
|
11
|
+
dir: Direction;
|
|
12
|
+
update({ docChanged, viewportChanged, state, view }: ViewUpdate): void;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|