@tiptap/core 3.0.3 → 3.0.5
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/Extension.ts +9 -1
- package/src/Mark.ts +9 -1
- package/src/Node.ts +9 -1
package/dist/index.d.cts
CHANGED
|
@@ -193,7 +193,8 @@ 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
|
|
196
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
|
|
197
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
|
|
@@ -480,7 +481,8 @@ declare class Node<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
480
481
|
*/
|
|
481
482
|
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node<O, S>;
|
|
482
483
|
configure(options?: Partial<Options>): Node<Options, Storage>;
|
|
483
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
484
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>;
|
|
485
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>;
|
|
484
486
|
}
|
|
485
487
|
|
|
486
488
|
type PasteRuleMatch = {
|
|
@@ -1646,7 +1648,8 @@ declare class Extension<Options = any, Storage = any> extends Extendable<Options
|
|
|
1646
1648
|
*/
|
|
1647
1649
|
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>> | (() => Partial<ExtensionConfig<O, S>>)): Extension<O, S>;
|
|
1648
1650
|
configure(options?: Partial<Options>): Extension<Options, Storage>;
|
|
1649
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
1651
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1652
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1650
1653
|
}
|
|
1651
1654
|
|
|
1652
1655
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -193,7 +193,8 @@ 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
|
|
196
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
|
|
197
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
|
|
@@ -480,7 +481,8 @@ declare class Node<Options = any, Storage = any> extends Extendable<Options, Sto
|
|
|
480
481
|
*/
|
|
481
482
|
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node<O, S>;
|
|
482
483
|
configure(options?: Partial<Options>): Node<Options, Storage>;
|
|
483
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
484
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>;
|
|
485
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>;
|
|
484
486
|
}
|
|
485
487
|
|
|
486
488
|
type PasteRuleMatch = {
|
|
@@ -1646,7 +1648,8 @@ declare class Extension<Options = any, Storage = any> extends Extendable<Options
|
|
|
1646
1648
|
*/
|
|
1647
1649
|
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>> | (() => Partial<ExtensionConfig<O, S>>)): Extension<O, S>;
|
|
1648
1650
|
configure(options?: Partial<Options>): Extension<Options, Storage>;
|
|
1649
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage
|
|
1651
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1652
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>;
|
|
1650
1653
|
}
|
|
1651
1654
|
|
|
1652
1655
|
/**
|