@prosekit/core
Advanced tools
Comparing version 0.1.9 to 0.2.0
@@ -410,10 +410,2 @@ import { AllSelection } from '@prosekit/pm/state'; | ||
use(extension: Extension): VoidFunction; | ||
/** | ||
* @deprecated | ||
*/ | ||
isNodeActive(nodeType: string | NodeType, attrs?: Attrs): boolean; | ||
/** | ||
* @deprecated | ||
*/ | ||
isMarkActive(markType: string | MarkType, attrs?: Attrs): boolean; | ||
get nodes(): Record<ExtractNodes<E>, NodeBuilder>; | ||
@@ -420,0 +412,0 @@ get marks(): Record<ExtractMarks<E>, MarkBuilder>; |
@@ -666,2 +666,5 @@ // src/commands/add-mark.ts | ||
// src/editor/builder.ts | ||
import "@prosekit/pm/model"; | ||
// src/utils/type-assertion.ts | ||
@@ -713,3 +716,2 @@ import { Mark, ProseMirrorNode } from "@prosekit/pm/model"; | ||
// src/editor/builder.ts | ||
import "@prosekit/pm/model"; | ||
function createNodeBuilder(getState, type) { | ||
@@ -1027,14 +1029,2 @@ const builder = (...args) => buildNode(type, args); | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
isNodeActive(nodeType, attrs) { | ||
return isNodeActive(this.view.state, nodeType, attrs); | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
isMarkActive(markType, attrs) { | ||
return isMarkActive(this.view.state, markType, attrs); | ||
} | ||
get nodes() { | ||
@@ -1041,0 +1031,0 @@ return this.instance.nodeBuilders; |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"private": false, | ||
@@ -32,5 +32,2 @@ "author": { | ||
"default": "./dist/prosekit-core.js" | ||
}, | ||
"./style.css": { | ||
"default": "./dist/style.css" | ||
} | ||
@@ -50,3 +47,3 @@ }, | ||
"typescript": "^5.3.3", | ||
"vitest": "^1.0.4" | ||
"vitest": "^1.1.0" | ||
}, | ||
@@ -53,0 +50,0 @@ "scripts": { |
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
77940
7
2483