@tiptap/core 2.11.5 → 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.
@@ -1,3 +1,5 @@
1
+ import { PluginKey } from '@tiptap/pm/state';
1
2
  import { Extension } from '../Extension.js';
3
+ export declare const focusEventsPluginKey: PluginKey<any>;
2
4
  export declare const FocusEvents: Extension<any, any>;
3
5
  //# sourceMappingURL=focusEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusEvents.d.ts","sourceRoot":"","sources":["../../src/extensions/focusEvents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,WAAW,qBAsCtB,CAAA"}
1
+ {"version":3,"file":"focusEvents.d.ts","sourceRoot":"","sources":["../../src/extensions/focusEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,oBAAoB,gBAA+B,CAAA;AAEhE,eAAO,MAAM,WAAW,qBAsCtB,CAAA"}
@@ -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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
package/dist/index.cjs CHANGED
@@ -3900,13 +3900,14 @@ const Editable = Extension.create({
3900
3900
  },
3901
3901
  });
3902
3902
 
3903
+ const focusEventsPluginKey = new state.PluginKey('focusEvents');
3903
3904
  const FocusEvents = Extension.create({
3904
3905
  name: 'focusEvents',
3905
3906
  addProseMirrorPlugins() {
3906
3907
  const { editor } = this;
3907
3908
  return [
3908
3909
  new state.Plugin({
3909
- key: new state.PluginKey('focusEvents'),
3910
+ key: focusEventsPluginKey,
3910
3911
  props: {
3911
3912
  handleDOMEvents: {
3912
3913
  focus: (view, event) => {
@@ -4096,7 +4097,8 @@ var index = /*#__PURE__*/Object.freeze({
4096
4097
  FocusEvents: FocusEvents,
4097
4098
  Keymap: Keymap,
4098
4099
  Paste: Paste,
4099
- Tabindex: Tabindex
4100
+ Tabindex: Tabindex,
4101
+ focusEventsPluginKey: focusEventsPluginKey
4100
4102
  });
4101
4103
 
4102
4104
  class NodePos {