@tiptap/core 2.5.1 → 2.5.3

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.umd.js CHANGED
@@ -1288,9 +1288,8 @@
1288
1288
  // with different calls of `configure`
1289
1289
  const extension = this.extend({
1290
1290
  ...this.config,
1291
- addOptions() {
1292
- var _a;
1293
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
1291
+ addOptions: () => {
1292
+ return mergeDeep(this.options, options);
1294
1293
  },
1295
1294
  });
1296
1295
  // Always preserve the current name
@@ -4553,9 +4552,8 @@ img.ProseMirror-separator {
4553
4552
  // with different calls of `configure`
4554
4553
  const extension = this.extend({
4555
4554
  ...this.config,
4556
- addOptions() {
4557
- var _a;
4558
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
4555
+ addOptions: () => {
4556
+ return mergeDeep(this.options, options);
4559
4557
  },
4560
4558
  });
4561
4559
  // Always preserve the current name
@@ -4645,9 +4643,8 @@ img.ProseMirror-separator {
4645
4643
  // with different calls of `configure`
4646
4644
  const extension = this.extend({
4647
4645
  ...this.config,
4648
- addOptions() {
4649
- var _a;
4650
- return mergeDeep(((_a = this.parent) === null || _a === void 0 ? void 0 : _a.call(this)) || {}, options);
4646
+ addOptions: () => {
4647
+ return mergeDeep(this.options, options);
4651
4648
  },
4652
4649
  });
4653
4650
  // Always preserve the current name