@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,659 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Consolidated UI State Consistency Preflight
|
|
5
|
+
*
|
|
6
|
+
* Combines 5 separate state consistency checks into one comprehensive module:
|
|
7
|
+
* - disabled-state-consistency (disabled states)
|
|
8
|
+
* - empty-state-consistency (empty states)
|
|
9
|
+
* - error-state-consistency (error handling)
|
|
10
|
+
* - hover-state-consistency (hover states)
|
|
11
|
+
* - loading-state-consistency (loading states)
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* pnpm preflight:ui-state # All state checks
|
|
15
|
+
* pnpm preflight:ui-state disabled # Disabled states only
|
|
16
|
+
* pnpm preflight:ui-state empty # Empty states only
|
|
17
|
+
* pnpm preflight:ui-state error # Error states only
|
|
18
|
+
* pnpm preflight:ui-state hover # Hover states only
|
|
19
|
+
* pnpm preflight:ui-state loading # Loading states only
|
|
20
|
+
*/
|
|
21
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(o, k2, desc);
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
37
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
38
|
+
var ownKeys = function(o) {
|
|
39
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
40
|
+
var ar = [];
|
|
41
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
42
|
+
return ar;
|
|
43
|
+
};
|
|
44
|
+
return ownKeys(o);
|
|
45
|
+
};
|
|
46
|
+
return function (mod) {
|
|
47
|
+
if (mod && mod.__esModule) return mod;
|
|
48
|
+
var result = {};
|
|
49
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
50
|
+
__setModuleDefault(result, mod);
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
})();
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
exports.UIStateConsistencyModule = void 0;
|
|
56
|
+
const fs = __importStar(require("fs"));
|
|
57
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
58
|
+
const path = __importStar(require("path"));
|
|
59
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
60
|
+
const glob_patterns_1 = require("../../shared/glob-patterns");
|
|
61
|
+
const universal_progress_reporter_1 = require("../system/universal-progress-reporter");
|
|
62
|
+
const concurrency_config_1 = require("../../shared/concurrency-config");
|
|
63
|
+
const EXCLUDED = (0, glob_patterns_1.extendExcludes)(glob_patterns_1.STANDARD_EXCLUDES, ["**/ui/**"]);
|
|
64
|
+
// UI components with built-in hover states
|
|
65
|
+
const UI_COMPONENTS_WITH_HOVER = [
|
|
66
|
+
"Button",
|
|
67
|
+
"IconButton",
|
|
68
|
+
"Link",
|
|
69
|
+
"Chip",
|
|
70
|
+
"MenuItem",
|
|
71
|
+
"Tab",
|
|
72
|
+
"ListItem",
|
|
73
|
+
"ListItemButton",
|
|
74
|
+
"Card",
|
|
75
|
+
"Paper",
|
|
76
|
+
"Alert",
|
|
77
|
+
"AccordionSummary",
|
|
78
|
+
"Fab",
|
|
79
|
+
"ToggleButton",
|
|
80
|
+
"StandardButton",
|
|
81
|
+
"LoadingButton",
|
|
82
|
+
"AnimatedButton",
|
|
83
|
+
];
|
|
84
|
+
// Allowed empty state patterns
|
|
85
|
+
const ALLOWED_EMPTY_PATTERNS = [
|
|
86
|
+
"import { EmptyState }",
|
|
87
|
+
"import { EmptyState,",
|
|
88
|
+
", EmptyState }",
|
|
89
|
+
"import { UnifiedEmptyState }",
|
|
90
|
+
"import { UnifiedEmptyState,",
|
|
91
|
+
", UnifiedEmptyState }",
|
|
92
|
+
'from "@/components/shared/EmptyState"',
|
|
93
|
+
'from "@/components/shared"',
|
|
94
|
+
"<EmptyState",
|
|
95
|
+
"<UnifiedEmptyState",
|
|
96
|
+
"CollectionEmptyState",
|
|
97
|
+
"AdminEmptyState",
|
|
98
|
+
"emptyMessage=",
|
|
99
|
+
];
|
|
100
|
+
// Patterns that indicate inline empty states (should use shared component)
|
|
101
|
+
const INLINE_EMPTY_STATE_PATTERNS = [
|
|
102
|
+
// Icon + centered text pattern (common inline empty state)
|
|
103
|
+
/textAlign:\s*["']center["'][^}]*py:\s*["']var\(--spacing-[68]\)["'][^}]*>[^<]*<\w+\s+size=\{?\d+\}?/,
|
|
104
|
+
// "No X available/found/yet" patterns
|
|
105
|
+
/No\s+\w+\s+(Available|Found|Yet|Configured)/i,
|
|
106
|
+
// "Your X is empty" patterns
|
|
107
|
+
/Your\s+\w+\s+is\s+empty/i,
|
|
108
|
+
// "There are no X" patterns
|
|
109
|
+
/There\s+are\s+no\s+\w+/i,
|
|
110
|
+
// "Nothing to show/display" patterns
|
|
111
|
+
/Nothing\s+to\s+(show|display)/i,
|
|
112
|
+
];
|
|
113
|
+
// Get concurrency from shared config (respects PREFLIGHT_CONCURRENCY env var)
|
|
114
|
+
const concurrencyConfig = (0, concurrency_config_1.getConcurrencyConfig)();
|
|
115
|
+
class UIStateConsistencyModule {
|
|
116
|
+
verbose;
|
|
117
|
+
parallel = false;
|
|
118
|
+
strictUniformity;
|
|
119
|
+
constructor(options = {}) {
|
|
120
|
+
this.verbose = options.verbose || false;
|
|
121
|
+
this.parallel = options.parallel ?? concurrencyConfig.parallel;
|
|
122
|
+
this.strictUniformity =
|
|
123
|
+
typeof options.strictUniformity === "boolean"
|
|
124
|
+
? options.strictUniformity
|
|
125
|
+
: process.env.PREFLIGHT_STRICT_UNIFORMITY === "1";
|
|
126
|
+
}
|
|
127
|
+
async getComponentFiles() {
|
|
128
|
+
return await file_cache_1.fileCache.getComponentsTsxJsxFiles();
|
|
129
|
+
}
|
|
130
|
+
async getAppFiles() {
|
|
131
|
+
return await file_cache_1.fileCache.getFiles("app/**/*.{tsx,jsx}", {
|
|
132
|
+
ignore: ["**/node_modules/**", "**/.next/**", "**/loading.tsx"],
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Disabled State Consistency
|
|
137
|
+
*/
|
|
138
|
+
async checkDisabled() {
|
|
139
|
+
const startTime = Date.now();
|
|
140
|
+
const issues = [];
|
|
141
|
+
const files = await this.getComponentFiles();
|
|
142
|
+
for (const file of files) {
|
|
143
|
+
const content = fs.readFileSync(file, "utf8");
|
|
144
|
+
const lines = content.split("\n");
|
|
145
|
+
lines.forEach((line, index) => {
|
|
146
|
+
if (line.trim().startsWith("//"))
|
|
147
|
+
return;
|
|
148
|
+
// Button without disabled prop (submit or onClick)
|
|
149
|
+
if (/<Button[^>]*>/i.test(line) && !line.includes("disabled")) {
|
|
150
|
+
if (line.includes('type="submit"') || line.includes("onClick")) {
|
|
151
|
+
issues.push({
|
|
152
|
+
file,
|
|
153
|
+
line: index + 1,
|
|
154
|
+
type: "button-no-disabled",
|
|
155
|
+
severity: "info",
|
|
156
|
+
message: "Button without disabled prop",
|
|
157
|
+
suggestion: "Add disabled={isLoading} or disabled={!isValid}",
|
|
158
|
+
snippet: line.trim().substring(0, 80),
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Custom interactive without aria-disabled
|
|
163
|
+
if (/<div[^>]*onClick/i.test(line) &&
|
|
164
|
+
!line.includes("aria-disabled") &&
|
|
165
|
+
!line.includes("disabled")) {
|
|
166
|
+
issues.push({
|
|
167
|
+
file,
|
|
168
|
+
line: index + 1,
|
|
169
|
+
type: "custom-interactive-no-disabled",
|
|
170
|
+
severity: "warning",
|
|
171
|
+
message: "Custom interactive element without disabled support",
|
|
172
|
+
suggestion: "Add aria-disabled attribute",
|
|
173
|
+
snippet: line.trim().substring(0, 80),
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
name: "Disabled State Consistency",
|
|
180
|
+
passed: true,
|
|
181
|
+
blocking: true,
|
|
182
|
+
issues,
|
|
183
|
+
duration: Date.now() - startTime,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Empty State Consistency
|
|
188
|
+
*
|
|
189
|
+
* Detects inline empty states that should use the shared EmptyState or UnifiedEmptyState component.
|
|
190
|
+
* Common patterns:
|
|
191
|
+
* - Icon + centered text with "No X available"
|
|
192
|
+
* - "Your X is empty" messages
|
|
193
|
+
* - "There are no X" messages
|
|
194
|
+
*/
|
|
195
|
+
async checkEmpty() {
|
|
196
|
+
const startTime = Date.now();
|
|
197
|
+
const issues = [];
|
|
198
|
+
const files = await this.getAppFiles();
|
|
199
|
+
const skipPaths = [
|
|
200
|
+
"help/",
|
|
201
|
+
"admin/integrations/",
|
|
202
|
+
"loading.tsx",
|
|
203
|
+
"EmptyState.tsx",
|
|
204
|
+
"UnifiedEmptyState.tsx",
|
|
205
|
+
];
|
|
206
|
+
for (const file of files) {
|
|
207
|
+
if (skipPaths.some((skip) => file.includes(skip)))
|
|
208
|
+
continue;
|
|
209
|
+
const content = fs.readFileSync(file, "utf8");
|
|
210
|
+
const usesSharedEmptyState = ALLOWED_EMPTY_PATTERNS.some((p) => content.includes(p));
|
|
211
|
+
// Strip most quoted string literals to avoid false positives from copy text in data arrays
|
|
212
|
+
// (e.g., FAQs or marketing copy containing phrases like "There are no ...").
|
|
213
|
+
const contentWithoutStringLiterals = content
|
|
214
|
+
.replace(/`[\s\S]*?`/g, "")
|
|
215
|
+
.replace(/"(?:\\.|[^"\\])*"/g, "")
|
|
216
|
+
.replace(/'(?:\\.|[^'\\])*'/g, "");
|
|
217
|
+
// Skip if already using shared empty state
|
|
218
|
+
if (usesSharedEmptyState)
|
|
219
|
+
continue;
|
|
220
|
+
// Centering consistency for inline empty states
|
|
221
|
+
// Steering rule: centered content blocks should use flex + items-center to avoid subtle mis-centering.
|
|
222
|
+
// We only flag when the file strongly looks like it contains an inline empty-state.
|
|
223
|
+
const likelyEmptyCopy = /(No\s+\w+|Your\s+\w+\s+is\s+empty|There\s+are\s+no\s+\w+|Nothing\s+to\s+(show|display)|not\s+found)/i.test(content);
|
|
224
|
+
const hasCenteredClassBlock = /className=\{?\s*["'][^"']*\btext-center\b[^"']*["']\s*\}?/m.test(content);
|
|
225
|
+
const hasStandardCenteredFlex = /className=\{?\s*["'][^"']*\bflex\b[^"']*\bflex-col\b[^"']*\bitems-center\b[^"']*\btext-center\b[^"']*["']\s*\}?/m.test(content);
|
|
226
|
+
const hasGapOrSpaceY = /className=\{?\s*["'][^"']*(?:\bgap-\d+\b|\bspace-y-\d+\b)[^"']*["']\s*\}?/m.test(content);
|
|
227
|
+
const hasLikelyIcon = /from\s+["']lucide-react["']/.test(content) ||
|
|
228
|
+
/<\w+\s+[^>]*(?:size=\{?\d+\}?|className=\{?\s*["'][^"']*(?:h-\d+|w-\d+)[^"']*["']\s*\}?)/.test(content);
|
|
229
|
+
if (likelyEmptyCopy && hasCenteredClassBlock && hasLikelyIcon && !hasStandardCenteredFlex) {
|
|
230
|
+
const match = content.match(/className=\{?\s*["'][^"']*\btext-center\b[^"']*["']\s*\}?/m);
|
|
231
|
+
const matchIndex = match?.index ?? 0;
|
|
232
|
+
const lineNumber = content.substring(0, matchIndex).split("\n").length;
|
|
233
|
+
issues.push({
|
|
234
|
+
file,
|
|
235
|
+
line: lineNumber,
|
|
236
|
+
type: "empty-state-centering-pattern",
|
|
237
|
+
severity: "warning",
|
|
238
|
+
message: "Centered empty-state content should use flex flex-col items-center (not text-center alone)",
|
|
239
|
+
suggestion: 'Use className="flex flex-col items-center text-center" on the empty-state container (or use <UnifiedEmptyState />)',
|
|
240
|
+
snippet: match?.[0]?.substring(0, 120),
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
// If a file already uses the standard centered flex empty-state container, require explicit vertical spacing.
|
|
244
|
+
// This is a heuristic that prevents icon/title/description from collapsing together.
|
|
245
|
+
if (likelyEmptyCopy && hasStandardCenteredFlex && hasLikelyIcon && !hasGapOrSpaceY) {
|
|
246
|
+
const match = content.match(/className=\{?\s*["'][^"']*\bflex\b[^"']*\bflex-col\b[^"']*\bitems-center\b[^"']*\btext-center\b[^"']*["']\s*\}?/m);
|
|
247
|
+
const matchIndex = match?.index ?? 0;
|
|
248
|
+
// Only warn when empty-state copy appears near the centered container to reduce false positives.
|
|
249
|
+
const ctxStart = Math.max(0, matchIndex - 600);
|
|
250
|
+
const ctxEnd = Math.min(content.length, matchIndex + 600);
|
|
251
|
+
const localContext = content.substring(ctxStart, ctxEnd);
|
|
252
|
+
const localLikelyEmptyCopy = /(No\s+\w+|Your\s+\w+\s+is\s+empty|There\s+are\s+no\s+\w+|Nothing\s+to\s+(show|display)|not\s+found)/i.test(localContext);
|
|
253
|
+
if (localLikelyEmptyCopy) {
|
|
254
|
+
const lineNumber = content.substring(0, matchIndex).split("\n").length;
|
|
255
|
+
issues.push({
|
|
256
|
+
file,
|
|
257
|
+
line: lineNumber,
|
|
258
|
+
type: "empty-state-missing-gap",
|
|
259
|
+
severity: "warning",
|
|
260
|
+
message: "Centered empty-state container should include gap-* or space-y-* for vertical spacing",
|
|
261
|
+
suggestion: "Add gap-4 (or space-y-4) to the flex flex-col items-center text-center container (or use <UnifiedEmptyState />)",
|
|
262
|
+
snippet: match?.[0]?.substring(0, 120),
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// Check for inline empty state patterns
|
|
267
|
+
for (const pattern of INLINE_EMPTY_STATE_PATTERNS) {
|
|
268
|
+
const match = pattern.source.includes("textAlign:")
|
|
269
|
+
? content.match(pattern)
|
|
270
|
+
: contentWithoutStringLiterals.match(pattern);
|
|
271
|
+
if (match) {
|
|
272
|
+
const matchIndex = content.indexOf(match[0]);
|
|
273
|
+
const lineNumber = content.substring(0, matchIndex).split("\n").length;
|
|
274
|
+
issues.push({
|
|
275
|
+
file,
|
|
276
|
+
line: lineNumber,
|
|
277
|
+
type: "inline-empty-state",
|
|
278
|
+
severity: this.strictUniformity ? "error" : "warning",
|
|
279
|
+
message: "Inline empty state detected - use shared EmptyState or UnifiedEmptyState component",
|
|
280
|
+
suggestion: 'Import { UnifiedEmptyState } from "@/components/shared" and use variant="no-items" or similar',
|
|
281
|
+
snippet: match[0].substring(0, 100),
|
|
282
|
+
});
|
|
283
|
+
break; // Only report once per file
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
// Check for centered Box with icon pattern (common inline empty state)
|
|
287
|
+
const centeredIconPattern = /sx=\{\{[^}]*textAlign:\s*["']center["'][^}]*\}\}[^]*?size=\{?\d+\}?[^]*?(No\s+\w+|empty|not found)/i;
|
|
288
|
+
const centeredMatch = content.match(centeredIconPattern);
|
|
289
|
+
if (centeredMatch && !usesSharedEmptyState) {
|
|
290
|
+
const matchIndex = content.indexOf(centeredMatch[0]);
|
|
291
|
+
const lineNumber = content.substring(0, matchIndex).split("\n").length;
|
|
292
|
+
// Check if this issue was already reported
|
|
293
|
+
const alreadyReported = issues.some((i) => i.file === file && i.type === "inline-empty-state");
|
|
294
|
+
if (!alreadyReported) {
|
|
295
|
+
issues.push({
|
|
296
|
+
file,
|
|
297
|
+
line: lineNumber,
|
|
298
|
+
type: "inline-empty-state",
|
|
299
|
+
severity: this.strictUniformity ? "error" : "warning",
|
|
300
|
+
message: "Centered icon + text empty state - use shared UnifiedEmptyState component",
|
|
301
|
+
suggestion: 'Import { UnifiedEmptyState } from "@/components/shared" with appropriate variant',
|
|
302
|
+
snippet: centeredMatch[0].substring(0, 100),
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
// Shared empty state component should enforce basic spacing so inline consumers don't regress.
|
|
307
|
+
// This is a lightweight static guard (not a pixel-perfect check).
|
|
308
|
+
try {
|
|
309
|
+
const sharedPath = "components/shared/UnifiedEmptyState.tsx";
|
|
310
|
+
if (fs.existsSync(sharedPath)) {
|
|
311
|
+
const shared = fs.readFileSync(sharedPath, "utf8");
|
|
312
|
+
const hasVerticalGapStack = /flex\s+flex-col\s+items-center\s+gap-\d+/.test(shared);
|
|
313
|
+
const hasTestIds = shared.includes('data-testid="unified-empty-state"') &&
|
|
314
|
+
shared.includes('data-testid="unified-empty-state-icon"');
|
|
315
|
+
if (!hasVerticalGapStack || !hasTestIds) {
|
|
316
|
+
issues.push({
|
|
317
|
+
file: sharedPath,
|
|
318
|
+
type: "shared-empty-state-spacing",
|
|
319
|
+
severity: "warning",
|
|
320
|
+
message: "UnifiedEmptyState should enforce icon/title/description spacing (gap-based) and expose stable test ids",
|
|
321
|
+
suggestion: "Use a flex flex-col items-center gap-* stack for icon+text and add data-testid attributes",
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
catch {
|
|
327
|
+
// ignore
|
|
328
|
+
}
|
|
329
|
+
// Check for .map() without any obvious empty-state handling.
|
|
330
|
+
// This heuristic is intentionally low-severity because many server components
|
|
331
|
+
// guarantee non-empty arrays via upstream queries.
|
|
332
|
+
const hasMap = content.includes(".map(");
|
|
333
|
+
const hasAnyLengthCheck = /\b\.length\b/.test(content) ||
|
|
334
|
+
/length\s*(?:===|!==|>|<)\s*0/.test(content) ||
|
|
335
|
+
/!\w+\?\.length/.test(content);
|
|
336
|
+
if (this.verbose && hasMap && !hasAnyLengthCheck) {
|
|
337
|
+
issues.push({
|
|
338
|
+
file,
|
|
339
|
+
type: "map-no-empty-state",
|
|
340
|
+
severity: "info",
|
|
341
|
+
message: "File uses .map() but has no obvious empty state handling",
|
|
342
|
+
suggestion: "If user-facing, consider adding an empty state (prefer <UnifiedEmptyState />)",
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
const hasErrors = issues.some((i) => i.severity === "error");
|
|
347
|
+
return {
|
|
348
|
+
name: "Empty State Consistency",
|
|
349
|
+
passed: !hasErrors,
|
|
350
|
+
blocking: this.strictUniformity && hasErrors,
|
|
351
|
+
issues,
|
|
352
|
+
duration: Date.now() - startTime,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Error State Consistency
|
|
357
|
+
*/
|
|
358
|
+
async checkError() {
|
|
359
|
+
const startTime = Date.now();
|
|
360
|
+
const issues = [];
|
|
361
|
+
const files = await this.getComponentFiles();
|
|
362
|
+
for (const file of files) {
|
|
363
|
+
const content = fs.readFileSync(file, "utf8");
|
|
364
|
+
const lines = content.split("\n");
|
|
365
|
+
const hasForm = content.includes("<form") || content.includes("onSubmit");
|
|
366
|
+
const hasErrorState = /error|Error/.test(content);
|
|
367
|
+
lines.forEach((line, index) => {
|
|
368
|
+
if (line.trim().startsWith("//"))
|
|
369
|
+
return;
|
|
370
|
+
// TextField without error prop
|
|
371
|
+
if (/<TextField[^>]*>/i.test(line) &&
|
|
372
|
+
!line.includes("error") &&
|
|
373
|
+
!line.includes("helperText")) {
|
|
374
|
+
issues.push({
|
|
375
|
+
file,
|
|
376
|
+
line: index + 1,
|
|
377
|
+
type: "textfield-no-error",
|
|
378
|
+
severity: "info",
|
|
379
|
+
message: "TextField without error handling",
|
|
380
|
+
suggestion: "Add error={!!errors.field} and helperText",
|
|
381
|
+
snippet: line.trim().substring(0, 80),
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
// Async without try-catch
|
|
385
|
+
if (/const\s+\w+\s*=\s*async/.test(line) &&
|
|
386
|
+
!content.includes("try") &&
|
|
387
|
+
!content.includes("catch")) {
|
|
388
|
+
issues.push({
|
|
389
|
+
file,
|
|
390
|
+
line: index + 1,
|
|
391
|
+
type: "async-no-error-handling",
|
|
392
|
+
severity: "warning",
|
|
393
|
+
message: "Async function without error handling",
|
|
394
|
+
suggestion: "Add try-catch block",
|
|
395
|
+
snippet: line.trim().substring(0, 80),
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
if (hasForm && !hasErrorState) {
|
|
400
|
+
issues.push({
|
|
401
|
+
file,
|
|
402
|
+
type: "form-no-error-state",
|
|
403
|
+
severity: "warning",
|
|
404
|
+
message: "Form without error state management",
|
|
405
|
+
suggestion: "Add error state and validation",
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
name: "Error State Consistency",
|
|
411
|
+
passed: true,
|
|
412
|
+
blocking: true,
|
|
413
|
+
issues,
|
|
414
|
+
duration: Date.now() - startTime,
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Hover State Consistency
|
|
419
|
+
*/
|
|
420
|
+
async checkHover() {
|
|
421
|
+
const startTime = Date.now();
|
|
422
|
+
const issues = [];
|
|
423
|
+
const files = await this.getComponentFiles();
|
|
424
|
+
const uiPattern = new RegExp(`<(${UI_COMPONENTS_WITH_HOVER.join("|")})\\b`, "i");
|
|
425
|
+
for (const file of files) {
|
|
426
|
+
const content = fs.readFileSync(file, "utf8");
|
|
427
|
+
const lines = content.split("\n");
|
|
428
|
+
const hasCursorInFile = content.includes("cursor:") || content.includes("cursor-pointer");
|
|
429
|
+
lines.forEach((line, index) => {
|
|
430
|
+
if (line.trim().startsWith("//") || /^\s*import\s+/.test(line))
|
|
431
|
+
return;
|
|
432
|
+
if (!/<\w+/.test(line))
|
|
433
|
+
return;
|
|
434
|
+
// onClick on plain elements without cursor
|
|
435
|
+
if (/<(div|span|section)\s/i.test(line) &&
|
|
436
|
+
line.includes("onClick") &&
|
|
437
|
+
!line.includes("cursor") &&
|
|
438
|
+
!hasCursorInFile) {
|
|
439
|
+
const surroundingLines = lines
|
|
440
|
+
.slice(Math.max(0, index - 5), Math.min(lines.length, index + 15))
|
|
441
|
+
.join("\n");
|
|
442
|
+
if (!surroundingLines.includes("cursor:") &&
|
|
443
|
+
!surroundingLines.includes("cursor-pointer")) {
|
|
444
|
+
issues.push({
|
|
445
|
+
file,
|
|
446
|
+
line: index + 1,
|
|
447
|
+
type: "onclick-no-cursor",
|
|
448
|
+
severity: "warning",
|
|
449
|
+
message: "onClick without cursor: pointer",
|
|
450
|
+
suggestion: 'Add style={{ cursor: "pointer" }}',
|
|
451
|
+
snippet: line.trim().substring(0, 80),
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
name: "Hover State Consistency",
|
|
459
|
+
passed: true,
|
|
460
|
+
blocking: true,
|
|
461
|
+
issues,
|
|
462
|
+
duration: Date.now() - startTime,
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Loading State Consistency
|
|
467
|
+
*/
|
|
468
|
+
async checkLoading() {
|
|
469
|
+
const startTime = Date.now();
|
|
470
|
+
const issues = [];
|
|
471
|
+
const files = await this.getComponentFiles();
|
|
472
|
+
for (const file of files) {
|
|
473
|
+
const content = fs.readFileSync(file, "utf8");
|
|
474
|
+
const lines = content.split("\n");
|
|
475
|
+
const hasAsyncFunction = /const\s+\w+\s*=\s*async\s*\(|async\s+function/.test(content);
|
|
476
|
+
const hasLoadingState = /useState.*loading/i.test(content) || /isLoading/i.test(content);
|
|
477
|
+
const hasLoadingIndicator = content.includes("CircularProgress") ||
|
|
478
|
+
content.includes("Spinner") ||
|
|
479
|
+
content.includes("SkeletonLoader");
|
|
480
|
+
lines.forEach((line, index) => {
|
|
481
|
+
if (line.trim().startsWith("//"))
|
|
482
|
+
return;
|
|
483
|
+
// Fetch without loading state
|
|
484
|
+
if (/(fetch|axios)\s*\(/i.test(line) &&
|
|
485
|
+
!content.includes("isLoading") &&
|
|
486
|
+
!content.includes("loading")) {
|
|
487
|
+
issues.push({
|
|
488
|
+
file,
|
|
489
|
+
line: index + 1,
|
|
490
|
+
type: "fetch-no-loading",
|
|
491
|
+
severity: "warning",
|
|
492
|
+
message: "Fetch/axios without loading state",
|
|
493
|
+
suggestion: "Add loading state",
|
|
494
|
+
snippet: line.trim().substring(0, 80),
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
// Async onClick without loading
|
|
498
|
+
if (/onClick=\{async\s*\(/.test(line)) {
|
|
499
|
+
issues.push({
|
|
500
|
+
file,
|
|
501
|
+
line: index + 1,
|
|
502
|
+
type: "async-onclick-no-loading",
|
|
503
|
+
severity: "warning",
|
|
504
|
+
message: "Async onClick without loading feedback",
|
|
505
|
+
suggestion: "Add loading state and indicator",
|
|
506
|
+
snippet: line.trim().substring(0, 80),
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
if (hasAsyncFunction && !hasLoadingState && !hasLoadingIndicator) {
|
|
511
|
+
issues.push({
|
|
512
|
+
file,
|
|
513
|
+
type: "async-no-loading-state",
|
|
514
|
+
severity: "warning",
|
|
515
|
+
message: "File has async operations but no loading state",
|
|
516
|
+
suggestion: "Add loading state management",
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
return {
|
|
521
|
+
name: "Loading State Consistency",
|
|
522
|
+
passed: true,
|
|
523
|
+
blocking: true,
|
|
524
|
+
issues,
|
|
525
|
+
duration: Date.now() - startTime,
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
async runAll() {
|
|
529
|
+
const startTime = Date.now();
|
|
530
|
+
console.log(`\n${console_chars_1.emoji.refresh} CONSOLIDATED UI STATE CONSISTENCY PREFLIGHT`);
|
|
531
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
532
|
+
const checks = [];
|
|
533
|
+
checks.push(await this.checkDisabled());
|
|
534
|
+
checks.push(await this.checkEmpty());
|
|
535
|
+
checks.push(await this.checkError());
|
|
536
|
+
checks.push(await this.checkHover());
|
|
537
|
+
checks.push(await this.checkLoading());
|
|
538
|
+
const totalDuration = Date.now() - startTime;
|
|
539
|
+
const allIssues = checks.flatMap((c) => c.issues);
|
|
540
|
+
const hasBlockingFailure = checks.some((c) => !c.passed && c.blocking);
|
|
541
|
+
const summary = {
|
|
542
|
+
total: checks.length,
|
|
543
|
+
passed: checks.filter((c) => c.passed).length,
|
|
544
|
+
failed: checks.filter((c) => !c.passed).length,
|
|
545
|
+
errors: allIssues.filter((i) => i.severity === "error").length,
|
|
546
|
+
warnings: allIssues.filter((i) => i.severity === "warning").length,
|
|
547
|
+
};
|
|
548
|
+
this.printResults(checks, totalDuration, summary, hasBlockingFailure);
|
|
549
|
+
return {
|
|
550
|
+
module: "ui-state-consistency",
|
|
551
|
+
passed: !hasBlockingFailure,
|
|
552
|
+
totalDuration,
|
|
553
|
+
checks,
|
|
554
|
+
summary,
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
printResults(checks, totalDuration, summary, hasBlockingFailure) {
|
|
558
|
+
console.log("\n" + (0, console_chars_1.createDivider)(80, "heavy"));
|
|
559
|
+
console.log(`${console_chars_1.emoji.chart} UI STATE CONSISTENCY RESULTS`);
|
|
560
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
561
|
+
checks.forEach((check) => {
|
|
562
|
+
const icon = check.issues.length === 0
|
|
563
|
+
? `${console_chars_1.emoji.success}`
|
|
564
|
+
: check.blocking && !check.passed
|
|
565
|
+
? `${console_chars_1.emoji.error}`
|
|
566
|
+
: `${console_chars_1.emoji.warning}`;
|
|
567
|
+
const count = check.issues.length > 0 ? ` (${check.issues.length} issues)` : "";
|
|
568
|
+
console.log(`${icon} ${check.name.padEnd(30)} ${(check.duration / 1000).toFixed(1)}s${count}`);
|
|
569
|
+
});
|
|
570
|
+
console.log((0, console_chars_1.createDivider)(80, "heavy"));
|
|
571
|
+
console.log(`Errors: ${summary.errors} | Warnings: ${summary.warnings} | Time: ${(totalDuration / 1000).toFixed(1)}s`);
|
|
572
|
+
if (hasBlockingFailure) {
|
|
573
|
+
console.log(`\n${console_chars_1.emoji.error} UI STATE CONSISTENCY FAILED (blocking errors found)`);
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
console.log(`\n${console_chars_1.emoji.success} UI STATE CONSISTENCY PASSED`);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
exports.UIStateConsistencyModule = UIStateConsistencyModule;
|
|
581
|
+
async function main() {
|
|
582
|
+
const reporter = (0, universal_progress_reporter_1.createUniversalProgressReporter)(path.basename(__filename, ".ts"));
|
|
583
|
+
const args = process.argv.slice(2);
|
|
584
|
+
const flags = new Set(args.filter((a) => a.startsWith("-")));
|
|
585
|
+
const positional = args.filter((a) => !a.startsWith("-"));
|
|
586
|
+
const mode = positional[0] || "all";
|
|
587
|
+
const verbose = flags.has("--verbose") || flags.has("-v");
|
|
588
|
+
const strictUniformity = flags.has("--strict") ||
|
|
589
|
+
flags.has("--strict-uniformity") ||
|
|
590
|
+
process.env.PREFLIGHT_STRICT_UNIFORMITY === "1";
|
|
591
|
+
const module = new UIStateConsistencyModule({ verbose, strictUniformity });
|
|
592
|
+
const runSingle = async (name, fn) => {
|
|
593
|
+
const check = await fn();
|
|
594
|
+
const hasBlockingFailure = !check.passed && check.blocking;
|
|
595
|
+
console.log(`\n${check.passed ? "${emoji.success}" : "${emoji.error}"} ${check.name}: ${check.issues.length} issues`);
|
|
596
|
+
if (check.issues.length > 0) {
|
|
597
|
+
const severityRank = {
|
|
598
|
+
error: 0,
|
|
599
|
+
warning: 1,
|
|
600
|
+
info: 2,
|
|
601
|
+
};
|
|
602
|
+
const issuesSorted = [...check.issues].sort((a, b) => {
|
|
603
|
+
const ar = severityRank[a.severity] ?? 9;
|
|
604
|
+
const br = severityRank[b.severity] ?? 9;
|
|
605
|
+
if (ar !== br)
|
|
606
|
+
return ar - br;
|
|
607
|
+
if (a.file !== b.file)
|
|
608
|
+
return a.file.localeCompare(b.file);
|
|
609
|
+
return (a.line ?? 0) - (b.line ?? 0);
|
|
610
|
+
});
|
|
611
|
+
const toPrint = verbose ? issuesSorted : issuesSorted.slice(0, 5);
|
|
612
|
+
toPrint.forEach((i) => {
|
|
613
|
+
const lineSuffix = typeof i.line === "number" ? `:${i.line}` : "";
|
|
614
|
+
console.log(` [${i.severity}] ${i.file}${lineSuffix} - ${i.message}`);
|
|
615
|
+
});
|
|
616
|
+
if (!verbose && issuesSorted.length > 5)
|
|
617
|
+
console.log(` ... and ${issuesSorted.length - 5} more`);
|
|
618
|
+
}
|
|
619
|
+
return {
|
|
620
|
+
module: `ui-state:${name}`,
|
|
621
|
+
passed: !hasBlockingFailure,
|
|
622
|
+
totalDuration: check.duration,
|
|
623
|
+
checks: [check],
|
|
624
|
+
summary: {
|
|
625
|
+
total: 1,
|
|
626
|
+
passed: check.passed ? 1 : 0,
|
|
627
|
+
failed: check.passed ? 0 : 1,
|
|
628
|
+
errors: check.issues.filter((i) => i.severity === "error").length,
|
|
629
|
+
warnings: check.issues.filter((i) => i.severity === "warning").length,
|
|
630
|
+
},
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
let result;
|
|
634
|
+
switch (mode) {
|
|
635
|
+
case "disabled":
|
|
636
|
+
result = await runSingle("disabled", () => module.checkDisabled());
|
|
637
|
+
break;
|
|
638
|
+
case "empty":
|
|
639
|
+
result = await runSingle("empty", () => module.checkEmpty());
|
|
640
|
+
break;
|
|
641
|
+
case "error":
|
|
642
|
+
result = await runSingle("error", () => module.checkError());
|
|
643
|
+
break;
|
|
644
|
+
case "hover":
|
|
645
|
+
result = await runSingle("hover", () => module.checkHover());
|
|
646
|
+
break;
|
|
647
|
+
case "loading":
|
|
648
|
+
result = await runSingle("loading", () => module.checkLoading());
|
|
649
|
+
break;
|
|
650
|
+
default:
|
|
651
|
+
result = await module.runAll();
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
process.exit(result.passed ? 0 : 1);
|
|
655
|
+
}
|
|
656
|
+
if (require.main === module) {
|
|
657
|
+
main();
|
|
658
|
+
}
|
|
659
|
+
//# sourceMappingURL=ui-state-consistency.js.map
|