Provides a set of named constants for the built-in validation violations in Slate's schema. This package is part of the Slate editor framework ecosystem and is used internally by `slate-schema` to represent rule-breaking reasons with human-readable identifiers. Version 0.1.39 is the latest stable release. It has no regular release cadence and is a lightweight utility with no dependencies. Key differentiator: it avoids magic strings for violation types.
npm install slate-schema-violationsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using a few violation constants from the package.
Migrate to Slate's new architecture; this package is no longer maintained.
Use these constants as keys in schema rules for clarity.
Import specific constants by name or use import * as Violations.
Run npm install slate-schema-violations --save
Use named import: import { CHILD_TYPE_INVALID } from 'slate-schema-violations'No dependency data recorded yet.