prosemirror-flat-list
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -1165,5 +1165,13 @@ // src/commands/dedent-list.ts | ||
} else { | ||
const beforeNode = $from.posAtIndex(i, depth); | ||
const afterNode = $from.posAtIndex(i + 1, depth); | ||
let nodeStart = beforeNode + 1; | ||
let nodeEnd = afterNode - 1; | ||
if (nodeStart > nodeEnd) { | ||
; | ||
[nodeStart, nodeEnd] = [nodeEnd, nodeStart]; | ||
} | ||
const range2 = new NodeRange6( | ||
tr.doc.resolve($from.posAtIndex(i, depth) + 1), | ||
tr.doc.resolve($from.posAtIndex(i + 1, depth) - 1), | ||
tr.doc.resolve(nodeStart), | ||
tr.doc.resolve(nodeEnd), | ||
depth | ||
@@ -1170,0 +1178,0 @@ ); |
@@ -1165,5 +1165,13 @@ // src/commands/dedent-list.ts | ||
} else { | ||
const beforeNode = $from.posAtIndex(i, depth); | ||
const afterNode = $from.posAtIndex(i + 1, depth); | ||
let nodeStart = beforeNode + 1; | ||
let nodeEnd = afterNode - 1; | ||
if (nodeStart > nodeEnd) { | ||
; | ||
[nodeStart, nodeEnd] = [nodeEnd, nodeStart]; | ||
} | ||
const range2 = new NodeRange6( | ||
tr.doc.resolve($from.posAtIndex(i, depth) + 1), | ||
tr.doc.resolve($from.posAtIndex(i + 1, depth) - 1), | ||
tr.doc.resolve(nodeStart), | ||
tr.doc.resolve(nodeEnd), | ||
depth | ||
@@ -1170,0 +1178,0 @@ ); |
{ | ||
"name": "prosemirror-flat-list", | ||
"type": "module", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Powerful list support for ProseMirror", | ||
@@ -42,19 +42,20 @@ "author": "ocavue <ocavue@gmail.com>", | ||
"prosemirror-transform": "^1.7.1", | ||
"prosemirror-view": "^1.30.1" | ||
"prosemirror-view": "^1.30.2" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.34.4", | ||
"@remirror/core": "^2.0.11", | ||
"@remirror/extension-blockquote": "^2.0.12", | ||
"@remirror/extension-heading": "^2.0.11", | ||
"@remirror/pm": "^2.0.3", | ||
"@remirror/preset-core": "^2.0.14", | ||
"@remirror/core": "^2.0.12", | ||
"@remirror/extension-blockquote": "^2.0.13", | ||
"@remirror/extension-heading": "^2.0.12", | ||
"@remirror/extension-horizontal-rule": "^2.0.12", | ||
"@remirror/pm": "^2.0.4", | ||
"@remirror/preset-core": "^2.0.15", | ||
"@types/dedent": "^0.7.0", | ||
"@types/node": "^18.14.6", | ||
"@vitest/coverage-c8": "^0.29.2", | ||
"@types/node": "^18.15.5", | ||
"@vitest/coverage-c8": "^0.29.7", | ||
"dedent": "^0.7.0", | ||
"execa": "^7.0.0", | ||
"jest-prosemirror": "^2.1.1", | ||
"jest-remirror": "^2.1.3", | ||
"jsdom": "^21.1.0", | ||
"execa": "^7.1.1", | ||
"jest-prosemirror": "^2.1.2", | ||
"jest-remirror": "^2.1.4", | ||
"jsdom": "^21.1.1", | ||
"npm-run-all": "^4.1.5", | ||
@@ -69,11 +70,13 @@ "postcss": "^8.4.21", | ||
"remark-rehype": "^10.1.0", | ||
"remirror": "^2.0.24", | ||
"tsup": "^6.6.3", | ||
"remirror": "^2.0.26", | ||
"tsup": "^6.7.0", | ||
"typescript": "^4.9.5", | ||
"unified": "^10.1.2", | ||
"vite": "^4.1.4", | ||
"vitest": "^0.29.2" | ||
"vite": "^4.2.1", | ||
"vitest": "^0.29.7" | ||
}, | ||
"typedoc": { | ||
"entryPoint": "./src/index.ts" | ||
"typedocOptions": { | ||
"entryPoints": [ | ||
"src/index.ts" | ||
] | ||
}, | ||
@@ -80,0 +83,0 @@ "scripts": { |
@@ -7,4 +7,4 @@ # prosemirror-flat-list | ||
## [API Reference](https://prosemirror-flat-list.netlify.app/docs/modules/prosemirror_flat_list) | ||
## [API Reference](https://prosemirror-flat-list.netlify.app/docs/prosemirror_flat_list) | ||
## [Changelog](https://github.com/ocavue/prosemirror-flat-list/blob/master/packages/core/CHANGELOG.md) |
Sorry, the diff of this file is not supported yet
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
160694
5078
30
Updatedprosemirror-view@^1.30.2