@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.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, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Mark<ExtendedOptions, ExtendedStorage>;
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, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Node<ExtendedOptions, ExtendedStorage>;
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, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Extension<ExtendedOptions, ExtendedStorage>;
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, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Mark<ExtendedOptions, ExtendedStorage>;
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, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Node<ExtendedOptions, ExtendedStorage>;
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, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig> | (() => Partial<ExtendedConfig>)): Extension<ExtendedOptions, ExtendedStorage>;
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[];