@codemirror/view 6.18.1 → 6.19.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +509 -482
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +509 -482
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -408,6 +408,12 @@ interface PluginSpec<V extends PluginValue> {
|
|
|
408
408
|
*/
|
|
409
409
|
eventHandlers?: DOMEventHandlers<V>;
|
|
410
410
|
/**
|
|
411
|
+
Registers [event observers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventObservers)
|
|
412
|
+
for the plugin. Will, when called, have their `this` bound to
|
|
413
|
+
the plugin value.
|
|
414
|
+
*/
|
|
415
|
+
eventObservers?: DOMEventHandlers<V>;
|
|
416
|
+
/**
|
|
411
417
|
Specify that the plugin provides additional extensions when
|
|
412
418
|
added to an editor configuration.
|
|
413
419
|
*/
|
|
@@ -1056,6 +1062,15 @@ declare class EditorView {
|
|
|
1056
1062
|
*/
|
|
1057
1063
|
static domEventHandlers(handlers: DOMEventHandlers<any>): Extension;
|
|
1058
1064
|
/**
|
|
1065
|
+
Create an extension that registers DOM event observers. Contrary
|
|
1066
|
+
to event [handlers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventHandlers),
|
|
1067
|
+
observers can't be prevented from running by a higher-precedence
|
|
1068
|
+
handler returning true. They also don't prevent other handlers
|
|
1069
|
+
and observers from running when they return true, and should not
|
|
1070
|
+
call `preventDefault`.
|
|
1071
|
+
*/
|
|
1072
|
+
static domEventObservers(observers: DOMEventHandlers<any>): Extension;
|
|
1073
|
+
/**
|
|
1059
1074
|
An input handler can override the way changes to the editable
|
|
1060
1075
|
DOM content are handled. Handlers are passed the document
|
|
1061
1076
|
positions between which the change was found, and the new
|
package/dist/index.d.ts
CHANGED
|
@@ -408,6 +408,12 @@ interface PluginSpec<V extends PluginValue> {
|
|
|
408
408
|
*/
|
|
409
409
|
eventHandlers?: DOMEventHandlers<V>;
|
|
410
410
|
/**
|
|
411
|
+
Registers [event observers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventObservers)
|
|
412
|
+
for the plugin. Will, when called, have their `this` bound to
|
|
413
|
+
the plugin value.
|
|
414
|
+
*/
|
|
415
|
+
eventObservers?: DOMEventHandlers<V>;
|
|
416
|
+
/**
|
|
411
417
|
Specify that the plugin provides additional extensions when
|
|
412
418
|
added to an editor configuration.
|
|
413
419
|
*/
|
|
@@ -1056,6 +1062,15 @@ declare class EditorView {
|
|
|
1056
1062
|
*/
|
|
1057
1063
|
static domEventHandlers(handlers: DOMEventHandlers<any>): Extension;
|
|
1058
1064
|
/**
|
|
1065
|
+
Create an extension that registers DOM event observers. Contrary
|
|
1066
|
+
to event [handlers](https://codemirror.net/6/docs/ref/#view.EditorView^domEventHandlers),
|
|
1067
|
+
observers can't be prevented from running by a higher-precedence
|
|
1068
|
+
handler returning true. They also don't prevent other handlers
|
|
1069
|
+
and observers from running when they return true, and should not
|
|
1070
|
+
call `preventDefault`.
|
|
1071
|
+
*/
|
|
1072
|
+
static domEventObservers(observers: DOMEventHandlers<any>): Extension;
|
|
1073
|
+
/**
|
|
1059
1074
|
An input handler can override the way changes to the editable
|
|
1060
1075
|
DOM content are handled. Handlers are passed the document
|
|
1061
1076
|
positions between which the change was found, and the new
|