fix: Add debounced Undo/Redo system to avoid character-by-character history
- Add debounced state updates for title and content (500ms delay) - Immediate UI updates with delayed history saving - Prevent one-letter-per-undo issue - Add cleanup for debounce timers on unmount
This commit is contained in:
23
mcp-server/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts
generated
vendored
Normal file
23
mcp-server/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type {CodeKeywordDefinition, ErrorObject} from "../../types"
|
||||
import {
|
||||
validatePropertyDeps,
|
||||
error,
|
||||
DependenciesErrorParams,
|
||||
PropertyDependencies,
|
||||
} from "../applicator/dependencies"
|
||||
|
||||
export type DependentRequiredError = ErrorObject<
|
||||
"dependentRequired",
|
||||
DependenciesErrorParams,
|
||||
PropertyDependencies
|
||||
>
|
||||
|
||||
const def: CodeKeywordDefinition = {
|
||||
keyword: "dependentRequired",
|
||||
type: "object",
|
||||
schemaType: "object",
|
||||
error,
|
||||
code: (cxt) => validatePropertyDeps(cxt),
|
||||
}
|
||||
|
||||
export default def
|
||||
Reference in New Issue
Block a user