@tiptap/core 3.0.4 → 3.0.6
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.map +1 -1
- package/dist/index.d.cts +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/Extension.ts +11 -7
- package/src/Mark.ts +10 -7
- package/src/Node.ts +10 -7
package/dist/index.d.cts
CHANGED
|
@@ -193,8 +193,13 @@ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
193
193
|
mark: Mark;
|
|
194
194
|
}): boolean;
|
|
195
195
|
configure(options?: Partial<Options>): Mark<Options, Storage>;
|
|
196
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
197
|
-
|
|
196
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
197
|
+
name: string;
|
|
198
|
+
options: ExtendedOptions;
|
|
199
|
+
storage: ExtendedStorage;
|
|
200
|
+
editor: Editor;
|
|
201
|
+
type: MarkType$1;
|
|
202
|
+
}>)): Mark<ExtendedOptions, ExtendedStorage>;
|
|
198
203
|
}
|
|
199
204
|
|
|
200
205
|
interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
|
|
@@ -481,8 +486,13 @@ declare class Node<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
481
486
|
*/
|
|
482
487
|
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node<O, S>;
|
|
483
488
|
configure(options?: Partial<Options>): Node<Options, Storage>;
|
|
484
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
485
|
-
|
|
489
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
490
|
+
name: string;
|
|
491
|
+
options: ExtendedOptions;
|
|
492
|
+
storage: ExtendedStorage;
|
|
493
|
+
editor: Editor;
|
|
494
|
+
type: NodeType$1;
|
|
495
|
+
}>)): Node<ExtendedOptions, ExtendedStorage>;
|
|
486
496
|
}
|
|
487
497
|
|
|
488
498
|
type PasteRuleMatch = {
|
|
@@ -1648,8 +1658,13 @@ declare class Extension<Options = any, Storage = any> extends Extendable<Options
|
|
|
1648
1658
|
*/
|
|
1649
1659
|
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>> | (() => Partial<ExtensionConfig<O, S>>)): Extension<O, S>;
|
|
1650
1660
|
configure(options?: Partial<Options>): Extension<Options, Storage>;
|
|
1651
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
1652
|
-
|
|
1661
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
1662
|
+
name: string;
|
|
1663
|
+
options: ExtendedOptions;
|
|
1664
|
+
storage: ExtendedStorage;
|
|
1665
|
+
editor: Editor;
|
|
1666
|
+
type: null;
|
|
1667
|
+
}>)): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1653
1668
|
}
|
|
1654
1669
|
|
|
1655
1670
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -193,8 +193,13 @@ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
193
193
|
mark: Mark;
|
|
194
194
|
}): boolean;
|
|
195
195
|
configure(options?: Partial<Options>): Mark<Options, Storage>;
|
|
196
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
197
|
-
|
|
196
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
197
|
+
name: string;
|
|
198
|
+
options: ExtendedOptions;
|
|
199
|
+
storage: ExtendedStorage;
|
|
200
|
+
editor: Editor;
|
|
201
|
+
type: MarkType$1;
|
|
202
|
+
}>)): Mark<ExtendedOptions, ExtendedStorage>;
|
|
198
203
|
}
|
|
199
204
|
|
|
200
205
|
interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
|
|
@@ -481,8 +486,13 @@ declare class Node<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
481
486
|
*/
|
|
482
487
|
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node<O, S>;
|
|
483
488
|
configure(options?: Partial<Options>): Node<Options, Storage>;
|
|
484
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
485
|
-
|
|
489
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
490
|
+
name: string;
|
|
491
|
+
options: ExtendedOptions;
|
|
492
|
+
storage: ExtendedStorage;
|
|
493
|
+
editor: Editor;
|
|
494
|
+
type: NodeType$1;
|
|
495
|
+
}>)): Node<ExtendedOptions, ExtendedStorage>;
|
|
486
496
|
}
|
|
487
497
|
|
|
488
498
|
type PasteRuleMatch = {
|
|
@@ -1648,8 +1658,13 @@ declare class Extension<Options = any, Storage = any> extends Extendable<Options
|
|
|
1648
1658
|
*/
|
|
1649
1659
|
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>> | (() => Partial<ExtensionConfig<O, S>>)): Extension<O, S>;
|
|
1650
1660
|
configure(options?: Partial<Options>): Extension<Options, Storage>;
|
|
1651
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
1652
|
-
|
|
1661
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
1662
|
+
name: string;
|
|
1663
|
+
options: ExtendedOptions;
|
|
1664
|
+
storage: ExtendedStorage;
|
|
1665
|
+
editor: Editor;
|
|
1666
|
+
type: null;
|
|
1667
|
+
}>)): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1653
1668
|
}
|
|
1654
1669
|
|
|
1655
1670
|
/**
|