md-editor-v3 4.12.2 → 4.12.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.
@@ -1984,7 +1984,7 @@ const getApply = (_label) => {
1984
1984
  const createAutocompletion = (completions) => {
1985
1985
  const defaultCompletion = (context) => {
1986
1986
  const word = context.matchBefore(
1987
- /^#+|^-\s*\[*\s*\]*|`+|\[|!\[*|^\|\s?\|?|^\$\$?|!+\s*\w*/
1987
+ /^#+|^-\s*\[*\s*\]*|`+|\[|!\[*|^\|\s?\|?|\$\$?|!+\s*\w*/
1988
1988
  );
1989
1989
  if (word === null || word.from == word.to && context.explicit) {
1990
1990
  return null;
@@ -2500,11 +2500,9 @@ const useCodeMirror = (props2) => {
2500
2500
  focus: props2.onFocus,
2501
2501
  drop: props2.onDrop,
2502
2502
  compositionstart: () => {
2503
- console.log("compositionstart");
2504
2503
  spelling.value = true;
2505
2504
  },
2506
2505
  compositionend: (_e, view2) => {
2507
- console.log("compositionend");
2508
2506
  spelling.value = false;
2509
2507
  props2.updateModelValue(view2.state.doc.toString());
2510
2508
  },
@@ -2586,7 +2584,7 @@ const useCodeMirror = (props2) => {
2586
2584
  });
2587
2585
  index.bus.on(editorId, {
2588
2586
  name: index.EVENT_LISTENER,
2589
- callback(handlers) {
2587
+ callback: util.throttle((handlers) => {
2590
2588
  var _a;
2591
2589
  const nextDomEventHandlers = {
2592
2590
  ...domEventHandlers
@@ -2610,7 +2608,7 @@ const useCodeMirror = (props2) => {
2610
2608
  codemirror.EditorView.domEventHandlers(nextDomEventHandlers)
2611
2609
  )
2612
2610
  });
2613
- }
2611
+ })
2614
2612
  });
2615
2613
  });
2616
2614
  vue.watch(
@@ -1983,7 +1983,7 @@ const getApply = (_label) => {
1983
1983
  const createAutocompletion = (completions) => {
1984
1984
  const defaultCompletion = (context) => {
1985
1985
  const word = context.matchBefore(
1986
- /^#+|^-\s*\[*\s*\]*|`+|\[|!\[*|^\|\s?\|?|^\$\$?|!+\s*\w*/
1986
+ /^#+|^-\s*\[*\s*\]*|`+|\[|!\[*|^\|\s?\|?|\$\$?|!+\s*\w*/
1987
1987
  );
1988
1988
  if (word === null || word.from == word.to && context.explicit) {
1989
1989
  return null;
@@ -2499,11 +2499,9 @@ const useCodeMirror = (props2) => {
2499
2499
  focus: props2.onFocus,
2500
2500
  drop: props2.onDrop,
2501
2501
  compositionstart: () => {
2502
- console.log("compositionstart");
2503
2502
  spelling.value = true;
2504
2503
  },
2505
2504
  compositionend: (_e, view) => {
2506
- console.log("compositionend");
2507
2505
  spelling.value = false;
2508
2506
  props2.updateModelValue(view.state.doc.toString());
2509
2507
  },
@@ -2585,7 +2583,7 @@ const useCodeMirror = (props2) => {
2585
2583
  });
2586
2584
  bus.on(editorId, {
2587
2585
  name: EVENT_LISTENER,
2588
- callback(handlers) {
2586
+ callback: throttle((handlers) => {
2589
2587
  var _a;
2590
2588
  const nextDomEventHandlers = {
2591
2589
  ...domEventHandlers
@@ -2609,7 +2607,7 @@ const useCodeMirror = (props2) => {
2609
2607
  EditorView$1.domEventHandlers(nextDomEventHandlers)
2610
2608
  )
2611
2609
  });
2612
- }
2610
+ })
2613
2611
  });
2614
2612
  });
2615
2613
  watch(