@prosekit/core
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -230,3 +230,7 @@ import { Attrs } from '@prosekit/pm/model'; | ||
/** @public */ | ||
/** | ||
* @public | ||
* | ||
* Defines a paragraph node spec as the highest priority, because it should be the default block node for most cases. | ||
*/ | ||
declare function defineParagraph(): Extension< { | ||
@@ -239,2 +243,11 @@ NODES: "paragraph"; | ||
/** | ||
* @public | ||
* | ||
* Defines a paragraph node spec. | ||
*/ | ||
export declare function defineParagraphSpec(): Extension< { | ||
NODES: "paragraph"; | ||
}>; | ||
/** | ||
* Adds a ProseMirror plugin to the editor. | ||
@@ -241,0 +254,0 @@ * |
@@ -982,3 +982,4 @@ // src/commands/add-mark.ts | ||
name: "doc", | ||
content: "block+" | ||
content: "block+", | ||
topNode: true | ||
}); | ||
@@ -1224,3 +1225,3 @@ } | ||
// src/extensions/paragraph.ts | ||
function defineParagraph() { | ||
function defineParagraphSpec() { | ||
return defineNodeSpec({ | ||
@@ -1236,2 +1237,5 @@ name: "paragraph", | ||
} | ||
function defineParagraph() { | ||
return withPriority(defineParagraphSpec(), 0 /* highest */); | ||
} | ||
@@ -1238,0 +1242,0 @@ // src/extensions/text.ts |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"private": false, | ||
@@ -43,3 +43,3 @@ "author": { | ||
"orderedmap": "^2.1.1", | ||
"type-fest": "^4.5.0" | ||
"type-fest": "^4.6.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64311
2009
Updatedtype-fest@^4.6.0