@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.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/core/src/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/Extension.ts +1 -1
- package/src/Mark.ts +1 -1
- package/src/Node.ts +1 -1
- package/src/types.ts +1 -0
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.
|
|
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.
|
|
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 = {
|