@tiptap/core 2.1.0-rc.0 → 2.1.0-rc.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/core/src/Extension.d.ts +1 -1
- package/dist/packages/core/src/Mark.d.ts +1 -1
- package/package.json +2 -2
- package/src/Extension.ts +1 -1
- package/src/Mark.ts +1 -1
|
@@ -222,6 +222,6 @@ export declare class Extension<Options = any, Storage = any> {
|
|
|
222
222
|
config: ExtensionConfig;
|
|
223
223
|
constructor(config?: Partial<ExtensionConfig<Options, Storage>>);
|
|
224
224
|
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>>): Extension<O, S>;
|
|
225
|
-
configure(options?: Partial<Options>): Extension<
|
|
225
|
+
configure(options?: Partial<Options>): Extension<any, any>;
|
|
226
226
|
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>;
|
|
227
227
|
}
|
|
@@ -326,7 +326,7 @@ export declare class Mark<Options = any, Storage = any> {
|
|
|
326
326
|
config: MarkConfig;
|
|
327
327
|
constructor(config?: Partial<MarkConfig<Options, Storage>>);
|
|
328
328
|
static create<O = any, S = any>(config?: Partial<MarkConfig<O, S>>): Mark<O, S>;
|
|
329
|
-
configure(options?: Partial<Options>): Mark<
|
|
329
|
+
configure(options?: Partial<Options>): Mark<any, any>;
|
|
330
330
|
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
|
|
331
331
|
static handleExit({ editor, mark }: {
|
|
332
332
|
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.0-rc.
|
|
4
|
+
"version": "2.1.0-rc.2",
|
|
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.0-rc.
|
|
35
|
+
"@tiptap/pm": "^2.1.0-rc.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@tiptap/pm": "^2.0.0"
|
package/src/Extension.ts
CHANGED
|
@@ -340,7 +340,7 @@ export class Extension<Options = any, Storage = any> {
|
|
|
340
340
|
configure(options: Partial<Options> = {}) {
|
|
341
341
|
// return a new instance so we can use the same extension
|
|
342
342
|
// with different calls of `configure`
|
|
343
|
-
const extension = this.extend()
|
|
343
|
+
const extension = this.extend(this.config)
|
|
344
344
|
|
|
345
345
|
extension.options = mergeDeep(this.options as Record<string, any>, options) as Options
|
|
346
346
|
|
package/src/Mark.ts
CHANGED
|
@@ -472,7 +472,7 @@ export class Mark<Options = any, Storage = any> {
|
|
|
472
472
|
configure(options: Partial<Options> = {}) {
|
|
473
473
|
// return a new instance so we can use the same extension
|
|
474
474
|
// with different calls of `configure`
|
|
475
|
-
const extension = this.extend()
|
|
475
|
+
const extension = this.extend(this.config)
|
|
476
476
|
|
|
477
477
|
extension.options = mergeDeep(this.options as Record<string, any>, options) as Options
|
|
478
478
|
|