@milkdown/prose
Advanced tools
Comparing version 5.4.1 to 5.5.0
@@ -49,3 +49,3 @@ export * from "prosemirror-commands"; | ||
const match = rules[i].match.exec(textBefore); | ||
const tr = match && rules[i].handler(state, match, from - (match[0].length - text.length), to); | ||
const tr = match && match[0] && rules[i].handler(state, match, from - (match[0].length - text.length), to); | ||
if (!tr) | ||
@@ -58,3 +58,3 @@ continue; | ||
} | ||
const customInputRulesKey = new PluginKey("customInputRules"); | ||
const customInputRulesKey = new PluginKey("MILKDOWN_PLUGIN_CUSTOM_INPUTRULES"); | ||
const customInputRules = ({ rules }) => { | ||
@@ -61,0 +61,0 @@ const plugin = new Plugin({ |
{ | ||
"name": "@milkdown/prose", | ||
"version": "5.4.1", | ||
"version": "5.5.0", | ||
"type": "module", | ||
@@ -14,3 +14,3 @@ "main": "./lib/index.es.js", | ||
"dependencies": { | ||
"@milkdown/exception": "5.4.1", | ||
"@milkdown/exception": "5.5.0", | ||
"@types/prosemirror-commands": "^1.0.4", | ||
@@ -17,0 +17,0 @@ "@types/prosemirror-dropcursor": "^1.0.2", |
@@ -18,2 +18,3 @@ /* Copyright 2021, Milkdown by Mirone. */ | ||
match && | ||
match[0] && | ||
( | ||
@@ -29,3 +30,3 @@ rules[i] as { handler: (state: EditorState, match: string[], from: number, to: number) => Transaction } | ||
export const customInputRulesKey = new PluginKey('customInputRules'); | ||
export const customInputRulesKey = new PluginKey('MILKDOWN_PLUGIN_CUSTOM_INPUTRULES'); | ||
export const customInputRules = ({ rules }: { rules: InputRule[] }): Plugin => { | ||
@@ -32,0 +33,0 @@ const plugin: Plugin = new Plugin({ |
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
49330
648
71
1
1
1
7
+ Added@milkdown/exception@5.5.0(transitive)
- Removed@milkdown/exception@5.4.1(transitive)
Updated@milkdown/exception@5.5.0