Tags: dolmios/stoop
Tags
feat(stoop): improve SSR support and CSS selector handling - Include global CSS in getCssText() for Pages Router SSR - Add support for comma-separated selectors (e.g., "a, a:visited") - Fix empty content property handling (CSS requires content: "";) - Preserve commas in selector sanitization - Fix array destructuring linter warnings This improves Pages Router SSR support and ensures no FOUC when using Stoop with Next.js Pages Router. App Router continues to work perfectly. Version bump: 0.5.3 -> 0.5.4
fix(stoop): automatically add px units to unitless numeric values for… … dimensional properties - Added DIMENSIONAL_PROPERTIES set to identify properties requiring units - Implemented normalizeCSSValue() to add 'px' to unitless numbers - Updated cssObjectToString() and extractCSSPropertiesForHash() to normalize values - Added comprehensive tests for unit normalization - Fixes browser warnings for invalid CSS like 'height: 32' (now 'height: 32px')
feat(stoop): v0.4.0 - Multi-theme injection system and SSR improvements - Implement multi-theme injection using attribute selectors for instant theme switching - Add SSR entry point (create-stoop-ssr.ts) for server-safe usage - Refactor theme management: consolidate mergeThemes, extract storage utilities - Optimize performance: remove token cache, early exit optimizations - Improve code organization: export shared utilities, consolidate constants - Update getCssText() to always include all themes using attribute selectors - Add comprehensive documentation (README.md, docs/) - Add package-specific lint script scoped to packages/stoop/src - Add stoop-swc to eslint ignore patterns - Update version to 0.4.0