@tiptap/core 2.11.4 → 2.11.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "2.11.4",
4
+ "version": "2.11.6",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "devDependencies": {
35
- "@tiptap/pm": "^2.11.4"
35
+ "@tiptap/pm": "^2.11.6"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tiptap/pm": "^2.7.0"
@@ -2,6 +2,8 @@ import { Plugin, PluginKey } from '@tiptap/pm/state'
2
2
 
3
3
  import { Extension } from '../Extension.js'
4
4
 
5
+ export const focusEventsPluginKey = new PluginKey('focusEvents')
6
+
5
7
  export const FocusEvents = Extension.create({
6
8
  name: 'focusEvents',
7
9
 
@@ -10,7 +12,7 @@ export const FocusEvents = Extension.create({
10
12
 
11
13
  return [
12
14
  new Plugin({
13
- key: new PluginKey('focusEvents'),
15
+ key: focusEventsPluginKey,
14
16
  props: {
15
17
  handleDOMEvents: {
16
18
  focus: (view, event: Event) => {
@@ -2,7 +2,7 @@ export { ClipboardTextSerializer } from './clipboardTextSerializer.js'
2
2
  export { Commands } from './commands.js'
3
3
  export { Drop } from './drop.js'
4
4
  export { Editable } from './editable.js'
5
- export { FocusEvents } from './focusEvents.js'
5
+ export { FocusEvents, focusEventsPluginKey } from './focusEvents.js'
6
6
  export { Keymap } from './keymap.js'
7
7
  export { Paste } from './paste.js'
8
8
  export { Tabindex } from './tabindex.js'