/**
 * Validation Constants
 *
 * Shared constants for validation issue categorization across HTML Editor components
 */

// Issue sources for categorizing validation errors
export const ISSUE_SOURCES = {
  HTMLHINT: 'htmlhint',
  CSS_VALIDATOR: 'css-validator',
  CUSTOM: 'custom',
  SECURITY: 'security',
  LIQUID: 'liquid-validator',
};

// Label issue patterns - syntax errors related to tags
// These patterns identify tag syntax errors (open/close tags, attributes, brackets)
export const LABEL_ISSUE_PATTERNS = [
  'tag must be paired',
  'open tag match failed',
  'closed tag match failed',
  'missing required',
  'tag-pair',
  'attr-value-not-empty',
  'attr-no-duplication',
  'tag-self-close',
  'spec-char-escape',
  'tagname-lowercase',
  'attr-lowercase',
  'src-not-empty',
  'alt-require',
];

// Tab keys: Errors = blocking, Warnings = non-blocking
export const ERROR_TAB_KEYS = {
  ERRORS: 'errors',
  WARNINGS: 'warnings',
};
