@bhsd/codemirror-mediawiki 2.2.3 → 2.3.1

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 CHANGED
@@ -196,6 +196,8 @@ cm.prefer([
196
196
  'allowMultipleSelections',
197
197
  'bracketMatching',
198
198
  'closeBrackets',
199
+ 'escape',
200
+ 'fold',
199
201
  'highlightActiveLine',
200
202
  'highlightSpecialChars',
201
203
  'highlightWhitespace',
@@ -205,6 +207,8 @@ cm.prefer({
205
207
  allowMultipleSelections: false,
206
208
  bracketMatching: false,
207
209
  closeBrackets: false,
210
+ escape: false,
211
+ fold: false,
208
212
  highlightActiveLine: false,
209
213
  highlightSpecialChars: false,
210
214
  highlightWhitespace: false,
package/dist/fold.d.ts ADDED
@@ -0,0 +1,11 @@
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;