@bhsd/codemirror-mediawiki 3.10.1 → 3.10.2
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/codemirror.js +3 -3
- package/dist/fold.js +1 -1
- package/dist/hover.js +7 -3
- package/dist/inlay.js +1 -1
- package/dist/main.min.js +29 -29
- package/dist/mediawiki.js +5 -3
- package/dist/mw.min.js +31 -31
- package/dist/mwConfig.js +1 -1
- package/dist/ref.js +1 -1
- package/dist/token.js +5 -5
- package/dist/wiki.min.js +30 -30
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +20 -20
package/dist/mediawiki.js
CHANGED
|
@@ -154,7 +154,7 @@ export class FullMediaWiki extends MediaWiki {
|
|
|
154
154
|
* @param equal 是否有等号
|
|
155
155
|
*/
|
|
156
156
|
async #paramSuggest(search, page, equal) {
|
|
157
|
-
const {
|
|
157
|
+
const { paramSuggest } = this.config, result = await paramSuggest?.(page);
|
|
158
158
|
return result?.length
|
|
159
159
|
? {
|
|
160
160
|
offset: leadingSpaces(search).length,
|
|
@@ -508,12 +508,14 @@ const theme = /* @__PURE__ */ EditorView.theme({
|
|
|
508
508
|
backgroundColor: 'var(--cm-ref)',
|
|
509
509
|
},
|
|
510
510
|
// hover tooltip and signature tooltip
|
|
511
|
+
'.cm-tooltip-hover': {
|
|
512
|
+
maxHeight: '60vh',
|
|
513
|
+
overflow: 'hidden auto',
|
|
514
|
+
},
|
|
511
515
|
[hoverSelector]: {
|
|
512
516
|
padding: '2px 5px',
|
|
513
517
|
width: 'max-content',
|
|
514
518
|
maxWidth: '60vw',
|
|
515
|
-
maxHeight: '60vh',
|
|
516
|
-
overflowY: 'auto',
|
|
517
519
|
},
|
|
518
520
|
[`${hoverSelector} *`]: {
|
|
519
521
|
marginTop: '0!important',
|