@bhsd/codemirror-mediawiki 2.31.0 → 3.0.0
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 +170 -24
- package/dist/codemirror.d.ts +72 -47
- package/dist/codemirror.js +169 -208
- package/dist/color.d.ts +1 -6
- package/dist/color.js +1 -8
- package/dist/config.js +4 -4
- package/dist/escape.js +2 -2
- package/dist/fold.d.ts +53 -6
- package/dist/fold.js +130 -133
- package/dist/indent.d.ts +5 -1
- package/dist/indent.js +2 -1
- package/dist/javascript.d.ts +1 -0
- package/dist/javascript.js +2 -4
- package/dist/keybindings.js +1 -0
- package/dist/linter.js +43 -8
- package/dist/lintsource.d.ts +14 -0
- package/dist/lintsource.js +159 -0
- package/dist/main.min.js +25 -24
- package/dist/matchBrackets.d.ts +1 -1
- package/dist/matchTag.js +2 -2
- package/dist/mw.min.js +30 -29
- package/dist/mwConfig.js +0 -3
- package/dist/statusBar.d.ts +1 -1
- package/dist/token.d.ts +1 -1
- package/dist/token.js +11 -16
- package/dist/vue.d.ts +3 -0
- package/dist/vue.js +14 -0
- package/dist/wiki.min.js +29 -28
- package/i18n/en.json +2 -3
- package/i18n/zh-hans.json +2 -3
- package/i18n/zh-hant.json +2 -3
- package/package.json +10 -7
package/dist/matchBrackets.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import type { Config, MatchResult } from '@codemirror/language';
|
|
|
3
3
|
import type { SyntaxNode } from '@lezer/common';
|
|
4
4
|
export declare const findEnclosingBrackets: (node: SyntaxNode, pos: number, brackets: string) => MatchResult | undefined;
|
|
5
5
|
export declare const findEnclosingPlainBrackets: (state: EditorState, pos: number, config: Required<Config>) => MatchResult | null;
|
|
6
|
-
declare const _default: (configs
|
|
6
|
+
declare const _default: (configs?: Config) => Extension;
|
|
7
7
|
export default _default;
|
package/dist/matchTag.js
CHANGED
|
@@ -109,8 +109,8 @@ export const matchTag = (state, pos) => {
|
|
|
109
109
|
const end = searchTag(state, start);
|
|
110
110
|
return end ? { matched: true, start, end } : { matched: false, start };
|
|
111
111
|
};
|
|
112
|
-
const matchingMark = Decoration.mark({ class: 'cm-matchingTag' }), nonmatchingMark = Decoration.mark({ class: 'cm-nonmatchingTag' });
|
|
113
|
-
export default StateField.define({
|
|
112
|
+
const matchingMark = /* @__PURE__ */ Decoration.mark({ class: 'cm-matchingTag' }), nonmatchingMark = /* @__PURE__ */ Decoration.mark({ class: 'cm-nonmatchingTag' });
|
|
113
|
+
export default /* @__PURE__ */ StateField.define({
|
|
114
114
|
create() {
|
|
115
115
|
return Decoration.none;
|
|
116
116
|
},
|