@tiptap/core 2.10.0 → 2.10.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "2.10.0",
4
+ "version": "2.10.1",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "devDependencies": {
35
- "@tiptap/pm": "^2.10.0"
35
+ "@tiptap/pm": "^2.10.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tiptap/pm": "^2.7.0"
package/src/Extension.ts CHANGED
@@ -474,9 +474,9 @@ export class Extension<Options = any, Storage = any> {
474
474
  }
475
475
 
476
476
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
477
- extendedConfig: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>> = {},
477
+ extendedConfig: Partial<ExtensionConfig<Partial<ExtendedOptions>, Partial<ExtendedStorage>>> = {},
478
478
  ) {
479
- const extension = new Extension<ExtendedOptions, ExtendedStorage>({ ...this.config, ...extendedConfig })
479
+ const extension = new Extension<ExtendedOptions, ExtendedStorage>({ ...this.config, ...extendedConfig } as ExtensionConfig)
480
480
 
481
481
  extension.parent = this
482
482
 
package/src/Mark.ts CHANGED
@@ -606,9 +606,9 @@ export class Mark<Options = any, Storage = any> {
606
606
  }
607
607
 
608
608
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
609
- extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>> = {},
609
+ extendedConfig: Partial<MarkConfig<Partial<ExtendedOptions>, Partial<ExtendedStorage>>> = {},
610
610
  ) {
611
- const extension = new Mark<ExtendedOptions, ExtendedStorage>(extendedConfig)
611
+ const extension = new Mark<ExtendedOptions, ExtendedStorage>(extendedConfig as MarkConfig)
612
612
 
613
613
  extension.parent = this
614
614
 
package/src/Node.ts CHANGED
@@ -816,9 +816,9 @@ export class Node<Options = any, Storage = any> {
816
816
  }
817
817
 
818
818
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
819
- extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>> = {},
819
+ extendedConfig: Partial<NodeConfig<Partial<ExtendedOptions>, Partial<ExtendedStorage>>> = {},
820
820
  ) {
821
- const extension = new Node<ExtendedOptions, ExtendedStorage>(extendedConfig)
821
+ const extension = new Node<ExtendedOptions, ExtendedStorage>(extendedConfig as NodeConfig)
822
822
 
823
823
  extension.parent = this
824
824