@milkdown/core
Advanced tools
Comparing version 4.5.1 to 4.5.2
# @milkdown/core | ||
## 4.5.2 | ||
### Patch Changes | ||
- 0dd0320: Add configurable keyboard shortcuts feature. | ||
## 4.5.1 | ||
@@ -4,0 +10,0 @@ |
@@ -11,3 +11,3 @@ import type { Keymap } from 'prosemirror-commands'; | ||
readonly view?: MarkViewFactory; | ||
readonly keymap?: (markType: MarkType) => Keymap; | ||
readonly keymap?: (markType: MarkType, schema: Schema) => Keymap; | ||
readonly inputRules?: (markType: MarkType, schema: Schema) => InputRule[]; | ||
@@ -14,0 +14,0 @@ } |
@@ -11,3 +11,3 @@ import type { Keymap } from 'prosemirror-commands'; | ||
readonly view?: NodeViewFactory; | ||
readonly keymap?: (nodeType: NodeType) => Keymap; | ||
readonly keymap?: (nodeType: NodeType, schema: Schema) => Keymap; | ||
readonly inputRules?: (nodeType: NodeType, schema: Schema) => InputRule[]; | ||
@@ -14,0 +14,0 @@ } |
@@ -17,3 +17,3 @@ import { keymap } from 'prosemirror-keymap'; | ||
throw new Error(); | ||
return (_a = cur.keymap) === null || _a === void 0 ? void 0 : _a.call(cur, node); | ||
return (_a = cur.keymap) === null || _a === void 0 ? void 0 : _a.call(cur, node, schema); | ||
}); | ||
@@ -25,3 +25,3 @@ const marksKeymap = marks.map((cur) => { | ||
throw new Error(); | ||
return (_a = cur.keymap) === null || _a === void 0 ? void 0 : _a.call(cur, mark); | ||
return (_a = cur.keymap) === null || _a === void 0 ? void 0 : _a.call(cur, mark, schema); | ||
}); | ||
@@ -28,0 +28,0 @@ const keymapList = [...nodesKeymap, ...marksKeymap] |
@@ -16,3 +16,2 @@ import { Mark } from 'prosemirror-model'; | ||
const closeNode = (ctx) => () => { | ||
// TODO: check wether this can be deleted | ||
ctx.marks = Mark.none; | ||
@@ -19,0 +18,0 @@ const element = ctx.elements.pop(); |
{ | ||
"name": "@milkdown/core", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
99336
1111
118
1
1
1
7