prosemirror-flat-list
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -1010,11 +1010,17 @@ // src/commands/dedent-list.ts | ||
}), | ||
wrappingListInputRule(orderedRegexp, { | ||
type: "ordered", | ||
collapsed: false | ||
wrappingListInputRule(orderedRegexp, (match) => { | ||
const order = parseInteger(match[1]); | ||
return { | ||
type: "ordered", | ||
collapsed: false, | ||
order: order != null && order >= 2 ? order : null | ||
}; | ||
}), | ||
wrappingListInputRule(taskRegexp, (match) => ({ | ||
type: "task", | ||
checked: ["x", "X"].includes(match[1]), | ||
collapsed: false | ||
})), | ||
wrappingListInputRule(taskRegexp, (match) => { | ||
return { | ||
type: "task", | ||
checked: ["x", "X"].includes(match[1]), | ||
collapsed: false | ||
}; | ||
}), | ||
wrappingListInputRule(toggleRegexp, { | ||
@@ -1196,4 +1202,5 @@ type: "toggle" | ||
migrateDocJSON, | ||
parseInteger, | ||
protectCollapsed, | ||
wrappingListInputRule | ||
}; |
@@ -246,2 +246,5 @@ import { Attrs } from 'prosemirror-model'; | ||
/** @internal */ | ||
export declare function parseInteger(attr: string | null | undefined): number | null; | ||
/** @public */ | ||
@@ -248,0 +251,0 @@ export declare interface ProsemirrorNodeJSON { |
@@ -1010,11 +1010,17 @@ // src/commands/dedent-list.ts | ||
}), | ||
wrappingListInputRule(orderedRegexp, { | ||
type: "ordered", | ||
collapsed: false | ||
wrappingListInputRule(orderedRegexp, (match) => { | ||
const order = parseInteger(match[1]); | ||
return { | ||
type: "ordered", | ||
collapsed: false, | ||
order: order != null && order >= 2 ? order : null | ||
}; | ||
}), | ||
wrappingListInputRule(taskRegexp, (match) => ({ | ||
type: "task", | ||
checked: ["x", "X"].includes(match[1]), | ||
collapsed: false | ||
})), | ||
wrappingListInputRule(taskRegexp, (match) => { | ||
return { | ||
type: "task", | ||
checked: ["x", "X"].includes(match[1]), | ||
collapsed: false | ||
}; | ||
}), | ||
wrappingListInputRule(toggleRegexp, { | ||
@@ -1196,4 +1202,5 @@ type: "toggle" | ||
migrateDocJSON, | ||
parseInteger, | ||
protectCollapsed, | ||
wrappingListInputRule | ||
}; |
{ | ||
"name": "prosemirror-flat-list", | ||
"type": "module", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "author": "ocavue <ocavue@gmail.com>", |
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
121154
3862