@prosekit/core
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -8,3 +8,3 @@ import { | ||
setupEditorExtension | ||
} from "./chunk-52BNHWWJ.js"; | ||
} from "./chunk-M267LRMB.js"; | ||
@@ -11,0 +11,0 @@ // src/test/test-editor.ts |
@@ -139,2 +139,3 @@ export { addMark } from './_tsup-dts-rollup'; | ||
export { NodeContent } from './_tsup-dts-rollup'; | ||
export { containsInlineNode } from './_tsup-dts-rollup'; | ||
export { defaultBlockAt } from './_tsup-dts-rollup'; | ||
@@ -141,0 +142,0 @@ export { isApple } from './_tsup-dts-rollup'; |
@@ -38,3 +38,3 @@ import { | ||
union | ||
} from "./chunk-52BNHWWJ.js"; | ||
} from "./chunk-M267LRMB.js"; | ||
@@ -1278,2 +1278,12 @@ // src/commands/add-mark.ts | ||
// src/utils/contains-inline-node.ts | ||
function containsInlineNode(doc, from, to) { | ||
let found = false; | ||
doc.nodesBetween(from, to, (node) => { | ||
if (found) return false; | ||
if (node.isInline) found = true; | ||
}); | ||
return found; | ||
} | ||
// src/utils/default-block-at.ts | ||
@@ -1340,2 +1350,3 @@ function defaultBlockAt(match) { | ||
collectNodes, | ||
containsInlineNode, | ||
createEditor, | ||
@@ -1342,0 +1353,0 @@ defaultBlockAt, |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"private": false, | ||
@@ -47,3 +47,3 @@ "author": { | ||
"type-fest": "^4.22.1", | ||
"@prosekit/pm": "^0.1.6" | ||
"@prosekit/pm": "^0.1.7" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
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
159189
5010
Updated@prosekit/pm@^0.1.7