@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/dist/extensions/focusEvents.d.ts +2 -0
- package/dist/extensions/focusEvents.d.ts.map +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/extensions/focusEvents.ts +3 -1
- package/src/extensions/index.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusEvents.d.ts","sourceRoot":"","sources":["../../src/extensions/focusEvents.ts"],"names":[],"mappings":"
|
|
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;
|
|
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:
|
|
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 {
|