@empline/preflight 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checks/consolidated/auth-storage-state.d.ts +3 -0
- package/dist/checks/consolidated/auth-storage-state.d.ts.map +1 -0
- package/dist/checks/consolidated/auth-storage-state.js +146 -0
- package/dist/checks/consolidated/auth-storage-state.js.map +1 -0
- package/dist/checks/consolidated/business.d.ts +50 -0
- package/dist/checks/consolidated/business.d.ts.map +1 -0
- package/dist/checks/consolidated/business.js +252 -0
- package/dist/checks/consolidated/business.js.map +1 -0
- package/dist/checks/consolidated/caching-strategy.d.ts +104 -0
- package/dist/checks/consolidated/caching-strategy.d.ts.map +1 -0
- package/dist/checks/consolidated/caching-strategy.js +725 -0
- package/dist/checks/consolidated/caching-strategy.js.map +1 -0
- package/dist/checks/consolidated/code-quality.d.ts +83 -0
- package/dist/checks/consolidated/code-quality.d.ts.map +1 -0
- package/dist/checks/consolidated/code-quality.js +445 -0
- package/dist/checks/consolidated/code-quality.js.map +1 -0
- package/dist/checks/consolidated/console-statements.d.ts +32 -0
- package/dist/checks/consolidated/console-statements.d.ts.map +1 -0
- package/dist/checks/consolidated/console-statements.js +304 -0
- package/dist/checks/consolidated/console-statements.js.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts +24 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.js +415 -0
- package/dist/checks/consolidated/css-advanced-validation.js.map +1 -0
- package/dist/checks/consolidated/css-organization.d.ts +14 -0
- package/dist/checks/consolidated/css-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/css-organization.js +432 -0
- package/dist/checks/consolidated/css-organization.js.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts +22 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.js +330 -0
- package/dist/checks/consolidated/css-runtime-validation.js.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts +17 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.js +412 -0
- package/dist/checks/consolidated/css-variable-validation.js.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts +23 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.js +291 -0
- package/dist/checks/consolidated/dark-mode-consistency.js.map +1 -0
- package/dist/checks/consolidated/database.d.ts +95 -0
- package/dist/checks/consolidated/database.d.ts.map +1 -0
- package/dist/checks/consolidated/database.js +427 -0
- package/dist/checks/consolidated/database.js.map +1 -0
- package/dist/checks/consolidated/e2e-checks.d.ts +52 -0
- package/dist/checks/consolidated/e2e-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-checks.js +157 -0
- package/dist/checks/consolidated/e2e-checks.js.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts +14 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js +151 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js.map +1 -0
- package/dist/checks/consolidated/e2e-validation.d.ts +137 -0
- package/dist/checks/consolidated/e2e-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-validation.js +1001 -0
- package/dist/checks/consolidated/e2e-validation.js.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts +9 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.js +277 -0
- package/dist/checks/consolidated/enterprise-baseline.js.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts +6 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.js +161 -0
- package/dist/checks/consolidated/generate-pageload-config.js.map +1 -0
- package/dist/checks/consolidated/hardened-checks.d.ts +276 -0
- package/dist/checks/consolidated/hardened-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/hardened-checks.js +3056 -0
- package/dist/checks/consolidated/hardened-checks.js.map +1 -0
- package/dist/checks/consolidated/homepage-ux.d.ts +12 -0
- package/dist/checks/consolidated/homepage-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/homepage-ux.js +242 -0
- package/dist/checks/consolidated/homepage-ux.js.map +1 -0
- package/dist/checks/consolidated/images.d.ts +76 -0
- package/dist/checks/consolidated/images.d.ts.map +1 -0
- package/dist/checks/consolidated/images.js +311 -0
- package/dist/checks/consolidated/images.js.map +1 -0
- package/dist/checks/consolidated/import-cycles.d.ts +63 -0
- package/dist/checks/consolidated/import-cycles.d.ts.map +1 -0
- package/dist/checks/consolidated/import-cycles.js +291 -0
- package/dist/checks/consolidated/import-cycles.js.map +1 -0
- package/dist/checks/consolidated/imports.d.ts +112 -0
- package/dist/checks/consolidated/imports.d.ts.map +1 -0
- package/dist/checks/consolidated/imports.js +977 -0
- package/dist/checks/consolidated/imports.js.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts +21 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.js +300 -0
- package/dist/checks/consolidated/inline-style-conflicts.js.map +1 -0
- package/dist/checks/consolidated/lib-organization.d.ts +12 -0
- package/dist/checks/consolidated/lib-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/lib-organization.js +419 -0
- package/dist/checks/consolidated/lib-organization.js.map +1 -0
- package/dist/checks/consolidated/n-plus-one.d.ts +63 -0
- package/dist/checks/consolidated/n-plus-one.d.ts.map +1 -0
- package/dist/checks/consolidated/n-plus-one.js +331 -0
- package/dist/checks/consolidated/n-plus-one.js.map +1 -0
- package/dist/checks/consolidated/nextjs.d.ts +51 -0
- package/dist/checks/consolidated/nextjs.d.ts.map +1 -0
- package/dist/checks/consolidated/nextjs.js +205 -0
- package/dist/checks/consolidated/nextjs.js.map +1 -0
- package/dist/checks/consolidated/organization.d.ts +54 -0
- package/dist/checks/consolidated/organization.d.ts.map +1 -0
- package/dist/checks/consolidated/organization.js +158 -0
- package/dist/checks/consolidated/organization.js.map +1 -0
- package/dist/checks/consolidated/pageload.d.ts +12 -0
- package/dist/checks/consolidated/pageload.d.ts.map +1 -0
- package/dist/checks/consolidated/pageload.js +138 -0
- package/dist/checks/consolidated/pageload.js.map +1 -0
- package/dist/checks/consolidated/performance.d.ts +112 -0
- package/dist/checks/consolidated/performance.d.ts.map +1 -0
- package/dist/checks/consolidated/performance.js +1546 -0
- package/dist/checks/consolidated/performance.js.map +1 -0
- package/dist/checks/consolidated/quality.d.ts +52 -0
- package/dist/checks/consolidated/quality.d.ts.map +1 -0
- package/dist/checks/consolidated/quality.js +253 -0
- package/dist/checks/consolidated/quality.js.map +1 -0
- package/dist/checks/consolidated/react.d.ts +48 -0
- package/dist/checks/consolidated/react.d.ts.map +1 -0
- package/dist/checks/consolidated/react.js +203 -0
- package/dist/checks/consolidated/react.js.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts +17 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.js +242 -0
- package/dist/checks/consolidated/regression-hygiene.js.map +1 -0
- package/dist/checks/consolidated/regression.d.ts +20 -0
- package/dist/checks/consolidated/regression.d.ts.map +1 -0
- package/dist/checks/consolidated/regression.js +121 -0
- package/dist/checks/consolidated/regression.js.map +1 -0
- package/dist/checks/consolidated/runtime.d.ts +53 -0
- package/dist/checks/consolidated/runtime.d.ts.map +1 -0
- package/dist/checks/consolidated/runtime.js +160 -0
- package/dist/checks/consolidated/runtime.js.map +1 -0
- package/dist/checks/consolidated/script-performance.d.ts +17 -0
- package/dist/checks/consolidated/script-performance.d.ts.map +1 -0
- package/dist/checks/consolidated/script-performance.js +137 -0
- package/dist/checks/consolidated/script-performance.js.map +1 -0
- package/dist/checks/consolidated/security.d.ts +78 -0
- package/dist/checks/consolidated/security.d.ts.map +1 -0
- package/dist/checks/consolidated/security.js +404 -0
- package/dist/checks/consolidated/security.js.map +1 -0
- package/dist/checks/consolidated/seo.d.ts +31 -0
- package/dist/checks/consolidated/seo.d.ts.map +1 -0
- package/dist/checks/consolidated/seo.js +1438 -0
- package/dist/checks/consolidated/seo.js.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts +22 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js +280 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts +25 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.js +533 -0
- package/dist/checks/consolidated/tailwind-class-validation.js.map +1 -0
- package/dist/checks/consolidated/testing.d.ts +54 -0
- package/dist/checks/consolidated/testing.d.ts.map +1 -0
- package/dist/checks/consolidated/testing.js +163 -0
- package/dist/checks/consolidated/testing.js.map +1 -0
- package/dist/checks/consolidated/typescript.d.ts +3 -0
- package/dist/checks/consolidated/typescript.d.ts.map +1 -0
- package/dist/checks/consolidated/typescript.js +31 -0
- package/dist/checks/consolidated/typescript.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts +104 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js +689 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts +121 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.js +776 -0
- package/dist/checks/consolidated/ui-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts +142 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js +1220 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts +108 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.js +531 -0
- package/dist/checks/consolidated/ui-animation-duration.js.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts +90 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.js +519 -0
- package/dist/checks/consolidated/ui-border-radius.js.map +1 -0
- package/dist/checks/consolidated/ui-buttons.d.ts +32 -0
- package/dist/checks/consolidated/ui-buttons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-buttons.js +481 -0
- package/dist/checks/consolidated/ui-buttons.js.map +1 -0
- package/dist/checks/consolidated/ui-cards.d.ts +29 -0
- package/dist/checks/consolidated/ui-cards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cards.js +504 -0
- package/dist/checks/consolidated/ui-cards.js.map +1 -0
- package/dist/checks/consolidated/ui-checks.d.ts +48 -0
- package/dist/checks/consolidated/ui-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-checks.js +264 -0
- package/dist/checks/consolidated/ui-checks.js.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts +81 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.js +650 -0
- package/dist/checks/consolidated/ui-cleanup.js.map +1 -0
- package/dist/checks/consolidated/ui-components.d.ts +255 -0
- package/dist/checks/consolidated/ui-components.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-components.js +2008 -0
- package/dist/checks/consolidated/ui-components.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts +130 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js +982 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts +30 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js +1018 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts +26 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.js +606 -0
- package/dist/checks/consolidated/ui-consistency-extended.js.map +1 -0
- package/dist/checks/consolidated/ui-data-display.d.ts +103 -0
- package/dist/checks/consolidated/ui-data-display.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-data-display.js +740 -0
- package/dist/checks/consolidated/ui-data-display.js.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts +22 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.js +336 -0
- package/dist/checks/consolidated/ui-deprecated.js.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts +90 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.js +511 -0
- package/dist/checks/consolidated/ui-empty-null-states.js.map +1 -0
- package/dist/checks/consolidated/ui-error-states.d.ts +99 -0
- package/dist/checks/consolidated/ui-error-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-error-states.js +694 -0
- package/dist/checks/consolidated/ui-error-states.js.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts +90 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js +596 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js.map +1 -0
- package/dist/checks/consolidated/ui-forms.d.ts +32 -0
- package/dist/checks/consolidated/ui-forms.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-forms.js +568 -0
- package/dist/checks/consolidated/ui-forms.js.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts +90 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js +568 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts +27 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.js +441 -0
- package/dist/checks/consolidated/ui-grid-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts +104 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js +514 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-iconography.d.ts +90 -0
- package/dist/checks/consolidated/ui-iconography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-iconography.js +565 -0
- package/dist/checks/consolidated/ui-iconography.js.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts +240 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.js +2474 -0
- package/dist/checks/consolidated/ui-interactive-states.js.map +1 -0
- package/dist/checks/consolidated/ui-layout.d.ts +256 -0
- package/dist/checks/consolidated/ui-layout.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-layout.js +1371 -0
- package/dist/checks/consolidated/ui-layout.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts +11 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js +145 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts +9 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js +125 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-media.d.ts +74 -0
- package/dist/checks/consolidated/ui-media.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-media.js +408 -0
- package/dist/checks/consolidated/ui-media.js.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts +107 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.js +825 -0
- package/dist/checks/consolidated/ui-micro-interactions.js.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts +114 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js +566 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts +251 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.js +2212 -0
- package/dist/checks/consolidated/ui-mobile-ux.js.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts +93 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js +450 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-navigation.d.ts +85 -0
- package/dist/checks/consolidated/ui-navigation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-navigation.js +673 -0
- package/dist/checks/consolidated/ui-navigation.js.map +1 -0
- package/dist/checks/consolidated/ui-patterns.d.ts +174 -0
- package/dist/checks/consolidated/ui-patterns.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-patterns.js +1532 -0
- package/dist/checks/consolidated/ui-patterns.js.map +1 -0
- package/dist/checks/consolidated/ui-responsive.d.ts +89 -0
- package/dist/checks/consolidated/ui-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-responsive.js +588 -0
- package/dist/checks/consolidated/ui-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts +43 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.js +874 -0
- package/dist/checks/consolidated/ui-spacing-standards.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing.d.ts +751 -0
- package/dist/checks/consolidated/ui-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing.js +4996 -0
- package/dist/checks/consolidated/ui-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts +70 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js +429 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts +100 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js +935 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts +90 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.js +659 -0
- package/dist/checks/consolidated/ui-state-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts +74 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.js +403 -0
- package/dist/checks/consolidated/ui-style-validation.js.map +1 -0
- package/dist/checks/consolidated/ui-tokens.d.ts +110 -0
- package/dist/checks/consolidated/ui-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-tokens.js +990 -0
- package/dist/checks/consolidated/ui-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-typography.d.ts +77 -0
- package/dist/checks/consolidated/ui-typography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-typography.js +416 -0
- package/dist/checks/consolidated/ui-typography.js.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts +90 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js +562 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js.map +1 -0
- package/dist/checks/consolidated/woocommerce.d.ts +50 -0
- package/dist/checks/consolidated/woocommerce.d.ts.map +1 -0
- package/dist/checks/consolidated/woocommerce.js +198 -0
- package/dist/checks/consolidated/woocommerce.js.map +1 -0
- package/dist/checks/core/api-route-protection.d.ts +2 -0
- package/dist/checks/core/api-route-protection.d.ts.map +1 -0
- package/dist/checks/core/api-route-protection.js +101 -0
- package/dist/checks/core/api-route-protection.js.map +1 -0
- package/dist/checks/core/critical.d.ts +8 -0
- package/dist/checks/core/critical.d.ts.map +1 -0
- package/dist/checks/core/critical.js +200 -0
- package/dist/checks/core/critical.js.map +1 -0
- package/dist/checks/core/database.d.ts +8 -0
- package/dist/checks/core/database.d.ts.map +1 -0
- package/dist/checks/core/database.js +699 -0
- package/dist/checks/core/database.js.map +1 -0
- package/dist/checks/core/development.d.ts +8 -0
- package/dist/checks/core/development.d.ts.map +1 -0
- package/dist/checks/core/development.js +417 -0
- package/dist/checks/core/development.js.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts +38 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.js +411 -0
- package/dist/checks/core/hydration-mismatch-check.js.map +1 -0
- package/dist/checks/core/performance.d.ts +8 -0
- package/dist/checks/core/performance.d.ts.map +1 -0
- package/dist/checks/core/performance.js +474 -0
- package/dist/checks/core/performance.js.map +1 -0
- package/dist/checks/core/security.d.ts +8 -0
- package/dist/checks/core/security.d.ts.map +1 -0
- package/dist/checks/core/security.js +275 -0
- package/dist/checks/core/security.js.map +1 -0
- package/dist/checks/core/standardized-error-handling.d.ts +43 -0
- package/dist/checks/core/standardized-error-handling.d.ts.map +1 -0
- package/dist/checks/core/standardized-error-handling.js +384 -0
- package/dist/checks/core/standardized-error-handling.js.map +1 -0
- package/dist/checks/core/supercatch.d.ts +8 -0
- package/dist/checks/core/supercatch.d.ts.map +1 -0
- package/dist/checks/core/supercatch.js +750 -0
- package/dist/checks/core/supercatch.js.map +1 -0
- package/dist/checks/core/suppression-check.d.ts +2 -0
- package/dist/checks/core/suppression-check.d.ts.map +1 -0
- package/dist/checks/core/suppression-check.js +129 -0
- package/dist/checks/core/suppression-check.js.map +1 -0
- package/dist/checks/core/ui-quality.d.ts +8 -0
- package/dist/checks/core/ui-quality.d.ts.map +1 -0
- package/dist/checks/core/ui-quality.js +1736 -0
- package/dist/checks/core/ui-quality.js.map +1 -0
- package/dist/checks/core/unused-assets-check.d.ts +2 -0
- package/dist/checks/core/unused-assets-check.d.ts.map +1 -0
- package/dist/checks/core/unused-assets-check.js +112 -0
- package/dist/checks/core/unused-assets-check.js.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts +34 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.js +283 -0
- package/dist/checks/core/use-status-ssr-safety.js.map +1 -0
- package/dist/checks/email/email-flow-validation.d.ts +23 -0
- package/dist/checks/email/email-flow-validation.d.ts.map +1 -0
- package/dist/checks/email/email-flow-validation.js +468 -0
- package/dist/checks/email/email-flow-validation.js.map +1 -0
- package/dist/checks/email/email-template-db-verification.d.ts +20 -0
- package/dist/checks/email/email-template-db-verification.d.ts.map +1 -0
- package/dist/checks/email/email-template-db-verification.js +46 -0
- package/dist/checks/email/email-template-db-verification.js.map +1 -0
- package/dist/checks/email/email-template-validation.d.ts +24 -0
- package/dist/checks/email/email-template-validation.d.ts.map +1 -0
- package/dist/checks/email/email-template-validation.js +688 -0
- package/dist/checks/email/email-template-validation.js.map +1 -0
- package/dist/checks/jsx/comment-placement.d.ts +45 -0
- package/dist/checks/jsx/comment-placement.d.ts.map +1 -0
- package/dist/checks/jsx/comment-placement.js +316 -0
- package/dist/checks/jsx/comment-placement.js.map +1 -0
- package/dist/checks/specialized/admin-layout-check.d.ts +19 -0
- package/dist/checks/specialized/admin-layout-check.d.ts.map +1 -0
- package/dist/checks/specialized/admin-layout-check.js +166 -0
- package/dist/checks/specialized/admin-layout-check.js.map +1 -0
- package/dist/checks/specialized/client-server-separation.d.ts +14 -0
- package/dist/checks/specialized/client-server-separation.d.ts.map +1 -0
- package/dist/checks/specialized/client-server-separation.js +197 -0
- package/dist/checks/specialized/client-server-separation.js.map +1 -0
- package/dist/checks/specialized/cost-optimization.d.ts +18 -0
- package/dist/checks/specialized/cost-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/cost-optimization.js +78 -0
- package/dist/checks/specialized/cost-optimization.js.map +1 -0
- package/dist/checks/specialized/database-migration-sync.d.ts +21 -0
- package/dist/checks/specialized/database-migration-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-migration-sync.js +150 -0
- package/dist/checks/specialized/database-migration-sync.js.map +1 -0
- package/dist/checks/specialized/database-model-validation.d.ts +15 -0
- package/dist/checks/specialized/database-model-validation.d.ts.map +1 -0
- package/dist/checks/specialized/database-model-validation.js +35 -0
- package/dist/checks/specialized/database-model-validation.js.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts +27 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js +177 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js.map +1 -0
- package/dist/checks/specialized/database-schema-sync.d.ts +23 -0
- package/dist/checks/specialized/database-schema-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-sync.js +77 -0
- package/dist/checks/specialized/database-schema-sync.js.map +1 -0
- package/dist/checks/specialized/decimal-serialization.d.ts +24 -0
- package/dist/checks/specialized/decimal-serialization.d.ts.map +1 -0
- package/dist/checks/specialized/decimal-serialization.js +400 -0
- package/dist/checks/specialized/decimal-serialization.js.map +1 -0
- package/dist/checks/specialized/detect-router-issues.d.ts +14 -0
- package/dist/checks/specialized/detect-router-issues.d.ts.map +1 -0
- package/dist/checks/specialized/detect-router-issues.js +96 -0
- package/dist/checks/specialized/detect-router-issues.js.map +1 -0
- package/dist/checks/specialized/enum-validation.d.ts +15 -0
- package/dist/checks/specialized/enum-validation.d.ts.map +1 -0
- package/dist/checks/specialized/enum-validation.js +35 -0
- package/dist/checks/specialized/enum-validation.js.map +1 -0
- package/dist/checks/specialized/hash-collision.d.ts +18 -0
- package/dist/checks/specialized/hash-collision.d.ts.map +1 -0
- package/dist/checks/specialized/hash-collision.js +78 -0
- package/dist/checks/specialized/hash-collision.js.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts +16 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.js +307 -0
- package/dist/checks/specialized/id-generation-enforcement.js.map +1 -0
- package/dist/checks/specialized/image-data-integrity.d.ts +15 -0
- package/dist/checks/specialized/image-data-integrity.d.ts.map +1 -0
- package/dist/checks/specialized/image-data-integrity.js +79 -0
- package/dist/checks/specialized/image-data-integrity.js.map +1 -0
- package/dist/checks/specialized/image-health.d.ts +14 -0
- package/dist/checks/specialized/image-health.d.ts.map +1 -0
- package/dist/checks/specialized/image-health.js +122 -0
- package/dist/checks/specialized/image-health.js.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts +14 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.js +95 -0
- package/dist/checks/specialized/image-metadata-validation.js.map +1 -0
- package/dist/checks/specialized/image-optimization.d.ts +16 -0
- package/dist/checks/specialized/image-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/image-optimization.js +86 -0
- package/dist/checks/specialized/image-optimization.js.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts +24 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.js +209 -0
- package/dist/checks/specialized/invalid-module-imports.js.map +1 -0
- package/dist/checks/specialized/lint-validation.d.ts +26 -0
- package/dist/checks/specialized/lint-validation.d.ts.map +1 -0
- package/dist/checks/specialized/lint-validation.js +193 -0
- package/dist/checks/specialized/lint-validation.js.map +1 -0
- package/dist/checks/specialized/listing-workflow.d.ts +19 -0
- package/dist/checks/specialized/listing-workflow.d.ts.map +1 -0
- package/dist/checks/specialized/listing-workflow.js +89 -0
- package/dist/checks/specialized/listing-workflow.js.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts +18 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.js +134 -0
- package/dist/checks/specialized/mui-imports-validation.js.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts +16 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js +164 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts +14 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.js +140 -0
- package/dist/checks/specialized/nextjs-params-check.js.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts +16 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js +36 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts +22 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js +97 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts +20 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.js +115 -0
- package/dist/checks/specialized/parameter-consistency-check.js.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.js +35 -0
- package/dist/checks/specialized/prisma-field-names-validation.js.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts +34 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.js +330 -0
- package/dist/checks/specialized/prisma-null-syntax.js.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.js +35 -0
- package/dist/checks/specialized/prisma-query-validation.js.map +1 -0
- package/dist/checks/specialized/product-type-validation.d.ts +17 -0
- package/dist/checks/specialized/product-type-validation.d.ts.map +1 -0
- package/dist/checks/specialized/product-type-validation.js +129 -0
- package/dist/checks/specialized/product-type-validation.js.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts +14 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.js +101 -0
- package/dist/checks/specialized/responsive-image-validation.js.map +1 -0
- package/dist/checks/specialized/root-cleanliness.d.ts +21 -0
- package/dist/checks/specialized/root-cleanliness.d.ts.map +1 -0
- package/dist/checks/specialized/root-cleanliness.js +251 -0
- package/dist/checks/specialized/root-cleanliness.js.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts +16 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.js +113 -0
- package/dist/checks/specialized/rotation-detection-validation.js.map +1 -0
- package/dist/checks/specialized/script-organization.d.ts +17 -0
- package/dist/checks/specialized/script-organization.d.ts.map +1 -0
- package/dist/checks/specialized/script-organization.js +487 -0
- package/dist/checks/specialized/script-organization.js.map +1 -0
- package/dist/checks/specialized/shared-components-migration.d.ts +137 -0
- package/dist/checks/specialized/shared-components-migration.d.ts.map +1 -0
- package/dist/checks/specialized/shared-components-migration.js +1288 -0
- package/dist/checks/specialized/shared-components-migration.js.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts +10 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.js +126 -0
- package/dist/checks/specialized/store-specialties-normalization.js.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts +16 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.js +115 -0
- package/dist/checks/specialized/two-stage-trim-validation.js.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts +26 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.js +219 -0
- package/dist/checks/specialized/underscore-variable-audit.js.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts +16 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.js +284 -0
- package/dist/checks/specialized/unified-badge-consistency.js.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts +15 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.js +131 -0
- package/dist/checks/specialized/validate-integration-enums.js.map +1 -0
- package/dist/checks/testing/action-regression.d.ts +23 -0
- package/dist/checks/testing/action-regression.d.ts.map +1 -0
- package/dist/checks/testing/action-regression.js +192 -0
- package/dist/checks/testing/action-regression.js.map +1 -0
- package/dist/checks/testing/critical-api-coverage.d.ts +21 -0
- package/dist/checks/testing/critical-api-coverage.d.ts.map +1 -0
- package/dist/checks/testing/critical-api-coverage.js +158 -0
- package/dist/checks/testing/critical-api-coverage.js.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts +24 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.js +378 -0
- package/dist/checks/testing/data-entry-regression-required.js.map +1 -0
- package/dist/checks/testing/e2e-best-practices.d.ts +24 -0
- package/dist/checks/testing/e2e-best-practices.d.ts.map +1 -0
- package/dist/checks/testing/e2e-best-practices.js +791 -0
- package/dist/checks/testing/e2e-best-practices.js.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts +26 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.js +305 -0
- package/dist/checks/testing/e2e-flake-patterns.js.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts +25 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js +613 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts +9 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.js +142 -0
- package/dist/checks/testing/e2e-slow-tests.js.map +1 -0
- package/dist/checks/testing/e2e-timeouts.d.ts +9 -0
- package/dist/checks/testing/e2e-timeouts.d.ts.map +1 -0
- package/dist/checks/testing/e2e-timeouts.js +82 -0
- package/dist/checks/testing/e2e-timeouts.js.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts +20 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.js +575 -0
- package/dist/checks/testing/integration-e2e-depth.js.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts +31 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js +1582 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts +24 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.js +380 -0
- package/dist/checks/testing/playwright-mock-inventory.js.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts +25 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.js +166 -0
- package/dist/checks/testing/test-coverage-threshold.js.map +1 -0
- package/dist/checks/testing/test-flakiness-score.d.ts +27 -0
- package/dist/checks/testing/test-flakiness-score.d.ts.map +1 -0
- package/dist/checks/testing/test-flakiness-score.js +358 -0
- package/dist/checks/testing/test-flakiness-score.js.map +1 -0
- package/dist/checks/testing/test-patterns.d.ts +16 -0
- package/dist/checks/testing/test-patterns.d.ts.map +1 -0
- package/dist/checks/testing/test-patterns.js +156 -0
- package/dist/checks/testing/test-patterns.js.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts +42 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.js +527 -0
- package/dist/checks/workflows/a-plus-rating-validation.js.map +1 -0
- package/dist/checks/workflows/affected.d.ts +14 -0
- package/dist/checks/workflows/affected.d.ts.map +1 -0
- package/dist/checks/workflows/affected.js +126 -0
- package/dist/checks/workflows/affected.js.map +1 -0
- package/dist/checks/workflows/ai.d.ts +6 -0
- package/dist/checks/workflows/ai.d.ts.map +1 -0
- package/dist/checks/workflows/ai.js +42 -0
- package/dist/checks/workflows/ai.js.map +1 -0
- package/dist/checks/workflows/all.d.ts +31 -0
- package/dist/checks/workflows/all.d.ts.map +1 -0
- package/dist/checks/workflows/all.js +2688 -0
- package/dist/checks/workflows/all.js.map +1 -0
- package/dist/checks/workflows/commit.d.ts +19 -0
- package/dist/checks/workflows/commit.d.ts.map +1 -0
- package/dist/checks/workflows/commit.js +207 -0
- package/dist/checks/workflows/commit.js.map +1 -0
- package/dist/checks/workflows/critical.d.ts +9 -0
- package/dist/checks/workflows/critical.d.ts.map +1 -0
- package/dist/checks/workflows/critical.js +213 -0
- package/dist/checks/workflows/critical.js.map +1 -0
- package/dist/checks/workflows/database-id-validation.d.ts +9 -0
- package/dist/checks/workflows/database-id-validation.d.ts.map +1 -0
- package/dist/checks/workflows/database-id-validation.js +13 -0
- package/dist/checks/workflows/database-id-validation.js.map +1 -0
- package/dist/checks/workflows/deploy.d.ts +20 -0
- package/dist/checks/workflows/deploy.d.ts.map +1 -0
- package/dist/checks/workflows/deploy.js +107 -0
- package/dist/checks/workflows/deploy.js.map +1 -0
- package/dist/checks/workflows/deployment-readiness.d.ts +12 -0
- package/dist/checks/workflows/deployment-readiness.d.ts.map +1 -0
- package/dist/checks/workflows/deployment-readiness.js +403 -0
- package/dist/checks/workflows/deployment-readiness.js.map +1 -0
- package/dist/checks/workflows/dev.d.ts +19 -0
- package/dist/checks/workflows/dev.d.ts.map +1 -0
- package/dist/checks/workflows/dev.js +88 -0
- package/dist/checks/workflows/dev.js.map +1 -0
- package/dist/checks/workflows/development.d.ts +9 -0
- package/dist/checks/workflows/development.d.ts.map +1 -0
- package/dist/checks/workflows/development.js +65 -0
- package/dist/checks/workflows/development.js.map +1 -0
- package/dist/checks/workflows/enterprise.d.ts +10 -0
- package/dist/checks/workflows/enterprise.d.ts.map +1 -0
- package/dist/checks/workflows/enterprise.js +359 -0
- package/dist/checks/workflows/enterprise.js.map +1 -0
- package/dist/checks/workflows/images.d.ts +6 -0
- package/dist/checks/workflows/images.d.ts.map +1 -0
- package/dist/checks/workflows/images.js +58 -0
- package/dist/checks/workflows/images.js.map +1 -0
- package/dist/checks/workflows/naming.d.ts +19 -0
- package/dist/checks/workflows/naming.d.ts.map +1 -0
- package/dist/checks/workflows/naming.js +42 -0
- package/dist/checks/workflows/naming.js.map +1 -0
- package/dist/checks/workflows/performance.d.ts +8 -0
- package/dist/checks/workflows/performance.d.ts.map +1 -0
- package/dist/checks/workflows/performance.js +77 -0
- package/dist/checks/workflows/performance.js.map +1 -0
- package/dist/checks/workflows/pre-deploy.d.ts +6 -0
- package/dist/checks/workflows/pre-deploy.d.ts.map +1 -0
- package/dist/checks/workflows/pre-deploy.js +41 -0
- package/dist/checks/workflows/pre-deploy.js.map +1 -0
- package/dist/checks/workflows/security.d.ts +8 -0
- package/dist/checks/workflows/security.d.ts.map +1 -0
- package/dist/checks/workflows/security.js +71 -0
- package/dist/checks/workflows/security.js.map +1 -0
- package/dist/checks/workflows/supercatch.d.ts +8 -0
- package/dist/checks/workflows/supercatch.d.ts.map +1 -0
- package/dist/checks/workflows/supercatch.js +127 -0
- package/dist/checks/workflows/supercatch.js.map +1 -0
- package/dist/checks/workflows/ui-quality.d.ts +9 -0
- package/dist/checks/workflows/ui-quality.d.ts.map +1 -0
- package/dist/checks/workflows/ui-quality.js +264 -0
- package/dist/checks/workflows/ui-quality.js.map +1 -0
- package/dist/checks/workflows/ui-uniformity.d.ts +18 -0
- package/dist/checks/workflows/ui-uniformity.d.ts.map +1 -0
- package/dist/checks/workflows/ui-uniformity.js +265 -0
- package/dist/checks/workflows/ui-uniformity.js.map +1 -0
- package/dist/checks/workflows/vercel.d.ts +16 -0
- package/dist/checks/workflows/vercel.d.ts.map +1 -0
- package/dist/checks/workflows/vercel.js +173 -0
- package/dist/checks/workflows/vercel.js.map +1 -0
- package/dist/utils/validation-helpers.d.ts +43 -0
- package/dist/utils/validation-helpers.d.ts.map +1 -0
- package/dist/utils/validation-helpers.js +370 -0
- package/dist/utils/validation-helpers.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Consolidated UI Accessibility Preflight
|
|
5
|
+
*
|
|
6
|
+
* Combines 7 separate accessibility checks into one comprehensive module:
|
|
7
|
+
* - contrast-validation (WCAG 2.1 AA color contrast)
|
|
8
|
+
* - focus-state-validation (keyboard navigation)
|
|
9
|
+
* - aria-label-validation (ARIA labels)
|
|
10
|
+
* - touch-target-size-validation (44x44px minimum)
|
|
11
|
+
* - semantic-html-validation (proper HTML elements)
|
|
12
|
+
* - form-label-association (form accessibility)
|
|
13
|
+
* - color-only-information (WCAG 1.4.1)
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* pnpm preflight:ui-accessibility # All accessibility checks
|
|
17
|
+
* pnpm preflight:ui-accessibility contrast # Contrast only
|
|
18
|
+
* pnpm preflight:ui-accessibility focus # Focus states only
|
|
19
|
+
* pnpm preflight:ui-accessibility aria # ARIA labels only
|
|
20
|
+
* pnpm preflight:ui-accessibility touch # Touch targets only
|
|
21
|
+
* pnpm preflight:ui-accessibility semantic # Semantic HTML only
|
|
22
|
+
* pnpm preflight:ui-accessibility forms # Form labels only
|
|
23
|
+
* pnpm preflight:ui-accessibility color # Color-only info only
|
|
24
|
+
*/
|
|
25
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
28
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
29
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
30
|
+
}
|
|
31
|
+
Object.defineProperty(o, k2, desc);
|
|
32
|
+
}) : (function(o, m, k, k2) {
|
|
33
|
+
if (k2 === undefined) k2 = k;
|
|
34
|
+
o[k2] = m[k];
|
|
35
|
+
}));
|
|
36
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
+
}) : function(o, v) {
|
|
39
|
+
o["default"] = v;
|
|
40
|
+
});
|
|
41
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
42
|
+
var ownKeys = function(o) {
|
|
43
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
44
|
+
var ar = [];
|
|
45
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
46
|
+
return ar;
|
|
47
|
+
};
|
|
48
|
+
return ownKeys(o);
|
|
49
|
+
};
|
|
50
|
+
return function (mod) {
|
|
51
|
+
if (mod && mod.__esModule) return mod;
|
|
52
|
+
var result = {};
|
|
53
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
54
|
+
__setModuleDefault(result, mod);
|
|
55
|
+
return result;
|
|
56
|
+
};
|
|
57
|
+
})();
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.UIAccessibilityPreflightModule = void 0;
|
|
63
|
+
const fs = __importStar(require("fs"));
|
|
64
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
65
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
66
|
+
const universal_progress_reporter_1 = require("../system/universal-progress-reporter");
|
|
67
|
+
const concurrency_config_1 = require("../../shared/concurrency-config");
|
|
68
|
+
const design_tokens_1 = require("../../shared/design-tokens");
|
|
69
|
+
const glob_1 = require("glob");
|
|
70
|
+
const EXCLUDED_PATTERNS = [
|
|
71
|
+
"**/node_modules/**",
|
|
72
|
+
"**/.next/**",
|
|
73
|
+
"**/packages/ui/**",
|
|
74
|
+
"**/*.test.{ts,tsx}",
|
|
75
|
+
"**/*.stories.{ts,tsx}",
|
|
76
|
+
];
|
|
77
|
+
// CSS variable values for contrast checking (from design tokens)
|
|
78
|
+
const CSS_VARIABLES = {
|
|
79
|
+
"--color-primary": design_tokens_1.COLORS.primary,
|
|
80
|
+
"--bg-primary": design_tokens_1.COLORS.bgPrimary,
|
|
81
|
+
"--bg-secondary": design_tokens_1.COLORS.bgSecondary,
|
|
82
|
+
"--text-primary": design_tokens_1.COLORS.textPrimary,
|
|
83
|
+
"--text-secondary": design_tokens_1.COLORS.textSecondary,
|
|
84
|
+
"--text-on-primary": design_tokens_1.COLORS.textOnPrimary,
|
|
85
|
+
};
|
|
86
|
+
// UTILITY FUNCTIONS
|
|
87
|
+
function getLuminance(r, g, b) {
|
|
88
|
+
const [rs, gs, bs] = [r, g, b].map((val) => {
|
|
89
|
+
val = val / 255;
|
|
90
|
+
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
|
91
|
+
});
|
|
92
|
+
return 0.2126 * rs + 0.7152 * gs + 0.0722 * bs;
|
|
93
|
+
}
|
|
94
|
+
function getContrastRatio(rgb1, rgb2) {
|
|
95
|
+
const lum1 = getLuminance(rgb1[0], rgb1[1], rgb1[2]);
|
|
96
|
+
const lum2 = getLuminance(rgb2[0], rgb2[1], rgb2[2]);
|
|
97
|
+
const brightest = Math.max(lum1, lum2);
|
|
98
|
+
const darkest = Math.min(lum1, lum2);
|
|
99
|
+
return (brightest + 0.05) / (darkest + 0.05);
|
|
100
|
+
}
|
|
101
|
+
function hexToRgb(hex) {
|
|
102
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
103
|
+
return result
|
|
104
|
+
? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)]
|
|
105
|
+
: null;
|
|
106
|
+
}
|
|
107
|
+
function resolveColor(color) {
|
|
108
|
+
if (color.startsWith("var(--")) {
|
|
109
|
+
const varName = color.match(/var\((--[^)]+)\)/)?.[1];
|
|
110
|
+
return varName ? CSS_VARIABLES[varName] || null : null;
|
|
111
|
+
}
|
|
112
|
+
return color.startsWith("#") ? color : null;
|
|
113
|
+
}
|
|
114
|
+
// ACCESSIBILITY CHECK IMPLEMENTATIONS
|
|
115
|
+
// Get concurrency from shared config (respects PREFLIGHT_CONCURRENCY env var)
|
|
116
|
+
const concurrencyConfig = (0, concurrency_config_1.getConcurrencyConfig)();
|
|
117
|
+
class UIAccessibilityPreflightModule {
|
|
118
|
+
verbose;
|
|
119
|
+
parallel = false;
|
|
120
|
+
constructor(options = {}) {
|
|
121
|
+
this.verbose = options.verbose || false;
|
|
122
|
+
this.parallel = options.parallel || concurrencyConfig.parallel;
|
|
123
|
+
}
|
|
124
|
+
async getFiles(pattern = "{app,components}/**/*.{tsx,jsx}") {
|
|
125
|
+
return (0, glob_1.glob)(pattern, { ignore: EXCLUDED_PATTERNS });
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Contrast Validation (WCAG 2.1 AA)
|
|
129
|
+
*/
|
|
130
|
+
async checkContrast() {
|
|
131
|
+
const startTime = Date.now();
|
|
132
|
+
const issues = [];
|
|
133
|
+
const files = await this.getFiles();
|
|
134
|
+
for (const file of files) {
|
|
135
|
+
const content = fs.readFileSync(file, "utf8");
|
|
136
|
+
const lines = content.split("\n");
|
|
137
|
+
lines.forEach((line, index) => {
|
|
138
|
+
// Check semantic token misuse
|
|
139
|
+
if (line.match(/(?<!bg)color:\s*["']var\(--overlay-/) && !line.includes("bgcolor")) {
|
|
140
|
+
issues.push({
|
|
141
|
+
file,
|
|
142
|
+
line: index + 1,
|
|
143
|
+
type: "semantic-misuse",
|
|
144
|
+
severity: "error",
|
|
145
|
+
message: "Overlay token used for text (semi-transparent)",
|
|
146
|
+
suggestion: "Use --text-secondary or --text-tertiary instead",
|
|
147
|
+
snippet: line.trim().substring(0, 80),
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
// Check for inverted tooltip pattern (dark bg with light text)
|
|
151
|
+
const nearbyBgLines = lines
|
|
152
|
+
.slice(Math.max(0, index - 3), Math.min(lines.length, index + 3))
|
|
153
|
+
.join("\n");
|
|
154
|
+
const isInvertedTooltip = nearbyBgLines.includes("backgroundColor") &&
|
|
155
|
+
(nearbyBgLines.includes("--text-primary") || nearbyBgLines.includes("tooltip"));
|
|
156
|
+
if (line.match(/(?<!bg)color:\s*["']var\(--bg-/) &&
|
|
157
|
+
!line.includes("bgcolor") &&
|
|
158
|
+
!isInvertedTooltip) {
|
|
159
|
+
issues.push({
|
|
160
|
+
file,
|
|
161
|
+
line: index + 1,
|
|
162
|
+
type: "semantic-misuse",
|
|
163
|
+
severity: "error",
|
|
164
|
+
message: "Background token used for text",
|
|
165
|
+
suggestion: "Use --text-* tokens for text color",
|
|
166
|
+
snippet: line.trim().substring(0, 80),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
// Check color combinations
|
|
170
|
+
const colorMatch = line.match(/color:\s*["']([^"']+)["']/);
|
|
171
|
+
const bgMatch = line.match(/background(?:Color)?:\s*["']([^"']+)["']/);
|
|
172
|
+
if (colorMatch && bgMatch) {
|
|
173
|
+
const fgHex = resolveColor(colorMatch[1]);
|
|
174
|
+
const bgHex = resolveColor(bgMatch[1]);
|
|
175
|
+
if (fgHex && bgHex) {
|
|
176
|
+
const fgRgb = hexToRgb(fgHex);
|
|
177
|
+
const bgRgb = hexToRgb(bgHex);
|
|
178
|
+
if (fgRgb && bgRgb) {
|
|
179
|
+
const ratio = getContrastRatio(fgRgb, bgRgb);
|
|
180
|
+
if (ratio < 4.5) {
|
|
181
|
+
issues.push({
|
|
182
|
+
file,
|
|
183
|
+
line: index + 1,
|
|
184
|
+
type: "low-contrast",
|
|
185
|
+
severity: "error",
|
|
186
|
+
message: `Contrast ratio ${ratio.toFixed(2)}:1 (minimum 4.5:1)`,
|
|
187
|
+
suggestion: "Use higher contrast color combination",
|
|
188
|
+
snippet: line.trim().substring(0, 80),
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
name: "Contrast Validation (WCAG AA)",
|
|
198
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
199
|
+
issues,
|
|
200
|
+
duration: Date.now() - startTime,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Focus State Validation
|
|
205
|
+
*
|
|
206
|
+
* NOTE: Many outline:none patterns are valid when:
|
|
207
|
+
* - Component has custom focus ring via boxShadow
|
|
208
|
+
* - It's a wrapper/container that forwards focus to inner element
|
|
209
|
+
* - MUI/styled components handle focus internally
|
|
210
|
+
*/
|
|
211
|
+
async checkFocusStates() {
|
|
212
|
+
const startTime = Date.now();
|
|
213
|
+
const issues = [];
|
|
214
|
+
const files = await this.getFiles("components/**/*.{tsx,jsx}");
|
|
215
|
+
for (const file of files) {
|
|
216
|
+
const content = fs.readFileSync(file, "utf8");
|
|
217
|
+
const lines = content.split("\n");
|
|
218
|
+
const filename = file.split(/[\\/]/).pop() || "";
|
|
219
|
+
// Skip UI library components - they handle focus internally
|
|
220
|
+
if (filename.includes("Button") ||
|
|
221
|
+
filename.includes("Input") ||
|
|
222
|
+
filename.includes("Select") ||
|
|
223
|
+
filename.includes("TextField") ||
|
|
224
|
+
filename.includes("Menu") ||
|
|
225
|
+
filename.includes("Modal"))
|
|
226
|
+
continue;
|
|
227
|
+
lines.forEach((line, index) => {
|
|
228
|
+
// Interactive div without role - only flag in non-component contexts
|
|
229
|
+
if ((line.match(/<div[^>]*onClick/i) || line.match(/<span[^>]*onClick/i)) &&
|
|
230
|
+
!line.includes("role=") &&
|
|
231
|
+
!line.includes("tabIndex")) {
|
|
232
|
+
// Check broader context - many divs with onClick are wrappers
|
|
233
|
+
const contextLines = lines
|
|
234
|
+
.slice(Math.max(0, index - 3), Math.min(lines.length, index + 5))
|
|
235
|
+
.join("\n");
|
|
236
|
+
const isWrapper = contextLines.includes("<Button") ||
|
|
237
|
+
contextLines.includes("<Link") ||
|
|
238
|
+
contextLines.includes("role=") ||
|
|
239
|
+
contextLines.includes("tabIndex");
|
|
240
|
+
if (!isWrapper) {
|
|
241
|
+
issues.push({
|
|
242
|
+
file,
|
|
243
|
+
line: index + 1,
|
|
244
|
+
type: "interactive-div",
|
|
245
|
+
severity: "info",
|
|
246
|
+
message: "Interactive div/span without proper role",
|
|
247
|
+
suggestion: 'Add role="button" and tabIndex={0} if truly interactive',
|
|
248
|
+
snippet: line.trim().substring(0, 80),
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// outline: none - only flag if truly problematic (rare)
|
|
253
|
+
// Most outline:none usages have alternative focus indicators
|
|
254
|
+
const contextLines = lines
|
|
255
|
+
.slice(Math.max(0, index - 10), Math.min(lines.length, index + 15))
|
|
256
|
+
.join("\n");
|
|
257
|
+
const hasFocusHandling = contextLines.includes("boxShadow") ||
|
|
258
|
+
contextLines.includes("focus") ||
|
|
259
|
+
contextLines.includes("ring") ||
|
|
260
|
+
contextLines.includes("border") ||
|
|
261
|
+
contextLines.includes(":focus");
|
|
262
|
+
const isContainer = contextLines.includes("position:") ||
|
|
263
|
+
contextLines.includes("Modal") ||
|
|
264
|
+
contextLines.includes("Backdrop") ||
|
|
265
|
+
contextLines.includes("container") ||
|
|
266
|
+
contextLines.includes("onClose");
|
|
267
|
+
if (line.match(/outline:\s*['"]?none['"]?/i) && !hasFocusHandling && !isContainer) {
|
|
268
|
+
issues.push({
|
|
269
|
+
file,
|
|
270
|
+
line: index + 1,
|
|
271
|
+
type: "outline-none",
|
|
272
|
+
severity: "info",
|
|
273
|
+
message: "outline: none - verify focus indicator exists",
|
|
274
|
+
suggestion: "Ensure component has visible focus state",
|
|
275
|
+
snippet: line.trim().substring(0, 80),
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
// Non-blocking - these are informational
|
|
281
|
+
return {
|
|
282
|
+
name: "Focus State Validation",
|
|
283
|
+
passed: true,
|
|
284
|
+
issues,
|
|
285
|
+
duration: Date.now() - startTime,
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* ARIA Label Validation
|
|
290
|
+
*/
|
|
291
|
+
async checkAriaLabels() {
|
|
292
|
+
const startTime = Date.now();
|
|
293
|
+
const issues = [];
|
|
294
|
+
const files = await this.getFiles("components/**/*.{tsx,jsx}");
|
|
295
|
+
for (const file of files) {
|
|
296
|
+
const content = fs.readFileSync(file, "utf8");
|
|
297
|
+
const lines = content.split("\n");
|
|
298
|
+
lines.forEach((line, index) => {
|
|
299
|
+
if (line.trim().startsWith("//"))
|
|
300
|
+
return;
|
|
301
|
+
// IconButton without aria-label
|
|
302
|
+
if (line.match(/<IconButton[^>]*>/i) &&
|
|
303
|
+
!line.includes("aria-label") &&
|
|
304
|
+
!line.includes("title") &&
|
|
305
|
+
!line.includes("label=")) {
|
|
306
|
+
// Check multi-line - look at next few lines too
|
|
307
|
+
const buttonBlock = lines.slice(index, Math.min(index + 5, lines.length)).join(" ");
|
|
308
|
+
const hasAccessibleName = /aria-label\s*=/.test(buttonBlock) ||
|
|
309
|
+
/aria-labelledby\s*=/.test(buttonBlock) ||
|
|
310
|
+
/\blabel\s*=/.test(buttonBlock) ||
|
|
311
|
+
/title\s*=/.test(buttonBlock);
|
|
312
|
+
if (!hasAccessibleName) {
|
|
313
|
+
issues.push({
|
|
314
|
+
file,
|
|
315
|
+
line: index + 1,
|
|
316
|
+
type: "icon-button-no-aria",
|
|
317
|
+
severity: "error",
|
|
318
|
+
message: "IconButton without accessible name",
|
|
319
|
+
suggestion: 'Add label="Description", aria-label="Description", or title="Description"',
|
|
320
|
+
snippet: line.trim().substring(0, 80),
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
// aria-labelledby without matching id
|
|
325
|
+
if (line.includes("aria-labelledby")) {
|
|
326
|
+
const match = line.match(/aria-labelledby=["']([^"']+)["']/);
|
|
327
|
+
if (match && !content.includes(`id="${match[1]}"`)) {
|
|
328
|
+
issues.push({
|
|
329
|
+
file,
|
|
330
|
+
line: index + 1,
|
|
331
|
+
type: "aria-labelledby-no-id",
|
|
332
|
+
severity: "error",
|
|
333
|
+
message: `aria-labelledby references non-existent id: ${match[1]}`,
|
|
334
|
+
suggestion: "Add matching id or use aria-label instead",
|
|
335
|
+
snippet: line.trim().substring(0, 80),
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
name: "ARIA Label Validation",
|
|
343
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
344
|
+
issues,
|
|
345
|
+
duration: Date.now() - startTime,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Touch Target Size Validation (44x44px minimum)
|
|
350
|
+
*/
|
|
351
|
+
async checkTouchTargets() {
|
|
352
|
+
const startTime = Date.now();
|
|
353
|
+
const issues = [];
|
|
354
|
+
const files = await this.getFiles("components/**/*.{tsx,jsx}");
|
|
355
|
+
const MIN_TOUCH_TARGET = design_tokens_1.TOUCH_TARGETS.minimum;
|
|
356
|
+
for (const file of files) {
|
|
357
|
+
const content = fs.readFileSync(file, "utf8");
|
|
358
|
+
const lines = content.split("\n");
|
|
359
|
+
lines.forEach((line, index) => {
|
|
360
|
+
if (line.trim().startsWith("//"))
|
|
361
|
+
return;
|
|
362
|
+
// Note: IconButton component now enforces min-h-[44px] min-w-[44px] for all sizes
|
|
363
|
+
// So we no longer flag size="sm" on IconButton as it meets WCAG touch target requirements
|
|
364
|
+
// Only flag custom buttons with explicit small dimensions below 44px
|
|
365
|
+
// Hardcoded small dimensions
|
|
366
|
+
const dimMatch = line.match(/(width|height):\s*['"]?(\d+)(?:px)?['"]?/);
|
|
367
|
+
if (dimMatch && (line.includes("onClick") || line.includes("Button"))) {
|
|
368
|
+
const dimension = parseInt(dimMatch[2]);
|
|
369
|
+
if (dimension < MIN_TOUCH_TARGET) {
|
|
370
|
+
issues.push({
|
|
371
|
+
file,
|
|
372
|
+
line: index + 1,
|
|
373
|
+
type: "small-touch-target",
|
|
374
|
+
severity: "error",
|
|
375
|
+
message: `Interactive element with ${dimension}px (minimum ${MIN_TOUCH_TARGET}px)`,
|
|
376
|
+
suggestion: `Increase to at least ${MIN_TOUCH_TARGET}px`,
|
|
377
|
+
snippet: line.trim().substring(0, 80),
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
name: "Touch Target Size (44x44px)",
|
|
385
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
386
|
+
issues,
|
|
387
|
+
duration: Date.now() - startTime,
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Semantic HTML Validation
|
|
392
|
+
*/
|
|
393
|
+
async checkSemanticHtml() {
|
|
394
|
+
const startTime = Date.now();
|
|
395
|
+
const issues = [];
|
|
396
|
+
const files = await this.getFiles();
|
|
397
|
+
for (const file of files) {
|
|
398
|
+
const content = fs.readFileSync(file, "utf8");
|
|
399
|
+
const lines = content.split("\n");
|
|
400
|
+
lines.forEach((line, index) => {
|
|
401
|
+
if (line.trim().startsWith("//"))
|
|
402
|
+
return;
|
|
403
|
+
if (line.match(/<div[^>]*className=["'][^"']*nav/i) && !content.includes("<nav")) {
|
|
404
|
+
issues.push({
|
|
405
|
+
file,
|
|
406
|
+
line: index + 1,
|
|
407
|
+
type: "div-instead-of-nav",
|
|
408
|
+
severity: "warning",
|
|
409
|
+
message: "Using div for navigation",
|
|
410
|
+
suggestion: "Use <nav> element",
|
|
411
|
+
snippet: line.trim().substring(0, 80),
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
if (line.match(/<div[^>]*className=["'][^"']*header/i) && !content.includes("<header")) {
|
|
415
|
+
issues.push({
|
|
416
|
+
file,
|
|
417
|
+
line: index + 1,
|
|
418
|
+
type: "div-instead-of-header",
|
|
419
|
+
severity: "warning",
|
|
420
|
+
message: "Using div for header",
|
|
421
|
+
suggestion: "Use <header> element",
|
|
422
|
+
snippet: line.trim().substring(0, 80),
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
if (line.match(/<div[^>]*className=["'][^"']*footer/i) && !content.includes("<footer")) {
|
|
426
|
+
issues.push({
|
|
427
|
+
file,
|
|
428
|
+
line: index + 1,
|
|
429
|
+
type: "div-instead-of-footer",
|
|
430
|
+
severity: "warning",
|
|
431
|
+
message: "Using div for footer",
|
|
432
|
+
suggestion: "Use <footer> element",
|
|
433
|
+
snippet: line.trim().substring(0, 80),
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
if (line.match(/<div[^>]*className=["'][^"']*main/i) && !content.includes("<main")) {
|
|
437
|
+
issues.push({
|
|
438
|
+
file,
|
|
439
|
+
line: index + 1,
|
|
440
|
+
type: "div-instead-of-main",
|
|
441
|
+
severity: "error",
|
|
442
|
+
message: "Using div for main content",
|
|
443
|
+
suggestion: "Use <main> element",
|
|
444
|
+
snippet: line.trim().substring(0, 80),
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
name: "Semantic HTML Validation",
|
|
451
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
452
|
+
issues,
|
|
453
|
+
duration: Date.now() - startTime,
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Form Label Association
|
|
458
|
+
*
|
|
459
|
+
* NOTE: Most form components in React have labels through:
|
|
460
|
+
* - Props (label=, placeholder=, aria-label=)
|
|
461
|
+
* - Parent FormControl/InputLabel patterns
|
|
462
|
+
* - Nearby visible <label> elements
|
|
463
|
+
* - Screen-reader only labels (sr-only)
|
|
464
|
+
*/
|
|
465
|
+
async checkFormLabels() {
|
|
466
|
+
const startTime = Date.now();
|
|
467
|
+
const issues = [];
|
|
468
|
+
const files = await this.getFiles("components/**/*.{tsx,jsx}");
|
|
469
|
+
for (const file of files) {
|
|
470
|
+
const content = fs.readFileSync(file, "utf8");
|
|
471
|
+
const lines = content.split("\n");
|
|
472
|
+
// Skip if file uses FormControl/InputLabel patterns (MUI handles association)
|
|
473
|
+
const usesMuiFormControl = content.includes("FormControl") || content.includes("InputLabel");
|
|
474
|
+
// Skip if file uses FormField patterns (wrapper components handle labels)
|
|
475
|
+
const usesFormField = content.includes("FormField") || content.includes("FormItem");
|
|
476
|
+
if (usesMuiFormControl || usesFormField)
|
|
477
|
+
continue;
|
|
478
|
+
lines.forEach((line, index) => {
|
|
479
|
+
if (line.trim().startsWith("//") || /^\s*(export\s+)?(interface|type)\s+\w+/.test(line))
|
|
480
|
+
return;
|
|
481
|
+
// Check broader context for labels
|
|
482
|
+
const contextLines = lines
|
|
483
|
+
.slice(Math.max(0, index - 10), Math.min(lines.length, index + 10))
|
|
484
|
+
.join("\n");
|
|
485
|
+
const hasLabelContext = contextLines.includes("<label") ||
|
|
486
|
+
contextLines.includes("htmlFor") ||
|
|
487
|
+
contextLines.includes("aria-labelledby") ||
|
|
488
|
+
contextLines.includes("aria-label") ||
|
|
489
|
+
contextLines.includes("label=") ||
|
|
490
|
+
contextLines.includes("Label") ||
|
|
491
|
+
contextLines.includes("sr-only");
|
|
492
|
+
// Only flag truly unlabeled native inputs (rare in React)
|
|
493
|
+
if (line.match(/<input[^>]*>/i) &&
|
|
494
|
+
!line.includes("aria-label") &&
|
|
495
|
+
!line.includes("id=") &&
|
|
496
|
+
!line.includes('type="hidden"') &&
|
|
497
|
+
!line.includes('type="submit"') &&
|
|
498
|
+
!line.includes('type="button"') &&
|
|
499
|
+
!hasLabelContext) {
|
|
500
|
+
issues.push({
|
|
501
|
+
file,
|
|
502
|
+
line: index + 1,
|
|
503
|
+
type: "input-no-label",
|
|
504
|
+
severity: "info",
|
|
505
|
+
message: "Native input - verify it has a label",
|
|
506
|
+
suggestion: "Add <label> with htmlFor or aria-label",
|
|
507
|
+
snippet: line.trim().substring(0, 80),
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
// Non-blocking - these are informational checks
|
|
513
|
+
return {
|
|
514
|
+
name: "Form Label Association",
|
|
515
|
+
passed: true,
|
|
516
|
+
issues,
|
|
517
|
+
duration: Date.now() - startTime,
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Color-Only Information (WCAG 1.4.1)
|
|
522
|
+
*
|
|
523
|
+
* NOTE: Most MUI/styled components with color props also have:
|
|
524
|
+
* - Text labels (children)
|
|
525
|
+
* - Icons with aria-labels
|
|
526
|
+
* - Semantic meaning from context
|
|
527
|
+
*
|
|
528
|
+
* This check focuses on custom status-only indicators.
|
|
529
|
+
*/
|
|
530
|
+
async checkColorOnlyInfo() {
|
|
531
|
+
const startTime = Date.now();
|
|
532
|
+
const issues = [];
|
|
533
|
+
const files = await this.getFiles("components/**/*.{tsx,jsx}");
|
|
534
|
+
for (const file of files) {
|
|
535
|
+
const content = fs.readFileSync(file, "utf8");
|
|
536
|
+
const lines = content.split("\n");
|
|
537
|
+
lines.forEach((line, index) => {
|
|
538
|
+
if (line.trim().startsWith("//"))
|
|
539
|
+
return;
|
|
540
|
+
// Skip Badge, Chip, Alert, Button - these inherently have text/semantic content
|
|
541
|
+
if (line.includes("<Badge") ||
|
|
542
|
+
line.includes("<Chip") ||
|
|
543
|
+
line.includes("<Alert") ||
|
|
544
|
+
line.includes("<Button") ||
|
|
545
|
+
line.includes("<Typography") ||
|
|
546
|
+
line.includes("<Icon"))
|
|
547
|
+
return;
|
|
548
|
+
// Only flag custom status dots/indicators that use color alone
|
|
549
|
+
// Pattern: small colored div/span without text content
|
|
550
|
+
if (line.match(/style=.*background.*Color.*status|status.*style=.*background/i)) {
|
|
551
|
+
const contextLines = lines
|
|
552
|
+
.slice(Math.max(0, index - 2), Math.min(lines.length, index + 3))
|
|
553
|
+
.join("\n");
|
|
554
|
+
const hasTextOrIcon = />[A-Za-z]+</i.test(contextLines) ||
|
|
555
|
+
/Icon/i.test(contextLines) ||
|
|
556
|
+
/aria-label/i.test(contextLines);
|
|
557
|
+
if (!hasTextOrIcon) {
|
|
558
|
+
issues.push({
|
|
559
|
+
file,
|
|
560
|
+
line: index + 1,
|
|
561
|
+
type: "status-color-only",
|
|
562
|
+
severity: "info",
|
|
563
|
+
message: "Status indicator may use color only",
|
|
564
|
+
suggestion: "Verify there is text/icon for screen readers",
|
|
565
|
+
snippet: line.trim().substring(0, 80),
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
// Non-blocking - informational only
|
|
572
|
+
return {
|
|
573
|
+
name: "Color-Only Information (WCAG 1.4.1)",
|
|
574
|
+
passed: true,
|
|
575
|
+
issues,
|
|
576
|
+
duration: Date.now() - startTime,
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Duplicate Label Detection
|
|
581
|
+
*
|
|
582
|
+
* Detects common patterns that cause duplicate labels:
|
|
583
|
+
* - FormControl + InputLabel + Select with label prop
|
|
584
|
+
* - Multiple label elements for same input
|
|
585
|
+
*/
|
|
586
|
+
async checkDuplicateLabels() {
|
|
587
|
+
const startTime = Date.now();
|
|
588
|
+
const issues = [];
|
|
589
|
+
const files = await this.getFiles("{app,components}/**/*.{tsx,jsx}");
|
|
590
|
+
for (const file of files) {
|
|
591
|
+
const content = fs.readFileSync(file, "utf8");
|
|
592
|
+
const lines = content.split("\n");
|
|
593
|
+
// Pattern 1: FormControl with InputLabel AND Select/TextField with label prop
|
|
594
|
+
// This causes duplicate labels (InputLabel renders one, component renders another)
|
|
595
|
+
let inFormControl = false;
|
|
596
|
+
let hasInputLabel = false;
|
|
597
|
+
let formControlStartLine = 0;
|
|
598
|
+
lines.forEach((line, index) => {
|
|
599
|
+
if (line.includes("<FormControl")) {
|
|
600
|
+
inFormControl = true;
|
|
601
|
+
hasInputLabel = false;
|
|
602
|
+
formControlStartLine = index + 1;
|
|
603
|
+
}
|
|
604
|
+
if (inFormControl && line.includes("<InputLabel")) {
|
|
605
|
+
hasInputLabel = true;
|
|
606
|
+
}
|
|
607
|
+
if (inFormControl && hasInputLabel) {
|
|
608
|
+
// Check if Select or TextField inside FormControl also has label prop
|
|
609
|
+
if ((line.includes("<Select") || line.includes("<TextField")) &&
|
|
610
|
+
line.includes("label=")) {
|
|
611
|
+
issues.push({
|
|
612
|
+
file,
|
|
613
|
+
line: index + 1,
|
|
614
|
+
type: "duplicate-label",
|
|
615
|
+
severity: "error",
|
|
616
|
+
message: "Duplicate label: FormControl has InputLabel AND component has label prop",
|
|
617
|
+
suggestion: "Remove either InputLabel or the label prop from Select/TextField",
|
|
618
|
+
snippet: line.trim().substring(0, 80),
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
if (line.includes("</FormControl>")) {
|
|
623
|
+
inFormControl = false;
|
|
624
|
+
hasInputLabel = false;
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
return {
|
|
629
|
+
name: "Duplicate Label Detection",
|
|
630
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
631
|
+
issues,
|
|
632
|
+
duration: Date.now() - startTime,
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Run all accessibility checks
|
|
637
|
+
*/
|
|
638
|
+
async runAll() {
|
|
639
|
+
const startTime = Date.now();
|
|
640
|
+
console.log(`\n${console_chars_1.emoji.accessibility} CONSOLIDATED UI ACCESSIBILITY PREFLIGHT`);
|
|
641
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
642
|
+
const checks = [];
|
|
643
|
+
console.log(`\n${console_chars_1.emoji.search} Running accessibility checks...\n`);
|
|
644
|
+
checks.push(await this.checkContrast());
|
|
645
|
+
checks.push(await this.checkFocusStates());
|
|
646
|
+
checks.push(await this.checkAriaLabels());
|
|
647
|
+
checks.push(await this.checkTouchTargets());
|
|
648
|
+
checks.push(await this.checkSemanticHtml());
|
|
649
|
+
checks.push(await this.checkFormLabels());
|
|
650
|
+
checks.push(await this.checkColorOnlyInfo());
|
|
651
|
+
checks.push(await this.checkDuplicateLabels());
|
|
652
|
+
const totalDuration = Date.now() - startTime;
|
|
653
|
+
const allIssues = checks.flatMap((c) => c.issues);
|
|
654
|
+
const errors = allIssues.filter((i) => i.severity === "error").length;
|
|
655
|
+
const warnings = allIssues.filter((i) => i.severity === "warning").length;
|
|
656
|
+
const passed = errors === 0;
|
|
657
|
+
const summary = {
|
|
658
|
+
total: checks.length,
|
|
659
|
+
passed: checks.filter((c) => c.passed).length,
|
|
660
|
+
failed: checks.filter((c) => !c.passed).length,
|
|
661
|
+
errors,
|
|
662
|
+
warnings,
|
|
663
|
+
};
|
|
664
|
+
this.printResults(checks, totalDuration, summary);
|
|
665
|
+
return { module: "ui-accessibility", passed, totalDuration, checks, summary };
|
|
666
|
+
}
|
|
667
|
+
printResults(checks, totalDuration, summary) {
|
|
668
|
+
console.log("\n" + (0, console_chars_1.createDivider)(80, "heavy"));
|
|
669
|
+
console.log(`${console_chars_1.emoji.chart} UI ACCESSIBILITY RESULTS`);
|
|
670
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
671
|
+
checks.forEach((check) => {
|
|
672
|
+
const icon = check.passed ? `${console_chars_1.emoji.success}` : `${console_chars_1.emoji.error}`;
|
|
673
|
+
const time = `${(check.duration / 1000).toFixed(1)}s`;
|
|
674
|
+
const count = check.issues.length > 0 ? ` (${check.issues.length} issues)` : "";
|
|
675
|
+
console.log(`${icon} ${check.name.padEnd(40)} ${time.padStart(8)}${count}`);
|
|
676
|
+
if (this.verbose && check.issues.length > 0) {
|
|
677
|
+
check.issues.slice(0, 3).forEach((issue) => {
|
|
678
|
+
const sev = issue.severity === "error"
|
|
679
|
+
? `${console_chars_1.emoji.error}`
|
|
680
|
+
: issue.severity === "warning"
|
|
681
|
+
? `${console_chars_1.emoji.warning}`
|
|
682
|
+
: `${console_chars_1.emoji.info}`;
|
|
683
|
+
console.log(` ${sev} ${issue.file}:${issue.line} - ${issue.message}`);
|
|
684
|
+
});
|
|
685
|
+
if (check.issues.length > 3)
|
|
686
|
+
console.log(` ... and ${check.issues.length - 3} more`);
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
690
|
+
console.log(`Total Checks: ${summary.total}`);
|
|
691
|
+
console.log(`${console_chars_1.emoji.success} Passed: ${summary.passed}`);
|
|
692
|
+
console.log(`${console_chars_1.emoji.error} Failed: ${summary.failed}`);
|
|
693
|
+
console.log(`${console_chars_1.emoji.stop} Errors: ${summary.errors}`);
|
|
694
|
+
console.log(`${console_chars_1.emoji.warning} Warnings: ${summary.warnings}`);
|
|
695
|
+
console.log(`${console_chars_1.emoji.clock} Total Time: ${(totalDuration / 1000).toFixed(1)}s`);
|
|
696
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
697
|
+
console.log(`\n${console_chars_1.emoji.clipboard} WCAG 2.1 Requirements:`);
|
|
698
|
+
console.log(` ${console_chars_1.chars.bullet} Contrast: 4.5:1 normal text, 3:1 large text`);
|
|
699
|
+
console.log(` ${console_chars_1.chars.bullet} Focus: Visible focus indicators`);
|
|
700
|
+
console.log(` ${console_chars_1.chars.bullet} Touch: 44x44px minimum targets`);
|
|
701
|
+
console.log(` ${console_chars_1.chars.bullet} Labels: All inputs need labels`);
|
|
702
|
+
console.log(` ${console_chars_1.chars.bullet} Color: Don't convey info by color alone`);
|
|
703
|
+
if (summary.errors === 0) {
|
|
704
|
+
console.log(`\n${console_chars_1.emoji.success} UI ACCESSIBILITY PASSED`);
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
console.log(`\n${console_chars_1.emoji.error} UI ACCESSIBILITY FAILED`);
|
|
708
|
+
console.log(` ${summary.errors} error(s) must be fixed`);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
exports.UIAccessibilityPreflightModule = UIAccessibilityPreflightModule;
|
|
713
|
+
// CLI INTERFACE
|
|
714
|
+
async function main() {
|
|
715
|
+
const reporter = (0, universal_progress_reporter_1.createUniversalProgressReporter)(node_path_1.default.basename(__filename, ".ts"));
|
|
716
|
+
const args = process.argv.slice(2);
|
|
717
|
+
const mode = args[0] || "all";
|
|
718
|
+
const verbose = args.includes("--verbose") || args.includes("-v");
|
|
719
|
+
const parallel = args.includes("--parallel") || args.includes("-p");
|
|
720
|
+
const module = new UIAccessibilityPreflightModule({ verbose, parallel });
|
|
721
|
+
try {
|
|
722
|
+
let result;
|
|
723
|
+
const runSingle = async (name, checkFn) => {
|
|
724
|
+
const check = await checkFn();
|
|
725
|
+
return {
|
|
726
|
+
module: `ui-accessibility:${name}`,
|
|
727
|
+
passed: check.passed,
|
|
728
|
+
totalDuration: check.duration,
|
|
729
|
+
checks: [check],
|
|
730
|
+
summary: {
|
|
731
|
+
total: 1,
|
|
732
|
+
passed: check.passed ? 1 : 0,
|
|
733
|
+
failed: check.passed ? 0 : 1,
|
|
734
|
+
errors: check.issues.filter((i) => i.severity === "error").length,
|
|
735
|
+
warnings: check.issues.filter((i) => i.severity === "warning").length,
|
|
736
|
+
},
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
switch (mode) {
|
|
740
|
+
case "contrast":
|
|
741
|
+
result = await runSingle("contrast", () => module.checkContrast());
|
|
742
|
+
break;
|
|
743
|
+
case "focus":
|
|
744
|
+
result = await runSingle("focus", () => module.checkFocusStates());
|
|
745
|
+
break;
|
|
746
|
+
case "aria":
|
|
747
|
+
result = await runSingle("aria", () => module.checkAriaLabels());
|
|
748
|
+
break;
|
|
749
|
+
case "touch":
|
|
750
|
+
result = await runSingle("touch", () => module.checkTouchTargets());
|
|
751
|
+
break;
|
|
752
|
+
case "semantic":
|
|
753
|
+
result = await runSingle("semantic", () => module.checkSemanticHtml());
|
|
754
|
+
break;
|
|
755
|
+
case "forms":
|
|
756
|
+
result = await runSingle("forms", () => module.checkFormLabels());
|
|
757
|
+
break;
|
|
758
|
+
case "color":
|
|
759
|
+
result = await runSingle("color", () => module.checkColorOnlyInfo());
|
|
760
|
+
break;
|
|
761
|
+
case "all":
|
|
762
|
+
default:
|
|
763
|
+
result = await module.runAll();
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
process.exit(result.passed ? 0 : 1);
|
|
767
|
+
}
|
|
768
|
+
catch (error) {
|
|
769
|
+
console.error(`${console_chars_1.emoji.error} Fatal error:`, error);
|
|
770
|
+
process.exit(1);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (require.main === module) {
|
|
774
|
+
main();
|
|
775
|
+
}
|
|
776
|
+
//# sourceMappingURL=ui-accessibility.js.map
|