@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,689 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Advanced UI Accessibility Preflight
|
|
5
|
+
*
|
|
6
|
+
* Comprehensive accessibility checks:
|
|
7
|
+
* 1. Focus Ring Consistency - Missing or inconsistent focus indicators
|
|
8
|
+
* 2. Touch Target Size - Buttons/links smaller than 44px touch target
|
|
9
|
+
* 3. ARIA Labels - Interactive elements without labels
|
|
10
|
+
* 4. Color Contrast Patterns - Known low-contrast patterns
|
|
11
|
+
* 5. Keyboard Navigation - Focus order and tab index issues
|
|
12
|
+
* 6. Screen Reader Text - Missing sr-only text for icons
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* pnpm preflight:ui-a11y # All checks
|
|
16
|
+
* pnpm preflight:ui-a11y focus # Focus ring only
|
|
17
|
+
* pnpm preflight:ui-a11y touch # Touch targets only
|
|
18
|
+
* pnpm preflight:ui-a11y aria # ARIA labels only
|
|
19
|
+
* pnpm preflight:ui-a11y contrast # Color contrast only
|
|
20
|
+
* pnpm preflight:ui-a11y keyboard # Keyboard nav only
|
|
21
|
+
* pnpm preflight:ui-a11y sr-text # Screen reader text only
|
|
22
|
+
*/
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, k2, desc);
|
|
30
|
+
}) : (function(o, m, k, k2) {
|
|
31
|
+
if (k2 === undefined) k2 = k;
|
|
32
|
+
o[k2] = m[k];
|
|
33
|
+
}));
|
|
34
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}) : function(o, v) {
|
|
37
|
+
o["default"] = v;
|
|
38
|
+
});
|
|
39
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
40
|
+
var ownKeys = function(o) {
|
|
41
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
42
|
+
var ar = [];
|
|
43
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44
|
+
return ar;
|
|
45
|
+
};
|
|
46
|
+
return ownKeys(o);
|
|
47
|
+
};
|
|
48
|
+
return function (mod) {
|
|
49
|
+
if (mod && mod.__esModule) return mod;
|
|
50
|
+
var result = {};
|
|
51
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
52
|
+
__setModuleDefault(result, mod);
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
})();
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.UIAccessibilityAdvancedModule = void 0;
|
|
58
|
+
const fs = __importStar(require("fs"));
|
|
59
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
60
|
+
const path = __importStar(require("path"));
|
|
61
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
62
|
+
const universal_progress_reporter_1 = require("../system/universal-progress-reporter");
|
|
63
|
+
const concurrency_config_1 = require("../../shared/concurrency-config");
|
|
64
|
+
const design_tokens_1 = require("../../shared/design-tokens");
|
|
65
|
+
const EXCLUDED_PATTERNS = [
|
|
66
|
+
"**/node_modules/**",
|
|
67
|
+
"**/.next/**",
|
|
68
|
+
"**/dist/**",
|
|
69
|
+
"**/build/**",
|
|
70
|
+
"**/*.test.tsx",
|
|
71
|
+
"**/*.spec.tsx",
|
|
72
|
+
"**/*.stories.tsx",
|
|
73
|
+
];
|
|
74
|
+
// Get concurrency from shared config (respects PREFLIGHT_CONCURRENCY env var)
|
|
75
|
+
const concurrencyConfig = (0, concurrency_config_1.getConcurrencyConfig)();
|
|
76
|
+
class UIAccessibilityAdvancedModule {
|
|
77
|
+
verbose;
|
|
78
|
+
parallel = false;
|
|
79
|
+
constructor(options = {}) {
|
|
80
|
+
this.verbose = options.verbose || false;
|
|
81
|
+
this.parallel = options.parallel || concurrencyConfig.parallel;
|
|
82
|
+
}
|
|
83
|
+
async getFiles() {
|
|
84
|
+
return await file_cache_1.fileCache.getAllTsxJsx();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 1. Focus Ring Consistency
|
|
88
|
+
* - Elements with onClick but no focus styles
|
|
89
|
+
* - Custom focus styles that don't match design system
|
|
90
|
+
* - outline: none without replacement focus indicator
|
|
91
|
+
*/
|
|
92
|
+
async checkFocusRingConsistency() {
|
|
93
|
+
const startTime = Date.now();
|
|
94
|
+
const issues = [];
|
|
95
|
+
const files = await this.getFiles();
|
|
96
|
+
for (const file of files) {
|
|
97
|
+
const content = fs.readFileSync(file, "utf8");
|
|
98
|
+
const lines = content.split("\n");
|
|
99
|
+
lines.forEach((line, index) => {
|
|
100
|
+
// Check for outline: none or outline: 0 without focus-visible replacement
|
|
101
|
+
if (/outline:\s*(?:none|0)/.test(line)) {
|
|
102
|
+
const contextBlock = lines
|
|
103
|
+
.slice(Math.max(0, index - 5), Math.min(index + 5, lines.length))
|
|
104
|
+
.join("\n");
|
|
105
|
+
const hasFocusVisible = /focus-visible|:focus-visible|focusVisible/.test(contextBlock);
|
|
106
|
+
const hasRingClass = /ring-|focus:ring/.test(contextBlock);
|
|
107
|
+
if (!hasFocusVisible && !hasRingClass) {
|
|
108
|
+
issues.push({
|
|
109
|
+
file,
|
|
110
|
+
line: index + 1,
|
|
111
|
+
type: "outline-none-no-replacement",
|
|
112
|
+
severity: "warning",
|
|
113
|
+
message: "outline: none without focus-visible replacement (accessibility issue)",
|
|
114
|
+
suggestion: "Add focus-visible:ring-2 focus-visible:ring-primary or equivalent",
|
|
115
|
+
snippet: line.trim().substring(0, 80),
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// Check for clickable divs without focus handling
|
|
120
|
+
if (/<div[^>]*onClick/.test(line) || /<Box[^>]*onClick/.test(line)) {
|
|
121
|
+
const elementBlock = lines.slice(index, Math.min(index + 10, lines.length)).join("\n");
|
|
122
|
+
const hasTabIndex = /tabIndex/.test(elementBlock);
|
|
123
|
+
const hasRole = /role=/.test(elementBlock);
|
|
124
|
+
const hasFocusStyle = /focus:|:focus|onFocus/.test(elementBlock);
|
|
125
|
+
if (!hasTabIndex && !hasRole) {
|
|
126
|
+
issues.push({
|
|
127
|
+
file,
|
|
128
|
+
line: index + 1,
|
|
129
|
+
type: "clickable-div-no-a11y",
|
|
130
|
+
severity: "warning",
|
|
131
|
+
message: "Clickable div/Box without tabIndex or role (not keyboard accessible)",
|
|
132
|
+
suggestion: 'Add tabIndex={0} role="button" and onKeyDown handler',
|
|
133
|
+
snippet: line.trim().substring(0, 80),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
else if (hasTabIndex && !hasFocusStyle) {
|
|
137
|
+
issues.push({
|
|
138
|
+
file,
|
|
139
|
+
line: index + 1,
|
|
140
|
+
type: "focusable-no-focus-style",
|
|
141
|
+
severity: "info",
|
|
142
|
+
message: "Focusable element without visible focus style",
|
|
143
|
+
suggestion: "Add focus:ring-2 or focus-visible styles",
|
|
144
|
+
snippet: line.trim().substring(0, 80),
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
name: "Focus Ring Consistency",
|
|
152
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
153
|
+
blocking: true,
|
|
154
|
+
issues,
|
|
155
|
+
duration: Date.now() - startTime,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* 2. Touch Target Size
|
|
160
|
+
* - Buttons/links smaller than 44px minimum touch target
|
|
161
|
+
* - Icon buttons without adequate padding
|
|
162
|
+
*/
|
|
163
|
+
async checkTouchTargetSize() {
|
|
164
|
+
const startTime = Date.now();
|
|
165
|
+
const issues = [];
|
|
166
|
+
const files = await this.getFiles();
|
|
167
|
+
for (const file of files) {
|
|
168
|
+
const content = fs.readFileSync(file, "utf8");
|
|
169
|
+
const lines = content.split("\n");
|
|
170
|
+
lines.forEach((line, index) => {
|
|
171
|
+
// Check for IconButton with small size
|
|
172
|
+
if (/<IconButton[^>]*size=["']small["']/.test(line)) {
|
|
173
|
+
const contextBlock = lines.slice(index, Math.min(index + 5, lines.length)).join("\n");
|
|
174
|
+
const hasMinSize = /min-w-|min-h-|minWidth|minHeight/.test(contextBlock);
|
|
175
|
+
const hasPadding = /p-[3-9]|padding/.test(contextBlock);
|
|
176
|
+
if (!hasMinSize && !hasPadding) {
|
|
177
|
+
issues.push({
|
|
178
|
+
file,
|
|
179
|
+
line: index + 1,
|
|
180
|
+
type: "small-icon-button",
|
|
181
|
+
severity: "info",
|
|
182
|
+
message: `Small IconButton may not meet ${design_tokens_1.TOUCH_TARGETS.minimum}px touch target minimum`,
|
|
183
|
+
suggestion: `Consider size="medium" or add min-w-11 min-h-11 (${design_tokens_1.TOUCH_TARGETS.minimum}px)`,
|
|
184
|
+
snippet: line.trim().substring(0, 80),
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Check for very small buttons (h-6, h-7, h-8 = 24-32px)
|
|
189
|
+
if (/<Button[^>]*className=["'][^"']*h-[678][^0-9]/.test(line)) {
|
|
190
|
+
issues.push({
|
|
191
|
+
file,
|
|
192
|
+
line: index + 1,
|
|
193
|
+
type: "small-button-height",
|
|
194
|
+
severity: "warning",
|
|
195
|
+
message: `Button height (${design_tokens_1.TOUCH_TARGETS.smallMin}-${design_tokens_1.TOUCH_TARGETS.smallMax}px) below ${design_tokens_1.TOUCH_TARGETS.minimum}px touch target minimum`,
|
|
196
|
+
suggestion: `Use h-11 (${design_tokens_1.TOUCH_TARGETS.minimum}px) minimum for touch accessibility`,
|
|
197
|
+
snippet: line.trim().substring(0, 80),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
// Check for inline links that might be too small
|
|
201
|
+
if (/<a[^>]*className=["'][^"']*text-xs/.test(line) ||
|
|
202
|
+
/<Link[^>]*className=["'][^"']*text-xs/.test(line)) {
|
|
203
|
+
const contextBlock = lines.slice(index, Math.min(index + 5, lines.length)).join("\n");
|
|
204
|
+
const hasPadding = /p-[2-9]|py-|px-/.test(contextBlock);
|
|
205
|
+
if (!hasPadding) {
|
|
206
|
+
issues.push({
|
|
207
|
+
file,
|
|
208
|
+
line: index + 1,
|
|
209
|
+
type: "small-link-text",
|
|
210
|
+
severity: "info",
|
|
211
|
+
message: "Small text link may have insufficient touch target",
|
|
212
|
+
suggestion: "Add py-2 px-1 for adequate touch area",
|
|
213
|
+
snippet: line.trim().substring(0, 80),
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
name: "Touch Target Size",
|
|
221
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
222
|
+
blocking: true,
|
|
223
|
+
issues,
|
|
224
|
+
duration: Date.now() - startTime,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* 3. ARIA Labels
|
|
229
|
+
* - Interactive elements without aria-label
|
|
230
|
+
* - Images without alt text
|
|
231
|
+
* - Form inputs without labels
|
|
232
|
+
*/
|
|
233
|
+
async checkAriaLabels() {
|
|
234
|
+
const startTime = Date.now();
|
|
235
|
+
const issues = [];
|
|
236
|
+
const files = await this.getFiles();
|
|
237
|
+
for (const file of files) {
|
|
238
|
+
const content = fs.readFileSync(file, "utf8");
|
|
239
|
+
const lines = content.split("\n");
|
|
240
|
+
lines.forEach((line, index) => {
|
|
241
|
+
// IconButton without aria-label
|
|
242
|
+
if (/<IconButton/.test(line)) {
|
|
243
|
+
const contextBlock = lines.slice(index, Math.min(index + 20, lines.length)).join("\n");
|
|
244
|
+
const hasAriaLabel = /aria-label=/.test(contextBlock);
|
|
245
|
+
const hasLabel = /\blabel=/.test(contextBlock);
|
|
246
|
+
const hasTitle = /title=/.test(contextBlock);
|
|
247
|
+
const hasTooltip = /Tooltip/.test(lines.slice(Math.max(0, index - 3), index).join("\n"));
|
|
248
|
+
if (!hasAriaLabel && !hasLabel && !hasTitle && !hasTooltip) {
|
|
249
|
+
issues.push({
|
|
250
|
+
file,
|
|
251
|
+
line: index + 1,
|
|
252
|
+
type: "icon-button-no-label",
|
|
253
|
+
severity: "warning",
|
|
254
|
+
message: "IconButton without aria-label (screen readers cannot identify)",
|
|
255
|
+
suggestion: 'Add aria-label="descriptive action name"',
|
|
256
|
+
snippet: line.trim().substring(0, 80),
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
// img without alt
|
|
261
|
+
if (/<img[^>]*(?!.*alt=)/.test(line) && !line.includes("alt=")) {
|
|
262
|
+
const contextBlock = lines.slice(index, Math.min(index + 5, lines.length)).join("\n");
|
|
263
|
+
if (!contextBlock.includes("alt=")) {
|
|
264
|
+
issues.push({
|
|
265
|
+
file,
|
|
266
|
+
line: index + 1,
|
|
267
|
+
type: "img-no-alt",
|
|
268
|
+
severity: "warning",
|
|
269
|
+
message: "Image without alt attribute",
|
|
270
|
+
suggestion: 'Add alt="description" or alt="" for decorative images',
|
|
271
|
+
snippet: line.trim().substring(0, 80),
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// Input without associated label
|
|
276
|
+
if (/<input[^>]*type=["'](?:text|email|password|tel|number)["']/.test(line)) {
|
|
277
|
+
const contextBlock = lines
|
|
278
|
+
.slice(Math.max(0, index - 10), Math.min(index + 5, lines.length))
|
|
279
|
+
.join("\n");
|
|
280
|
+
const hasLabel = /<label[^>]*htmlFor=/.test(contextBlock) ||
|
|
281
|
+
/aria-label=/.test(contextBlock) ||
|
|
282
|
+
/aria-labelledby=/.test(contextBlock);
|
|
283
|
+
const hasPlaceholder = /placeholder=/.test(line);
|
|
284
|
+
if (!hasLabel && !hasPlaceholder) {
|
|
285
|
+
issues.push({
|
|
286
|
+
file,
|
|
287
|
+
line: index + 1,
|
|
288
|
+
type: "input-no-label",
|
|
289
|
+
severity: "warning",
|
|
290
|
+
message: "Input without label or aria-label",
|
|
291
|
+
suggestion: 'Add <label htmlFor="id"> or aria-label',
|
|
292
|
+
snippet: line.trim().substring(0, 80),
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Button with only icon (no text, no aria-label)
|
|
297
|
+
if (/<Button[^>]*>/.test(line)) {
|
|
298
|
+
const buttonBlock = lines.slice(index, Math.min(index + 5, lines.length)).join("\n");
|
|
299
|
+
const buttonEnd = buttonBlock.indexOf("</Button>");
|
|
300
|
+
if (buttonEnd > 0) {
|
|
301
|
+
const buttonContent = buttonBlock.substring(0, buttonEnd);
|
|
302
|
+
// Check for visible text - look for text content between tags or after self-closing icon
|
|
303
|
+
const hasText = />[\s]*[a-zA-Z]/.test(buttonContent) ||
|
|
304
|
+
/>\s*\{[^}]*\}\s*[a-zA-Z]/.test(buttonContent);
|
|
305
|
+
const hasAriaLabel = /aria-label=/.test(buttonContent);
|
|
306
|
+
const hasOnlyIcon = /<[A-Z][a-zA-Z]*Icon|Icon\s*\/>|lucide/.test(buttonContent);
|
|
307
|
+
// Check for startIcon/endIcon props with text content
|
|
308
|
+
const hasIconPropWithText = /(?:startIcon|endIcon)=/.test(buttonContent) && />\s*[a-zA-Z]/.test(buttonContent);
|
|
309
|
+
if (hasOnlyIcon && !hasText && !hasAriaLabel && !hasIconPropWithText) {
|
|
310
|
+
issues.push({
|
|
311
|
+
file,
|
|
312
|
+
line: index + 1,
|
|
313
|
+
type: "icon-only-button-no-label",
|
|
314
|
+
severity: "warning",
|
|
315
|
+
message: "Button with only icon and no aria-label",
|
|
316
|
+
suggestion: "Add aria-label or visible text",
|
|
317
|
+
snippet: line.trim().substring(0, 80),
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
name: "ARIA Labels",
|
|
326
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
327
|
+
blocking: true,
|
|
328
|
+
issues,
|
|
329
|
+
duration: Date.now() - startTime,
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* 4. Color Contrast Patterns
|
|
334
|
+
* - Known low-contrast color combinations
|
|
335
|
+
* - Text on colored backgrounds without sufficient contrast
|
|
336
|
+
*/
|
|
337
|
+
async checkColorContrastPatterns() {
|
|
338
|
+
const startTime = Date.now();
|
|
339
|
+
const issues = [];
|
|
340
|
+
const files = await this.getFiles();
|
|
341
|
+
// Known problematic patterns
|
|
342
|
+
const lowContrastPatterns = [
|
|
343
|
+
{ pattern: /text-gray-400/, bg: /bg-gray-100|bg-white/, name: "gray-400 on light bg" },
|
|
344
|
+
{ pattern: /text-gray-300/, bg: /bg-gray-[12]00|bg-white/, name: "gray-300 on light bg" },
|
|
345
|
+
{
|
|
346
|
+
pattern: /text-\[var\(--text-tertiary\)\]/,
|
|
347
|
+
bg: /bg-white|bg-\[var\(--bg-primary\)\]/,
|
|
348
|
+
name: "tertiary text on primary bg",
|
|
349
|
+
},
|
|
350
|
+
];
|
|
351
|
+
for (const file of files) {
|
|
352
|
+
const content = fs.readFileSync(file, "utf8");
|
|
353
|
+
const lines = content.split("\n");
|
|
354
|
+
lines.forEach((line, index) => {
|
|
355
|
+
// Check for placeholder text that might be too light
|
|
356
|
+
if (/placeholder:text-gray-[34]00/.test(line) || /placeholder-gray-[34]00/.test(line)) {
|
|
357
|
+
issues.push({
|
|
358
|
+
file,
|
|
359
|
+
line: index + 1,
|
|
360
|
+
type: "low-contrast-placeholder",
|
|
361
|
+
severity: "info",
|
|
362
|
+
message: "Placeholder text may have low contrast",
|
|
363
|
+
suggestion: "Use placeholder:text-gray-500 minimum for WCAG AA",
|
|
364
|
+
snippet: line.trim().substring(0, 80),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
// Check for disabled states that might be too faded
|
|
368
|
+
if (/disabled:text-gray-[23]00/.test(line) || /disabled:opacity-[23]0/.test(line)) {
|
|
369
|
+
issues.push({
|
|
370
|
+
file,
|
|
371
|
+
line: index + 1,
|
|
372
|
+
type: "low-contrast-disabled",
|
|
373
|
+
severity: "info",
|
|
374
|
+
message: "Disabled state may have insufficient contrast",
|
|
375
|
+
suggestion: "Use disabled:text-gray-400 or disabled:opacity-50 minimum",
|
|
376
|
+
snippet: line.trim().substring(0, 80),
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
// Check for text on colored backgrounds
|
|
380
|
+
if (/bg-(?:blue|green|red|yellow|purple)-[1-3]00/.test(line) &&
|
|
381
|
+
/text-(?:blue|green|red|yellow|purple)-[4-6]00/.test(line)) {
|
|
382
|
+
issues.push({
|
|
383
|
+
file,
|
|
384
|
+
line: index + 1,
|
|
385
|
+
type: "similar-hue-contrast",
|
|
386
|
+
severity: "info",
|
|
387
|
+
message: "Text and background use similar hues (may have contrast issues)",
|
|
388
|
+
suggestion: "Use darker text (700-900) on light backgrounds",
|
|
389
|
+
snippet: line.trim().substring(0, 80),
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
// Heuristic: header/nav often sets `text-white`; inputs with light backgrounds can inherit
|
|
393
|
+
// white text if they don't explicitly set a token-based text color.
|
|
394
|
+
// This is a common regression for top-nav search bars.
|
|
395
|
+
if (/className=\{?[^\n]*text-white/.test(line) ||
|
|
396
|
+
/className=["'][^"']*text-white/.test(line)) {
|
|
397
|
+
const window = lines.slice(index, Math.min(index + 140, lines.length)).join("\n");
|
|
398
|
+
const hasLightInputSurface = /<input[\s\S]{0,300}bg-(?:white|background)\b|<input[\s\S]{0,300}bg-\[var\(--glass-bg-opaque\)\]/.test(window);
|
|
399
|
+
const hasExplicitTokenText = /text-\[var\(--text-(?:primary|secondary|tertiary)\)\]/.test(window);
|
|
400
|
+
if (hasLightInputSurface && !hasExplicitTokenText) {
|
|
401
|
+
issues.push({
|
|
402
|
+
file,
|
|
403
|
+
line: index + 1,
|
|
404
|
+
type: "inherited-white-text-risk",
|
|
405
|
+
severity: "warning",
|
|
406
|
+
message: "Possible inherited white text on a light input background (contrast risk)",
|
|
407
|
+
suggestion: "Set input text explicitly (e.g., text-[var(--text-primary)] and placeholder:text-[var(--text-secondary)])",
|
|
408
|
+
snippet: line.trim().substring(0, 80),
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
return {
|
|
415
|
+
name: "Color Contrast Patterns",
|
|
416
|
+
passed: true,
|
|
417
|
+
blocking: true,
|
|
418
|
+
issues,
|
|
419
|
+
duration: Date.now() - startTime,
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* 5. Keyboard Navigation
|
|
424
|
+
* - Positive tabIndex (disrupts natural order)
|
|
425
|
+
* - Missing keyboard handlers on interactive elements
|
|
426
|
+
* - Focus traps without escape
|
|
427
|
+
*/
|
|
428
|
+
async checkKeyboardNavigation() {
|
|
429
|
+
const startTime = Date.now();
|
|
430
|
+
const issues = [];
|
|
431
|
+
const files = await this.getFiles();
|
|
432
|
+
for (const file of files) {
|
|
433
|
+
const content = fs.readFileSync(file, "utf8");
|
|
434
|
+
const lines = content.split("\n");
|
|
435
|
+
lines.forEach((line, index) => {
|
|
436
|
+
// Check for positive tabIndex (anti-pattern)
|
|
437
|
+
const tabIndexMatch = line.match(/tabIndex=\{?["']?(\d+)["']?\}?/);
|
|
438
|
+
if (tabIndexMatch && parseInt(tabIndexMatch[1]) > 0) {
|
|
439
|
+
issues.push({
|
|
440
|
+
file,
|
|
441
|
+
line: index + 1,
|
|
442
|
+
type: "positive-tabindex",
|
|
443
|
+
severity: "warning",
|
|
444
|
+
message: `Positive tabIndex (${tabIndexMatch[1]}) disrupts natural tab order`,
|
|
445
|
+
suggestion: "Use tabIndex={0} or restructure DOM order instead",
|
|
446
|
+
snippet: line.trim().substring(0, 80),
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
// Check for onClick without onKeyDown on non-button elements
|
|
450
|
+
if (/<(?:div|span|Box|li|tr)[^>]*onClick/.test(line)) {
|
|
451
|
+
const contextBlock = lines.slice(index, Math.min(index + 10, lines.length)).join("\n");
|
|
452
|
+
const hasKeyHandler = /onKeyDown|onKeyUp|onKeyPress/.test(contextBlock);
|
|
453
|
+
const hasRole = /role=["']button["']|role=["']link["']/.test(contextBlock);
|
|
454
|
+
if (!hasKeyHandler && hasRole) {
|
|
455
|
+
issues.push({
|
|
456
|
+
file,
|
|
457
|
+
line: index + 1,
|
|
458
|
+
type: "click-no-keyboard",
|
|
459
|
+
severity: "warning",
|
|
460
|
+
message: "Element with onClick and role but no keyboard handler",
|
|
461
|
+
suggestion: 'Add onKeyDown={(e) => e.key === "Enter" && onClick()}',
|
|
462
|
+
snippet: line.trim().substring(0, 80),
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
// Check for autofocus (can be disorienting)
|
|
467
|
+
if (/autoFocus|autofocus/.test(line)) {
|
|
468
|
+
issues.push({
|
|
469
|
+
file,
|
|
470
|
+
line: index + 1,
|
|
471
|
+
type: "autofocus-usage",
|
|
472
|
+
severity: "info",
|
|
473
|
+
message: "autoFocus can be disorienting for screen reader users",
|
|
474
|
+
suggestion: "Consider if autoFocus is necessary or use focus management",
|
|
475
|
+
snippet: line.trim().substring(0, 80),
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
name: "Keyboard Navigation",
|
|
482
|
+
passed: issues.filter((i) => i.severity === "error").length === 0,
|
|
483
|
+
blocking: true,
|
|
484
|
+
issues,
|
|
485
|
+
duration: Date.now() - startTime,
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* 6. Screen Reader Text
|
|
490
|
+
* - Icon-only elements without sr-only text
|
|
491
|
+
* - Decorative elements not hidden from screen readers
|
|
492
|
+
*/
|
|
493
|
+
async checkScreenReaderText() {
|
|
494
|
+
const startTime = Date.now();
|
|
495
|
+
const issues = [];
|
|
496
|
+
const files = await this.getFiles();
|
|
497
|
+
for (const file of files) {
|
|
498
|
+
const content = fs.readFileSync(file, "utf8");
|
|
499
|
+
const lines = content.split("\n");
|
|
500
|
+
lines.forEach((line, index) => {
|
|
501
|
+
// Check for status indicators without text
|
|
502
|
+
if (/<(?:span|div)[^>]*className=["'][^"']*(?:bg-green|bg-red|bg-yellow|bg-blue)-[45]00[^"']*["'][^>]*\/>/.test(line)) {
|
|
503
|
+
const contextBlock = lines.slice(index, Math.min(index + 5, lines.length)).join("\n");
|
|
504
|
+
const hasSrOnly = /sr-only|visually-hidden/.test(contextBlock);
|
|
505
|
+
const hasAriaLabel = /aria-label=/.test(contextBlock);
|
|
506
|
+
if (!hasSrOnly && !hasAriaLabel) {
|
|
507
|
+
issues.push({
|
|
508
|
+
file,
|
|
509
|
+
line: index + 1,
|
|
510
|
+
type: "status-indicator-no-text",
|
|
511
|
+
severity: "info",
|
|
512
|
+
message: "Color-only status indicator without screen reader text",
|
|
513
|
+
suggestion: 'Add <span className="sr-only">Status: Active</span>',
|
|
514
|
+
snippet: line.trim().substring(0, 80),
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
// Check for decorative icons not hidden
|
|
519
|
+
if (/<(?:svg|img)[^>]*(?:decorative|decoration)/.test(line)) {
|
|
520
|
+
const hasAriaHidden = /aria-hidden=["']true["']/.test(line);
|
|
521
|
+
if (!hasAriaHidden) {
|
|
522
|
+
issues.push({
|
|
523
|
+
file,
|
|
524
|
+
line: index + 1,
|
|
525
|
+
type: "decorative-not-hidden",
|
|
526
|
+
severity: "info",
|
|
527
|
+
message: "Decorative element should be hidden from screen readers",
|
|
528
|
+
suggestion: 'Add aria-hidden="true" to decorative elements',
|
|
529
|
+
snippet: line.trim().substring(0, 80),
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
// Check for loading spinners without announcement
|
|
534
|
+
if (/<(?:CircularProgress|Spinner|Loading)/.test(line)) {
|
|
535
|
+
const contextBlock = lines.slice(index, Math.min(index + 10, lines.length)).join("\n");
|
|
536
|
+
const hasAriaLabel = /aria-label=/.test(contextBlock);
|
|
537
|
+
const hasAriaLive = /aria-live=/.test(contextBlock);
|
|
538
|
+
const hasSrOnly = /sr-only/.test(contextBlock);
|
|
539
|
+
if (!hasAriaLabel && !hasAriaLive && !hasSrOnly) {
|
|
540
|
+
issues.push({
|
|
541
|
+
file,
|
|
542
|
+
line: index + 1,
|
|
543
|
+
type: "loading-no-announcement",
|
|
544
|
+
severity: "info",
|
|
545
|
+
message: "Loading indicator without screen reader announcement",
|
|
546
|
+
suggestion: 'Add aria-label="Loading" or nearby sr-only text',
|
|
547
|
+
snippet: line.trim().substring(0, 80),
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
return {
|
|
554
|
+
name: "Screen Reader Text",
|
|
555
|
+
passed: true,
|
|
556
|
+
blocking: true,
|
|
557
|
+
issues,
|
|
558
|
+
duration: Date.now() - startTime,
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Run all checks
|
|
563
|
+
*/
|
|
564
|
+
async runAll() {
|
|
565
|
+
const startTime = Date.now();
|
|
566
|
+
console.log(`\n${console_chars_1.emoji.accessibility} ADVANCED UI ACCESSIBILITY PREFLIGHT`);
|
|
567
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
568
|
+
const checks = [];
|
|
569
|
+
checks.push(await this.checkFocusRingConsistency());
|
|
570
|
+
checks.push(await this.checkTouchTargetSize());
|
|
571
|
+
checks.push(await this.checkAriaLabels());
|
|
572
|
+
checks.push(await this.checkColorContrastPatterns());
|
|
573
|
+
checks.push(await this.checkKeyboardNavigation());
|
|
574
|
+
checks.push(await this.checkScreenReaderText());
|
|
575
|
+
const totalDuration = Date.now() - startTime;
|
|
576
|
+
const allIssues = checks.flatMap((c) => c.issues);
|
|
577
|
+
const errors = allIssues.filter((i) => i.severity === "error").length;
|
|
578
|
+
const warnings = allIssues.filter((i) => i.severity === "warning").length;
|
|
579
|
+
const infos = allIssues.filter((i) => i.severity === "info").length;
|
|
580
|
+
const blockingFailed = checks.some((c) => c.blocking && !c.passed);
|
|
581
|
+
const summary = {
|
|
582
|
+
total: checks.length,
|
|
583
|
+
passed: checks.filter((c) => c.passed).length,
|
|
584
|
+
failed: checks.filter((c) => !c.passed).length,
|
|
585
|
+
errors,
|
|
586
|
+
warnings,
|
|
587
|
+
};
|
|
588
|
+
// Print results
|
|
589
|
+
checks.forEach((check) => {
|
|
590
|
+
const icon = check.passed ? `${console_chars_1.emoji.success}` : `${console_chars_1.emoji.error}`;
|
|
591
|
+
const suffix = check.blocking ? " [BLOCKING]" : "";
|
|
592
|
+
console.log(`${icon} ${check.name} (${check.issues.length} issues, ${(check.duration / 1000).toFixed(1)}s)${suffix}`);
|
|
593
|
+
});
|
|
594
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
595
|
+
console.log(`Errors: ${errors} | Warnings: ${warnings} | Info: ${infos} | Time: ${(totalDuration / 1000).toFixed(1)}s`);
|
|
596
|
+
if (blockingFailed) {
|
|
597
|
+
console.log(`\n${console_chars_1.emoji.error} ACCESSIBILITY FAILED - ${errors} error(s)`);
|
|
598
|
+
}
|
|
599
|
+
else if (warnings > 0) {
|
|
600
|
+
console.log(`\n${console_chars_1.emoji.warning} ACCESSIBILITY PASSED - ${warnings} warning(s)`);
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
console.log(`\n${console_chars_1.emoji.success} ACCESSIBILITY PASSED`);
|
|
604
|
+
}
|
|
605
|
+
return {
|
|
606
|
+
module: "ui-accessibility-advanced",
|
|
607
|
+
passed: !blockingFailed,
|
|
608
|
+
totalDuration,
|
|
609
|
+
checks,
|
|
610
|
+
summary,
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
exports.UIAccessibilityAdvancedModule = UIAccessibilityAdvancedModule;
|
|
615
|
+
async function main() {
|
|
616
|
+
const reporter = (0, universal_progress_reporter_1.createUniversalProgressReporter)(path.basename(__filename, ".ts"));
|
|
617
|
+
const args = process.argv.slice(2);
|
|
618
|
+
const mode = args[0] || "all";
|
|
619
|
+
const verbose = args.includes("--verbose") || args.includes("-v");
|
|
620
|
+
const parallel = args.includes("--parallel") || args.includes("-p");
|
|
621
|
+
const module = new UIAccessibilityAdvancedModule({ verbose, parallel });
|
|
622
|
+
const runSingle = async (name, fn) => {
|
|
623
|
+
console.log(`\n${console_chars_1.emoji.accessibility} ACCESSIBILITY: ${name.toUpperCase()}`);
|
|
624
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
625
|
+
const check = await fn();
|
|
626
|
+
const summary = {
|
|
627
|
+
total: 1,
|
|
628
|
+
passed: check.passed ? 1 : 0,
|
|
629
|
+
failed: check.passed ? 0 : 1,
|
|
630
|
+
errors: check.issues.filter((i) => i.severity === "error").length,
|
|
631
|
+
warnings: check.issues.filter((i) => i.severity === "warning").length,
|
|
632
|
+
};
|
|
633
|
+
const icon = check.passed ? `${console_chars_1.emoji.success}` : `${console_chars_1.emoji.error}`;
|
|
634
|
+
console.log(`${icon} ${check.name} (${check.issues.length} issues, ${(check.duration / 1000).toFixed(1)}s)`);
|
|
635
|
+
if (check.issues.length > 0) {
|
|
636
|
+
check.issues.slice(0, 30).forEach((issue) => {
|
|
637
|
+
const color = issue.severity === "error"
|
|
638
|
+
? "\x1b[31m"
|
|
639
|
+
: issue.severity === "warning"
|
|
640
|
+
? "\x1b[33m"
|
|
641
|
+
: "\x1b[36m";
|
|
642
|
+
const reset = "\x1b[0m";
|
|
643
|
+
console.log(` ${color}[${issue.severity.toUpperCase()}]${reset} ${issue.file}:${issue.line}`);
|
|
644
|
+
console.log(` ${issue.message}`);
|
|
645
|
+
if (issue.suggestion)
|
|
646
|
+
console.log(` ${console_chars_1.chars.arrow} ${issue.suggestion}`);
|
|
647
|
+
});
|
|
648
|
+
if (check.issues.length > 30)
|
|
649
|
+
console.log(` ... and ${check.issues.length - 30} more issues`);
|
|
650
|
+
}
|
|
651
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
652
|
+
return {
|
|
653
|
+
module: `ui-a11y:${name}`,
|
|
654
|
+
passed: check.passed,
|
|
655
|
+
totalDuration: check.duration,
|
|
656
|
+
checks: [check],
|
|
657
|
+
summary,
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
let result;
|
|
661
|
+
switch (mode) {
|
|
662
|
+
case "focus":
|
|
663
|
+
result = await runSingle("focus", () => module.checkFocusRingConsistency());
|
|
664
|
+
break;
|
|
665
|
+
case "touch":
|
|
666
|
+
result = await runSingle("touch", () => module.checkTouchTargetSize());
|
|
667
|
+
break;
|
|
668
|
+
case "aria":
|
|
669
|
+
result = await runSingle("aria", () => module.checkAriaLabels());
|
|
670
|
+
break;
|
|
671
|
+
case "contrast":
|
|
672
|
+
result = await runSingle("contrast", () => module.checkColorContrastPatterns());
|
|
673
|
+
break;
|
|
674
|
+
case "keyboard":
|
|
675
|
+
result = await runSingle("keyboard", () => module.checkKeyboardNavigation());
|
|
676
|
+
break;
|
|
677
|
+
case "sr-text":
|
|
678
|
+
result = await runSingle("sr-text", () => module.checkScreenReaderText());
|
|
679
|
+
break;
|
|
680
|
+
default:
|
|
681
|
+
result = await module.runAll();
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
process.exit(result.passed ? 0 : 1);
|
|
685
|
+
}
|
|
686
|
+
if (require.main === module) {
|
|
687
|
+
main();
|
|
688
|
+
}
|
|
689
|
+
//# sourceMappingURL=ui-accessibility-advanced.js.map
|