@bhsd/codemirror-mediawiki 2.3.2 → 2.3.3

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/dist/config.d.ts DELETED
@@ -1,130 +0,0 @@
1
- /**
2
- * @author MusikAnimal and others
3
- * @license GPL-2.0-or-later
4
- * @link https://gerrit.wikimedia.org/g/mediawiki/extensions/CodeMirror
5
- */
6
- import { Tag } from '@lezer/highlight';
7
- /**
8
- * Configuration for the MediaWiki highlighting mode for CodeMirror.
9
- */
10
- export declare const modeConfig: {
11
- /**
12
- * All HTML/XML tags permitted in MediaWiki Core.
13
- *
14
- * @see https://www.mediawiki.org/wiki/Extension:CodeMirror#Extension_integration
15
- */
16
- permittedHtmlTags: string[];
17
- /**
18
- * HTML tags that are only self-closing.
19
- */
20
- implicitlyClosedHtmlTags: string[];
21
- /**
22
- * Mapping of MediaWiki-esque token identifiers to a standardized lezer highlighting tag.
23
- * Values are one of the default highlighting tags.
24
- *
25
- * Once we allow use of other themes, we may want to tweak these values for aesthetic reasons.
26
- *
27
- * @see https://lezer.codemirror.net/docs/ref/#highlight.tags
28
- * @internal
29
- */
30
- tags: {
31
- apostrophes: string;
32
- apostrophesBold: string;
33
- apostrophesItalic: string;
34
- comment: string;
35
- doubleUnderscore: string;
36
- extLink: string;
37
- extLinkBracket: string;
38
- extLinkProtocol: string;
39
- extLinkText: string;
40
- hr: string;
41
- htmlTagAttribute: string;
42
- htmlTagBracket: string;
43
- htmlTagName: string;
44
- linkBracket: string;
45
- linkDelimiter: string;
46
- linkText: string;
47
- linkToSection: string;
48
- list: string;
49
- parserFunction: string;
50
- parserFunctionBracket: string;
51
- parserFunctionDelimiter: string;
52
- parserFunctionName: string;
53
- sectionHeader: string;
54
- sectionHeader1: string;
55
- sectionHeader2: string;
56
- sectionHeader3: string;
57
- sectionHeader4: string;
58
- sectionHeader5: string;
59
- sectionHeader6: string;
60
- signature: string;
61
- tableBracket: string;
62
- tableDefinition: string;
63
- tableDelimiter: string;
64
- template: string;
65
- templateArgumentName: string;
66
- templateBracket: string;
67
- templateDelimiter: string;
68
- templateName: string;
69
- templateVariable: string;
70
- templateVariableBracket: string;
71
- templateVariableName: string;
72
- section: string;
73
- em: string;
74
- error: string;
75
- extGround: string;
76
- ext2Ground: string;
77
- ext2LinkGround: string;
78
- ext3Ground: string;
79
- ext3LinkGround: string;
80
- extLinkGround: string;
81
- extTag: string;
82
- extTagAttribute: string;
83
- extTagBracket: string;
84
- extTagName: string;
85
- freeExtLink: string;
86
- freeExtLinkProtocol: string;
87
- htmlEntity: string;
88
- link: string;
89
- linkGround: string;
90
- linkPageName: string;
91
- pageName: string;
92
- skipFormatting: string;
93
- strong: string;
94
- tableCaption: string;
95
- templateExtGround: string;
96
- templateExt2Ground: string;
97
- templateExt2LinkGround: string;
98
- templateExt3Ground: string;
99
- templateExt3LinkGround: string;
100
- templateExtLinkGround: string;
101
- templateGround: string;
102
- templateLinkGround: string;
103
- templateVariableDelimiter: string;
104
- template2ExtGround: string;
105
- template2Ext2Ground: string;
106
- template2Ext3Ground: string;
107
- templatet2Ext2LinkGround: string;
108
- template2Ext3LinkGround: string;
109
- template2ExtLinkGround: string;
110
- template2Ground: string;
111
- template2LinkGround: string;
112
- template3ExtGround: string;
113
- template3Ext2Ground: string;
114
- template3Ext3Ground: string;
115
- template3ExtLinkGround: string;
116
- template3Ext2LinkGround: string;
117
- template3Ext3LinkGround: string;
118
- template3Ground: string;
119
- template3LinkGround: string;
120
- };
121
- /**
122
- * These are custom tokens (a.k.a. tags) that aren't mapped to any of the standardized tags.
123
- *
124
- * TODO: pass parent Tags in Tag.define() where appropriate for better theming.
125
- *
126
- * @see https://codemirror.net/docs/ref/#language.StreamParser.tokenTable
127
- * @see https://lezer.codemirror.net/docs/ref/#highlight.Tag%5Edefine
128
- */
129
- readonly tokenTable: Record<string, Tag>;
130
- };
package/dist/escape.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type { KeyBinding } from '@codemirror/view';
2
- export declare const keyMap: KeyBinding[];
package/dist/fold.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { EditorView } from '@codemirror/view';
2
- import { StateField } from '@codemirror/state';
3
- import type { Tooltip } from '@codemirror/view';
4
- /**
5
- * 寻找匹配的括号并折叠
6
- * @param view EditorView
7
- */
8
- export declare const fold: (view: EditorView) => boolean;
9
- export declare const cursorTooltipField: StateField<Tooltip | null>;
10
- export declare const cursorTooltipTheme: import("@codemirror/state").Extension;
11
- export declare const handler: (view: EditorView) => (e: MouseEvent) => void;