@tiptap/core 2.5.0 → 2.5.2

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/index.cjs CHANGED
@@ -1292,9 +1292,8 @@ class Extension {
1292
1292
  // with different calls of `configure`
1293
1293
  const extension = this.extend({
1294
1294
  ...this.config,
1295
- addOptions() {
1296
- var _a;
1297
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
1295
+ addOptions: () => {
1296
+ return mergeDeep(this.options, options);
1298
1297
  },
1299
1298
  });
1300
1299
  // Always preserve the current name
@@ -4209,11 +4208,6 @@ class Editor extends EventEmitter {
4209
4208
  }
4210
4209
  const state = this.state.apply(transaction);
4211
4210
  const selectionHasChanged = !this.state.selection.eq(state.selection);
4212
- this.emit('beforeTransaction', {
4213
- editor: this,
4214
- transaction,
4215
- nextState: state,
4216
- });
4217
4211
  this.view.updateState(state);
4218
4212
  this.emit('transaction', {
4219
4213
  editor: this,
@@ -4562,9 +4556,8 @@ class Mark {
4562
4556
  // with different calls of `configure`
4563
4557
  const extension = this.extend({
4564
4558
  ...this.config,
4565
- addOptions() {
4566
- var _a;
4567
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
4559
+ addOptions: () => {
4560
+ return mergeDeep(this.options, options);
4568
4561
  },
4569
4562
  });
4570
4563
  // Always preserve the current name
@@ -4654,9 +4647,8 @@ class Node {
4654
4647
  // with different calls of `configure`
4655
4648
  const extension = this.extend({
4656
4649
  ...this.config,
4657
- addOptions() {
4658
- var _a;
4659
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
4650
+ addOptions: () => {
4651
+ return mergeDeep(this.options, options);
4660
4652
  },
4661
4653
  });
4662
4654
  // Always preserve the current name