@bhsd/codemirror-mediawiki 2.21.0 → 2.21.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/dist/hover.d.ts +6 -0
- package/dist/main.min.js +15 -15
- package/dist/mw.min.js +21 -21
- package/dist/mwConfig.mjs +14 -3
- package/dist/ref.d.ts +0 -10
- package/dist/wiki.min.js +21 -21
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +4 -4
- package/dist/openExtLinks.d.ts +0 -2
- package/dist/tree.d.ts +0 -16
package/dist/hover.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ export declare const getLSP: (view: EditorView) => LanguageServiceBase | undefin
|
|
|
13
13
|
* @param index 索引
|
|
14
14
|
*/
|
|
15
15
|
export declare const indexToPos: (doc: Text, index: number) => Position;
|
|
16
|
+
/**
|
|
17
|
+
* 将位置转换为索引
|
|
18
|
+
* @param doc Text 实例
|
|
19
|
+
* @param pos 位置
|
|
20
|
+
*/
|
|
21
|
+
export declare const posToIndex: (doc: Text, pos: Position) => number;
|
|
16
22
|
declare const _default: import("@codemirror/state").Extension & {
|
|
17
23
|
active: import("@codemirror/state").StateField<readonly Tooltip[]>;
|
|
18
24
|
};
|