@tiptap/core 3.7.0 → 3.7.1
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type Attributes = Record<string, any>;
|
|
2
|
+
type DOMOutputSpecElement = 0 | Attributes | DOMOutputSpecArray;
|
|
3
|
+
/**
|
|
4
|
+
* Better describes the output of a `renderHTML` function in prosemirror
|
|
5
|
+
* @see https://prosemirror.net/docs/ref/#model.DOMOutputSpec
|
|
6
|
+
*/
|
|
7
|
+
type DOMOutputSpecArray = [string] | [string, Attributes] | [string, 0] | [string, Attributes, 0] | [string, Attributes, DOMOutputSpecArray | 0] | [string, DOMOutputSpecArray];
|
|
8
|
+
declare namespace JSX {
|
|
9
|
+
type Element = DOMOutputSpecArray;
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface ElementChildrenAttribute {
|
|
14
|
+
children: unknown;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
type JSXRenderer = (tag: 'slot' | string | ((props?: Attributes) => DOMOutputSpecArray | DOMOutputSpecElement), props?: Attributes, ...children: JSXRenderer[]) => DOMOutputSpecArray | DOMOutputSpecElement;
|
|
18
|
+
declare function Fragment(props: {
|
|
19
|
+
children: JSXRenderer[];
|
|
20
|
+
}): JSXRenderer[];
|
|
21
|
+
declare const h: JSXRenderer;
|
|
22
|
+
|
|
23
|
+
export { type Attributes, type DOMOutputSpecArray, type DOMOutputSpecElement, Fragment, JSX, type JSXRenderer, h as createElement, h, h as jsx, h as jsxDEV, h as jsxs };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type Attributes = Record<string, any>;
|
|
2
|
+
type DOMOutputSpecElement = 0 | Attributes | DOMOutputSpecArray;
|
|
3
|
+
/**
|
|
4
|
+
* Better describes the output of a `renderHTML` function in prosemirror
|
|
5
|
+
* @see https://prosemirror.net/docs/ref/#model.DOMOutputSpec
|
|
6
|
+
*/
|
|
7
|
+
type DOMOutputSpecArray = [string] | [string, Attributes] | [string, 0] | [string, Attributes, 0] | [string, Attributes, DOMOutputSpecArray | 0] | [string, DOMOutputSpecArray];
|
|
8
|
+
declare namespace JSX {
|
|
9
|
+
type Element = DOMOutputSpecArray;
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface ElementChildrenAttribute {
|
|
14
|
+
children: unknown;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
type JSXRenderer = (tag: 'slot' | string | ((props?: Attributes) => DOMOutputSpecArray | DOMOutputSpecElement), props?: Attributes, ...children: JSXRenderer[]) => DOMOutputSpecArray | DOMOutputSpecElement;
|
|
18
|
+
declare function Fragment(props: {
|
|
19
|
+
children: JSXRenderer[];
|
|
20
|
+
}): JSXRenderer[];
|
|
21
|
+
declare const h: JSXRenderer;
|
|
22
|
+
|
|
23
|
+
export { type Attributes, type DOMOutputSpecArray, type DOMOutputSpecElement, Fragment, JSX, type JSXRenderer, h as createElement, h, h as jsx, h as jsxDEV, h as jsxs };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/core",
|
|
3
3
|
"description": "headless rich text editor",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.1",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"jsx-dev-runtime"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@tiptap/pm": "^3.7.
|
|
55
|
+
"@tiptap/pm": "^3.7.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@tiptap/pm": "^3.7.
|
|
58
|
+
"@tiptap/pm": "^3.7.1"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
|
61
61
|
"type": "git",
|