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