@tiptap/core 2.1.11 → 2.2.0-rc.4

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.
@@ -158,6 +158,7 @@ export interface NodeViewRendererOptions {
158
158
  target: Element;
159
159
  };
160
160
  }) => boolean) | null;
161
+ contentDOMElementTag: string;
161
162
  }
162
163
  export declare type NodeViewRendererProps = {
163
164
  editor: Editor;
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.1.11",
4
+ "version": "2.2.0-rc.4",
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.1.11"
35
+ "@tiptap/pm": "^2.2.0-rc.4"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tiptap/pm": "^2.0.0"
package/src/Extension.ts CHANGED
@@ -357,7 +357,7 @@ export class Extension<Options = any, Storage = any> {
357
357
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
358
358
  extendedConfig: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>> = {},
359
359
  ) {
360
- const extension = new Extension<ExtendedOptions, ExtendedStorage>(extendedConfig)
360
+ const extension = new Extension<ExtendedOptions, ExtendedStorage>({ ...this.config, ...extendedConfig })
361
361
 
362
362
  extension.parent = this
363
363
 
package/src/Mark.ts CHANGED
@@ -489,7 +489,7 @@ export class Mark<Options = any, Storage = any> {
489
489
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
490
490
  extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>> = {},
491
491
  ) {
492
- const extension = new Mark<ExtendedOptions, ExtendedStorage>(extendedConfig)
492
+ const extension = new Mark<ExtendedOptions, ExtendedStorage>({ ...this.config, ...extendedConfig })
493
493
 
494
494
  extension.parent = this
495
495
 
package/src/Node.ts CHANGED
@@ -598,7 +598,7 @@ export class Node<Options = any, Storage = any> {
598
598
  extend<ExtendedOptions = Options, ExtendedStorage = Storage>(
599
599
  extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>> = {},
600
600
  ) {
601
- const extension = new Node<ExtendedOptions, ExtendedStorage>(extendedConfig)
601
+ const extension = new Node<ExtendedOptions, ExtendedStorage>({ ...this.config, ...extendedConfig })
602
602
 
603
603
  extension.parent = this
604
604
 
package/src/types.ts CHANGED
@@ -170,6 +170,7 @@ export interface NodeViewRendererOptions {
170
170
  ignoreMutation:
171
171
  | ((props: { mutation: MutationRecord | { type: 'selection'; target: Element } }) => boolean)
172
172
  | null
173
+ contentDOMElementTag: string
173
174
  }
174
175
 
175
176
  export type NodeViewRendererProps = {