prosemirror-view 1.26.3 → 1.26.4

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.26.4 (2022-07-04)
2
+
3
+ ### Bug fixes
4
+
5
+ Avoid spurious type errors on `handleDOMEvents` by widening the type for unknown event objects.
6
+
1
7
  ## 1.26.3 (2022-06-29)
2
8
 
3
9
  ### Bug fixes
package/dist/index.d.ts CHANGED
@@ -563,7 +563,7 @@ includes events that TypeScript's HTMLElementEventMap doesn't know
563
563
  about.
564
564
  */
565
565
  interface DOMEventMap extends HTMLElementEventMap {
566
- [event: string]: Event;
566
+ [event: string]: any;
567
567
  }
568
568
  /**
569
569
  Props are configuration values that can be passed to an editor view
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-view",
3
- "version": "1.26.3",
3
+ "version": "1.26.4",
4
4
  "description": "ProseMirror's view component",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/index.ts CHANGED
@@ -512,7 +512,7 @@ type NodeViewSet = {[name: string]: NodeViewConstructor | MarkViewConstructor}
512
512
  /// includes events that TypeScript's HTMLElementEventMap doesn't know
513
513
  /// about.
514
514
  export interface DOMEventMap extends HTMLElementEventMap {
515
- [event: string]: Event
515
+ [event: string]: any
516
516
  }
517
517
 
518
518
  /// Props are configuration values that can be passed to an editor view