@tiptap/core 3.0.2 → 3.0.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.map +1 -1
- package/dist/index.d.cts +6 -11
- package/dist/index.d.ts +6 -11
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime/jsx-runtime.d.cts +8 -7
- package/dist/jsx-runtime/jsx-runtime.d.ts +8 -7
- package/dist/jsx-runtime/jsx-runtime.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/src/jsx-runtime.ts +11 -10
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
|
/**
|
|
@@ -3161,14 +3164,6 @@ type DOMOutputSpecElement = 0 | Attributes | DOMOutputSpecArray;
|
|
|
3161
3164
|
* @see https://prosemirror.net/docs/ref/#model.DOMOutputSpec
|
|
3162
3165
|
*/
|
|
3163
3166
|
type DOMOutputSpecArray = [string] | [string, Attributes] | [string, 0] | [string, Attributes, 0] | [string, Attributes, DOMOutputSpecArray | 0] | [string, DOMOutputSpecArray];
|
|
3164
|
-
declare global {
|
|
3165
|
-
namespace JSX {
|
|
3166
|
-
type Element = [string, ...any[]];
|
|
3167
|
-
interface IntrinsicElements {
|
|
3168
|
-
[key: string]: any;
|
|
3169
|
-
}
|
|
3170
|
-
}
|
|
3171
|
-
}
|
|
3172
3167
|
type JSXRenderer = (tag: 'slot' | string | ((props?: Attributes) => DOMOutputSpecArray | DOMOutputSpecElement), props?: Attributes, ...children: JSXRenderer[]) => DOMOutputSpecArray | DOMOutputSpecElement;
|
|
3173
3168
|
declare function Fragment(props: {
|
|
3174
3169
|
children: JSXRenderer[];
|
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
|
/**
|
|
@@ -3161,14 +3164,6 @@ type DOMOutputSpecElement = 0 | Attributes | DOMOutputSpecArray;
|
|
|
3161
3164
|
* @see https://prosemirror.net/docs/ref/#model.DOMOutputSpec
|
|
3162
3165
|
*/
|
|
3163
3166
|
type DOMOutputSpecArray = [string] | [string, Attributes] | [string, 0] | [string, Attributes, 0] | [string, Attributes, DOMOutputSpecArray | 0] | [string, DOMOutputSpecArray];
|
|
3164
|
-
declare global {
|
|
3165
|
-
namespace JSX {
|
|
3166
|
-
type Element = [string, ...any[]];
|
|
3167
|
-
interface IntrinsicElements {
|
|
3168
|
-
[key: string]: any;
|
|
3169
|
-
}
|
|
3170
|
-
}
|
|
3171
|
-
}
|
|
3172
3167
|
type JSXRenderer = (tag: 'slot' | string | ((props?: Attributes) => DOMOutputSpecArray | DOMOutputSpecElement), props?: Attributes, ...children: JSXRenderer[]) => DOMOutputSpecArray | DOMOutputSpecElement;
|
|
3173
3168
|
declare function Fragment(props: {
|
|
3174
3169
|
children: JSXRenderer[];
|